PR middle-end/66867
[official-gcc.git] / gcc / ChangeLog
blobad247ce0f20436885b455df40857bb04d75b68ac
1 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
3         PR middle-end/66867
4         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
5         expand_ifn_atomic_compare_exchange): New functions.
6         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
7         * tree.h (build_call_expr_internal_loc): Rename to ...
8         (build_call_expr_internal_loc_array): ... this.  Fix up type of
9         last argument.
10         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
11         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
12         ATOMIC_COMPARE_EXCHANGE result.
13         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
14         * gimple-fold.h (optimize_atomic_compare_exchange_p,
15         fold_builtin_atomic_compare_exchange): New prototypes.
16         * gimple-fold.c (optimize_atomic_compare_exchange_p,
17         fold_builtin_atomic_compare_exchange): New functions..
18         * tree-ssa.c (execute_update_addresses_taken): If
19         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
20         of call when finding addressable vars, and if such var becomes
21         non-addressable, call fold_builtin_atomic_compare_exchange.
23 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
25         PR target/71670
26         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
27         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
29 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
31         * config/rs6000/rs6000.md ('type' attribute): Add
32         veclogical,veccmpfx,vecexts,vecmove insn types.
33         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
34         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
35         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
36         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
37         *nabs<mode>2_hw): Change type to vecmove.
38         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
39         *boolcc<mode>3_internal, *eqv<mode>3_internal,
40         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
41         *ieee_128bit_vsx_abs<mode>2_internal,
42         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
43         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
44         *ieee128_mtvsrd_32bit): Change type to veclogical.
45         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
46         *movdi_internal32, *movdi_internal64): Update insn types.
47         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
48         vsx_extract_<mode>): Change type to veclogical.
49         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
50         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
51         *vsx_sign_extend_si_v2di): Change type to vecexts.
52         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
53         type to veclogical.
54         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
55         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
56         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
57         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
58         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
59         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
60         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
61         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
62         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
63         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
64         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
65         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
66         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
67         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
68         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
69         (ppc7450-vecsimple): Add veclogical, vecmove.
70         (ppc7450-veccmp): Add veccmpfx.
71         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
72         vecmove.
73         (ppc8540_vector_compare): Add veccmpfx.
74         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
75         * config/rs6000/cell.md (cell-fp): Add fpsimple.
76         (cell-vecsimple): Add veclogical, vecmove.
77         (cell-veccmp): Add veccmpfx.
78         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
79         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
80         veccmpfx.
81         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
82         * config/rs6000/power4.md (power4-fp): Add fpsimple.
83         (power4-vecsimple): Add veclogical, vecmove.
84         (power4-veccmp): Add veccmpfx.
85         * config/rs6000/power5.md (power5-fp): Add fpsimple.
86         * config/rs6000/power6.md (power6-fp): Add fpsimple.
87         (power6-vecsimple): Add veclogical, vecmove.
88         (power6-veccmp): Add veccmpfx.
89         * config/rs6000/power7.md (power7-fp): Add fpsimple.
90         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
91         * config/rs6000/power8.md (power8-fp): Add fpsimple.
92         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
93         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
94         * config/rs6000/titan.md (titan_fp): Add fpsimple.
95         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
96         fpsimple.
97         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
99 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
101         PR target/71656
102         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
103         OPTION_MASK_P9_DFORM_VECTOR.
104         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
105         disable -mpower9-dform-vector when using reload.
106         (quad_address_p): Remove 'gpr_p' argument and all associated code.
107         New 'strict' argument.  Update all callers.  Add strict addressing
108         support.
109         (rs6000_legitimate_offset_address_p): Remove call to
110         virtual_stack_registers_memory_p.
111         (rs6000_legitimize_reload_address): Add quad address support.
112         (rs6000_legitimate_address_p): Move call to quad_address_p above
113         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
114         to account for new strict usage.
115         (rs6000_output_move_128bit): Adjust quad_address_p args to account
116         for new strict usage.
117         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
119 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
121         PR target/70902
122         PR target/71453
123         PR target/71555
124         PR target/71596
125         PR target/71657
126         * config/i386/i386.c (ix86_spill_class): Disable condition to
127         always return NO_REGS.
129 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
131         * predict.c: Include gimple-pretty-print.h
132         (predicted_by_loop_heuristics_p): Check also
133         PRED_LOOP_EXIT_WITH_RECURSION
134         (predict_loops): Find self recursive calls and use special purpose
135         predictors for them; dump log about decisions.
136         (pass_profile::execute): Dump info about #of iterations.
137         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
138         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
140 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
142         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
143         output_asm_insn calls and shorten long lines.  Output .CALL
144         argument descriptor using pa_output_arg_descriptor.  Add various
145         inline $$dyncall and other optimizations.
146         (pa_attr_length_indirect_call): Adjust ordering and lengths.
148 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
150         PR tree-optimization/71643
151         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
152         EH preds.
154         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
155         leak a bitmap if dep_bb is NULL.
157         PR tree-optimization/71631
158         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
159         to rewrite_expr_tree even if negate_result, move new_lhs var
160         declaration and initialization earlier, for powi_result set afterwards
161         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
162         if new_lhs != lhs, and don't shadow gsi var.
164 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
166         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
167         Add in_loop parameter.
168         (predict_loops): Add loop guard heuristics.
169         * predict.def (PRED_LOOP_GUARD): New heuristics.
171 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
173         * predict.c: Include ipa-utils.h
174         (tree_bb_level_prediction): Predict recursive calls.
175         (tree_estimate_probability_bb): Skip inexpensive calls for call
176         predictor.
177         * predict.def (PRED_RECURSIVE_CALL): New.
179 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
181         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
182         (BU_FLOAT128_1): Likewise.
183         (FABSQ): Likewise.
184         (COPYSIGNQ): Likewise.
185         (RS6000_BUILTIN_NANQ): Likewise.
186         (RS6000_BUILTIN_NANSQ): Likewise.
187         (RS6000_BUILTIN_INFQ): Likewise.
188         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
189         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
190         (TARGET_FOLD_BUILTIN): New #define.
191         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
192         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
193         (rs6000_fold_builtin): New target hook implementation, handling
194         folding of 128-bit NaNs and infinities.
195         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
196         entries are filled in to avoid problems during bootstrap
197         self-test; define builtins for 128-bit NaNs and infinities.
198         (rs6000_opt_mask): Add entry for float128.
199         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
200         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
201         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
202         (const_str_type_node): New #define.
203         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
204         to a define_expand that dispatches to either copysign<mode>3_soft
205         or copysign<mode>3_hard.
206         (copysign<mode>3_hard): Rename from copysign<mode>3.
207         (copysign<mode>3_soft): New define_insn.
208         * doc/extend.texi: Document new builtins.
210 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
212         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
213         PRIu64 instead of lu.
215 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
217         PR debug/71642
218         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
219         copy the type name.
221 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
223         PR tree-optimization/71647
224         * omp-low.c (lower_rec_input_clauses): Convert
225         omp_clause_aligned_alignment (c) to size_type_node for the
226         last argument of __builtin_assume_aligned.
228 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
230         * configure.ac (calling ___tls_get_addr via GOT): New
231         assembler/linker check.
232         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
233         assembler and linker supports calling ___tls_get_addr via GOT.
234         Otherise, defined to 0.
235         * config.in: Regenerated.
236         * configure: Likewise.
237         * config/i386/constraints.md (Yb): New constraint.
238         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
239         (REG_CLASS_NAMES): Likewise.
240         (REG_CLASS_CONTENTS): Likewise.
241         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
242         the b constraint with the Yb constraint.  Call ___tls_get_addr
243         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
244         is 1.
245         (*tls_local_dynamic_base_32_gnu): Likewise.
246         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
247         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
248         (*tls_local_dynamic_base_64_<mode>): Likewise.
250 2016-06-24  Martin Liska  <mliska@suse.cz>
252         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
253         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
254         few functions.
255         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
256         argument to true if the expected number of iterations is
257         loop-based.
259 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
261         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
262         assemble for 32bit target.
263         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
264         and $ld_ix86_gld_32_opt to link for 32bit target.
265         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
266         * configure: Regenerate.
268 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
270         * config/arm/arm.c (int_log2): Delete definition and prototype.
271         (shift_op): Use exact_log2 instead of int_log2.
272         (vfp3_const_double_for_fract_bits): Likewise.
274 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
276         * internal-fn.c (expand_arith_set_overflow): New function.
277         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
278         Use it.
279         (expand_arith_overflow_result_store): Likewise.  Handle precision
280         smaller than mode precision.
281         * tree-vrp.c (extract_range_basic): For imag part, handle
282         properly signed 1-bit precision result.
283         * doc/extend.texi (__builtin_add_overflow): Document that last
284         argument can't be pointer to enumerated or boolean type.
285         (__builtin_add_overflow_p): Document that last argument can't
286         have enumerated or boolean type.
288 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
289             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
291         * config/rs6000/predicates.md (splat_input_operand): Rework.
292         Don't allow constants, since the insns that use this predicate
293         don't support constants.  Constants are handled by other insns
294         that are created via combine.  During and after register
295         allocation, only allow indexed or indirect addresses, and not
296         general addresses.  Only allow modes supported by the hardware.
297         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
298         comment.  Move check for using VSPLTIS<x> to a common location,
299         instead of doing it in two different places.
301 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
303         * config/i386/driver-i386.c (host_detect_local_cpu): Set
304         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
305         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
306         signature_CENTAUR_ebx.
308 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
310         PR target/66232
311         PR target/67400
312         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
313         (as_ix86_gas_32_opt): This.
314         (ld_ix86_tls_ldm_opt): Renamed to ...
315         (ld_ix86_gld_32_opt): This.
316         (R_386_TLS_LDM reloc): Updated.
317         (R_386_GOT32X reloc): New assembler/linker check.
318         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
319         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
320         defined to 0.
321         * config.in: Regenerated.
322         * configure: Likewise.
323         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
324         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
325         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
326         if ix86_force_load_from_GOT_p returns true.
327         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
328         ix86_force_load_from_GOT_p returns true.
329         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
330         the external function address via the GOT slot.
331         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
332         HAVE_AS_IX86_GOT32X before returning false.
333         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
334         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
336 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
338         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
340 2016-06-23  Andi Kleen  <ak@linux.intel.com>
342         * Makefile.in: Regenerate.
343         * doc/install.texi: Document autoprofiledbootstrap.
345 2016-06-23  Andi Kleen  <ak@linux.intel.com>
347         * config/i386/gcc-auto-profile: New file.
349 2016-06-23  Martin Liska  <mliska@suse.cz>
351         PR middle-end/71619
352         * predict.c (predict_loops): Revert the hunk that was removed
353         in r237103.
355 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
357         * config.gcc: Add support for arm*-*-phoenix* targets.
358         * config/arm/t-phoenix: New.
359         * config/phoenix.h: New.
361 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
362             H.J. Lu  <hongjiu.lu@intel.com>
364         PR target/67400
365         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
366         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
367         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
368         ix86_force_load_from_GOT_p returns true.
369         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
370         ix86_force_load_from_GOT_p returns true.
371         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
372         ix86_force_load_from_GOT_p returns true.
373         (ix86_expand_move): Load the external function address via the
374         GOT slot if ix86_force_load_from_GOT_p returns true.
375         * config/i386/predicates.md (x86_64_immediate_operand): Return
376         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
377         (x86_64_zext_immediate_operand): Ditto.
379 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
381         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
383 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
385         PR c/70339
386         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
387         * diagnostic.c (pedwarn_at_rich_loc): New function.
388         * spellcheck.h (best_match::best_match): Add a
389         "best_distance_so_far" optional parameter.
390         (best_match::set_best_so_far): New method.
391         (best_match::get_best_distance): New accessor.
392         (best_match::get_best_candidate_length): New accessor.
394 2016-06-22  Nick Clifton  <nickc@redhat.com>
396         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
397         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
398         modes are accepted as well.
399         (ucompare_loc_descriptor): Likewise.
400         (minmax_loc_descriptor): Likewise.
401         (clz_loc_descriptor): Likewise.
402         (popcount_loc_descriptor): Likewise.
403         (bswap_loc_descriptor): Likewise.
404         (rotate_loc_descriptor): Likewise.
405         (mem_loc_descriptor): Likewise.
406         (loc_descriptor): Likewise.
408 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
410         * common.opt (fdiagnostics-parseable-fixits): New option.
411         * diagnostic.c: Include "selftest.h".
412         (print_escaped_string): New function.
413         (print_parseable_fixits): New function.
414         (diagnostic_report_diagnostic): Call print_parseable_fixits.
415         (selftest::assert_print_escaped_string): New function.
416         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
417         (selftest::test_print_escaped_string): New function.
418         (selftest::test_print_parseable_fixits_none): New function.
419         (selftest::test_print_parseable_fixits_insert): New function.
420         (selftest::test_print_parseable_fixits_remove): New function.
421         (selftest::test_print_parseable_fixits_replace): New function.
422         (selftest::diagnostic_c_tests): New function.
423         * diagnostic.h (struct diagnostic_context): Add field
424         "parseable_fixits_p".
425         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
426         -fdiagnostics-parseable-fixits.
427         (-fdiagnostics-parseable-fixits): New option.
428         * opts.c (common_handle_option): Handle
429         -fdiagnostics-parseable-fixits.
430         * selftest-run-tests.c (selftest::run_tests): Call
431         selftest::diagnostic_c_tests.
432         * selftest.h (selftest::diagnostic_c_tests): New prototype.
434 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
436         PR tree-optimization/71488
437         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
438         comparison of boolean vectors.
439         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
440         of boolean vectors using bitwise operations.
442 2016-06-22  Andreas Schwab  <schwab@suse.de>
444         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
445         Remove declaration.
447 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
449         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
451 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
453         * config/i386/i386.c (print_reg): Emit an error message on attempt to
454         print FLAGS_REG.
456 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
458         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
459         * config/arm/arm-cores.def (cortex-a73): New entry.
460         (cortex-a73.cortex-a35): Likewise.
461         (cortex-a73.cortex-a53): Likewise.
462         * config/arm/arm-tables.opt: Regenerate.
463         * config/arm/arm-tune.md: Likewise.
464         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
465         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
466         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
467         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
468         * doc/invoke.texi (ARM Options): Document cortex-a73,
469         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
471 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
473         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
474         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
475         (cortex-a73.cortex-a35): Likewise.
476         (cortex-a73.cortex-a53): Likewise.
477         * config/aarch64/aarch64-tune.md: Regenerate.
478         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
479         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
480         -mcpu and -mtune.
482 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
484         * configure.ac (gcc_cv_as_compress_debug): Remove
485         --compress-debug-sections as extra as switch.
486         Handle gas --compress-debug-sections=type.
487         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
488         Handle gld --compress-debug-sections=type.
489         * configure: Regenerate.
491 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
493         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
495 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
497         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
498         (do_rewrite): likewise.
500 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
502         * common/config/mep/mep-common.c: Remove.
503         * config.gcc: Remove mep-* support.
504         * config/mep/constraints.md: Remove.
505         * config/mep/default.h: Remove.
506         * config/mep/intrinsics.h: Remove.
507         * config/mep/intrinsics.md: Remove.
508         * config/mep/ivc2-template.h: Remove.
509         * config/mep/mep-c5.cpu: Remove.
510         * config/mep/mep-core.cpu: Remove.
511         * config/mep/mep-default.cpu: Remove.
512         * config/mep/mep-ext-cop.cpu: Remove.
513         * config/mep/mep-intrin.h: Remove.
514         * config/mep/mep-ivc2.cpu: Remove.
515         * config/mep/mep-pragma.c: Remove.
516         * config/mep/mep-protos.h: Remove.
517         * config/mep/mep.c: Remove.
518         * config/mep/mep.cpu: Remove.
519         * config/mep/mep.h: Remove.
520         * config/mep/mep.md: Remove.
521         * config/mep/mep.opt: Remove.
522         * config/mep/predicates.md: Remove.
523         * config/mep/t-mep: Remove.
524         * doc/install.texi: Remove mep-* documentation.
525         * doc/md.texi: Likewise.
527 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
529         * config.gcc: Remove support for avr-rtems.
530         * config/avr/gen-avr-mmcu-specs.c: Likewise.
531         * config/avr/rtems.h: Remove.
532         * config/avr/t-rtems: Remove.
534 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
536         * config.gcc: Remove m32r-rtems support.
537         * config/m32r/rtems.h: Remove.
539 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
541         * config.gcc: Remove h8300-rtems support.
542         * config/h8300/rtems.h: Remove.
543         * config/h8300/t-rtems: Remove.
545 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
547         * config.gcc: Remove support for knetbsd.
548         * configure.ac: Likewise.
549         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
550         * config/knetbsd-gnu.h: Remove.
551         * configure: Regenerate.
553 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
555         * config.gcc: Remove support for openbsd 2 and 3.
556         * config/openbsd-oldgas.h: Remove.
558 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
560         * config.gcc: Remove interix support.
561         * config/i386/i386-interix.h: Remove.
562         * config/i386/interix.opt: Remove.
563         * config/i386/t-interix: Remove.
564         * configure: Regenerate.
565         * configure.ac: Remove interix support.
566         * doc/install.texi: Remove interix documentation.
568 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
570         * config/rs6000/rs6000.h: Add conditional preprocessing directives
571         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
572         not defined.
574 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
576         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
577         they are both PLACEHOLDER_EXPRs.
579 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
581         * stor-layout.c (layout_type): Move setting complex MODE to
582         layout_type, instead of setting it ahead of time by the caller.
583         * tree.c (build_complex_type): Likewise.
585 2016-06-21  Martin Liska  <mliska@suse.cz>
587         * predict.c (force_edge_cold): Replace imposisble with
588         impossible.
590 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
592         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
593         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
595 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
597         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
599 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
600             Ilya Enkovich  <ilya.enkovich@intel.com>
602         PR target/71549
603         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
604         New member function to convert V1TImode register to SUBREG
605         TImode in debug insn.
606         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
607         after changing register mode to V1TImode.
609 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
611         * config/aarch64/aarch64-cores.def (vulcan): New core.
612         * config/aarch64/aarch64-tune.md: Regenerate.
613         * doc/invoke.texi: Document vulcan as an available option.
615 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
617         * cse.c (canon_asm_operands): New function extracted from...
618         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
619         either standalone or member of a PARALLEL.
621 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
623         PR target/30417
624         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
625         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
626         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
628 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
630         PR target/71103
631         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
632         constant addresses if can_create_pseudo_p.
634 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
636         PR tree-optimization/71588
637         * tree-ssa-strlen.c (valid_builtin_call): New function.
638         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
639         it.
641 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
643         PR middle-end/71581
644         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
645         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
646         for conversion of scalar user var to complex type and use the
647         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
648         punt.
650         PR rtl-optimization/71591
651         * toplev.c (toplev::run_self_tests): If no_backend, complain and
652         don't run any tests.
654 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
656         PR target/71571
657         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
658         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
659         space for PIC with non-v32 and the common non-PIC "jump".
661 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
663         PR target/71559
664         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
665         returned values and add UN*/LTGT/*ORDERED cases with values matching
666         D operand modifier on vcmp for AVX.
668 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
670         * config/aarch64/aarch64.opt
671         (mpc-relative-literal-loads): Rename internal option name.
672         * config/aarch64/aarch64.c
673         (aarch64_nopcrelative_literal_loads): Rename to
674         aarch64_pcrelative_literal_loads.
675         (aarch64_expand_mov_immediate): Likewise.
676         (aarch64_secondary_reload): Likewise.
677         (aarch64_can_use_per_function_literal_pools_p): Likewise.
678         (aarch64_override_options_after_change_1): Rename and simplify logic.
679         (aarch64_classify_symbol): Merge large model checks into switch,
680         remove pc-relative load check.
682 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
684         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
685         costs relative to the cost of a register move.
687 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
689         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
690         (vcvt_n_f64_u64): Likewise.
691         (vcvt_n_s64_f64): Likewise.
692         (vcvt_n_u64_f64): Likewise.
693         (vcvt_f64_s64): Likewise.
694         (vrecpe_f64): Likewise.
695         (vcvt_f64_u64): Likewise.
696         (vrecps_f64): Likewise.
698 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
700         * config/aarch64/aarch64.md
701         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
702         iterators.
703         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
704         attributes.
705         * config/aarch64/aarch64-builtins.c
706         (aarch64_types_binop_uss_qualifiers): Delete.
707         (TYPES_BINOP_USS): Likewise.
708         (aarch64_types_binop_sus_qualifiers): Likewise.
709         (TYPES_BINOP_SUS): Likewise.
710         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
711         (TYPES_FCVTIMM_SUS): Likewise.
712         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
713         rather than BINOP.
714         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
715         (fcvtzs): Use SHIFTIMM rather than BINOP.
716         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
718 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
720         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
721         costs relative to the cost of a register move.
723 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
725         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
726         Allow scalar/single vector modes to be tieable.
728 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
730         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
732 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
734         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
735         "alignement".
736         * tree.h (TYPE_ALIGN): Likewise.
738 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
740         PR target/71103
741         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
743 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
745         * config/avr/avr.c (avr_print_operand): Fix "format not a string
746         literal" build warnings.
747         (avr_print_operand_address): Dito.
749 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
751         PR target/71375
752         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
753         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
755 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
757         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
759 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
761         PR bootstrap/71435
762         * reload1.c (reload): Pass 0 to finish_spills when called because
763         update_eliminables_and_spill returns true and remove did_spill.
764         (finish_spills): Adjust comment and document GLOBAL parameter.
766 2016-06-17  DJ Delorie  <dj@redhat.com>
768         PR target/71338
769         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
770         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
771         (umulqihi3_virt): Likewise.
772         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
773         (umulqihi3_real): Likewise.
775 2016-06-17  Martin Liska  <mliska@suse.cz>
777         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
779 2016-06-17  Martin Liska  <mliska@suse.cz>
781         * predict.def: PRED_LOOP_EXIT from 92 to 85.
783 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
785         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
786         __FAST_MATH__.
787         (vaddq_f32): Likewise.
788         (vmul_f32): Likewise.
789         (vmulq_f32): Likewise.
790         (vsub_f32): Likewise.
791         (vsubq_f32): Likewise.
793 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
795         PR tree-optimization/71347
796         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
797         cost for all uses in group.
799 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
801         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
802         insert gimple seq if it's not empty.
804 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
806         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
807         member OFFSET.
808         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
809         rather than OFFSET.
810         (comp_dr_with_seg_len_pair): Ditto.
811         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
812         struct dr_with_seg_len_pair against DR_OFFSET.
813         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
814         DR_OFFSET directly.
816 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
818         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
820 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
822         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
823         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
824         (pa_output_millicode_call): Likewise.
825         (pa_output_call): Likewise.
826         (pa_output_indirect_call): Likewise.
827         (pa_asm_output_mi_thunk): Likewise.
829 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
831         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
833 2016-06-16  Martin Liska  <mliska@suse.cz>
835         * predict.c (combine_predictions_for_insn): When we find a first
836         match predictor, we should consider just predictors with
837         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
838         DS theory predictor.
839         (combine_predictions_for_bb): Likewise.
841 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
843         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
844         with base of reference to struct.
846 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
848         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
850 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
852         PR target/71151
853         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
854         progmem_swtable_section.
855         (progmem_swtable_section): Remove.
856         (avr_asm_function_rodata_section): Remove.
857         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
858         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
860 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
862         * config/i386/driver-i386.c (host_detect_local_cpu): Set
863         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
864         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
865         signature_CENTAUR_ebx.
866         * config/i386/i386.c (ix86_option_override_internal): Add
867         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
868         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
869         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
871 2016-06-16  Martin Liska  <mliska@suse.cz>
873         * predict.def: Add fortran loop preheader predictor.
874         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
875         fold IFN_BUILTIN_EXPECT with a known constant argument.
877 2016-06-16  Martin Liska  <mliska@suse.cz>
879         * predict.def: Add 'Fortran' to display text of all
880         PRED_FORTRAN_* predictors.
882 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
884         PR target/71242
885         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
886         [IA64_BUILTIN_NANSQ]: Ditto.
887         (ia64_fold_builtin): New function.
888         (TARGET_FOLD_BUILTIN): New define.
889         (ia64_init_builtins) Declare const_string_type node.
890         Add __builtin_nanq and __builtin_nansq builtin functions.
891         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
893 2016-06-16  Nick Clifton  <nickc@redhat.com>
895         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
896         MSP430_HWMULT_ prefix to enum values.
897         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
898         * config/msp430/msp430.c: Update use of enum values.
899         * config/msp430/msp430.md: Likewise.
900         * config/msp430/msp430.opt: Likewise.
902 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
904         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
905         of comparsions in the last iteration.
907 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
908             Joern Rennecke  <joern.rennecke@embecosm.com>
910         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
911         addresses.
912         (arc_needs_pcl_p): Add GOTOFFPC.
913         (arc_legitimate_pic_addr_p): Likewise.
914         (arc_output_pic_addr_const): Likewise.
915         (arc_legitimize_pic_address): Generate a pc-relative address using
916         GOTOFFPC.
917         (arc_output_libcall): Use @pcl syntax.
918         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
919         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
920         (*movsi_insn): Use @pcl syntax.
921         (doloop_begin_i): Likewise.
923 2016-06-16  Martin Liska  <mliska@suse.cz>
925         * predict.def: Define a new predictor.
927 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
929         * config/arc/arc.opt (mtp-regno): Update text.
931 2016-06-16  Renlin Li  <renlin.li@arm.com>
933         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
935 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
937         PR target/71554
938         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
939         (setcc + and peephole2): Likewise.
941         PR rtl-optimization/71532
942         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
943         memory slots.
945 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
947         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
948         DImode constants with XXSPLTIB in vector registers.
949         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
950         vsx_extract_<mode>_internal{1,2} into a single insn that handles
951         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
952         extraction of the element at the top of the register as a scalar
953         value.
954         (vsx_extract_<mode>_internal1): Likewise.
955         (vsx_extract_<mode>_internal2): Likewise.
956         * config/rs6000/constraints.md (wi constraint): Remove a comment
957         about DImode not being allowed in Altivec registers.
958         (wB constraint): New constraint for constants that can be
959         generated in Altivec registers with VSPLTISW/VUPKHSW.
960         * config/rs6000/predicates.md (xxspltib_constant_split): Update
961         comments.
962         (xxspltib_constant_nosplit): Likewise.
963         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
964         support for -mupper-regs-di to enable DImode to go into Altivec
965         registers.
966         (POWERPC_MASKS): Likewise.
967         (power7 cpu): Likewise.
968         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
969         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
970         for DImode being allowed in Altivec registers.  Update wi/wj
971         constraints.  Set scalar_in_vmx_p flag.
972         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
973         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
974         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
975         (rs6000_opt_masks): Add -mupper-regs-di.
976         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
977         direct move to use wi and not wj.
978         (lfiwzx): Likewise.
979         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
980         alternative.
981         (floatunssi<mode>2_lfiwzx_mem): Likewise.
982         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
983         any VSX register, instead of just Altivec registers, to allow
984         either operand to be an Altivec register or both.
985         (fixuns_trunc<mode>di2_fctiduz): Likewise.
986         (movdi_internal32): Add support for -mupper-regs-di.  Add support
987         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
988         the alternatives and attributes to be lined up to be easier to
989         read.
990         (movdi_internal64): Likewise.
991         (64-bit DImode splitters): Change predicates to only split loading
992         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
993         load constants in ISA 3.0 or ISA 2.07 respectively.
994         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
995         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
996         mention -mcpu=power9 sets these options.
997         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
998         wB constraint.
1000 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1002         PR target/67353
1003         * config/avr/avr.c (avr_set_current_function): Warn misspelled
1004         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
1005         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
1006         by default to warn misspelled interrupt/ signal handler.
1007         * doc/invoke.texi (AVR Options): Document it. Update description
1008         for -nodevicelib option.
1010 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1012         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
1013         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
1014         (aarch64_<sur>shll2_n<mode>): Likewise.
1016 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
1018         PR middle-end/71529
1019         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
1020         DECL_CONTEXT for copied arguments.
1022 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
1024         PR tree-optimization/71483
1025         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
1026         for slp
1028 2016-06-15  Martin Liska  <mliska@suse.cz>
1030         * predict.c (tree_predict_by_opcode): Call predict_edge_def
1031         instead of predict_edge w/o a probability.
1033 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
1035         PR tree-optimization/71439
1036         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
1037         live PHIs.
1039 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1041         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
1042         register subregs in SET_SRC.
1044 2016-06-15  Richard Biener  <rguenther@suse.de>
1046         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
1047         store restrictions.
1049 2016-06-15  Richard Biener  <rguenther@suse.de>
1051         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
1052         not consider dependences between accesses that belong to the
1053         same group.
1054         (vect_analyze_data_ref_dependences): Do not analyze read-read
1055         or self-dependences.
1057 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
1059         * spellcheck-tree.c: Include spellcheck-tree.h rather than
1060         spellcheck.h.
1061         (find_closest_identifier): Reimplement in terms of
1062         best_match<tree,tree>.
1063         * spellcheck-tree.h: New file.
1064         * spellcheck.c (struct edit_distance_traits<const char *>): New
1065         struct.
1066         (find_closest_string): Reimplement in terms of
1067         best_match<const char *, const char *>.
1068         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
1069         overload to spellcheck-tree.h.
1070         (find_closest_identifier): Likewise.
1071         (struct edit_distance_traits<T>): New template.
1072         (class best_match): New class.
1074 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
1076         * selftest-run-tests.c (selftest::run_tests): Call
1077         selftest::spellcheck_tree_c_tests.
1078         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
1079         * spellcheck-tree.c: Include selftest.h and stringpool.h.
1080         (selftest::test_find_closest_identifier): New function.
1081         (selftest::spellcheck_tree_c_tests): New function.
1082         * spellcheck.c (selftest::test_find_closest_string): Verify that
1083         the order of the vec does not affect the results for this case.
1084         (selftest::test_data): New array.
1085         (selftest::test_metric_conditions): New function.
1086         (selftest::spellcheck_c_tests): Add a test of case-comparison.
1087         Call selftest::test_metric_conditions.
1089 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1091         * config/rs6000/rs6000-builtin.def (commentary): Typo.
1092         (BU_P9_MISC_1): Likewise.
1093         (BU_P9_64BIT_MISC_0): Likewise.
1094         (BU_P9_MISC_0): Likewise.
1096 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
1098         * gcc-rich-location.c
1099         (gcc_rich_location::add_fixit_misspelled_id): New method.
1100         * gcc-rich-location.h
1101         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
1103 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
1105         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
1106         FreeBSD 11 and above.
1108 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
1110         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
1112 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1114         * expmed.h: Close parenthesis in "at your option" in copyright
1115         boilerplate.
1116         * lower-subreg.h: Likewise.
1118 2016-06-14  Richard Biener  <rguenther@suse.de>
1120         PR middle-end/71526
1121         * genmatch.c (expr::gen_transform): Use in_type for comparisons
1122         if available.
1124 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1126         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
1127         New function.
1128         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
1129         mask+shift version.
1130         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
1131         New prototype.
1132         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
1133         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
1135 2016-06-14  Richard Biener  <rguenther@suse.de>
1137         PR tree-optimization/71522
1138         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
1139         copying into float copying.
1141 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
1143         PR tree-optimization/71520
1144         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
1145         (replace_block_by): Move user labels from bb1 to bb2.
1147 2016-06-14  Richard Biener  <rguenther@suse.de>
1149         PR middle-end/71310
1150         PR bootstrap/71510
1151         * expr.h (get_bit_range): Declare.
1152         * expr.c (get_bit_range): Export.
1153         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
1154         word_mode again to constrain the bitfield access.
1156 2016-06-14  Richard Biener  <rguenther@suse.de>
1158         PR tree-optimization/71521
1159         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
1160         division int_const_binop against zero divisor.
1162 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
1164         * config/i386/i386.md (signbittf2): New expander.
1165         * config/i386/sse.md (ptesttf2): New insn pattern.
1167 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
1169         PR bootstrap/71481
1170         * input.c (selftest::test_reading_source_line): Avoid reading from
1171         __FILE__ by creating a tempfile with known content and reading
1172         from that instead.
1174 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
1176         * pretty-print.c (assert_pp_format_colored): Skip the test if
1177         GCC_COLORS is set.
1178         (test_pp_format): Remove comment about GCC_COLORS.
1180 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
1182         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
1183         * pretty-print.c (assert_pp_format_va): Add location param and use
1184         it with ASSERT_STREQ_AT.
1185         (assert_pp_format): Add location param and pass it to
1186         assert_pp_format_va.
1187         (assert_pp_format_colored): Likewise.
1188         (ASSERT_PP_FORMAT_1): New.
1189         (ASSERT_PP_FORMAT_2): New.
1190         (ASSERT_PP_FORMAT_3): New.
1191         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
1192         explicitly, or implicitly via the above macros.
1193         * selftest.c (selftest::pass): Use a selftest::location rather
1194         than file and line.
1195         (selftest::fail): Likewise.  Print the function name.
1196         (selftest::fail_formatted): Likewise.
1197         (selftest::assert_streq): Use a selftest::location rather than
1198         file and line.
1199         * selftest.h (selftest::location): New struct.
1200         (SELFTEST_LOCATION): New macro.
1201         (selftest::pass): Accept a const location & rather than file
1202         and line.
1203         (selftest::fail): Likewise.
1204         (selftest::fail_formatted): Likewise.
1205         (selftest::assert_streq): Likewise.
1206         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
1207         (ASSERT_FALSE): Likewise.
1208         (ASSERT_EQ): Likewise.
1209         (ASSERT_NE): Likewise.
1210         (ASSERT_STREQ): Likewise.
1211         (ASSERT_PRED1): Likewise.
1212         (ASSERT_STREQ_AT): New macro.
1214 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
1216         * selftest.c (selftest::fail_formatted): New function.
1217         (selftest::assert_streq): New function.
1218         * selftest.h (selftests::fail_formatted): New decl.
1219         (selftest::assert_streq): New decl.
1220         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
1222 2016-06-13  Jeff Law  <law@redhat.com>
1224         PR tree-optimization/71403
1225         * tree-ssa-threadbackward.c
1226         (convert_and_register_jump_thread_path): No longer accept reference
1227         to path.  Do not pop items off the path anymore.
1228         (fsm_find_control_statement_thread_paths): Do not allow threading
1229         to a deeper loop nest.  Pop the last item off the path here rather
1230         than in convert_and_register_jump_thread_path.
1232 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
1233             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
1235         [AArch64] Emit division using the Newton series
1237         * config/aarch64/aarch64-protos.h
1238         (cpu_approx_modes): Add new member "division".
1239         (aarch64_emit_approx_div): Declare new function.
1240         * config/aarch64/aarch64.c
1241         (generic_approx_modes): New member "division".
1242         (exynosm1_approx_modes): Likewise.
1243         (xgene1_approx_modes): Likewise.
1244         (aarch64_emit_approx_div): Define new function.
1245         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
1246         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
1247         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
1248         * doc/invoke.texi (-mlow-precision-div): Describe new option.
1250 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
1251             Wilco Dijkstra  <wilco.dijkstra@arm.com>
1253         [AArch64] Emit square root using the Newton series
1255         * config/aarch64/aarch64-protos.h
1256         (aarch64_emit_approx_rsqrt): Replace with new function
1257         "aarch64_emit_approx_sqrt".
1258         (cpu_approx_modes): New member "sqrt".
1259         * config/aarch64/aarch64.c
1260         (generic_approx_modes): New member "sqrt".
1261         (exynosm1_approx_modes): Likewise.
1262         (xgene1_approx_modes): Likewise.
1263         (aarch64_emit_approx_rsqrt): Replace with new function
1264         "aarch64_emit_approx_sqrt".
1265         (aarch64_override_options_after_change_1): Handle new option.
1266         * config/aarch64/aarch64-simd.md
1267         (rsqrt<mode>2): Use new function instead.
1268         (sqrt<mode>2): New expansion and insn definitions.
1269         * config/aarch64/aarch64.md: Likewise.
1270         * config/aarch64/aarch64.opt
1271         (mlow-precision-sqrt): Add new option description.
1272         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
1274 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
1276         [AArch64] Add more choices for the reciprocal square root approximation
1278         Allow a target to prefer such operation depending on the operation mode.
1280         * config/aarch64/aarch64-protos.h
1281         (AARCH64_APPROX_MODE): New macro.
1282         (AARCH64_APPROX_{NONE,ALL}): Likewise.
1283         (cpu_approx_modes): New structure.
1284         (tune_params): New member "approx_modes".
1285         * config/aarch64/aarch64-tuning-flags.def
1286         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
1287         * config/aarch64/aarch64.c
1288         (generic_approx_modes): New core "cpu_approx_modes" structure.
1289         (exynosm1_approx_modes): Likewise.
1290         (xgene1_approx_modes): Likewise.
1291         (generic_tunings): New member "approx_modes".
1292         (cortexa35_tunings): Likewise.
1293         (cortexa53_tunings): Likewise.
1294         (cortexa57_tunings): Likewise.
1295         (cortexa72_tunings): Likewise.
1296         (exynosm1_tunings): Likewise.
1297         (thunderx_tunings): Likewise.
1298         (xgene1_tunings): Likewise.
1299         (use_rsqrt_p): New argument for the mode and use new member from
1300         "tune_params".
1301         (aarch64_builtin_reciprocal): Devise mode from builtin.
1302         (aarch64_optab_supported_p): New argument for the mode.
1303         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
1305 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1307         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
1308         RS6000_BTM_MODULO flag into the set of flags that are considered
1309         to be part of the common configuration.
1311 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1313         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
1314         difference unsigned.
1315         (vec_absdb): New macro for vector absolute difference unsigned
1316         byte.
1317         (vec_absdh): New macro for vector absolute difference unsigned
1318         half-word.
1319         (vec_absdw): New macro for vector absolute difference unsigned word.
1320         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
1321         (vadu<mode>3): New insn.
1322         (*p9_vadu<mode>3): New insn.
1323         * config/rs6000/rs6000-builtin.def (vadub): New built-in
1324         definition.
1325         (vaduh): New built-in definition.
1326         (vaduw): New built-in definition.
1327         (vadu): New overloaded built-in definition.
1328         (vadub): New overloaded built-in definition.
1329         (vaduh): New overloaded built-in definition.
1330         (vaduw): New overloaded built-in definition.
1331         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1332         overloaded vector absolute difference unsigned functions.
1333         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1334         the ISA 3.0 vector absolute difference unsigned built-in functions.
1336 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
1338         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
1339         update shared_lookup_references only once after changing operands.
1341 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
1343         PR middle-end/71373
1344         * tree-nested.c (convert_nonlocal_omp_clauses)
1345         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
1347         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
1348         * tree.def (CASE_LABEL_EXPR): Likewise.
1350 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1352         PR bootstrap/71481
1353         * input.c (test_builtins): Fix an assertion.
1355 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
1357         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
1358         (paritysi2): Ditto.
1359         (isinfxf2): Ditto.
1360         (isinf<mode>2): Ditto.
1362 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
1364         * ggc-tests.c (test_finalization): Only test need_finalization_p
1365         for GCC_VERSION >= 4003.
1367 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1369         * config/s390/vecintrin.h: Fix file description in comment.
1371 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1373         * config/s390/s390-builtin-types.def: Change builtin type naming
1374         scheme to match builtin-types.def.
1376 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
1378         * fold-const.c (optimize_minmax_comparison): Remove.
1379         (fold_comparison): Remove call to the above.
1380         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
1381         New transformations.
1383 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
1385         PR tree-optimization/71416
1386         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
1387         multiple entries
1389 2016-06-13  Martin Liska  <mliska@suse.cz>
1391         * predict.c (enum predictor_reason): Prefix enum with REASON_.
1392         (combine_predictions_for_insn): Likewise.
1393         (prune_predictions_for_bb): Likewise.
1394         (combine_predictions_for_bb): Likewise.
1396 2016-06-13  Richard Biener  <rguenther@suse.de>
1398         PR tree-optimization/71505
1399         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
1400         assert match comment.
1402 2016-06-13  Marek Polacek  <polacek@redhat.com>
1404         PR middle-end/71476
1405         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
1406         gimplify_switch_expr.
1407         (warn_switch_unreachable_r): New function.
1409 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1411         PR target/71379
1412         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
1413         one.
1415 2016-06-13  Richard Biener  <rguenther@suse.de>
1417         PR middle-end/64516
1418         * fold-const.c (fold_unary_loc): Preserve alignment when
1419         folding a VIEW_CONVERT_EXPR into a MEM_REF.
1421 2016-06-13  Martin Liska  <mliska@suse.cz>
1423         PR sanitizer/71458
1424         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
1425         w/ -fsanitize=bounds.
1427 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
1429         * config/i386/i386.c (ix86_init_builtins): Calculate
1430         FLOAT128_FTYPE_CONST_STRING function type only once.
1431         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
1432         built-in functions are available for x86-32 and x86-64 targets.
1434 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
1436         PR target/71241
1437         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
1438         New primitive type.
1439         (FLOAT128_FTYPE_CONST_STRING): New function type.
1440         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
1441         [IX86_BUILTIN_NANSQ]: Ditto.
1442         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
1443         (ix86_init_builtin_types): Declare const_string_type_node.
1444         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
1445         builtin functions.
1446         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
1447         * doc/extend.texi (x86 Built-in Functions): Document
1448         __builtin_nanq and __builtin_nansq.
1450 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
1452         PR target/71061
1453         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
1454         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
1455         length for pop patterns.
1456         (arm_attr_length_push_multi): Update comments.
1457         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
1458         attribute.
1459         (*pop_multiple_with_writeback_and_return): Likewise.
1460         (*pop_multiple_with_return): Likewise.
1462 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
1464         PR middle-end/71310
1465         * fold-const.c (optimize_bit_field_compare): Don't try to use
1466         word_mode unconditionally for reading the bit field, look at
1467         DECL_BIT_FIELD_REPRESENTATIVE instead.
1469 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
1471         PR middle-end/71478
1472         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
1473         vector integer type.
1475 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
1477         PR middle-end/71494
1478         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
1479         without LABEL_DECL, set *handled_ops_p to false instead of true.
1481 2016-06-10  Martin Sebor  <msebor@redhat.com>
1483         PR c/71392
1484         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
1485         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
1486         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
1487         them.
1488         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
1489         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
1490         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
1491         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
1492         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
1493         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
1494         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
1495         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
1497 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1499         * config/arm/arm.h (pool_vector_label,
1500         return_used_this_function): Remove.
1502 2016-06-10  Jeff Law  <law@redhat.com>
1504         PR tree-optimization/71335
1505         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
1506         zero length paths here.
1507         (convert_and_register_jump_thread_path): Remove hacks related to
1508         duplicated blocks in the jump thread path.
1509         (fsm_find_control_statement_thread_paths): Avoid putting the same
1510         block on the thread path twice, but ensure the thread path is
1511         unchanged from the caller's point of view.
1513 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
1515         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
1516         * predict.def (PRED_LOOP_BRANCH): Remove.
1518 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
1520         * Makefile.in (OBJS): Add ggc-tests.o.
1521         (GTFILES): Add ggc-tests.c.
1522         * ggc-tests.c: New file.
1523         * selftest-run-tests.c (selftest::run_tests): Call
1524         selftest::ggc_tests_c_tests.
1525         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
1527 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
1529         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
1531 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
1533         PR sanitizer/71480
1534         * varasm.c (place_block_symbol): Adjust alignment for asan protected
1535         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
1537 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
1539         * profile.c: Include cfgloop.h.
1540         (branch_prob): Compute estimated number of iterations.
1541         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
1542         recompute estimate number of iterations from profile.
1544 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1546         PR inline-asm/68843
1547         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
1548         must be grouped on top of stack.  Don't force early clobber
1549         on ordinary reg outputs.
1551 2016-06-10  Richard Biener  <rguenther@suse.de>
1553         * targhooks.c (default_builtin_vectorization_cost): Adjust
1554         vec_construct cost.
1556 2016-06-10  Richard Biener  <rguenther@suse.de>
1558         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
1559         to fold the RHS to a constant if possible.
1561 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1563         PR middle-end/71373
1564         * tree-nested.c (convert_nonlocal_omp_clauses)
1565         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
1566         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
1567         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
1569         * gimplify.c (gimplify_adjust_omp_clauses): Discard
1570         OMP_CLAUSE_TILE.
1571         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
1573         * omp-low.c (scan_sharing_clauses): Don't expect
1574         OMP_CLAUSE__CACHE_.
1576 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
1578         PR tree-optimization/71407
1579         PR tree-optimization/71416
1580         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
1581         BIT_FIELD_REF type.
1583 2016-06-10  Richard Biener  <rguenther@suse.de>
1585         PR middle-end/71477
1586         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
1588 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
1590         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
1592 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
1593             Jiong Wang  <jiong.wang@arm.com>
1595         PR rtl-optimization/70751
1596         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
1597         spilled into memory.
1599 2016-06-09  Jonathan Yong  <10walls@gmail.com>
1601         Revert:
1602         2015-09-21  Jonathan Yong  <10walls@gmail.com>
1604         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
1605         sysroot/usr/lib/32api for additional win32 libraries,
1606         fixes failing Cygwin bootstrapping.
1608 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
1610         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
1611         Delete.
1613 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
1615         PR bootstrap/71471
1616         * pretty-print.c (pp_indent): Specify that %p is printed in a
1617         host-dependent manner.
1618         (test_pp_format): Remove the test for %p.
1620 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
1622         * config/mips/mips.c (mips_output_jump): Fix formatting.
1624 2016-06-09  Richard Biener  <rguenther@suse.de>
1626         PR tree-optimization/71462
1627         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
1628         removed blocks.
1630 2016-06-09  Martin Liska  <mliska@suse.cz>
1632         * predict.c (dump_prediction): Add new argument.
1633         (enum predictor_reason): New enum.
1634         (struct predictor_hash): New struct.
1635         (predictor_hash::hash): New function.
1636         (predictor_hash::equal): Likewise.
1637         (not_removed_prediction_p): New function.
1638         (prune_predictions_for_bb): Likewise.
1639         (combine_predictions_for_bb): Prune predictions.
1641 2016-06-09  Martin Liska  <mliska@suse.cz>
1643         * predict.c (filter_predictions): New function.
1644         (remove_predictions_associated_with_edge): Use the filter
1645         function.
1646         (equal_edge_p): New function.
1648 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
1650         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
1651         Correct usage of @samp vs @option, add @samp where appropriate.
1652         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
1653         Add armv6s-m and document it, as it is no official ARM name.
1655 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1657         * ifcvt.c (struct noce_if_info): Add transform_name field.
1658         (noce_try_move): Set if_info->transform_name to the function name.
1659         (noce_try_ifelse_collapse): Likewise.
1660         (noce_try_store_flag): Likewise.
1661         (noce_try_inverse_constants): Likewise.
1662         (noce_try_store_flag_constants): Likewise.
1663         (noce_try_addcc): Likewise.
1664         (noce_try_store_flag_mask): Likewise.
1665         (noce_try_cmove): Likewise.
1666         (noce_try_cmove_arith): Likewise.
1667         (noce_try_minmax): Likewise.
1668         (noce_try_abs): Likewise.
1669         (noce_try_sign_mask): Likewise.
1670         (noce_try_bitop): Likewise.
1671         (noce_convert_multiple_sets): Likewise.
1672         (noce_process_if_block): Print if_info->transform_name to
1673         dump_file if transformation succeeded.
1675 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1677         * config/arm/cortex-a57.md (cortex_a57_alu):
1678         Handle csel type.
1680 2016-06-08  Martin Sebor  <msebor@redhat.com>
1681             Jakub Jelinek  <jakub@redhat.com>
1683         PR c++/70507
1684         PR c/68120
1685         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
1686         BUILT_IN_MUL_OVERFLOW_P): New builtins.
1687         * builtins.c: Include gimple-fold.h.
1688         (fold_builtin_arith_overflow): Handle
1689         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1690         (fold_builtin_3): Likewise.
1691         * doc/extend.texi (Integer Overflow Builtins): Document
1692         __builtin_{add,sub,mul}_overflow_p.
1694 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
1696         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
1697         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
1699 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
1701         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
1702         Rewrite, looking one level down for records and arrays.
1704 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
1706         * pretty-print.c: Include "selftest.h".
1707         (pp_format): Fix comment.
1708         (identifier_to_locale): Likewise.
1709         (selftest::test_basic_printing): New function.
1710         (selftest::assert_pp_format): New function.
1711         (selftest::test_pp_format): New function.
1712         (selftest::pretty_print_c_tests): New function.
1713         * selftest-run-tests.c (selftest::run_tests): Call
1714         selftest::pretty_print_c_tests.
1715         * selftest.h (pretty_print_c_tests): New declaration.
1717 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1719         * invoke.texi (max-loop-headers-insns): Document.
1720         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
1721         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
1722         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
1724 2016-06-08  Richard Biener  <rguenther@suse.de>
1726         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
1727         on strided SLP loads and fall back to scalar loads in case
1728         we can't chunk them.
1730 2016-06-08  Richard Biener  <rguenther@suse.de>
1732         PR tree-optimization/71452
1733         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
1734         type used for the SSA rewrite has enough precision to cover
1735         the dynamic type of the location.
1737 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
1738             Richard Biener  <rguenther@suse.de>
1740         PR c++/71448
1741         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
1742         the same as DECL_P (base0) for indirect_base0.  Use equality_code
1743         in one further place.
1745 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
1747         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
1748         to one word if the field is known to overlap other words.
1749         (extract_bit_field_1): Likewise.
1750         (store_split_bit_field): Remove compensating code.
1751         (extract_split_bit_field): Likewise.
1753 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
1755         PR debug/71432
1756         PR ada/71413
1757         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
1759 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1761         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
1762         VDQF.
1763         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
1764         (arch64_addpv4sf): Delete.
1765         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
1766         "gen_aarch64_addpv4sf".
1767         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
1768         builtin.
1769         (vpadds_f32): Likewise.
1770         (vpaddq_f32): Likewise.
1771         (vpaddq_f64): Likewise.
1773 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1775         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
1776         VALLF.
1777         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
1778         to VALLF.  Rename to "fabd<mode>3".
1779         "*fabd_scalar<mode>3): Delete.
1780         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
1781         Use builtin.
1782         (vabdd_f64): Likewise.
1783         (vabd_f32): Likewise.
1784         (vabd_f64): Likewise.
1785         (vabdq_f32): Likewise.
1786         (vabdq_f64): Likewise.
1788 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1790         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
1791         VALLF.
1792         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
1793         "aarch64_rsqrts<mode>".
1794         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
1795         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
1796         builtin.
1797         (vrsqrtsd_f64): Likewise.
1798         (vrsqrts_f32): Likewise.
1799         (vrsqrts_f64): Likewise.
1800         (vrsqrtsq_f32): Likewise.
1801         (vrsqrtsq_f64): Likewise.
1803 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1805         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
1806         VALLF.
1807         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
1808         "aarch64_rsqrte<mode>".
1809         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
1810         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
1811         builtin.
1812         (vrsqrted_f64): Likewise.
1813         (vrsqrte_f32): Likewise.
1814         (vrsqrte_f64): Likewise.
1815         (vrsqrteq_f32): Likewise.
1816         (vrsqrteq_f64): Likewise.
1818 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1820         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
1821         (ucvtf): Likewise.
1822         (fcvtzs): Likewise.
1823         (fcvtzu): Likewise.
1824         * config/aarch64/aarch64-simd.md
1825         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
1826         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
1827         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
1828         Use builtin.
1829         (vcvt_n_f32_u32): Likewise.
1830         (vcvt_n_s32_f32): Likewise.
1831         (vcvt_n_u32_f32): Likewise.
1832         (vcvtq_n_f32_s32): Likewise.
1833         (vcvtq_n_f32_u32): Likewise.
1834         (vcvtq_n_f64_s64): Likewise.
1835         (vcvtq_n_f64_u64): Likewise.
1836         (vcvtq_n_s32_f32): Likewise.
1837         (vcvtq_n_s64_f64): Likewise.
1838         (vcvtq_n_u32_f32): Likewise.
1839         (vcvtq_n_u64_f64): Likewise.
1840         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
1841         (VSDQ_SDI): Likewise.
1842         (fcvt_target): Support V4DI, V4SI and V2SI.
1843         (FCVT_TARGET): Likewise.
1845 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1847         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
1848         (TYPES_BINOP_SUS): Likewise.
1849         (aarch64_simd_builtin_data): Update include file name.
1850         (aarch64_builtins): Likewise.
1851         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
1852         for conversion between scalar float-point and fixed-point.
1853         (ucvtf): Likewise.
1854         (fcvtzs): Likewise.
1855         (fcvtzu): Likewise.
1856         * config/aarch64/aarch64.md
1857         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
1858         pattern for conversion between scalar float to fixed-pointer.
1859         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
1860         (UNSPEC_FCVTZS): New UNSPEC enumeration.
1861         (UNSPEC_FCVTZU): Likewise.
1862         (UNSPEC_SCVTF): Likewise.
1863         (UNSPEC_UCVTF): Likewise.
1864         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
1865         Use builtin.
1866         (vcvtd_n_f64_u64): Likewise.
1867         (vcvtd_n_s64_f64): Likewise.
1868         (vcvtd_n_u64_f64): Likewise.
1869         (vcvtd_n_f32_s32): Likewise.
1870         (vcvts_n_f32_u32): Likewise.
1871         (vcvtd_n_s32_f32): Likewise.
1872         (vcvts_n_u32_f32): Likewise.
1873         * config/aarch64/iterators.md (fcvt_target): Support integer to float
1874         mapping.
1875         (FCVT_TARGET): Likewise.
1876         (FCVT_FIXED2F): New iterator.
1877         (FCVT_F2FIXED): Likewise.
1878         (fcvt_fixed_insn): New define_int_attr.
1880 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1882         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
1883         some statements was removed.
1885 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
1887         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
1888         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
1889         (vect_can_advance_ivs_p): likewise.
1890         (vect_update_ivs_after_vectorizer): likewise.
1891         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
1892         (vect_analyze_scalar_cycles_1): likewise.
1893         (vect_analyze_loop_operations): likewise.
1894         (report_vect_op): likewise.
1895         (vect_is_slp_reduction): likewise.
1896         (vect_is_simple_reduction): likewise.
1897         (get_initial_def_for_induction): likewise.
1898         (vect_transform_loop): likewise.
1899         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
1900         (vect_recog_sad_pattern): likewise.
1901         (vect_recog_widen_sum_pattern): likewise.
1902         (vect_recog_widening_pattern): likewise.
1903         (vect_recog_divmod_pattern): likewise.
1904         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
1905         (vect_analyze_slp_instance): likewise.
1906         (vect_transform_slp_perm_load): likewise.
1907         (vect_schedule_slp_instance): likewise.
1909 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1911         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
1912         (return_prediction): PRED_CONST_RETURN predict return as not taken.
1913         * predict.def (PRED_CONTINUE): Change hitrate 50->67
1914         (PRED_LOOP_BRANCH): Document predictor as broken.
1915         (PRED_LOOP_EXIT): Change hitrate 91->92.
1916         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
1917         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
1918         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
1919         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
1920         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
1921         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
1922         (PRED_CALL): Chane hitrate 71->67.
1923         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
1924         (PRED_GOTO): Document as unused right now.
1925         (PRED_CONST_RETURN): Change hitrate 67->69
1926         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
1927         (PRED_NULL_RETURN): Change hitrate 91->90.
1928         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
1929         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
1930         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
1932 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
1934         * config/rs6000/altivec.h: Add __builtin_vec_mul.
1935         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
1936         special case Altivec builtin.
1937         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
1938         VSX_BUILTIN_VEC_MUL (replaced with special case code).
1939         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1940         code for ALTIVEC_BUILTIN_VEC_MUL.
1941         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1942         for __builtin_vec_mul.
1944 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
1946         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
1947         -mno-htm.
1949 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
1951         * spellcheck.c (selftest::test_find_closest_string): New function.
1952         (spellcheck_c_tests): Call the above.
1954 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1956         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
1958 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
1960         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
1961         Yv=Yv,C alternatives.
1963 2016-06-07  Richard Biener  <rguenther@suse.de>
1965         PR c/61564
1966         * common.opt (ffast-math): Make Optimization.
1968 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
1969             Prachi Godbole  <prachi.godbole@imgtec.com>
1971         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
1972         `fabs' and `fneg' type attributes.
1973         (p5600_fpu_fabs): Add `fmove' to the comment.
1975 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1977         * gimple.c: Include builtins.h
1978         (gimple_inexpensive_call_p): New function.
1979         * gimple.h (gimple_inexpensive_call_p): Declare.
1980         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
1981         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
1982         fix formatting.
1984 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
1986         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
1987         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
1988         warning_at_rich_loc, warning_n, pedwarn, permerror,
1989         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
1990         sorry, fatal_error, internal_error, internal_error_no_backtrace):
1991         Use the above.
1993 2016-06-07  Richard Biener  <rguenther@suse.de>
1995         PR tree-optimization/71428
1996         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
1997         BIT_FIELD_REF op vs. load.
1999 2016-06-07  Richard Biener  <rguenther@suse.de>
2001         PR middle-end/71423
2002         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
2003         for signed ops.
2005 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
2007         * config/pa/pa.md (call): Generate indirect long calls to non-local
2008         functions on TARGET_64BIT.
2009         (call_value): Likewise.
2011 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
2013         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
2014         pattern and subsequent splitters.
2015         (call_val_reg_64bit_post_reload): Likewise.
2017 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
2019         PR middle-end/71408
2020         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
2021         propagate_op_to_single_use.
2023 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
2025         PR middle-end/71281
2026         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
2028 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
2030         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
2031         (enum x86_dirflag_state): New enum.
2032         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
2033         (machine_function): Remove needs_cld.
2034         (ix86_current_function_needs_cld): Remove.
2035         * config/i386/i386.c (ix86_set_func_type): Set
2036         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
2037         (ix86_expand_prologue): Do not emit CLD here.
2038         (ix86_dirflag_mode_needed): New function.
2039         (ix86_dirflag_mode_entry): Ditto.
2040         (ix86_mode_needed): Handle X86_DIRFLAG entity.
2041         (ix86_mode_after): Ditto.
2042         (ix86_mode_entry): Ditto.
2043         (ix86_mode_exit): Ditto.
2044         (ix86_emit_mode_set): Ditto.
2045         * config/i386/i386.md (strmov_singleop): Set
2046         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
2047         Do not set ix86_current_function_needs_cld.
2048         (rep_mov): Ditto.
2049         (strset_singleop): Ditto.
2050         (rep_stos): Ditto.
2051         (cmpstrnqi_nz_1): Ditto.
2052         (cmpstrnqi_1): Ditto.
2053         (strlenqi_1): Ditto.
2055 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
2057         PR tree-optimization/71259
2058         * tree-vect-slp.c (vect_get_constant_vectors): For
2059         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
2060         one for constant op, and use COND_EXPR for non-constant.
2062 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
2064         * Makefile.in (OBJS): Add function-tests.o,
2065         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
2066         selftest-run-tests.o.
2067         (OBJS-libcommon): Add selftest.o.
2068         (OBJS-libcommon-target): Add selftest.o.
2069         (all.internal): Add "selftest".
2070         (all.cross): Likewise.
2071         (selftest): New phony target.
2072         (s-selftest): New target.
2073         (selftest-gdb): New phony target.
2074         (COLLECT2_OBJS): Add selftest.o.
2075         * bitmap.c: Include "selftest.h".
2076         (selftest::test_gc_alloc): New function.
2077         (selftest::test_set_range): New function.
2078         (selftest::test_clear_bit_in_middle): New function.
2079         (selftest::test_copying): New function.
2080         (selftest::test_bitmap_single_bit_set_p): New function.
2081         (selftest::bitmap_c_tests): New function.
2082         * common.opt (fself-test): New.
2083         * diagnostic-show-locus.c: Include "selftest.h".
2084         (make_range): New function.
2085         (test_range_contains_point_for_single_point): New function.
2086         (test_range_contains_point_for_single_line): New function.
2087         (test_range_contains_point_for_multiple_lines): New function.
2088         (assert_eq): New function.
2089         (test_get_line_width_without_trailing_whitespace): New function.
2090         (selftest::diagnostic_show_locus_c_tests): New function.
2091         * et-forest.c: Include "selftest.h".
2092         (selftest::test_single_node): New function.
2093         (selftest::test_simple_tree): New function.
2094         (selftest::test_disconnected_nodes): New function.
2095         (selftest::et_forest_c_tests): New function.
2096         * fold-const.c: Include "selftest.h".
2097         (selftest::assert_binop_folds_to_const): New function.
2098         (selftest::assert_binop_folds_to_nonlvalue): New function.
2099         (selftest::test_arithmetic_folding): New function.
2100         (selftest::fold_const_c_tests): New function.
2101         * function-tests.c: New file.
2102         * gimple.c: Include "selftest.h".
2103         Include "gimple-pretty-print.h".
2104         (selftest::verify_gimple_pp): New function.
2105         (selftest::test_assign_single): New function.
2106         (selftest::test_assign_binop): New function.
2107         (selftest::test_nop_stmt): New function.
2108         (selftest::test_return_stmt): New function.
2109         (selftest::test_return_without_value): New function.
2110         (selftest::gimple_c_tests): New function.
2111         * hash-map-tests.c: New file.
2112         * hash-set-tests.c: New file.
2113         * input.c: Include "selftest.h".
2114         (selftest::assert_loceq): New function.
2115         (selftest::test_accessing_ordinary_linemaps): New function.
2116         (selftest::test_unknown_location): New function.
2117         (selftest::test_builtins): New function.
2118         (selftest::test_reading_source_line): New function.
2119         (selftest::input_c_tests): New function.
2120         * rtl-tests.c: New file.
2121         * selftest-run-tests.c: New file.
2122         * selftest.c: New file.
2123         * selftest.h: New file.
2124         * spellcheck.c: Include "selftest.h".
2125         (selftest::levenshtein_distance_unit_test_oneway): New function,
2126         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
2127         (selftest::levenshtein_distance_unit_test): Likewise.
2128         (selftest::spellcheck_c_tests): Likewise.
2129         * toplev.c: Include selftest.h.
2130         (toplev::run_self_tests): New.
2131         (toplev::main): Handle -fself-test.
2132         * toplev.h (toplev::run_self_tests): New.
2133         * tree.c: Include "selftest.h".
2134         (selftest::test_integer_constants): New function.
2135         (selftest::test_identifiers): New function.
2136         (selftest::test_labels): New function.
2137         (selftest::tree_c_tests): New function.
2138         * tree-cfg.c: Include "selftest.h".
2139         (selftest::push_fndecl): New function.
2140         (selftest::test_linear_chain): New function.
2141         (selftest::test_diamond): New function.
2142         (selftest::test_fully_connected): New function.
2143         (selftest::tree_cfg_c_tests): New function.
2144         * vec.c: Include "selftest.h".
2145         (selftest::safe_push_range): New function.
2146         (selftest::test_quick_push): New function.
2147         (selftest::test_safe_push): New function.
2148         (selftest::test_truncate): New function.
2149         (selftest::test_safe_grow_cleared): New function.
2150         (selftest::test_pop): New function.
2151         (selftest::test_safe_insert): New function.
2152         (selftest::test_ordered_remove): New function.
2153         (selftest::test_unordered_remove): New function.
2154         (selftest::test_block_remove): New function.
2155         (selftest::reverse_cmp): New function.
2156         (selftest::test_qsort): New function.
2157         (selftest::vec_c_tests): New function.c.
2158         * wide-int.cc: Include selftest.h and wide-int-print.h.
2159         (selftest::from_int <wide_int>): New function.
2160         (selftest::from_int <offset_int>): New function.
2161         (selftest::from_int <widest_int>): New function.
2162         (selftest::assert_deceq): New function.
2163         (selftest::assert_hexeq): New function.
2164         (selftest::test_printing <VALUE_TYPE>): New function template.
2165         (selftest::test_ops <VALUE_TYPE>): New function template.
2166         (selftest::test_comparisons <VALUE_TYPE>): New function template.
2167         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
2168         template.
2169         (selftest::wide_int_cc_tests): New function.
2171 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2173         PR middle-end/37780
2174         * ifcvt.c (noce_try_ifelse_collapse): New function.
2175         Declare prototype.
2176         (noce_process_if_block): Call noce_try_ifelse_collapse.
2177         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
2178         (simplify_ternary_operation): Use the above to simplify
2179         conditional CLZ/CTZ expressions.
2181 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2183         PR middle-end/37780
2184         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
2185         define_insn_and_split.
2187 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2189         PR middle-end/37780
2190         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
2192 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2194         PR c/24414
2195         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
2196         Implicitly clobber memory for basic asm with non-empty assembler
2197         string.  Use targetm.md_asm_adjust also here.
2198         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
2199         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
2200         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
2201         non-empty assembler string.
2202         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
2203         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
2204         (decode_asm_operands): Handle basic asm in PARALLEL block.
2205         (extract_insn): Handle basic asm in PARALLEL block.
2206         * doc/extend.texi: Mention new behavior of basic asm.
2207         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
2208         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
2209         branch_needs_nop_p): Use asm_noperands.
2211 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
2213         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
2214         Include the M7 SPARC DFA scheduler.
2215         New attribute v3pipe.
2216         Annotate insns with v3pipe where appropriate.
2217         Define cpu_feature vis4.
2218         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
2219         Add (V8QI "8") to vbits.
2220         Add insns {add,sub}v8qi3
2221         Add insns ss{add,sub}v8qi3
2222         Add insns us{add,sub}{v8qi,v4hi}3
2223         Add insns {min,max}{v8qi,v4hi,v2si}3
2224         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
2225         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
2226         * config/sparc/niagara4.md: Add a comment explaining the
2227         discrepancy between the documented latenty numbers and the
2228         implemented ones.
2229         * config/sparc/niagara7.md: New file.
2230         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
2231         supports SPARC5 and VIS 4.0 instructions.
2232         * configure: Regenerate.
2233         * config.in: Likewise.
2234         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
2235         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
2236         TARGET_CPU_niagara7.
2237         (ASM_CPU64_DEFAULT_SPEC): Likewise.
2238         (CPP_CPU_SPEC): Handle niagara7.
2239         (ASM_CPU_SPEC): Likewise.
2240         * config/sparc/sparc-opts.h (processor_type): Add
2241         PROCESSOR_NIAGARA7.
2242         (mvis4): New option.
2243         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
2244         (AS_NIAGARA7_FLAG): Define.
2245         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
2246         (CPP_CPU64_DEFAULT_SPEC): Likewise.
2247         (CPP_CPU_SPEC): Handle niagara7.
2248         (ASM_CPU_SPEC): Likewise.
2249         * config/sparc/sparc.c (niagara7_costs): Define.
2250         (sparc_option_override): Handle niagara7 and adjust cache-related
2251         parameters with better values for niagara cpus.  Also support VIS4.
2252         (sparc32_initialize_trampoline): Likewise.
2253         (sparc_use_sched_lookahead): Likewise.
2254         (sparc_issue_rate): Likewise.
2255         (sparc_register_move_cost): Likewise.
2256         (dump_target_flag_bits): Support VIS4.
2257         (sparc_vis_init_builtins): Likewise.
2258         (sparc_builtins): Likewise.
2259         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
2260         VIS4 4.0.
2261         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
2262         UltraSparc M7.
2263         * config/sparc/sparc.opt (sparc_processor_type): New value
2264         niagara7.
2265         * config/sparc/visintrin.h (__attribute__): Prototypes for the
2266         VIS4 builtins.
2267         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
2268         -mvis4.
2269         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
2270         VIS4 builtins.
2272 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
2274         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
2276 2016-06-06  Richard Biener  <rguenther@suse.de>
2278         PR tree-optimization/71398
2279         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
2280         remove edges.
2282 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
2284         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
2285         ft32_expand_prolog, ft32_expand_epilogue):
2286         Handle pretend_args.
2287         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
2288         * config/ft32/ft32.md: Add pretend_returner.
2290 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
2292         PR target/71389
2293         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
2294         Copy op1 RTX to avoid invalid sharing.
2295         (ix86_expand_vector_move_misalign): Ditto.
2297 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
2299         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
2300         ATTRIBUTE_UNUSED.
2302 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
2304         * predict.c (predicted_by_loop_heuristics_p): New function.
2305         (predict_iv_comparison): Use it.
2306         (predict_loops): Walk from innermost loops; do not predict edges
2307         leaving multiple loops multiple times; implement
2308         PRED_LOOP_ITERATIONS_MAX heuristics.
2309         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
2311 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
2313         * cfg.c (check_bb_profile): Do not report mismatched profiles when
2314         only edges out of BB are EH edges.
2316 2016-06-04  Martin Sebor  <msebor@redhat.com>
2317             Marcin Baczyński  <marbacz@gmail.com>
2319         PR c/48116
2320         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
2321         a void expression in a void function.
2323 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
2325         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
2326         aux; dump reasons of decisions.
2327         (should_duplicate_loop_header_p): Likewise.
2328         (do_while_loop_p): Likewise.
2329         (ch_base::copy_headers): Dump asi num insns duplicated.
2331 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
2333         PR tree-optimization/71405
2334         * tree-ssa.c (execute_update_addresses_taken): For clobber with
2335         incompatible type, build a new clobber with the right type instead
2336         of building a VIEW_CONVERT_EXPR around it.
2338 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
2340         PR tree-optimization/52171
2341         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
2342         by_pieces_ninsns instead of move_by_pieces_ninsns.
2344 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
2346         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
2347         for reg+reg addressing mode.
2349 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2351         * rs6000-c.c (c/c-tree.h): Add #include.
2352         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
2353         in C++ when found in the base position of vec_ld or vec_st.
2355 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
2357         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
2358         use of profile unless profile status is PROFILE_READ.
2359         * profile.c (compute_branch_probabilities): Set profile status
2360         only after reporting predictor hitrates.
2362 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
2364         PR target/71276
2365         PR target/71277
2366         * common.opt (ffp-int-builtin-inexact): New option.
2367         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
2368         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
2369         (ceil@var{m}2): Document dependence on this option.
2370         * ipa-inline-transform.c (inline_call): Handle
2371         flag_fp_int_builtin_inexact.
2372         * ipa-inline.c (can_inline_edge_p): Likewise.
2373         * config/i386/i386.md (rintxf2): Do not test
2374         flag_unsafe_math_optimizations.
2375         (rint<mode>2_frndint): New define_insn.
2376         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
2377         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
2378         for 387 instead of extending and truncating.
2379         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
2380         !flag_trapping_math instead of flag_unsafe_math_optimizations.
2381         Change to frndint<mode>2_<rounding>.
2382         (frndintxf2_<rounding>_i387): Likewise.  Change to
2383         frndint<mode>2_<rounding>_i387.
2384         (<rounding_insn>xf2): Likewise.
2385         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
2386         !flag_trapping_math instead of flag_unsafe_math_optimizations for
2387         x87.  Test TARGET_ROUND || !flag_trapping_math ||
2388         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
2389         SSE.  Use ROUND_NO_EXC in constant operand of
2390         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
2391         for 387 instead of extending and truncating.
2393 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
2394             Julia Koval  <julia.koval@intel.com>
2396         PR target/66960
2397         PR target/67630
2398         PR target/67634
2399         PR target/67841
2400         PR target/68037
2401         PR target/68618
2402         PR target/68661
2403         PR target/69575
2404         PR target/69596
2405         PR target/69734
2406         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
2407         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
2408         all registers, except for function return registers if there are
2409         no caller-saved registers.
2410         (ix86_set_func_type): New function.
2411         (ix86_set_current_function): Call ix86_set_func_type to set
2412         no_caller_saved_registers and func_type.  Call reinit_regs if
2413         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
2414         nor x87 instructions in interrupt handler nor function with
2415         no_caller_saved_registers attribute.
2416         (ix86_function_ok_for_sibcall): Return false if there are no
2417         caller-saved registers.
2418         (type_natural_mode): Don't warn ABI change for MMX in interrupt
2419         handler.
2420         (ix86_function_arg_advance): Skip for callee in interrupt handler.
2421         (ix86_function_arg): Return special arguments in interrupt handler.
2422         (ix86_promote_function_mode): Promote pointer to word_mode only
2423         for normal functions.
2424         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
2425         interrupt handler.
2426         (ix86_epilogue_uses): New function.
2427         (ix86_hard_regno_scratch_ok): Likewise.
2428         (ix86_save_reg): Preserve all registers in interrupt handler
2429         after reload.  Preserve all registers, except for function return
2430         registers, if there are no caller-saved registers after reload.
2431         (find_drap_reg): Always use callee-saved register if there are
2432         no caller-saved registers.
2433         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
2434         for interrupt handler.
2435         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
2436         Emit cld instruction if stringops are used in interrupt handler
2437         or interrupt handler isn't a leaf function.
2438         (ix86_expand_epilogue): Generate interrupt return for interrupt
2439         handler and pop the 'ERROR_CODE' off the stack before interrupt
2440         return in exception handler.
2441         (ix86_expand_call): Disallow calling interrupt handler directly.
2442         If there are no caller-saved registers, mark all registers that
2443         are clobbered by the call which returns as clobbered.
2444         (ix86_handle_no_caller_saved_registers_attribute): New function.
2445         (ix86_handle_interrupt_attribute): Likewise.
2446         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
2447         attributes.
2448         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
2449         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
2450         accumulation in interrupt function if stack may be realigned to
2451         avoid DRAP.
2452         (EPILOGUE_USES): New.
2453         (function_type): New enum.
2454         (machine_function): Add func_type and no_caller_saved_registers.
2455         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
2456         (interrupt_return): New pattern.
2457         * doc/extend.texi: Document x86 interrupt and
2458         no_caller_saved_registers attributes.
2460 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
2462         PR tree-optimization/52171
2463         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
2464         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
2465         Look for constant strings.  Move some code to emit_block_cmp_hints
2466         and use it.
2467         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
2468         * defaults.h (COMPARE_MAX_PIECES): New macro.
2469         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
2470         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
2471         (clear_by_pieces_1): Don't declare.  Move definition before use.
2472         (can_do_by_pieces): New static function.
2473         (can_move_by_pieces): Use it.  Return bool.
2474         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
2475         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
2476         (class pieces_addr); New.
2477         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
2478         pieces_addr::adjust, pieces_addr::increment_address,
2479         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
2480         functions for it.
2481         (class op_by_pieces_d): New.
2482         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
2483         functions for it.
2484         (class move_by_pieces_d, class compare_by_pieces_d,
2485         class store_by_pieces_d): New subclasses of op_by_pieces_d.
2486         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
2487         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
2488         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
2489         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
2490         compare_by_pieces_d::finish_mode): New member functions.
2491         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
2492         functions.
2493         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
2494         (emit_block_cmp_hints): New function.
2495         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
2496         use the newly defined classes.
2497         * expr.h (by_pieces_constfn): New typedef.
2498         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
2499         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
2500         (move_by_pieces_ninsns): Don't declare.
2501         (can_move_by_pieces): Change return value to bool.
2502         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
2503         (compare_by_pieces_branch_ratio): New hook.
2504         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
2505         (by_pieces_ninsns): Declare.
2506         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
2507         COMPARE_BY_PIECES.
2508         (default_compare_by_pieces_branch_ratio): New function.
2509         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
2510         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
2511         * doc/tm.texi: Regenerate.
2512         * tree-ssa-strlen.c: Include "builtins.h".
2513         (handle_builtin_memcmp): New static function.
2514         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
2515         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
2517 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
2519         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
2520         relevant stmts which are simple and invariant.
2521         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
2522         instead of simple and invariant
2524 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
2526         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
2527         (vectorizable_reduction): Check for new relevant state.
2528         (vectorizable_live_operation): vectorize live stmts using
2529         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
2530         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
2531         (vect_stmt_relevant_p): Check for stmts which are only used live.
2532         (process_use): Use of a stmt does not inherit it's live value.
2533         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
2534         (vect_analyze_stmt): Check for new relevant state.
2535         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
2536         outside the loop, but not inside it.
2538 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
2540         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
2541         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
2542         (vect_get_vec_def_for_operand): Split out code.
2544 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
2546         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
2548 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
2550         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
2552 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2554         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
2556 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
2558         PR middle-end/71387
2559         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
2560         to noreturn e->callee->decl that has void return type and void
2561         arguments, adjust gimple_call_fntype and remove lhs even if it had
2562         previously addressable type.
2564 2016-06-02  Jeff Law  <law@redhat.com>
2566         PR tree-optimization/71328
2567         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
2568         error when checking for a jump back onto the copied path.
2570 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
2572         * config/microblaze/microblaze.c (get_branch_target): Add return
2573         NULL_RTX for the non-CALL_P case.
2574         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
2575         (insert_wic): Remove unused local "j".
2577 2016-06-02  Martin Liska  <mliska@suse.cz>
2579         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
2581 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2582             Julia Koval  <julia.koval@intel.com>
2584         * function.c (assign_parm_setup_stack): Force source into a
2585         register if needed.
2586         * target.def (function_incoming_arg): Update documentation to
2587         allow arbitrary address computation based on hard register.
2588         * doc/tm.texi: Regenerated.
2590 2016-06-02  Martin Liska  <mliska@suse.cz>
2592         * predict.c (combine_predictions_for_bb): Fix first match in
2593         cases where a first predictor contains more than one occurence
2594         in list of predictors.  Take the best value in such case.
2596 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2598         PR rtl-optimization/71295
2599         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
2600         offset would go over the size of the inner mode reject it.
2602 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
2604         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
2605         x=x,x and v=v,m instead of x=x,m.
2607         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
2608         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
2609         alternative to v=rm,C.
2611         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
2612         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
2613         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
2614         instead of vex for the last two above mentioned alternatives.
2616 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2618         PR target/70830
2619         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
2621 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
2623         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
2625 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
2627         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
2628         from int to unsigned.
2630 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
2632         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
2633         alternatives, eliminating preferred register class.  Add support
2634         for the MTVSRDD instruction in ISA 3.0.
2635         (vsx_splat_v4si_internal): Use splat_input_operand instead of
2636         reg_or_indexed_operand.
2637         (vsx_splat_v4sf_internal): Likewise.
2639 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
2641         PR target/71186
2642         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
2643         for loading up all 0's or all 1's.
2645 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2647         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
2649 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
2651         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
2652         extension.
2653         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
2654         * gcc.c (set_source_date_epoch_envvar): New function, sets
2655         the SOURCE_DATE_EPOCH environment variable to the current time.
2657 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
2659         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
2660         the factor for live Phi nodes.
2662 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
2664         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
2665         * tree-parloops.c (parallelize_loops): likewise.
2666         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
2667         tree_unswitch_outer_loop): likewise.
2669 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
2671         PR middle-end/71371
2672         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
2673         around creation of the temporary.
2675 2016-06-01  Richard Biener  <rguenther@suse.de>
2677         PR tree-optimization/71366
2678         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
2679         (unloop_loops): Move removing edges here ...
2680         (try_unroll_loop_completely): ... from here.
2681         (try_peel_loop): ... and here.
2682         (tree_unroll_loops_completely_1): Track parent loops via
2683         bitmap of header BBs.
2684         (tree_unroll_loops_completely): Adjust for that.
2686 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2688         * config/rs6000/altivec.h (vec_slv): New macro.
2689         (vec_srv): New macro.
2690         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
2691         (UNSPEC_VSRV): New value.
2692         (vslv): New insn.
2693         (vsrv): New insn.
2694         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
2695         (vsrv): New builtin definition.
2696         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
2697         define argument types for new builtin.
2698         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
2699         new builtin.
2700         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
2701         functions.
2703 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
2704             Jocelyn Mayer  <l_indien@magic.fr>
2706         PR target/67310
2707         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
2708         detect processor family for signature_CENTAUR_ebx.
2709         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
2710         signature_CENTAUR_ebx.
2711         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
2712         <default>: Pass x86-64 for has_longmode.
2714 2016-06-01  Nathan Sidwell  <nathan@acm.org>
2716         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
2717         undefined weak.
2719 2016-06-01  Richard Biener  <rguenther@suse.de>
2721         PR tree-optimization/71261
2722         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
2723         of stmts successfully put in the bool pattern.  Remove
2724         single-use restriction.
2725         (adjust_bool_pattern_cast): Add cast at the use site via the
2726         pattern def sequence.
2727         (adjust_bool_pattern): Remove recursion, maintain a hash-map
2728         of patterned defs.  Use the pattern def seqence instead of
2729         multiple independent patterns.
2730         (sort_after_uid): New qsort compare function.
2731         (adjust_bool_stmts): New function to process stmts in the bool
2732         pattern in IL order.
2733         (vect_recog_bool_pattern): Adjust.
2734         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
2735         (ifcvt_walk_pattern_tree): Likewise.
2736         (stmt_is_root_of_bool_pattern): Likewise.
2737         (ifcvt_repair_bool_pattern): Likewise.
2738         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
2740 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
2742         * loop-unroll.c (decide_unroll_constant_iterations,
2743         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
2744         likely upper bounds.
2745         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
2747 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
2749         * tree-core.h (enum omp_clause_code): Remove
2750         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
2752 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2754         * config/arm/sync.md (arm_store_exclusive<mode>):
2755         Use 'H' output modifier on operands[2] rather than creating a new
2756         entry in out-of-bounds memory of the operands array.
2757         (arm_store_release_exclusivedi): Likewise.
2759 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2761         * config/arm/arm.c (arm_fusion_enabled_p): New function.
2762         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
2763         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
2764         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
2766 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
2768         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
2769         into account live statements for mask producers.
2771 2016-06-01  Richard Biener  <rguenther@suse.de>
2773         PR tree-optimization/71311
2774         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
2775         restrict to non-INTEGER_CST @0.
2777 2016-06-01  Richard Biener  <rguenther@suse.de>
2779         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
2780         (relational patterns): Use :c to avoid pattern duplications.
2782 2016-06-01  Richard Biener  <rguenther@suse.de>
2784         * genmatch.c (comparison_code_p): New predicate.
2785         (swap_tree_comparison): New function.
2786         (commutate): Add for_vec parameter to append new for entries.
2787         Support commutating relational operators by swapping it alongside
2788         operands.
2789         (lower_commutative): Adjust.
2790         (dt_simplify::gen): Do not pass artificial operators to gen
2791         functions.
2792         (decision_tree::gen): Do not add artificial operators as parameters.
2793         (parser::parse_expr): Verify operator commutativity when :c is
2794         applied.  Allow :C to override this.
2795         * match.pd: Adjust patterns to use :C instead of :c where required.
2797 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
2799         PR tree-optimization/71077
2800         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
2801         the combining step, use boolean_false_node and boolean_true_node
2802         as the designated false/true return values.
2804 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2806         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
2807         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
2808         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
2809         PRED_LOOP_EXIT.
2811 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2813         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
2814         of flags impliying the register renaming.
2815         * toplev.c (process_options): Do not imply flag_rename_registers with
2816         loop peeling.
2818 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2820         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
2821         default implementation.
2823 2016-05-31  Nathan Sidwell  <nathan@acm.org>
2825         * dwarf2out.c (cur_line_info_table): Add GTY marker.
2827 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2829         * config/sh/constraints.md (b): Remove constraint.
2830         * config/sh/predicates.md (arith_reg_operand): Remove
2831         TARGET_REGISTER_P.
2832         * config/sh/sh-modes.def (PDI): Remove.
2833         * config/sh/sh.c (sh_target_reg_class,
2834         sh_optimize_target_register_callee_saved): Remove functions.
2835         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
2836         (sh_expand_epilogue): Update comment.
2837         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
2838         sh_secondary_reload): Remove TARGET_REGS related code.
2839         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
2840         TARGET_REGISTER_P): Remove macros.
2841         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
2842         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
2843         TR1_REG, TR2_REG): Remove constants.
2844         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
2846 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2848         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
2849         define_expand patterns.
2850         (adddi3_compact): Rename to adddi3.
2851         (subdi3_compact): Rename to subdi3.
2852         (*negdi2): Rename to negdi2.
2853         (*abs<mode>2): Rename to abs<mode>2.
2855 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2857         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
2858         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
2859         (atomic_sub_fetchsi): ... this new pattern.
2860         (mvtc): Add CC_REG clobber.
2862 2016-05-31  Marek Polacek  <polacek@redhat.com>
2864         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
2866 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2868         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
2869         aarch64_fusion_enabled_p to check for fusion capabilities.
2871 2016-05-31  Richard Biener  <rguenther@suse.de>
2873         PR tree-optimization/71352
2874         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
2875         minus one and a negate.
2877 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2879         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
2880         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
2881         Delete prototype.
2882         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
2883         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
2884         Remove use of aarch64_simd_attr_length_move, set length attribute
2885         directly.
2886         (*aarch64_be_movoi): Likewise.
2887         (*aarch64_be_movci): Likewise.
2888         (*aarch64_be_movxi): Likewise.
2890 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2892         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
2893         It no longer does that.
2894         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
2896 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
2898         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
2899         attribute __unused__.
2901 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2903         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
2904         * config/arm/arm.c (arm_arch_thumb1): Define.
2905         (arm_option_override): Initialize arm_arch_thumb1.
2906         * config/arm/arm.h (arm_arch_thumb1): Declare.
2907         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
2908         support Thumb-1 ISA.
2910 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
2912         PR target/71346
2913         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
2914         `Yv' for scalar operand.
2916 2016-05-31  Tom de Vries  <tom@codesourcery.com>
2918         PR tree-optimization/69068
2919         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
2920         phis with more than two args.
2922 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
2924         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
2925         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
2926         target.
2928 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
2930         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
2931         tune_64.
2932         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
2933         support on SPARC.
2934         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
2935         cpu_32, cpu_64, tune_32 and tune_64.
2936         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
2938 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
2940         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
2942 2016-05-30  Andi Kleen  <ak@linux.intel.com>
2944         * auto-profile.c (read_profile): Replace asserts with errors
2945         when file does not exist.
2946         * gcov-io.c (gcov_read_words): Dito.
2948 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2950         * tree-cfg.c (print_loop): Print likely upper bounds.
2952 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2954         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
2955         * opts.c (default_options): Enable peel loops at -O3.
2956         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
2957         (try_peel_loop): Do not re-peel already peeled loops;
2958         use likely upper bounds; fix profile updating.
2959         (pass_complete_unroll::execute): Initialize peeled_loops.
2961 2016-05-30  Martin Liska  <mliska@suse.cz>
2963         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
2964         computed costs by frequency of BB they belong to.
2965         (get_scaled_computation_cost_at): New function.
2967 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
2968             Marc Glisse  <marc.glisse@inria.fr>
2970         PR tree-optimization/71289
2971         * match.pd (-1 / B < A, A > -1 / B): New transformations.
2973 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2975         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
2977 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2979         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
2980         for peeled copies; avoid underflow when updating estimates; correctly
2981         scale loop profile.
2983 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2985         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
2986         r236875. Corrected oe3 to oe2 as obvious.
2988 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2990         PR middle-end/71269
2991         PR middle-end/71252
2992         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
2993         that inserted stmt will not dominate stmts that defines its operand.
2994         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
2995         (rewrite_expr_tree_parallel): Likewise.
2997 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2999         PR middle-end/71252
3000         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
3001         all fields including stmt_to_insert are swapped.
3003 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
3005         * predict.h (force_edge_cold): Declare.
3006         * predict.c (force_edge_cold): New function.
3007         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
3008         updating.
3009         (canonicalize_loop_induction_variables): Fix formating.
3011 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3013         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
3014         (visium_expand_copysign): Use gen_int_mode directly.
3015         (visium_compute_frame_size): Minor tweaks.
3017 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
3019         * tree-vect-loop.c (vect_analyze_loop_2): Use
3020         likely_max_stmt_executions_int.
3022 2016-05-30  Tom de Vries  <tom@codesourcery.com>
3024         PR tree-optimization/69067
3025         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
3027 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
3029         PR target/71245
3030         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
3031         New peepholes to remove unneeded fild/fistp pairs.
3032         (define_peephole2 atomic_loaddi_fpu): Ditto.
3034 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
3036         * predict.c (maybe_hot_frequency_p): Avoid division.
3038 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
3040         * doc/install.texi: Use https for shop.fsf.org.
3042 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
3044         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
3045         likely_max_stmt_executions_int.
3047 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
3049         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
3050         likely_max_stmt_executions_int.
3052 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
3054         * profile.c (compute_branch_probabilities): Do not report hitrates
3055         here.
3056         (branch_prob): Report hitrates here.
3057         * predict.c (gimple_predict_edge): Do not assert profile status;
3058         fix formatting issues.
3060 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
3062         * predict.c (edge_predicted_by_p): New function.
3063         (predict_paths_for_bb): Do not put multiple predictions of the same type
3064         on one edge.
3066 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
3068         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
3069         commit.
3071 2016-05-28  Alan Modra  <amodra@gmail.com>
3073         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
3075 2016-05-28  Alan Modra  <amodra@gmail.com>
3077         PR rtl-optimization/71275
3078         * ira.c (ira): Free dominance info.
3080 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
3082         * doc/sourcebuild.texi: New address for upstream Go repository.
3084 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3086         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
3087         (TARGET_ARM_V7M): Likewise.
3089 2016-05-26  Jeff Law  <law@redhat.com>
3091         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
3092         (thread_across_edge): Remove calls to find_jump_threads_backwards.
3093         * passes.def: Add jump threading passes before DOM/VRP.
3094         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
3095         argument to a basic block from an edge.  Remove tests which are
3096         handled elsewhere.
3097         (pass_data_thread_jumps, class pass_thread_jumps): New.
3098         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
3099         (make_pass_thread_jumps): Likewise.
3100         * tree-pass.h (make_pass_thread_jumps): Declare.
3102 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
3104         * config/visium/visium-protos.h (split_double_move): Rename into...
3105         (visium_split_double_move): ...this.
3106         (visium_split_double_add): Declare.
3107         * config/visium/visium.c (split_double_move): Rename into...
3108         (visium_split_double_move): ...this.
3109         (visium_split_double_add): New function.
3110         (visium_expand_copysign): Renumber operands for consistency.
3111         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
3112         (DFmode move splitter): Likewise.
3113         (*addi3_insn): Split by means of visium_split_double_add.
3114         (*adddi3_insn_flags): Delete.
3115         (*plus_plus_sltu<subst_arith>): New insn.
3116         (*subdi3_insn): Split by means of visium_split_double_add.
3117         (subdi3_insn_flags): Delete.
3118         (*minus_minus_sltu<subst_arith>): New insn.
3119         (*negdi2_insn): Split by means of visium_split_double_add.
3120         (*negdi2_insn_flags): Delete.
3122 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
3124         * configure.ac: Treat a --with-headers option without argument
3125         the same as the default (i.e. consult sys-include directory).
3126         * configure: Regenerate.
3128 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3130         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
3131         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
3132         prototype.
3133         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
3134         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
3136 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
3138         PR target/63596
3139         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
3140         tree-stdarg analysis results.
3141         (aarch64_setup_incoming_varargs): Likewise.
3143 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
3145         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
3146         va_list_gpr_counter_field and va_list_fpr_counter_field.
3148 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
3150         PR67609
3151         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
3152         * config/aarch64/aarch64.c
3153         (aarch64_cannot_change_mode_class): Remove function.
3154         * config/aarch64/aarch64-protos.h
3155         (aarch64_cannot_change_mode_class): Remove.
3157 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
3159         * cfgloop.c (record_niter_bound): Record likely upper bounds.
3160         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
3161         get_likely_max_loop_iterations_int): New.
3162         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
3163         any_likely_upper_bound.
3164         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
3165         Declare.
3166         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
3167         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
3168         upper bound.
3169         (unroll_loop_constant_iterations): Likewise.
3170         (unroll_loop_runtime_iterations): Likewise.
3171         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
3172         * lto-streamer-out.c (output_cfg): Likewise.
3173         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
3174         bounds.
3175         (canonicalize_loop_induction_variables): Dump likely upper bounds.
3176         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
3177         (likely_max_loop_iterations): New.
3178         (likely_max_loop_iterations_int): New.
3179         (likely_max_stmt_executions): New.
3180         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
3181         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
3182         likely_max_stmt_executions): Declare.
3184 2016-05-27  Marek Polacek  <polacek@redhat.com>
3186         PR middle-end/71308
3187         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
3189 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3191         * config/s390/s390.md (2x risbg splitters): Use
3192         reg_overlap_mentioned_p instead of rtx_equal_p.
3194 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3196         * combine.c (make_compound_operation): Take known zero bits into
3197         account when checking for possible zero_extend.
3199 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3201         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
3202         Use const_int_operand for operand 2 predicate.  Simplify expand code
3203         as a result.
3205 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
3207         PR middle-end/71279
3208         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
3209         into comparison.
3211 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3213         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
3214         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
3215         that returns CC_SESWPmode and CC_ZESWPmode.
3216         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
3217         and CC_SESWPmode.
3218         (aarch64_rtx_costs): Likewise.
3220 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3222         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
3223         for ISA 3.0 min/max support.
3224         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
3225         conditional move support.
3226         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
3227         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
3228         available.
3229         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
3230         conditional moves where the comparison type is different from move
3231         type.
3232         (fp_minmax): New code iterator for smin/smax.
3233         (minmax): New code attributes for min/max.
3234         (SMINMAX): Likewise.
3235         (smax<mode>3): Combine min, max insns into one insn using the
3236         fp_minmax code iterator.  Add support for ISA 3.0 min/max
3237         instructions that don't need -ffast-math.
3238         (s<minmax><mode>3): Likewise.
3239         (smax<mode>3_vsx): Likewise.
3240         (smin<mode>3): Likewise.
3241         (s<minmax><mode>3_vsx): Likewise.
3242         (smin<mode>3_vsx): Likewise.
3243         (pre-VSX min/max splitters): Likewise.
3244         (s<minmax><mode>3_fpr): Likewise.
3245         (movsfcc): Rewrite floating point conditional moves to combine
3246         SFmode/DFmode into a single insn.
3247         (mov<mode>cc): Likewise.
3248         (movdfcc): Likewise.
3249         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
3250         SFDF2 iterators to handle all combinations.
3251         (fseldfsf4): Likewise.
3252         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
3253         (fseldfdf4): Likewise.
3254         (fselsfdf4): Likewise.
3255         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
3256         comparison instructions that set a 0/-1 mask, and use it for
3257         floating point conditional move via XXSEL.
3258         (fpmask<mode>): Likewise.
3259         (xxsel<mode>): Likewise.
3260         * config/rs6000/predicates.md (min_max_operator): Delete, no
3261         longer used.
3262         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
3263         instructions that generate a 0/-1 mask for use with XXSEL.
3264         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
3265         say whether floating point min/max is available, either through
3266         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
3267         (TARGET_MINMAX_DF): Likewise.
3269 2016-05-27  Alan Modra  <amodra@gmail.com>
3271         PR rtl-optimization/71275
3272         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
3273         for update_equiv_regs and combine_and_move_insns.
3275 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
3277         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
3278         if_then_else or cond RTXes to calculate attribute value.
3279         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
3280         <attr "length_immediate>: Ditto.
3281         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
3282         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
3283         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
3284         <attr "type">: Ditto.
3285         <attr "prefix_data16">: Ditto.
3286         <attr "prefix_extra">: Ditto.
3287         <attr "length_immediate">: Ditto.
3288         <attr "prefix">: Ditto.
3289         (vec_set<mode>_0) <attr "isa">: Ditto.
3290         <attr "prefix_extra">: Ditto.
3291         <attr "length_immediate">: Ditto.
3292         <attr "prefix">: Ditto.
3293         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
3294         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
3295         (sse2_storelpd) <attr "prefix_data16">: Ditto.
3296         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
3297         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
3298         <attr "length_immediate">: Ditto.
3299         <attr "prefix">: Ditto.
3300         (sse2_movsd) <attr "length_immediate">: Ditto.
3301         <attr "prefix">: Ditto.
3302         (vec_concatv2df)  <attr "isa">: Ditto.
3303         <attr "prefix">: Ditto.
3304         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
3305         (*vec_extractv2di_1) <attr "isa">: Ditto.
3306         <attr "type">: Ditto.
3307         <attr "length_immediate">: Ditto.
3308         <attr "prefix_rex">: Ditto.
3309         <attr "prefix_extra">: Ditto.
3310         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
3311         <attr "prefix_extra">: Ditto.
3312         <attr "length_immediate">: Ditto.
3313         (vec_concatv2di) <attr "isa">: Ditto.
3314         <attr "prefix_extra">: Ditto.
3315         <attr "length_immediate">: Ditto.
3316         <attr "prefix">: Ditto.
3318 2016-05-26  Martin Liska  <mliska@suse.cz>
3320         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
3321         function.
3322         (operator+): Likewise.
3323         (operator-): Likewise.
3324         (comp_cost::operator+=): Likewise.
3325         (comp_cost::operator-=): Likewise.
3326         (comp_cost::operator/=): Likewise.
3327         (comp_cost::operator*=): Likewise.
3328         (operator<): Likewise.
3329         (operator==): Likewise.
3330         (operator<=): Likewise.
3331         (new_cost): Remove.
3332         (infinite_cost_p): Likewise.
3333         (add_costs): Likewise.
3334         (sub_costs): Likewise.
3335         (compare_costs): Likewise.
3336         (set_group_iv_cost): Use the newly introduced functions.
3337         (get_address_cost): Likewise.
3338         (get_shiftadd_cost): Likewise.
3339         (force_expr_to_var_cost): Likewise.
3340         (split_address_cost): Likewise.
3341         (ptr_difference_cost): Likewise.
3342         (difference_cost): Likewise.
3343         (get_computation_cost_at): Likewise.
3344         (determine_group_iv_cost_generic): Likewise.
3345         (determine_group_iv_cost_address): Likewise.
3346         (determine_group_iv_cost_cond): Likewise.
3347         (autoinc_possible_for_pair): Likewise.
3348         (determine_group_iv_costs): Likewise.
3349         (cheaper_cost_pair): Likewise.
3350         (iv_ca_recount_cost): Likewise.
3351         (iv_ca_set_no_cp): Likewise.
3352         (iv_ca_set_cp): Likewise.
3353         (iv_ca_cost): Likewise.
3354         (iv_ca_new): Likewise.
3355         (iv_ca_dump): Likewise.
3356         (iv_ca_narrow): Likewise.
3357         (iv_ca_prune): Likewise.
3358         (iv_ca_replace): Likewise.
3359         (try_add_cand_for): Likewise.
3360         (try_improve_iv_set): Likewise.
3361         (find_optimal_iv_set): Likewise.
3363 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
3365         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
3366         that internal functions will clobber all caller-saved registers.
3368 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
3370         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
3371         Return a better case_values_threshold when optimizing.
3373 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
3375         * config/aarch64/aarch64-simd.md (aarch64_combinez):
3376         Add ? to integer variant.
3377         (aarch64_combinez_be): Likewise.
3379 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
3381         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
3382         instead of x constraint.
3383         (vcvtps2ph256<mask_name>): Likewise.
3385         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
3386         alternative.  Formatting fix.
3388         * config/i386/sse.md
3389         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
3390         to ...
3391         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
3392         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
3393         maybe_evex prefix instead of vex.
3394         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
3395         EXT_REX_SSE_REG_P (op0) case in the splitter.
3397 2016-05-25  Jeff Law  <law@redhat.com>
3399         PR tree-optimization/71272
3400         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
3401         Update comments.  Add test for empty path.
3403 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
3405         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
3406         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
3407         special case builtin.
3408         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
3409         code for ALTIVEC_BUILTIN_VEC_CMPNE.
3410         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
3411         for __builtin_vec_cmpne.
3413 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3415         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
3416         redundant test and bail out if the type of the new operand is not
3417         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
3419 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
3421         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
3422         (x_ix86_target_flags_explicit): Remove.
3423         * config/i386/i386.c (ix86_function_specific_save): Do not copy
3424         x_ix86_target_flags_explicit.
3425         (ix86_function_specific_restore): Ditto.
3427 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
3428             H.J. Lu  <hongjiu.lu@intel.com>
3430         PR target/70738
3431         * common/config/i386/i386-common.c
3432         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
3433         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
3434         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
3435         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
3436         (-mgeneral-regs-only): Add new option.
3437         * config/i386/i386.c (ix86_option_override_internal): Don't enable
3438         x87 instructions if only general registers are allowed.
3439         (ix86_target_string): Add ix86_flags argument. Handle additional
3440         flags options through ix86_flags argument.  Update all callers.
3441         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
3443 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3445         PR rtl-optimization/66940
3446         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
3447         decrementing desired_val will not overflow before performing these
3448         operations.
3450 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
3452         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
3453         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
3454         * config/i386/i386.c (enum ix86_builtins): Add
3455         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
3456         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
3457         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
3458         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
3459         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
3460         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
3461         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
3462         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
3463         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
3464         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
3465         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
3466         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
3467         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
3468         __builtin_ia32_cvtps2dq512_mask.
3469         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
3470         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
3471         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
3472         * config/i386/sse.md
3473         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
3474         Rename to ...
3475         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
3476         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
3477         to ...
3478         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
3479         (avx512f_vec_pack_sfix_v8df): New define_expand.
3480         (avx512f_roundpd512): Rename to ...
3481         (avx512f_round<castmode>512): ... this.  Change iterator.
3482         (avx512f_roundps512_sfix): New define_expand.
3483         (round<mode>2_sfix): Change iterator.
3485 2016-05-25  Nick Clifton  <nickc@redhat.com>
3487         * config/msp430/msp430.c (msp430_attr): Produce an error if a
3488         static interrupt handler is detected.
3489         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
3490         default linker script.
3491         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
3492         the low part of a symbolic pointer.
3494 2016-05-25  Richard Biener  <rguenther@suse.de>
3496         PR tree-optimization/71261
3497         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
3498         interesting stmt instead of immediate uses when looking
3499         for the use operand to replace.
3501 2016-05-25  Martin Liska  <mliska@suse.cz>
3503         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
3505 2016-05-25  Richard Biener  <rguenther@suse.de>
3507         PR tree-optimization/71264
3508         * tree-vect-stmts.c (vect_init_vector): Properly deal with
3509         vector type val.
3511 2016-05-25  Martin Liska  <mliska@suse.cz>
3513         PR tree-optimization/71239
3514         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
3515         if DECL_SIZE is NULL.
3517 2016-05-25  Richard Biener  <rguenther@suse.de>
3519         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
3520         * tree-if-conv.c (pass_data_if_conversion): Use it.
3522 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3524         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
3525         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
3526         * varpool.c (varpool_node::get_availability): Likewise.
3528 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3530         * config/rs6000/altivec.md (VNEG iterator): New iterator for
3531         VNEGW/VNEGD instructions.
3532         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
3533         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
3534         support for ISA 3.0 VNEGW/VNEGD instructions.
3536 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
3538         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
3539         pointers inside OACC_DATA regions.
3540         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
3541         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
3542         (gimplify_adjust_omp_clauses): Fix typo in comment.
3544 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3546         * config/rs6000/altivec.md (VParity): New mode iterator for vector
3547         parity built-in functions.
3548         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
3549         zeros.
3550         (p9v_parity<mode>2): Likewise.
3551         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
3552         parity.
3553         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
3554         (parity<mode>2): ISA 3.0 expander for vector parity.
3555         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
3556         power9 built-ins.
3557         (BU_P9_64BIT_MISC_0): Likewise.
3558         (BU_P9_MISC_0): Likewise.
3559         (BU_P9V_AV_1): Likewise.
3560         (BU_P9V_AV_2): Likewise.
3561         (BU_P9V_AV_3): Likewise.
3562         (BU_P9V_AV_P): Likewise.
3563         (BU_P9V_VSX_1): Likewise.
3564         (BU_P9V_OVERLOAD_1): Likewise.
3565         (BU_P9V_OVERLOAD_2): Likewise.
3566         (BU_P9V_OVERLOAD_3): Likewise.
3567         (VCTZB): Add vector count trailing zeros support.
3568         (VCTZH): Likewise.
3569         (VCTZW): Likewise.
3570         (VCTZD): Likewise.
3571         (VPRTYBD): Add vector parity support.
3572         (VPRTYBQ): Likewise.
3573         (VPRTYBW): Likewise.
3574         (VCTZ): Add overloaded vector count trailing zeros support.
3575         (VPRTYB): Add overloaded vector parity support.
3576         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3577         overloaded vector count trailing zeros and parity instructions.
3578         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
3579         vector parity support.
3580         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
3581         trailing zeros support.
3582         (vec_cntlz): Likewise.
3583         (vec_vctzb): Likewise.
3584         (vec_vctzd): Likewise.
3585         (vec_vctzh): Likewise.
3586         (vec_vctzw): Likewise.
3587         (vec_vprtyb): Add ISA 3.0 vector parity support.
3588         (vec_vprtybd): Likewise.
3589         (vec_vprtybw): Likewise.
3590         (vec_vprtybq): Likewise.
3591         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3592         the ISA 3.0 vector count trailing zeros and vector parity built-in
3593         functions.
3595 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3597         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
3598         when there is stmt_to_insert.
3600 2016-05-24  Martin Sebor  <msebor@redhat.com>
3602         PR c++/71147
3603         * tree.h (complete_or_array_type_p): New inline function.
3605 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
3607         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
3608         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
3609         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
3611         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
3612         Limit 1st alternative to noavx isa, split 2nd alternative into one
3613         noavx and one avx alternative, use *x and Bm in the former and
3614         x and m in the latter.
3616         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
3617         of sse4 for the first alternative, drop %v from the template
3618         and d operand modifier.  Split second alternative into one sse4_noavx
3619         and one avx alternative, use *x instead of *v in the former and v
3620         instead of *v in the latter.
3621         (*sse4_1_extractps): Use noavx isa instead of * for the first
3622         alternative, drop %v from the template.  Split second alternative into
3623         one noavx and one avx alternative, use *x instead of *v in the
3624         former and v instead of *v in the latter.
3625         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
3626         with noavx and the last one with avx.
3627         (sse4_1_phminposuw): Guard first alternative with noavx isa,
3628         split the second one into one noavx and one avx alternative,
3629         use *x and Bm in the former and x and m in the latter one.
3630         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
3631         alternatives.
3633         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
3634         first two alternatives to noavx, use *x instead of *v in the second
3635         one, add avx alternative without *.
3636         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
3637         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
3638         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
3640 2016-05-24  Jeff Law  <law@redhat.com>
3642         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
3643         New function, extracted from...
3644         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
3645         Allow simple copies and constant initializations in the SSA chain.
3647 2016-05-24  Marek Polacek  <polacek@redhat.com>
3649         PR c/71249
3650         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
3651         scope.
3653 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
3655         PR c++/71257
3656         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3657         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3658         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
3659         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
3660         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
3662 2016-05-24  Richard Biener  <rguenther@suse.de>
3664         PR tree-optimization/71240
3665         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
3666         has integral type.
3668 2016-05-24  Richard Biener  <rguenther@suse.de>
3670         PR tree-optimization/71230
3671         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
3673 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
3675         * tree-vectorizer.h (vectorizable_comparison): Delete.
3676         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
3677         PURE_SLP_STMT check.
3678         * tree-vect-stmts.c (vectorizable_call): Likewise.
3679         (vectorizable_simd_clone_call): Likewise.
3680         (vectorizable_conversion): Likewise.
3681         (vectorizable_assignment): Likewise.
3682         (vectorizable_shift): Likewise.
3683         (vectorizable_operation): Likewise.
3684         (vectorizable_load): Likewise.
3685         (vectorizable_condition): Likewise.
3686         (vectorizable_store): Likewise.  Assert that we don't have
3687         hybrid SLP.
3688         (vectorizable_comparison): Make static.  Remove redundant
3689         PURE_SLP_STMT check.
3690         (vect_transform_stmt): Assert that we always have an slp_node
3691         if PURE_SLP_STMT.
3693 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3695         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
3696         operands[2] against 1 with comparison against CONST1_RTX.
3697         (<shift>di3_neon): Likewise.
3698         * config/arm/predicates.md (const0_operand): Replace with comparison
3699         against CONST0_RTX.
3701 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3703         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
3704         operands[2] against 1 with comparison against CONST1_RTX.
3705         (ashrdi3): Likewise.
3706         (lshrdi3): Likewise.
3707         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
3708         UINTVAL.
3709         (ashrsi3): Likewise.
3710         (lshrsi3): Likewise.
3711         (rotrsi3): Likewise.
3712         (define_split above *compareqi_eq0): Likewise.
3713         (define_split above "prologue"): Likewise.
3714         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
3715         * config/arm/predicates.md (shift_operator): Likewise.
3716         (shift_nomul_operator): Likewise.
3717         (sat_shift_operator): Likewise.
3718         (thumb1_cmp_operand): Likewise.
3719         (const_neon_scalar_shift_amount_operand): Replace manual range
3720         check with IN_RANGE.
3721         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
3722         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
3724 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3726         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
3727         with HOST_WIDE_INT_1.
3728         (insv): Likewise.
3729         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
3730         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
3731         (arm_canonicalize_comparison): Likewise.
3732         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
3733         HOST_WIDE_INT_1.
3734         (thumb1_size_rtx_costs): Likewise.
3735         (vfp_const_double_index): Replace cast of 1 to unsigned
3736         HOST_WIDE_INT with HOST_WIDE_INT_1U.
3737         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
3738         HOST_WIDE_INT_1.
3739         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
3740         HOST_WIDE_INT with HOST_WIDE_INT_1U.
3741         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
3742         HOST_WIDE_INT with HOST_WIDE_INT_1.
3744 2016-05-24  Marek Polacek  <polacek@redhat.com>
3746         * tree-cfg.h (should_remove_lhs_p): New predicate.
3747         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
3748         * gimplify.c (gimplify_modify_expr): Likewise.
3749         * tree-cfg.c (verify_gimple_call): Likewise.
3750         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
3751         * gimple-fold.c: Include "tree-cfg.h".
3752         (gimple_fold_call): Use should_remove_lhs_p.
3754 2016-05-24  Richard Biener  <rguenther@suse.de>
3756         PR tree-optimization/71253
3757         * cfganal.h (control_dependences): Make robust against edge
3758         and BB removal.
3759         (control_dependences::control_dependences): Remove edge_list argument.
3760         (control_dependences::get_edge): Remove.
3761         (control_dependences::get_edge_src): Add.
3762         (control_dependences::get_edge_dest): Likewise.
3763         (control_dependences::m_el): Make a vector of edge src/dest index.
3764         * cfganal.c (control_dependences::find_control_dependence): Adjust.
3765         (control_dependences::control_dependences): Likewise.
3766         (control_dependences::~control_dependence): Likewise.
3767         (control_dependences::get_edge): Remove.
3768         (control_dependences::get_edge_src): Add.
3769         (control_dependences::get_edge_dest): Likewise.
3770         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
3771         get_edge_src.
3772         (perform_tree_ssa_dce): Adjust.
3773         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
3774         get_edge_src.
3775         (pass_loop_distribution::execute): Adjust.  Do loop destroying
3776         conditional on changed.
3778 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3780         PR target/69857
3781         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
3782         return.  Reindent transformation comment and mention the ARM state
3783         behavior.
3785 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3787         PR middle-end/71252
3788         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
3789         after build_and_add_sum creates new use stmt.
3791 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
3793         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
3794         load_lanes/grouped_load classification comes first.  Don't check
3795         whether the vectorization factor is a multiple of the group size
3796         for load_lanes.
3798 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
3800         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
3801         GROUP_GAP for single-element interleaving.
3802         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
3803         variable.
3805 2016-05-24  Richard Biener  <rguenther@suse.de>
3807         PR middle-end/70434
3808         PR c/69504
3809         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
3810         bases which are accessed with non-invariant indices.
3811         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
3812         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
3814 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3816         PR middle-end/71170
3817         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
3818         (add_to_ops_vec): Add stmt_to_insert.
3819         (add_repeat_to_ops_vec): Init stmt_to_insert.
3820         (insert_stmt_before_use): New.
3821         (transform_add_to_multiply): Remove mult_stmt insertion and add it
3822         to ops vector.
3823         (get_ops): Init stmt_to_insert.
3824         (maybe_optimize_range_tests): Likewise.
3825         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
3826         (rewrite_expr_tree_parallel): Likewise.
3827         (reassociate_bb): Likewise.
3829 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3831         PR target/71201
3832         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
3833         ISA 3.0 xxperm fusion alternative.
3834         (altivec_vperm_v8hiv16qi): Likewise.
3835         (altivec_vperm_<mode>_uns_internal): Likewise.
3836         (vperm_v8hiv4si): Likewise.
3837         (vperm_v16qiv8hi): Likewise.
3839 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3840             Kelvin Nilsen  <kelvin@gcc.gnu.org>
3842         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
3843         vpermr/xxpermr on ISA 3.0.
3844         (altivec_expand_vec_perm_le): Likewise.
3845         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
3846         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
3847         ISA 3.0.
3849 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
3851         * config/i386/i386.h (IS_STACK_MODE): Enable for
3852         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
3853         SSE_FLOAT_MODE_P macros.
3854         * config/i386/i386.c (ix86_preferred_reload_class): Use
3855         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
3856         Cleanup regclass processing for CONST_DOUBLE_P.
3857         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
3858         (ix86_rtx_costs): Remove redundant TARGET_80387 check
3859         with IS_STACK_MODE macro.
3860         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
3861         with TARGET_SSE2.
3862         (*movdf_internal): Use IS_STACK_MODE macro.
3863         (*movsf_internal): Ditto.
3865 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
3867         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
3868         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
3870 2016-05-23  Jeff Law  <law@redhat.com>
3872         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
3873         extracted from ...
3874         (fsm_find_control_statement_thread_paths): Call it.
3876 2016-05-23  Martin Jambor  <mjambor@suse.cz>
3878         PR ipa/71234
3879         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
3880         from_global_constant if t is not NULL.
3882 2016-05-23  Marek Polacek  <polacek@redhat.com>
3884         PR c/49859
3885         * common.opt (Wswitch-unreachable): New option.
3886         * doc/invoke.texi: Document -Wswitch-unreachable.
3887         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
3888         warning.
3890 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
3892         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
3893         TMR_INDEX is non-NULL.
3895 2016-05-23  Richard Biener  <rguenther@suse.de>
3897         PR tree-optimization/71230
3898         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
3899         (try_special_add_to_ops): ... here.  Always test for single-use.
3901 2016-05-23  Martin Jambor  <mjambor@suse.cz>
3903         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
3904         default block if a PHI node in the original one would be resized.
3906 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3908         PR tree-optimization/58135
3909         * tree-vect-slp.c: When group size is not multiple
3910         of vector size, allow splitting of store group at
3911         vector boundary.
3913 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
3915         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
3917 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
3919         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3920         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
3921         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
3922         of 64x2.
3924         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
3925         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
3926         v constraint instead of x and vinserti32x4 insn.
3928         * config/i386/sse.md (i128vldq): New mode iterator.
3929         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
3930         avx512dq and avx512vl alternatives.
3932         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
3933         constraint, use maybe_evex prefix instead of vex.
3934         (vec_dupv4sf): Use v constraint instead of x for output
3935         operand except for noavx alternative, use Yv constraint
3936         instead of x for input.  Use maybe_evex prefix instead of vex.
3937         (*vec_dupv4si): Likewise.
3938         (*vec_dupv2di): Likewise.
3940 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
3942         PR middle-end/40921
3943         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
3944         (linearize_expr_tree): Call try_special_add_to_ops.
3945         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
3947 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3949         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
3950         to computed stack_usage.
3952 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3954         PR target/71103
3955         * config/avr/avr.md (define_expand "mov<mode>"): If the source
3956         operand is subreg (symbol_ref) then move the symbol ref to register.
3958 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
3960         * tree.c (array_at_struct_end_p): Look through MEM_REF.
3962 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3964         PR middle-end/71179
3965         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
3966         VECTOR type.
3968 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
3970         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
3971         ranges by calling get_single_symbol and tidy up.  Look more closely
3972         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
3974 2016-05-20  Jeff Law  <law@redhat.com>
3976         * bitmap.c (bitmap_find_bit): Remove useless test.
3978 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
3980         * function.c (thread_prologue_and_epilogue_insns): Commit the
3981         insertion of the epilogue.
3983 2016-05-20  Martin Jambor  <mjambor@suse.cz>
3985         PR tree-optimization/70884
3986         * tree-sra.c (initialize_constant_pool_replacements): Do not check
3987         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
3988         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
3989         of constant pool data as a reason for scalarization.
3991 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
3993         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
3994         for naked functions.
3995         (thumb1_expand_prologue): Likewise.
3997 2016-05-20  Nathan Sidwell  <nathan@acm.org>
3999         * config/nvptx/nptx.c (nvptx_option_override): Only set
4000         flag_toplevel_reorder, if not explicitly specified.  Set
4001         flag_no_common, unless explicitly specified.
4003 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
4005         * calls.c (can_implement_as_sibling_call_p): Mark param
4006         reg_parm_stack_space with ATTRIBUTE_UNUSED.
4008 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
4010         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
4011         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
4012         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
4013         constants.
4014         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
4015         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
4016         and CASE_CONST_ANY.
4018 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
4020         * config/nvptx/nvptx.md (sincossf3): New pattern.
4022 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
4024         * calls.c (maybe_complain_about_tail_call): New function.
4025         (initialize_argument_information): Call
4026         maybe_complain_about_tail_call when clearing *may_tailcall.
4027         (can_implement_as_sibling_call_p): Call
4028         maybe_complain_about_tail_call when returning false.
4029         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
4030         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
4031         if tail-call optimization fails.
4032         * cfgexpand.c (expand_call_stmt): Initialize
4033         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
4034         * gimple-pretty-print.c (dump_gimple_call): Dump
4035         gimple_call_must_tail_p.
4036         * gimple.c (gimple_build_call_from_tree): Call
4037         gimple_call_set_must_tail with the value of
4038         CALL_EXPR_MUST_TAIL_CALL.
4039         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
4040         (gimple_call_set_must_tail): New function.
4041         (gimple_call_must_tail_p): New function.
4042         * print-tree.c (print_node): Update printing of TREE_STATIC
4043         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
4044         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
4045         trailing comment listing applicable flags.
4046         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
4048 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
4050         * calls.c (expand_call): Move "Rest of purposes for tail call
4051         optimizations to fail" to...
4052         (can_implement_as_sibling_call_p): ...this new function, and
4053         split into multiple "if" statements.
4055 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
4057         * cfgloop.h (expected_loop_iterations_unbounded,
4058         expected_loop_iterations): Unconstify.
4059         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
4060         profile with known upper bound; return 3 when profile is absent.
4061         (expected_loop_iterations): Update.
4063 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
4065         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
4066         and get_max_loop_iterations_int.
4068 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
4070         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
4071         realistic upper bounds here.
4073 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
4075         PR c++/71210
4076         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
4077         calls if the LHS is variable length or has addressable type.
4078         If targets[0]->decl is a noreturn call with void return type and
4079         zero arguments, adjust fntype and remove lhs in that case.
4081 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
4083         PR tree-optimization/71079
4084         PR tree-optimization/71206
4085         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
4087 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4089         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
4090         (get_vec_alignment_for_array_decl): Likewise.
4091         (get_vec_alignment_for_record_decl): Likewise.
4092         (increase_alignment::execute): Move code to find alignment to
4093         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
4094         (type_align_map): New hash_map.
4096 2016-05-20  Richard Guenther  <rguenther@suse.de>
4098         PR tree-optimization/29756
4099         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
4100         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
4101         * fold-const.c (operand_equal_p): Likewise.
4102         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
4103         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
4104         * tree-inline.c (estimate_operator_cost): Likewise.
4105         * tree-pretty-print.c (dump_generic_node): Likewise.
4106         * tree-ssa-operands.c (get_expr_operands): Likewise.
4107         * cfgexpand.c (expand_debug_expr): Likewise.
4108         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
4109         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
4110         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
4111         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
4112         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
4113         (execute_update_addresses_taken): Do it.
4115 2016-05-20  Richard Biener  <rguenther@suse.de>
4117         PR tree-optimization/71185
4118         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
4119         register operations.
4121 2016-05-20  Richard Biener  <rguenther@suse.de>
4123         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
4124         gimple_seq_add_seq_without_update.
4125         (release_bb_predicate): Assert we have no operands to free.
4126         (if_convertible_loop_p_1): Calculate post dominators later.
4127         Do not free BB predicates here.
4128         (combine_blocks): Do not recompute BB predicates.
4129         (version_loop_for_if_conversion): Save BB predicates around
4130         loop versioning.
4132 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
4134         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
4135         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
4136         code.  Ignore sibcalls on EDGE_IGNORE edges.
4137         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
4138         on edges for sibcalls that run without prologue.  The rest of the
4139         function is combined from...
4140         (fix_fake_fallthrough_edge): ... this, and ...
4141         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
4142         function argument, make it a local variable.
4144 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
4146         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
4147         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
4148         for 32-bit mode and SEH for 64-bit.
4149         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
4150         TARGET_64BIT_DEFAULT.
4152 2016-05-19  Ryan Burn  <contact@rnburn.com>
4154         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
4155         * gengtype.c (open_base_files): Add cilk.h to ifiles.
4157 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
4159         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
4160         force pending loads from memory.
4162 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4164         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
4165         (UNSPEC_DARN_32): New unspec constant.
4166         (UNSPEC_DARN_RAW): New unspec constant.
4167         (darn_32): New instruction.
4168         (darn_raw): New instruction.
4169         (darn): New instruction.
4170         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
4171         support and documentation for this macro.
4172         (BU_P9_MISC_1): New macro definition.
4173         (BU_P9_64BIT_MISC_0): New macro definition.
4174         (BU_P9_MISC_0): New macro definition.
4175         (darn_32): New builtin definition.
4176         (darn_raw): New builtin definition.
4177         (darn): New builtin definition.
4178         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
4179         RS6000_BUILTIN_0 directives to surround each occurrence of
4180         #include "rs6000-builtin.def".
4181         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
4182         RS6000_BTM_64BIT flags to the returned mask, depending on
4183         configuration.
4184         (def_builtin): Correct an error in the assignments made to the
4185         debugging variable attr_string.
4186         (rs6000_expand_builtin): Add support for no-operand built-in
4187         functions.
4188         (builtin_function_type): Remove fatal_error assertion that is no
4189         longer valid.
4190         (rs6000_common_init_builtins): Add support for no-operand built-in
4191         functions.
4192         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
4193         definition.
4194         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
4195         definition.
4196         (RS6000_BTM_64BIT): New macro definition.
4197         * doc/extend.texi: Document __builtin_darn (void),
4198         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
4199         functions.
4201 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
4203         * tree-vect-loop.c (vect_analyze_loop_2): Use also
4204         max_loop_iterations_int.
4206 2016-05-19  Marek Polacek  <polacek@redhat.com>
4208         PR tree-optimization/71031
4209         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
4210         condition and adjust the code a bit.
4212 2016-05-19  Martin Liska  <mliska@suse.cz>
4214         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
4215         auto_vec instead of vec.
4217 2016-05-19  Martin Liska  <mliska@suse.cz>
4219         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
4221 2016-05-19  Martin Liska  <mliska@suse.cz>
4223         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
4225 2016-05-19  Martin Liska  <mliska@suse.cz>
4227         * ipa-pure-const.c (set_function_state): Remove an existing
4228         funct_state.
4229         (remove_node_data): Do not free it as it's released
4230         in set_function_state.
4232 2016-05-19  Martin Liska  <mliska@suse.cz>
4234         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
4235         bitmap.
4237 2016-05-19  Martin Liska  <mliska@suse.cz>
4239         * omp-simd-clone.c (simd_clone_adjust): Release vector.
4241 2016-05-19  Martin Liska  <mliska@suse.cz>
4243         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
4244         an auto_vec instead of re-creating it.
4246 2016-05-19  Martin Liska  <mliska@suse.cz>
4248         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
4249         auto_vec instead of vec.
4251 2016-05-19  Martin Liska  <mliska@suse.cz>
4253         * lto-section-in.c (lto_get_section_data): Call
4254         lto_check_version with additional argument.
4255         * lto-streamer.c (lto_check_version): Add new argument.
4256         * lto-streamer.h (lto_check_version): Likewise.
4258 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4260         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
4261         Don't add cost of inner memory when handling sign-extended loads.
4263 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
4265         PR rtl-optimization/71148
4266         * cse.c (cse_main): Free dominance info.
4267         (rest_of_handle_cse): Don't free dominance info.
4268         (rest_of_handle_cse2): Likewise.
4269         (rest_of_handle_cse_after_global_opts): Likewise.
4271 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4273         PR target/71056
4274         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
4275         NULL_TREE early if NEON is not available.  Remove now redundant check
4276         in ARM_CHECK_BUILTIN_MODE.
4278 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
4280         PR sanitizer/64354
4281         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
4282         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
4283         * doc/cpp.texi: Document new macros.
4285 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
4287         PR tree-optimization/69848
4288         * tree-vect-loop.c (vectorizable_reduction): Don't factor
4289         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
4291 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
4293         * function.c (thread_prologue_and_epilogue_insn): Move the
4294         "goto epilogue_done" one block later.
4296 2016-05-19  Richard Biener  <rguenther@suse.de>
4298         PR tree-optimization/70729
4299         * passes.def: Move LIM pass before PRE.  Remove no longer
4300         required copyprop and move first DCE out of the loop pipeline.
4302 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
4304         PR driver/69265
4305         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
4306         (OBJS-libcommon-target): ...here.
4307         * opts-common.c: Include spellcheck.h.
4308         (cmdline_handle_error): Build a vec of valid options and use it
4309         to suggest provide hints for misspelled arguments.
4311 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
4313         PR c++/71100
4314         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
4315         lhs if it has TREE_ADDRESSABLE type.
4317 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
4319         PR target/71145
4320         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
4321         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
4323 2016-05-18  Martin Jambor  <mjambor@suse.cz>
4325         PR ipa/69708
4326         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
4327         input for NOP_EXPR pass-through functions.
4328         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
4329         aggregate global constant VAR_DECLs in constant jump functions.
4331 2016-05-18  Martin Jambor  <mjambor@suse.cz>
4333         PR ipa/69708
4334         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
4335         from TREE_READONLY parameters.
4337 2016-05-18  Martin Jambor  <mjambor@suse.cz>
4339         PR ipa/69708
4340         * cgraph.h (cgraph_indirect_call_info): New field
4341         guaranteed_unmodified.
4342         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
4343         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
4344         appropriate.
4345         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
4346         pass the parameter value to ipa_find_agg_cst_for_param.
4347         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
4348         guaranteed_unmodified, store AA results there instead of bailing out
4349         if present.
4350         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
4351         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
4352         (find_constructor_constant_at_offset): New function.
4353         (ipa_find_agg_cst_from_init): Likewise.
4354         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
4355         static initializers of contants, report back through a new paameter
4356         from_global_constant if that was the case.
4357         (try_make_edge_direct_simple_call): Also pass parameter value to
4358         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
4359         appropriate.
4360         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
4361         (ipa_read_indirect_edge_info): Likewise.
4362         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
4363         (ipa_load_from_parm_agg): Likewise.
4365 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
4367         PR rtl-optimization/71150
4368         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
4369         check.
4371 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4373         PR target/70915
4374         * config/rs6000/constraints.md (wE constraint): New constraint
4375         for a vector constant that can be loaded with XXSPLTIB.
4376         (wM constraint): New constraint for a vector constant of a 1's.
4377         (wS constraint): New constraint for a vector constant that can be
4378         loaded with XXSPLTIB and a vector sign extend instruction.
4379         * config/rs6000/predicates.md (xxspltib_constant_split): New
4380         predicates for wE/wS constraints.
4381         (xxspltib_constant_nosplit): Likewise.
4382         (easy_vector_constant): Add support for constants that can be
4383         loaded via XXSPLTIB.
4384         (all_ones_constant): New predicate for vector constant with all
4385         1's set.
4386         (splat_input_operand): Add support for ISA 3.0 word splat operations.
4387         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
4388         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
4389         instruction and possibly with a sign extension.
4390         (output_vec_const_move): Add support for XXSPLTIB. If we are
4391         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
4392         instead of XXLXOR/XXLORC.
4393         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
4394         operations.
4395         (rs6000_legitimize_reload_address): Likewise.
4396         (rs6000_output_move_128bit): Use output_vec_const_move to emit
4397         constants.
4398         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
4399         combine VSX_M and VSX_M2 into one iterator.
4400         (VSX_M2): Likewise.
4401         (VSINT_84): New iterators for loading constants with XXSPLTIB.
4402         (VSINT_842): Likewise.
4403         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
4404         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
4405         XXSPLTIB instruction.
4406         (xxspltib_<mode>_nosplit): Likewise.
4407         (xxspltib_<mode>_split): New insn to load up constants with
4408         XXSPLTIB and a sign extend instruction.
4409         (vsx_mov<mode>): Replace single move that handled all vector types
4410         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
4411         moves (when -mvsx-timode is in effect) into the main vector
4412         moves.  Eliminate separate moves for <VSr> <VSa>, where the
4413         preferred register class (<VSr>) is listed first, and the
4414         secondary register class (<VSa>) is listed second with a '?' to
4415         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
4416         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
4417         that if the register was involved in a slow operation, the
4418         clear/set operation does not wait for the slow operation to
4419         finish.  Adjust the length attributes for 32-bit mode.  Use
4420         rs6000_output_move_128bit and drop the use of the string
4421         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
4422         spacing so that the alternatives and attributes don't generate
4423         long lines, and put things in columns, so that it is easier to
4424         match up the operands and attributes with the insn alternatives.
4425         (vsx_mov<mode>_64bit): Likewise.
4426         (vsx_mov<mode>_32bit): Likewise.
4427         (vsx_movti_64bit): Fold movti into normal vector moves.
4428         (vsx_movti_32bit): Likewise.
4429         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
4430         splat instructions.
4431         (vsx_splat_v4si_internal): Likewise.
4432         (vsx_splat_v4sf_internal): Likewise.
4433         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
4434         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
4435         extend vector elements.
4436         (vsx_sign_extend_hi_<mode>): Likewise.
4437         (vsx_sign_extend_si_v2di): Likewise.
4438         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
4439         declaration.
4440         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
4441         constraints.  Add trailing period to wL documentation.
4443 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
4445         PR middle-end/71020
4446         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
4447         * tree-dfa.c (replace_abnormal_ssa_names): New function.
4448         * tree-call-cdce.c: Include tree-dfa.h.
4449         (can_guard_call_p): New function, extracted from...
4450         (can_use_internal_fn): ...here.
4451         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
4452         and return void.
4453         (shrink_wrap_one_built_in_call): Likewise.
4454         (use_internal_fn): Likewise.
4455         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
4456         and return void.  Call replace_abnormal_ssa_names.
4457         (pass_call_cdce::execute): Check can_guard_call_p during the
4458         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
4459         will always change something.
4461 2016-05-18  Martin Jambor  <mjambor@suse.cz>
4463         PR ipa/70646
4464         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
4465         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
4467 2016-05-18  Martin Jambor  <mjambor@suse.cz>
4469         PR ipa/70646
4470         * ipa-inline.h (condition): New field size.
4471         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
4472         for comaprison and store it into the new condition.
4473         (evaluate_conditions_for_known_args): Use condition size to check
4474         access sizes for all but CHANGED conditions.
4475         (unmodified_parm_1): New parameter size_p, store access size into it.
4476         (unmodified_parm): Likewise.
4477         (unmodified_parm_or_parm_agg_item): Likewise.
4478         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
4479         (set_cond_stmt_execution_predicate): Extract access sizes and store
4480         them to conditions.
4481         (set_switch_stmt_execution_predicate): Likewise.
4482         (will_be_nonconstant_expr_predicate): Likewise.
4483         (will_be_nonconstant_predicate): Likewise.
4484         (inline_read_section): Stream condition size.
4485         (inline_write_summary): Likewise.
4487 2016-05-18  Richard Biener  <rguenther@suse.de>
4489         * tree-ssa-loop-im.c (determine_max_movement): Properly add
4490         condition cost to PHI cost instead of total_cost.
4492 2016-05-18  Martin Liska  <mliska@suse.cz>
4494         PR fortran/70856
4495         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
4496         merged variables.
4498 2016-05-18  Richard Biener  <rguenther@suse.de>
4500         * lto-streamer.h (LTO_major_version): Bump to 6.
4502 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
4504         * function.c (make_split_prologue_seq, make_prologue_seq,
4505         make_epilogue_seq): New functions, factored out from...
4506         (thread_prologue_and_epilogue_insns): Here.
4508 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
4510         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
4511         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
4512         of before.  Add a comment.
4514 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
4516         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
4517         expression pointer, not pointer to the pointer.
4519 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
4521         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
4522         (avx2_pbroadcast<mode>): Add another alternative with v instead
4523         of x constraints in it, using <pbroadcast_evex_isa> isa.
4524         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
4526         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
4527         constraint x instead of v in second alternative, add avx512bw
4528         alternative.
4530         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
4531         constraint x instead of v in second alternative, add avx512bw
4532         alternative.
4534         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
4535         constraint x instead of v in second alternative, add avx512bw
4536         alternative.
4538         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
4539         avx512bw alternative.
4541 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
4543         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
4544         array to 128 chars.
4545         (define_insn "*andnottf3"): Ditto.
4546         (define_insn "*<code><mode>3"/any_logic): Ditto.
4547         (define_insn "*<code>tf3"/any_logic): Ditto.
4548         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
4549         operand to block AVX-512VL insn variant emit when it is not enabled.
4551 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
4553         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
4554         constraint fot SF mode.
4556 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
4557             Kirill Yukhin  <kirill.yukhin@intel.com>
4559         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
4560         modifiers.
4561         (define_insn "rsqrt14<mode>"): Ditto.
4562         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
4563         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
4564         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
4565         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4566         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
4567         Ditto.
4568         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
4569         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
4570         * config/i386/i386.c (ix86_print_operand): Expand check for size
4571         override codes for Intel syntax.
4573 2016-05-18  Richard Biener  <rguenther@suse.de>
4575         PR tree-optimization/71168
4576         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
4577         initialization earlier.
4579 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
4581         * config/aarch64/aarch64-simd.md
4582         (aarch64_reduc_plus_internal<mode>): Rename to...
4583         (reduc_plus_scal): ...This, and remove previous implementation.
4585 2016-05-18  Richard Biener  <rguenther@suse.de>
4587         * passes.def: Put late dse and cd_dce in canonical order.
4589 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
4591         * ipa-inline-transform.c (preserve_function_body_p): Look for
4592         first non-thunk clone.
4593         (save_function_body): Save into first non-thunk.
4594         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
4595         up call stmt id.
4596         (lto_output_node): Inline thunks don't need body in every
4597         partition.
4598         * lto-streamer-in.c: Do not fixup thunk clones.
4599         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
4600         thunks.
4601         * tree-inline.c (copy_bb): Be prepared for target node to be new after
4602         folding suceeds.
4604 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
4606         PR middle-end/63586
4607         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
4608         (reassociate_bb): Call transform_add_to_multiply.
4610 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
4612         * config/aarch64/aarch64.c (all_extensions): Removed unused
4613         static variable.
4615 2016-05-17  Nathan Sidwell  <nathan@acm.org>
4617         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
4618         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
4620 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
4622         PR tree-optimization/54579
4623         PR middle-end/55299
4624         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
4626 2016-05-17  Marek Polacek  <polacek@redhat.com>
4628         PR ipa/71146
4629         * tree-inline.c (expand_call_inline): Call
4630         maybe_remove_unused_call_args.
4632 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
4634         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
4635         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
4636         * doc/md.texi (fmin@var{m}3): Likewise.
4638 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
4640         * match.pd (X & C): New transformation.
4642 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
4644         * match.pd (~X & Y): New transformation.
4646 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
4648         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
4649         information for new SSA_NAME.
4650         (simplify_conversion_using_ranges): Get range through get_range_info
4651         instead of get_value_range.
4653 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4655         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
4656         Remove inline assembly.
4657         (vmvn_s16): Likewise.
4658         (vmvn_s32): Likewise.
4659         (vmvn_u8): Likewise.
4660         (vmvn_u16): Likewise.
4661         (vmvn_u32): Likewise.
4662         (vmvnq_s8): Likewise.
4663         (vmvnq_s16): Likewise.
4664         (vmvnq_s32): Likewise.
4665         (vmvnq_u8): Likewise.
4666         (vmvnq_u16): Likewise.
4667         (vmvnq_u32): Likewise.
4668         (vmvn_p8): Likewise.
4669         (vmvnq_p16): Likewise.
4671 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4673         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
4674         Use builtin.
4675         (vmul_n_s16): Likewise.
4676         (vmul_n_s32): Likewise.
4677         (vmul_n_u16): Likewise.
4678         (vmul_n_u32): Likewise.
4679         (vmulq_n_f32): Likewise.
4680         (vmulq_n_f64): Likewise.
4681         (vmulq_n_s16): Likewise.
4682         (vmulq_n_s32): Likewise.
4683         (vmulq_n_u16): Likewise.
4684         (vmulq_n_u32): Likewise.
4686 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4688         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
4689         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
4691 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4693         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
4694         to *aarch64_fma4_elt_from_dup<mode>.
4695         (*aarch64_fnma4_elt_to_128df): Rename to
4696         *aarch64_fnma4_elt_from_dup<mode>.
4697         * config/aarch64/arm_neon.h (vfma_n_f64): New.
4698         (vfms_n_f32): Likewise.
4699         (vfms_n_f64): Likewise.
4700         (vfmsq_n_f32): Likewise.
4701         (vfmsq_n_f64): Likewise.
4703 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
4705         * wide-int.h: Change fixed_wide_int_storage from class to struct.
4707 2016-05-17  Richard Biener  <rguenther@suse.de>
4709         PR tree-optimization/71132
4710         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
4711         Only add control dependences for blocks in the loop.
4712         (build_rdg): Adjust.
4713         (generate_code_for_partition): Return whether loop should
4714         be destroyed and delay that.
4715         (distribute_loop): Likewise.
4716         (pass_loop_distribution::execute): Record loops to be destroyed
4717         and perform delayed destroying of loops.
4719 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4721         PR target/70809
4722         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
4724 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
4726         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
4728 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
4730         PR target/71114
4731         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
4732         insertion point for instructions generated by validize_mem.
4734 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
4736         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
4737         in brackets.
4739 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
4741         * config/aarch64/aarch64.c
4742         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
4743         rather than a macro.
4745 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
4747         * doc/invoke.texi (AArch64 Options): Various updates.
4749 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4751         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
4752         into instrumentation thunks.
4753         * cif-code.def (CIF_CHKP): New.
4755 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
4757         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
4759 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4761         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
4762         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
4764 2016-05-16  Marek Polacek  <polacek@redhat.com>
4766         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
4767         commentary.
4769 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4771         PR hsa/70857
4772         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
4773         the outlined kernel function.
4775 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
4777         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
4778         (ISA_HAS_DLSA): Ditto.
4780 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
4782         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
4784 2016-05-16  Nathan Sidwell  <nathan@acm.org>
4786         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
4787         (nvptx_name_replacement): Restore.  Add comment.
4788         (write_fn_proto, write_fn_proto_from_insn,
4789         nvptx_output_call_insn): Restore
4790         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
4792 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
4794         * config/aarch64/aarch64.md
4795         (add<mode>3_compareC_cconly_imm): Remove use of %w.
4796         (add<mode>3_compareC_imm): Likewise.
4797         (<optab>si3_uxtw): Split into register and immediate variants.
4798         (andsi3_compare0_uxtw): Likewise.
4799         (and<mode>3_compare0): Likewise.
4800         (and<mode>3nr_compare0): Likewise.
4801         (stack_protect_test_<mode>): Don't use %x for memory operands.
4803 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
4805         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
4807 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
4809         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
4810         Split integer shifts into shift_reg and bfm.
4811         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4812         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4813         (ror<mode>3_insn): Likewise.
4814         (<optab>si3_insn_uxtw): Likewise.
4815         (<optab><mode>3_insn): Change to rotate_imm.
4816         (extr<mode>5_insn_alt): Likewise.
4817         (extrsi5_insn_uxtw): Likewise.
4818         (extrsi5_insn_uxtw_alt): Likewise.
4820 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4822         * doc/tm.texi: Regenerate.
4823         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
4824         (TARGET_INVALID_RETURN_TYPE): Remove.
4825         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
4826         TARGET_INVALID_RETURN_TYPE.
4827         * target.def (invalid_parameter_type): Remove.
4828         (invalid_return_type): Remove.
4830 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4832         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
4833         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
4834         calls from thunk.
4835         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
4836         gimple body.
4837         (preserve_function_body_p): No need to preserve function body
4838         * cif-codes.def (CIF_THUNK): Remove.
4839         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
4841 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4843         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
4845 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4847         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
4848         for thunks.
4850 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4852         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
4853         (inline_small_functions): Do not look for function symbol when
4854         resetting caches.
4856 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4858         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
4859         of inline thunks
4861 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4862             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4863             Jiong Wang  <jiong.wang@arm.com>
4865         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
4866         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
4867         Define __ARM_FP16_ARGS when appropriate.
4868         * config/arm/arm.c (arm_invalid_parameter_type): Remove
4869         declaration.
4870         (arm_invalid_return_type): Likewise.
4871         (TARGET_INVALID_PARAMETER_TYPE): Remove.
4872         (TARGET_INVALID_RETURN_TYPE): Remove.
4873         (aapcs_vfp_sub_candidate): Allow HFmode.
4874         (aapcs_vfp_allocate): Add comment.  Support HFmode.
4875         (aapcs_vfp_allocate_return_reg): Likewise.
4876         (struct aapcs_cp_arg_layout): Slightly reword comments for
4877         is_return_candidate and allocate_return_reg.
4878         (output_mov_vfp): Update assert.
4879         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
4880         condition.
4881         (arm_invalid_parameter_type): Remove.
4882         (amr_invalid_return_type): Remove.
4883         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
4884         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
4885         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
4887 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4889         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4890         * config/aarch64/arch64-protos.h
4891         (aarch64_legitimize_reload_address): Remove.
4892         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4893         Remove.
4895 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
4897         * configure.ac: Add ACX_NONCANONICAL_HOST.
4898         * configure: Regenerate.
4899         * Makefile.in: Set host_noncanonical.
4901 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
4903         PR target/71097
4904         * config/i386/i386.md (*movtf_internal): Before register allocation,
4905         do not allow FP constants for CM_MEDIUM memory model, allow only
4906         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
4907         (*movxf_internal): Ditto.
4908         (*movdf_internal): Ditto.
4909         (*movsf_internal): Ditto.
4911 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
4913         PR rtl-optimization/67483
4914         * combine.c (make_compound_operation): Don't call extract_left_shift
4915         with negative shift amounts.
4917 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
4919         PR bootstrap/71071
4920         * fold-const.c (fold_checksum_tree): Allow modification
4921         of TYPE_ALIAS_SET during folding.
4923         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
4924         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
4925         (ix86_split_to_parts): Likewise.  Fix up formatting.
4927 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
4929         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
4930         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
4931         printf format.
4933 2016-05-13  Nathan Sidwell  <nathan@acm.org>
4935         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
4936         (nvptx_name_replacement): Delete.
4937         (write_fn_proto, write_fn_proto_from_insn,
4938         nvptx_output_call_insn): Remove nvptx_name_replacement call.
4939         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
4940         * langhooks.c (add_builtin_funcction_common): Call
4941         targetm.mangle_decl_assembler_name.
4943         * config/nvptx/nvptx.c (write_fn_proto): Handle
4944         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
4946 2016-05-13  Martin Liska  <mliska@suse.cz>
4948         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
4949         and PRIu64 in printf format.
4951 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4953         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
4954         comment.
4956 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4958         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
4959         Change --param max-completely-peeled-times to
4960         --param max-completely-peel-times in dump file printing.
4962 2016-05-13  Richard Biener  <rguenther@suse.de>
4964         PR tree-optimization/42587
4965         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
4966         (find_bswap_or_nop_1): Likewise.
4967         (bswap_replace): Likewise.
4969 2016-05-13  Martin Liska  <mliska@suse.cz>
4971         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
4972         Initialize a variable with default value.
4974 2016-05-13  Martin Liska  <mliska@suse.cz>
4976         * doc/invoke.texi: Enhance explanation of error recovery
4977         of sanitizers.
4979 2016-05-13  Martin Liska  <mliska@suse.cz>
4981         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
4982         (struct cost_pair): Change inv_expr_id (int) to inv_expr
4983         (iv_inv_expr_ent *).
4984         (struct iv_inv_expr_ent): Comment struct fields.
4985         (sort_iv_inv_expr_ent): New function.
4986         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
4987         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
4988         a hash_map between iv_inv_expr_ent and number of usages.
4989         (niter_for_exit): Fix coding style.
4990         (tree_ssa_iv_optimize_init): Use renamed variable.
4991         (determine_base_object): Fix coding style.
4992         (alloc_iv): Likewise.
4993         (find_interesting_uses_outside): Likewise.
4994         (add_candidate_1): Likewise.
4995         (add_standard_iv_candidates): Likewise.
4996         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
4997         (prepare_decl_rtl): Fix coding style.
4998         (get_address_cost): Likewise.
4999         (get_shiftadd_cost): Likewise.
5000         (force_expr_to_var_cost): Likewise.
5001         (compare_aff_trees): Likewise.
5002         (get_expr_id): Restructure the function.
5003         (get_loop_invariant_expr_id): Renamed to
5004         get_loop_invariant_expr.
5005         (get_computation_cost_at): Replace usage of inv_expr_id with
5006         inv_expr.
5007         (get_computation_cost): Likewise.
5008         (determine_group_iv_cost_generic): Likewise.
5009         (determine_group_iv_cost_address): Likewise.
5010         (iv_period): Fix coding style.
5011         (iv_elimination_compare_lt): Likewise.
5012         (may_eliminate_iv): Likewise.
5013         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
5014         inv_expr.
5015         (determine_group_iv_costs): Dump invariant expressions.
5016         (iv_ca_recount_cost): Use the newly added hash_map.
5017         (iv_ca_set_remove_invariants): Fix coding style.
5018         (iv_ca_set_add_invariants): Fix coding style.
5019         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
5020         invariants.
5021         (iv_ca_set_cp): Likewise.
5022         (iv_ca_new): Initialize the newly added hash_map and remove
5023         initialization of fields.
5024         (iv_ca_free): Delete the hash_map.
5025         (iv_ca_dump): Dump invariant expressions.
5026         (iv_ca_extend): Fix coding style.
5027         (try_add_cand_for): Likewise.
5028         (create_new_ivs): Dump information about # of avg iterations and
5029         # of used invariant expressions.
5030         (rewrite_use_compare): Fix coding style.
5031         (free_loop_data): Set default value for max_inv_expr_id.
5033 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
5035         * cse.c (rest_of_handle_cse): Use cleanup_cfg
5036         returned value cse_cfg_altered computation.
5037         (rest_of_handle_cse2): Likewise.
5038         (rest_of_handle_cse_after_global_opts): Likewise.
5040 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5042         PR target/53440
5043         * config/arm/arm.c (arm32_output_mi_thunk): New.
5044         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
5045         to split Thumb1 vs TARGET_32BIT functionality.
5046         (arm_thumb1_mi_thunk): New.
5048 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5050         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
5051         to true.
5053 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5055         PR target/71080
5056         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
5058 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
5060         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
5061         (expand_builtin_trap): Emit a regular call.
5062         (set_builtin_user_assembler_name): Remove obsolete cases.
5063         * dse.c (scan_insn): Adjust.
5064         * except.c: Include calls.h.
5065         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
5066         emit a regular call to setjmp.
5067         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
5068         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
5069         (emit_block_move_via_libcall): Delete.
5070         (block_move_fn): Delete.
5071         (init_block_move_fn): Likewise.
5072         (emit_block_move_libcall_fn): Likewise.
5073         (emit_block_op_via_libcall): New function.
5074         (set_storage_via_libcall): Tidy up and use memset builtin.
5075         (block_clear_fn): Delete.
5076         (init_block_clear_fn): Likewise.
5077         (clear_storage_libcall_fn): Likewise.
5078         (expand_assignment): Call emit_block_move_via_libcall.
5079         Do not include gt-expr.h.
5080         * expr.h (emit_block_op_via_libcall): Declare.
5081         (emit_block_copy_via_libcall): New inline function.
5082         (emit_block_move_via_libcall): Likewise.
5083         (emit_block_comp_via_libcall): Likewise.
5084         (block_clear_fn): Delete.
5085         (init_block_move_fn): Likewise.
5086         (init_block_clear_fn): Likewise.
5087         (emit_block_move_via_libcall): Likewise.
5088         (set_storage_via_libcall): Add default parameter value.
5089         * libfuncs.h (enum libfunc_index): Remove obsolete values.
5090         (abort_libfunc): Delete.
5091         (memcpy_libfunc): Likewise.
5092         (memmove_libfunc): Likewise.
5093         (memcmp_libfunc): Likewise.
5094         (memset_libfunc): Likewise.
5095         (setbits_libfunc): Likewise.
5096         (setjmp_libfunc): Likewise.
5097         (longjmp_libfunc): Likewise.
5098         (profile_function_entry_libfunc): Likewise.
5099         (profile_function_exit_libfunc): Likewise.
5100         (gcov_flush_libfunc): Likewise.
5101         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
5102         and DECL_VISIBILITY on the declaration.
5103         (init_optabs): Do not initialize obsolete libfuncs.
5104         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
5105         * tree-core.h (ECF_RET1): Define.
5106         (ECF_TM_PURE): Adjust.
5107         (ECF_TM_BUILTIN): Likewise.
5108         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
5109         (build_common_builtin_nodes): Initialize abort builtin.
5110         Add ECF_RET1 on memcpy, memmove and memset builtins.
5111         Pass final flags for alloca and alloca_with_align builtins.
5112         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
5113         obsolete builtins.
5114         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
5115         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
5116         set_storage_via_libcall and call emit_block_copy_via_libcall.
5118 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
5120         * config/i386/i386.md (*call_got_x32): Change operand 0 to
5121         DImode before it is passed to ix86_output_call_operand.
5122         (*call_value_got_x32): Ditto for operand 1.
5124 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
5126         PR rtl-optimization/70904
5127         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
5128         reload for wide mode.
5130 2016-05-12  Marek Polacek  <polacek@redhat.com>
5132         PR c/70756
5133         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
5134         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
5135         * langhooks.h (incomplete_type_error): Likewise.
5136         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
5137         parameter, pass it down to incomplete_type_error.
5138         * tree.h (size_in_bytes): New inline overload.
5139         (size_in_bytes_loc): Renamed from size_in_bytes.
5141 2016-05-12  Richard Biener  <rguenther@suse.de>
5143         PR tree-optimization/71059
5144         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
5145         nary before looking up or entering the expression into the VN
5146         hashes.
5147         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
5148         Make sure to re-use NARYs without result as inserted by
5149         phi-translation.
5151 2016-05-12  Richard Biener  <rguenther@suse.de>
5153         PR tree-optimization/71062
5154         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
5155         field.
5156         * tree-ssa-structalias.c (set_uids_in_ptset): Set
5157         vars_contains_restrict if the var is a restrict tag.
5158         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
5159         do not disambiguate pointers against it.
5160         (dump_points_to_solution): Re-structure and adjust for new
5161         vars_contains_restrict flag.
5162         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
5164 2016-05-12  Martin Liska  <mliska@suse.cz>
5166         * doc/invoke.texi: Explain connection between
5167         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
5169 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
5171         PR tree-optimization/71006
5172         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
5173         consider COND_EXPR as a mask producer.
5175 2016-05-12  Marek Polacek  <polacek@redhat.com>
5177         PR driver/71063
5178         * opts.c (common_handle_option): Detect missing argument for --help^.
5180 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5182         PR target/70830
5183         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
5184         when popping the PC and within an interrupt handler routine.
5185         Add missing tab to output of "ldmfd".
5186         (output_return_instruction): Output LDMFD with SP update rather
5187         than POP when returning from interrupt handler.
5189 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
5191         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
5192         TARGET_64BIT && TARGET_AVX512DQ.
5193         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
5194         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
5195         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
5196         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
5197         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
5198         (*vec_extractv4si_zext): Add avx512dq alternative.
5199         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
5200         use v instead of x constraint in other alternatives where possible.
5202         * config/i386/sse.md (sse2_loadld): Use v instead of x
5203         constraint in alternatives 0,1,4.
5205         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
5206         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
5207         v constraints instead of x and <pinsr_evex_isa> isa attribute.
5209         PR target/71019
5210         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
5211         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
5212         is not emitted unless TARGET_AVX512BW.
5213         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
5214         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
5215         for the result operand.
5217         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
5218         constraint instead of x in avx alternatives.  Use maybe_evex instead
5219         of vex prefix.
5221         * config/i386/constraints.md (Yv): New constraint.
5222         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
5223         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
5224         * config/i386/i386.md (avx512fvecmode): New mode attr.
5225         (*pushtf): Use v constraint instead of x.
5226         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
5227         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
5228         (*absneg<mode>2): Use Yv constraint instead of x constraint.
5229         (*absnegtf2_sse): Likewise.
5230         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
5231         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
5232         avx512f alternatives.
5233         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
5235 2016-05-12  Richard Biener  <rguenther@suse.de>
5237         PR tree-optimization/71060
5238         * tree-data-ref.c (initialize_data_dependence_relation): Do not
5239         require exact match of DR_BASE_OBJECT but only matching address and
5240         type.
5242 2016-05-12  Richard Biener  <rguenther@suse.de>
5244         PR tree-optimization/70986
5245         * cfganal.c: Include cfgloop.h.
5246         (dfs_find_deadend): Prefer to take edges exiting loops.
5248 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5250         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
5251         compile and run time.
5253 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
5255         PR c/43651
5256         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
5258 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
5260         * config/i386/i386.c (legitimize_pic_address): Use
5261         copy_to_suggested_reg instead of gen_movsi.
5263 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
5265         * config/rs6000/predicates.md (quad_memory_operand): Move most of
5266         the code into quad_address_p and call it to share code with
5267         vsx_quad_dform_memory_operand.
5268         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
5269         d-form support.
5270         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
5271         bit instead of being a separate word.  Split -mpower9-dform into
5272         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
5273         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
5274         for the register class supporting 128-bit quad word memory offsets.
5275         (mode_supports_vsx_dform_quad): Helper function to return if the
5276         register class uses quad word memory offsets.
5277         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
5278         (rs6000_debug_reg_global): Always print if we are using LRA or not.
5279         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
5280         instructions are enabled, set up the appropriate addr_masks for
5281         128-bit types.
5282         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
5283         -mpower9-dform-scalar, instead of -mpower9-dform.
5284         (rs6000_option_override_internal): Split -mpower9-dform into two
5285         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
5286         -mpower9-dform switch sets or clears both.  If we are not using
5287         the LRA register allocator, do not enable -mpower9-dform-vector by
5288         default.  If we are using LRA, enable -mpower9-dform-vector and
5289         -mvsx-timode if it is appropriate.  Issue a warning if either
5290         -mpower9-dform-vector or -mvsx-timode are explicitly used without
5291         enabling LRA.
5292         (quad_address_offset_p): New helper function to return if the
5293         offset is legal for quad word memory instructions.
5294         (quad_address_p): New function to determin if GPR or vector
5295         register quad word memory addresses are legal.
5296         (mem_operand_gpr): Validate quad word address offsets.
5297         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
5298         d-form (register + offset) instructions.
5299         (offsettable_ok_by_alignment): Likewise.
5300         (rs6000_legitimate_offset_address_p): Likewise.
5301         (legitimate_lo_sum_address_p): Likewise.
5302         (rs6000_legitimize_address): Likewise.
5303         (rs6000_legitimize_reload_address): Add more debug statements for
5304         -mdebug=addr.
5305         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
5306         d-form instructions.
5307         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
5308         d-form instructions.  Distinguish different cases in debug
5309         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
5310         d-form instructions.
5311         (rs6000_preferred_reload_class): Likewise.
5312         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
5313         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
5314         of the ISA 2.06 indexed memory instructions.
5315         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
5316         use them to save/restore the saved vector registers instead of
5317         using Altivec instructions.
5318         (rs6000_emit_epilogue): Likewise.
5319         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
5320         (rs6000_opt_masks): Split -mpower9-dform into
5321         -mpower9-dform-scalar and -mpower9-dform-vector.
5322         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
5323         was not selected.
5324         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
5325         ISA 3.0 vector indexed memory instructions, and fold the code into
5326         the normal mov<mode> patterns.
5327         (p9_vecstore_<mode>): Likewise.
5328         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
5329         instructions.
5330         (vsx_movti_64bit): Likewise.
5331         (vsx_movti_32bit): Likewise.
5332         * config/rs6000/constraints.md (wO constraint): New constraint for
5333         ISA 3.0 vector d-form support.
5334         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
5335         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
5336         include -mpower9-dform-vector until we switch over to LRA.
5337         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
5338         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
5339         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
5340         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
5341         for -mpower9-dform and -mlra.
5342         * doc/md.texi (wO constraint): Document wO constraint.
5344 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
5346         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
5347         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
5348         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
5349         Move handling of non-insn arguments inline into the sole user:
5350         (output_trans_func): ...here.
5351         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
5352         in emitted function prototype.
5353         (output_internal_insn_latency_func): Ditto.  Simplify.
5354         (output_internal_maximal_insn_latency_func): Ditto.  Delete
5355         always-unused argument.
5356         (output_insn_latency_func): Ditto.
5357         (output_maximal_insn_latency_func): Ditto.
5359 2016-05-11  Richard Biener  <rguenther@suse.de>
5361         PR tree-optimization/71055
5362         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
5363         sth with precision not equal to access size verify we don't chop
5364         off bits.
5366 2016-05-11  Richard Biener  <rguenther@suse.de>
5368         PR debug/71057
5369         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
5370         (dwarf2out_finish): Move retry_incomplete_types call ...
5371         (dwarf2out_early_finish): ... here.
5373 2016-05-11  Richard Biener  <rguenther@suse.de>
5375         PR middle-end/71002
5376         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
5377         if the langhook insists on it.
5378         * fold-const.c (make_bit_field_ref): Add arg for the original
5379         reference and preserve its alias-set.
5380         (decode_field_reference): Take exp by reference and adjust it
5381         to the original memory reference.
5382         (optimize_bit_field_compare): Adjust callers.
5383         (fold_truth_andor_1): Likewise.
5384         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
5386 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
5388         PR middle-end/70807
5389         * cfgrtl.h (delete_insn_and_edges): Now return bool.
5390         * cfgrtl.c (delete_insn_and_edges): Likewise.
5391         * config/i386/i386.c (convert_scalars_to_vector): Remove
5392         redundant code.
5393         * cse.c (cse_insn): Compute cse_cfg_altered.
5394         (delete_trivially_dead_insns): Likewise.
5395         (cse_cc_succs): Likewise.
5396         (rest_of_handle_cse): Free dominance info if required.
5397         (rest_of_handle_cse2): Likewise.
5398         (rest_of_handle_cse_after_global_opts): Likewise.
5400 2016-05-11  Alan Modra  <amodra@gmail.com>
5402         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
5403         abi_v4_pass_in_fpr): New functions.
5404         (rs6000_function_arg_boundary): Exclude complex IBM long double
5405         from 64-bit alignment when ABI_V4.
5406         (rs6000_function_arg, rs6000_function_arg_advance_1,
5407         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
5409 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
5411         PR rtl-optimization/71028
5412         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
5413         jump with just a return in the fallthrough block if the branch
5414         block contains just a return as well.
5416 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
5418         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
5419         * match.pd ((X & Y) ^ Y): ... this.
5420         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
5421         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
5423 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
5425         * read-md.c (require_char_ws): New function.
5426         (read_string): Simplify using require_char_ws.
5427         (handle_constants): Likewise.
5428         (handle_enum): Likewise.
5429         (handle_file): Likewise.
5430         * read-md.h (require_char_ws): New declaration.
5431         * read-rtl.c (read_conditions): Simplify using require_char_ws.
5432         (read_mapping): Likewise.
5433         (read_rtx_code): Likewise.
5434         (read_nested_rtx): Likewise.
5436 2016-05-10  James Norris  <jnorris@codesourcery.com>
5438         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
5439         if offloading is enabled and -fopenacc or -fopenmp is specified.
5440         (CRTOFFLOADEND): Likewise.
5441         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
5442         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
5444 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
5446         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
5447         gotoff_operand code paths.  Use copy_to_suggested_regs and
5448         expand_simple_binop where appropriate.  Cleanup.
5450 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
5452         PR target/70799
5453         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
5454         integer constants.
5455         (dimode_scalar_chain::vector_const_cost): New.
5456         (dimode_scalar_chain::compute_convert_gain): Handle constants.
5457         (dimode_scalar_chain::convert_op): Likewise.
5458         (dimode_scalar_chain::convert_insn): Likewise.
5460 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
5462         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
5463         unary operation, not a binary one.
5465 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
5467         PR middle-end/70877
5468         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
5469         calls with type casted fndecl.
5471 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
5473         PR tree-optimization/70786
5474         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
5475         * calls.c (initialize_argument_information): Bind bounds
5476         with corresponding args passed by reference.
5478 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
5480         PR target/70927
5481         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
5482         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
5483         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
5484         accordingly.
5486 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5488         PR target/70963
5489         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
5490         code for a zero scale factor.
5491         (vsx_xvcvdpuxds_scale): Likewise.
5493 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
5495         * diagnostic-show-locus.c (layout::layout): Call show_ruler
5496         if show_ruler_p was set on the context.
5497         (layout::show_ruler): New method.
5498         * diagnostic.h (struct diagnostic_context): Add field
5499         "show_ruler_p".
5501 2016-05-10  Richard Biener  <rguenther@suse.de>
5503         PR tree-optimization/71039
5504         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
5505         (chk_uses): New function.
5506         (propagate_with_phi): Verify we can safely replicate the lhs of an
5507         aggregate assignment on all incoming edges.
5509 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
5511         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
5512         Forward declare.
5513         (rx_atomic_sequence): New class.
5514         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
5515         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
5516         non-inline.
5517         (rx_atomic_sequence::rx_atomic_sequence,
5518         rx_atomic_sequence::~rx_atomic_sequence): New functions.
5519         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
5520         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
5521         CTRLREG_INTB): New constants.
5522         (FETCHOP): New code iterator.
5523         (fethcop_name, fetchop_name2): New iterator code attributes.
5524         (QIHI): New mode iterator.
5525         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
5526         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
5527         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
5529 2016-05-10  Martin Liska  <mliska@suse.cz>
5531         * tree-inline.c (remap_dependence_clique): Do not remap
5532         debugging statements.
5534 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5536         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
5537         ("*fixuns_truncdfdi2_z13")
5538         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
5539         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
5540         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
5542 2016-05-10  Richard Biener  <rguenther@suse.de>
5544         PR tree-optimization/70497
5545         PR tree-optimization/28367
5546         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
5547         split out from ...
5548         (visit_reference_op_load): ... here.
5549         (vn_reference_lookup_3): Use it to handle subreg-like accesses
5550         with simplified BIT_FIELD_REFs.
5551         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
5552         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
5553         correctly.
5555 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
5557         * dwarf2out.c (add_abstract_origin_attribute): Adjust
5558         documentation comment.  For BLOCK nodes, add a
5559         DW_AT_abstract_origin attribute that points to the DIE generated
5560         for the origin BLOCK.
5561         (gen_lexical_block_die): Call add_abstract_origin_attribute for
5562         blocks from inlined functions.
5564 2016-05-10  Alan Modra  <amodra@gmail.com>
5566         PR target/70947
5567         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
5568         regrename modifying insns saving lr before __morestack call.
5569         * config/rs6000/rs6000.md (split_stack_return): Similarly for
5570         insns restoring lr after __morestack call.
5572 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
5574         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
5575         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
5576         expanders.
5577         * config/i386/sse.md (vec_interleave_high<mode>,
5578         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
5579         <avx512>_vpermt2var<mode>3_maskz): Likewise.
5581 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5583         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
5584         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
5585         parallel reassociation for power8 and forward.
5587 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
5589         * config/i386/i386.md (absneg splitters with general regs): Use
5590         general_reg_operand predicate.
5591         (btsq peephole2): Use x86_64_immediate_operand to check if new
5592         value is suitable for immediate operand.  Generate emitted insn
5593         using RTL expressions.
5594         (btcq peephole2): Ditto.
5595         (btrq peephole2): Ditto.  Generate correct immediate operand
5596         for AND masking.
5598 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
5600         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
5601         bitpos.
5603 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
5605         * tree-affine.c (wide_int_constant_multiple_p): Add missing
5606         pointer dereference.
5608 2016-05-09  Richard Biener  <rguenther@suse.de>
5610         PR tree-optimization/70985
5611         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
5612         op0 isn't a gimple register.
5614 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
5616         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
5617         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
5618         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
5619         (i6400_fpu_mult): New cpu units.
5620         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
5621         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
5622         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
5623         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
5624         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
5625         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
5626         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
5627         (i6400_msa_long_float4, i6400_msa_long_float5)
5628         (i6400_msa_long_float8, i6400_msa_fdiv_df)
5629         (i6400_msa_fdiv_sf): New reservations.
5630         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
5631         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
5632         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
5633         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
5634         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
5635         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
5636         (msa_short_cmp, msa_short_float2, msa_short_logic3)
5637         (msa_short_store4, msa_long_load, msa_short_store)
5638         (msa_long_logic, msa_long_float2, msa_long_float4)
5639         (msa_long_float5, msa_long_float8, msa_long_mult)
5640         (msa_long_fdiv, msa_long_div): New reservations.
5642 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
5643             Sameera Deshpande  <sameera.deshpande@imgtec.com>
5644             Matthew Fortune  <matthew.fortune@imgtec.com>
5645             Graham Stott  <graham.stott@imgtec.com>
5646             Chao-ying Fu  <chao-ying.fu@imgtec.com>
5648         * config.gcc: Add MSA header file for mips*-*-* target.
5649         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
5650         (Ubv8i, Urv8):  New constraints.
5651         * config/mips/mips-ftypes.def: Add function types for MSA
5652         builtins.
5653         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
5654         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
5655         * config/mips/mips-msa.md: New file.
5656         * config/mips/mips-protos.h
5657         (mips_split_128bit_const_insns): New prototype.
5658         (mips_msa_idiv_insns): Likewise.
5659         (mips_split_128bit_move): Likewise.
5660         (mips_split_128bit_move_p): Likewise.
5661         (mips_split_msa_copy_d): Likewise.
5662         (mips_split_msa_insert_d): Likewise.
5663         (mips_split_msa_fill_d): Likewise.
5664         (mips_expand_msa_branch): Likewise.
5665         (mips_const_vector_same_val_p): Likewise.
5666         (mips_const_vector_same_bytes_p): Likewise.
5667         (mips_const_vector_same_int_p): Likewise.
5668         (mips_const_vector_shuffle_set_p): Likewise.
5669         (mips_const_vector_bitimm_set_p): Likewise.
5670         (mips_const_vector_bitimm_clr_p): Likewise.
5671         (mips_msa_vec_parallel_const_half): Likewise.
5672         (mips_msa_output_division): Likewise.
5673         (mips_ldst_scaled_shift): Likewise.
5674         (mips_expand_vec_cond_expr): Likewise.
5675         * config/mips/mips.c (enum mips_builtin_type): Add
5676         MIPS_BUILTIN_MSA_TEST_BRANCH.
5677         (mips_gen_const_int_vector_shuffle): New prototype.
5678         (mips_const_vector_bitimm_set_p): New function.
5679         (mips_const_vector_bitimm_clr_p): Likewise.
5680         (mips_const_vector_same_val_p): Likewise.
5681         (mips_const_vector_same_bytes_p): Likewise.
5682         (mips_const_vector_same_int_p): Likewise.
5683         (mips_const_vector_shuffle_set_p): Likewise.
5684         (mips_symbol_insns): Forbid loading symbols via immediate for
5685         MSA.
5686         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
5687         stores.
5688         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
5689         MSA.
5690         (mips_lx_address_p): Add support load indexed address for MSA.
5691         (mips_address_insns): Add calculation of instructions needed for
5692         stores and loads for MSA.
5693         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
5694         CONST_VECTOR for MSA and let it fall through.
5695         (mips_ldst_scaled_shift): New function.
5696         (mips_subword_at_byte): Likewise.
5697         (mips_msa_idiv_insns): Likewise.
5698         (mips_legitimize_move): Validate MSA moves.
5699         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
5700         calculation of costs for MSA division.
5701         (mips_split_move_p): Check if MSA moves need splitting.
5702         (mips_split_move): Split MSA moves if necessary.
5703         (mips_split_128bit_move_p): New function.
5704         (mips_split_128bit_move): Likewise.
5705         (mips_split_msa_copy_d): Likewise.
5706         (mips_split_msa_insert_d): Likewise.
5707         (mips_split_msa_fill_d): Likewise.
5708         (mips_output_move): Handle MSA moves.
5709         (mips_expand_msa_branch): New function.
5710         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
5711         Reinstate 'y' modifier.
5712         (mips_file_start): Add MSA .gnu_attribute.
5713         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
5714         FPRs.
5715         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
5716         (mips_class_max_nregs): Add register size for MSA supported mode.
5717         (mips_cannot_change_mode_class): Allow conversion between MSA
5718         vector modes and TImode.
5719         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
5720         instruction.
5721         (mips_secondary_reload_class): Force MSA loads/stores via memory.
5722         (mips_preferred_simd_mode): Add preffered modes for MSA.
5723         (mips_vector_mode_supported_p): Add MSA supported modes.
5724         (mips_autovectorize_vector_sizes): New function.
5725         (mips_msa_output_division): Likewise.
5726         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
5727         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
5728         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
5729         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
5730         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
5731         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
5732         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
5733         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
5734         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
5735         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
5736         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
5737         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
5738         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
5739         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
5740         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
5741         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
5742         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
5743         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
5744         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
5745         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
5746         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
5747         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
5748         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
5749         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
5750         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
5751         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
5752         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
5753         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
5754         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
5755         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
5756         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
5757         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
5758         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
5759         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
5760         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
5761         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
5762         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
5763         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
5764         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
5765         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
5766         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
5767         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
5768         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
5769         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
5770         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
5771         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
5772         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
5773         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
5774         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
5775         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
5776         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
5777         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
5778         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
5779         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
5780         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
5781         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
5782         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
5783         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
5784         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
5785         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
5786         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
5787         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
5788         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
5789         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
5790         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
5791         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
5792         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
5793         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
5794         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
5795         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
5796         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
5797         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
5798         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
5799         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
5800         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
5801         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
5802         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
5803         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
5804         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
5805         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
5806         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
5807         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
5808         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
5809         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
5810         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
5811         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
5812         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
5813         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
5814         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
5815         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
5816         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
5817         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
5818         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
5819         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
5820         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
5821         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
5822         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
5823         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
5824         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
5825         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
5826         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
5827         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
5828         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
5829         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
5830         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
5831         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
5832         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
5833         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
5834         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
5835         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
5836         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
5837         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
5838         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
5839         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
5840         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
5841         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
5842         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
5843         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
5844         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
5845         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
5846         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
5847         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
5848         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
5849         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
5850         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
5851         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
5852         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
5853         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
5854         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
5855         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
5856         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
5857         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
5858         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
5859         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
5860         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
5861         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
5862         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
5863         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
5864         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
5865         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
5866         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
5867         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
5868         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
5869         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
5870         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
5871         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
5872         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
5873         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
5874         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
5875         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
5876         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
5877         move_v builtins.
5878         (mips_get_builtin_decl_index): New array.
5879         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
5880         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
5881         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
5882         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
5883         (mips_init_builtins): Initialize mips_get_builtin_decl_index
5884         array.
5885         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
5886         hook.
5887         (mips_expand_builtin_insn): Prepare operands for
5888         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
5889         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
5890         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
5891         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
5892         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
5893         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
5894         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
5895         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
5896         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
5897         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
5898         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
5899         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
5900         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
5901         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
5902         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
5903         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
5904         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
5905         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
5906         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
5907         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
5908         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
5909         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
5910         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
5911         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
5912         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
5913         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
5914         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
5915         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
5916         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
5917         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
5918         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
5919         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
5920         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
5921         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
5922         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
5923         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
5924         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
5925         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
5926         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
5927         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
5928         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
5929         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
5930         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
5931         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
5932         These are set implicitly and an error is reported if overridden.
5933         (mips_expand_builtin_msa_test_branch): New function.
5934         (mips_expand_msa_shuffle): Likewise.
5935         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
5936         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
5937         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
5938         (mips_expand_vec_unpack): Add support for MSA.
5939         (mips_expand_vector_init): Likewise.
5940         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
5941         instead of const0_rtx.
5942         (mips_msa_vec_parallel_const_half): New function.
5943         (mips_gen_const_int_vector): Likewise.
5944         (mips_gen_const_int_vector_shuffle): Likewise.
5945         (mips_expand_msa_cmp): Likewise.
5946         (mips_expand_vec_cond_expr): Likewise.
5947         * config/mips/mips.h
5948         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
5949         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
5950         specified.
5951         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
5952         (ISA_HAS_MSA): New macro.
5953         (UNITS_PER_MSA_REG): Likewise.
5954         (BITS_PER_MSA_REG): Likewise.
5955         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
5956         (MSA_REG_FIRST): New macro.
5957         (MSA_REG_LAST): Likewise.
5958         (MSA_REG_NUM): Likewise.
5959         (MSA_REG_P): Likewise.
5960         (MSA_REG_RTX_P): Likewise.
5961         (MSA_SUPPORTED_MODE_P): Likewise.
5962         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
5963         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
5964         * config/mips/mips.md: Include mips-msa.md.
5965         (alu_type): Add simd_add.
5966         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
5967         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
5968         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
5969         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
5970         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
5971         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
5972         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
5973         simd_move, simd_load, simd_store.  Choose "multi" for moves
5974         for "qword_mode".
5975         (qword_mode): New attribute.
5976         (insn_count): Add instruction count for quad moves.
5977         Increase the count for MIPS SIMD division.
5978         (UNITMODE): Add UNITMODEs for vector types.
5979         (addsub): New code iterator.
5980         * config/mips/mips.opt (mmsa): New option.
5981         * config/mips/msa.h: New file.
5982         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
5983         specified.
5984         * config/mips/mti-linux.h: Likewise.
5985         * config/mips/predicates.md
5986         (const_msa_branch_operand): New constraint.
5987         (const_uimm3_operand): Likewise.
5988         (const_uimm4_operand): Likewise.
5989         (const_uimm5_operand): Likewise.
5990         (const_uimm8_operand): Likewise.
5991         (const_imm5_operand): Likewise.
5992         (aq10b_operand): Likewise.
5993         (aq10h_operand): Likewise.
5994         (aq10w_operand): Likewise.
5995         (aq10d_operand): Likewise.
5996         (const_m1_operand): Likewise.
5997         (reg_or_m1_operand): Likewise.
5998         (const_exp_2_operand): Likewise.
5999         (const_exp_4_operand): Likewise.
6000         (const_exp_8_operand): Likewise.
6001         (const_exp_16_operand): Likewise.
6002         (const_vector_same_val_operand): Likewise.
6003         (const_vector_same_simm5_operand): Likewise.
6004         (const_vector_same_uimm5_operand): Likewise.
6005         (const_vector_same_uimm6_operand): Likewise.
6006         (const_vector_same_uimm8_operand): Likewise.
6007         (par_const_vector_shf_set_operand): Likewise.
6008         (reg_or_vector_same_val_operand): Likewise.
6009         (reg_or_vector_same_simm5_operand): Likewise.
6010         (reg_or_vector_same_uimm6_operand): Likewise.
6011         * doc/extend.texi (MIPS SIMD Architecture Functions): New
6012         section.
6013         * doc/invoke.texi (-mmsa): Document new option.
6015 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6017         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
6018         * configure: Regenerate.
6019         * config.in: Regenerate.
6020         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
6021         on -fvtable-verify.
6022         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
6023         (ENDFILE_VTV_SPEC): Define.
6025 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
6027         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
6028         registers in all interrupt handlers if necessary.
6029         (rl78_option_override): Add warning.
6030         (MUST_SAVE_MDUC_REGISTERS): New macro.
6031         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
6032         * config/rl78/rl78.c (check_mduc_usage): New function.
6033         (mduc_regs): New structure to hold MDUC register data.
6034         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
6035         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
6036         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
6037         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
6038         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
6039         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
6041 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
6043         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
6044         (tree-ssa-loop-niter.h): Ditto.
6045         (idx_within_array_bound, ref_within_array_bound): New functions.
6046         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
6047         Factor out check on writable base object to ...
6048         (base_object_writable): ... here.
6050 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6052         * config/arm/arm.md (probe_stack): Add modes to set source
6053         and destination.
6055 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
6057         * regrename.c (base_reg_class_for_rename): New static function.
6058         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
6060 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
6062         * cgraph.c (thunk_adjust): Export.
6063         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
6064         * cgraphunit.c (thunk_adjust): Export.
6065         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
6066         thunks.
6067         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
6068         inlinable.
6069         * tree-inline.c (expand_call_inline): Expand thunks inline.
6071 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
6073         PR target/70998
6074         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
6075         (*sse2_vd_cvtss2sd): Ditto.
6076         * config/i386/i386.md
6077         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
6078         Generate *sse2_vd_cvtsd2ss pattern.
6079         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
6080         Generate *sse2_vd_cvtss2sd pattern.
6082 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
6084         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
6085         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
6086         users.
6088 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
6090         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
6091         * config/sh/sh.c: Define and declare variables on first use throughout
6092         the file.
6093         (current_function_interrupt): Change to bool type.
6094         (frame_insn): Rename to emit_frame_insn and update users.
6095         (push_regs): Use bool for 'interrupt_handler' argument.
6096         (save_schedule_s): Remove.
6097         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
6098         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
6099         targetm.asm_out.unaligned_op.di.
6100         (gen_far_branch): Remove redundant forward declaration.
6101         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
6102         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
6103         (sh_set_return_address, sh_function_ok_for_sibcall,
6104         scavenge_reg): Update comments.
6105         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
6106         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
6107         (sh_attr_renesas_p): Remove unnecessary parentheses.
6108         (branch_dest): Simplify.
6109         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
6110         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
6111         (CUMULATIVE_ARGS): Change macro to typedef.
6112         (current_function_interrupt): Change to bool type.
6113         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
6114         Surround with __cplusplus ifdef.
6115         (sh_compare_op0, sh_compare_op1): Remove.
6116         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
6118 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
6120         * config/arm/arm.md: (arch): Add neon.
6121         (arch_enabled): Return yes for arch neon when TARGET_NEON.
6122         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
6123         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
6124         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
6125         attributes for alt renumbering.  Mark alt 3 as non-predicable.
6126         (thumb2_movdf_vfp): Likewise.
6128 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
6130         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
6131         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
6132         (*andqi_1): Add preferred_for_speed attribute to disparage
6133         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
6134         (*<code>qi_1): Ditto.
6135         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
6136         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
6137         (*ashlqi3_1): Ditto.
6138         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
6139         Add preferred_for_size attribute to disparage alternative 0 and
6140         preferred_for_speed attribute to disparage alternative 1 for
6141         TARGET_PARTIAL_REG_STALL targets.
6143 2016-05-07  Tom de Vries  <tom@codesourcery.com>
6145         PR tree-optimization/70956
6146         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
6147         def.
6149 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
6151         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
6152         * config/sh/sh.c (sh_cbranch_distance): Implement it.
6153         * config/sh/sh.md (branch_zero): Remove define_attr.
6154         (define_delay): Disable delay slot if branch distance is one insn.
6156 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
6158         * config/i386/i386.md (LEAMODE): New mode attribute.
6159         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
6160         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
6161         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
6162         operand 2 predicate.
6163         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
6164         (*lea<mode>_general_3): Ditto.
6165         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
6167 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
6169         * genmddump.c (main): Convert argv from char ** to const char **.
6171 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
6173         * coretypes.h (OVERRIDE): New macro.
6174         (FINAL): New macro.
6176 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
6178         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
6179         allow coalescing if the types are compatible.
6181 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
6183         * pass_manager.h (pass_manager::register_pass_name): New method.
6184         (pass_manager::get_pass_by_name): New method.
6185         (pass_manager::create_pass_tab): New method.
6186         (pass_manager::m_name_to_pass_map): New field.
6187         * passes.c (name_to_pass_map): Delete global in favor of field
6188         "m_name_to_pass_map" of pass_manager.
6189         (register_pass_name): Rename from a function to...
6190         (pass_manager::register_pass_name): ...this method, updating
6191         for renaming of global "name_to_pass_map" to field
6192         "m_name_to_pass_map".
6193         (create_pass_tab): Rename from a function to...
6194         (pass_manager::create_pass_tab): ...this method, updating
6195         for renaming of global "name_to_pass_map" to field.
6196         (get_pass_by_name): Rename from a function to...
6197         (pass_manager::get_pass_by_name): ...this method.
6198         (enable_disable_pass): Convert use of get_pass_by_name to
6199         a method call, locating the pass_manager singleton.
6201 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
6203         * genattr-common.c (main): Convert argv from char ** to const char **.
6204         * genattr.c (main): Likewise.
6205         * genattrtab.c (main): Likewise.
6206         * genautomata.c (initiate_automaton_gen): Likewise.
6207         (main): Likewise.
6208         * gencodes.c (main): Likewise.
6209         * genconditions.c (main): Likewise.
6210         * genconfig.c (main): Likewise.
6211         * genconstants.c (main): Likewise.
6212         * genemit.c (main): Likewise.
6213         * genenums.c (main): Likewise.
6214         * genextract.c (main): Likewise.
6215         * genflags.c (main): Likewise.
6216         * genmddeps.c (main): Likewise.
6217         * genopinit.c (main): Likewise.
6218         * genoutput.c (main): Likewise.
6219         * genpeep.c (main): Likewise.
6220         * genpreds.c (main): Likewise.
6221         * genrecog.c (main): Likewise.
6222         * gensupport.c (init_rtx_reader_args_cb): Likewise.
6223         (init_rtx_reader_args): Likewise.
6224         * gensupport.h (init_rtx_reader_args_cb): Likewise.
6225         (init_rtx_reader_args): Likewise.
6226         * gentarget-def.c (main): Likewise.
6227         * read-md.c (read_md_files): Likewise.
6228         * read-md.h (read_md_files): Likewise.
6230 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
6232         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
6233         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
6234         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
6235         Remove unused predicate.
6236         (register_and_not_fp_reg_operand): Ditto.
6238 2016-05-06  Martin Liska  <mliska@suse.cz>
6240         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
6241         instead of vec as the vector is local to the function.
6243 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
6245         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
6246         avx512bw alternative.
6248         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
6249         before the ashr<mode>3 pattern.
6251         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
6252         v instead of x in vex or maybe_vex alternatives, use
6253         maybe_evex instead of vex in prefix.
6255         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
6256         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
6257         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
6258         in vex or maybe_vex alternatives, use maybe_evex instead of vex
6259         in prefix.
6261         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
6262         v instead of x in vex or maybe_vex alternatives, use
6263         maybe_evex instead of vex in prefix.
6265         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
6266         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
6267         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
6268         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
6269         alternatives, use maybe_evex instead of vex in prefix.
6271         * config/i386/sse.md (vec_interleave_lowv4sf,
6272         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
6273         v instead of x in vex or maybe_vex alternatives, use
6274         maybe_evex instead of vex in prefix.
6276         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
6277         v instead of x in vex or maybe_vex alternatives, use
6278         maybe_evex instead of vex in prefix.
6280         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
6281         v constraint instead of x.
6283 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
6285         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
6286         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
6287         equality first.
6289 2016-05-06  Richard Biener  <rguenther@suse.de>
6291         PR tree-optimization/70948
6292         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6293         Properly clobber all fields of va_list for __builtin_va_start.
6295 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
6297         PR debug/70935
6298         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
6299         loop latch destination.
6301 2016-05-06  Martin Liska  <mliska@suse.cz>
6303         * tree-ssa-uninit.c: Apply manual changes
6304         to the GNU coding style.
6305         (prune_uninit_phi_opnds): Rename from
6306         prune_uninit_phi_opnds_in_unrealizable_paths.
6308 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6310         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
6311         mspace): Remove deprecated options.
6312         * doc/invoke.texi (SH options): Remove -mspace.
6314 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6316         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
6318 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6320         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
6321         corresponding combine split pattern.
6323 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6325         PR target/58219
6326         * config/sh/predicates.md (long_displacement_mem_operand): New.
6327         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
6328         Add movi20, movi20s alternatives.  Adjust length attribute for
6329         alternatives.
6330         (movsi_ie): Allow for any FPU.  Adjust length attribute for
6331         alternatives.
6332         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
6333         attribute for alternatives.
6334         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
6335         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
6336         length attribute for alternatives.
6338 2016-05-06  Richard Biener  <rguenther@suse.de>
6340         PR tree-optimization/70960
6341         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
6343 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6345         PR target/52933
6346         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
6347         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
6349 2016-05-06  Marek Polacek  <polacek@redhat.com>
6351         PR sanitizer/70875
6352         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
6354 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6356         PR target/54089
6357         * config/sh/sh.md (*rotcr): Add another variant.
6359 2016-05-06  Richard Biener  <rguenther@suse.de>
6361         PR middle-end/70931
6362         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
6364 2016-05-06  Richard Biener  <rguenther@suse.de>
6366         PR middle-end/70941
6367         * fold-const.c (split_tree): Always convert to the original type
6368         before negating.
6370 2016-05-06  Richard Biener  <rguenther@suse.de>
6372         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
6373         (fwprop_addr): Likewise.
6375 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
6377         PR target/70873
6378         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
6379         New prototype.
6380         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
6381         * config/i386/i386.md (push mem splitter): Use find_constant_src in
6382         the splitter condition.
6383         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
6384         the splitter condition.
6385         (FP float_extend load splitter): Ditto.
6387 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
6389         * config/i386/i386.md (peehole2 patterns): Change true_regnum
6390         to REGNO in all peephole2 patterns.
6391         (post-reload splitters): Change true_regnum to REGNO in
6392         post-reload splitters.
6393         (zero_extend splitters): Use general_reg_operand and
6394         nonimmediate_gr_operand predicates.
6396 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
6398         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
6399         v constraint instead of x.
6401 2016-05-05  Alan Modra  <amodra@gmail.com>
6403         PR target/68662
6404         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
6405         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
6406         TARGET_NO_FP_IN_TOC for -mrelocatable.
6407         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
6408         TARGET_RELOCATABLE test.
6409         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6410         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
6411         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
6412         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6413         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
6414         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
6415         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6416         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
6417         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
6418         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
6419         Likewise.
6420         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
6421         (rs6000_stack_info): Likewise.
6422         (rs6000_elf_asm_out_constructor): Likewise.
6423         (rs6000_elf_asm_out_destructor): Likewise.
6424         (rs6000_elf_declare_function_name): Likewise.
6425         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
6426         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
6427         Don't define.
6429 2016-05-05  Alan Modra  <amodra@gmail.com>
6431         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
6433 2016-05-05  Alan Modra  <amodra@gmail.com>
6435         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
6436         out-of-line gpr restore for one or two regs if that would add
6437         a save of lr.
6439 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
6441         PR target/70873
6442         * config/i386/i386.md
6443         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
6444         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
6445         as operand 0 predicate.
6446         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
6447         Ditto.
6448         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
6449         Ditto.  Emit the pattern using RTX.
6451         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
6452         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
6453         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
6454         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
6455         Ditto.
6456         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
6457         sse_reg_operand as operand 0 predicate.
6459         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
6460         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
6461         instead of gen_rtx_REG.
6462         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
6463         Ditto.
6465 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
6467         * function.c (emit_use_return_register_into_block): Delete.
6468         (gen_return_pattern): Delete.
6469         (emit_return_into_block): Delete.
6470         (active_insn_between): Delete.
6471         (convert_jumps_to_returns): Delete.
6472         (emit_return_for_exit): Delete.
6473         (thread_prologue_and_epilogue_insns): Delete all code dealing with
6474         simple_return for shrink-wrapped blocks.
6475         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
6476         end of blocks that need one.
6477         (get_unconverted_simple_return): Delete.
6478         (convert_to_simple_return): Delete.
6479         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
6480         (convert_to_simple_return): Ditto.
6482 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
6484         * cfgcleanup.c (bb_is_just_return): New function.
6485         (try_optimize_cfg): Simplify jumps to return, branches to return,
6486         and branches around return.
6488 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
6490         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
6491         branch to a return.
6493 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
6495         PR c++/70906
6496         PR c++/70933
6497         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
6498         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
6499         assert flags & OEP_HASH_CHECK, instead of asserting it
6500         never happens.  Handle TARGET_EXPR.
6501         * fold-const.c (operand_equal_p): For hash verification,
6502         or in OEP_HASH_CHECK into flags.
6504 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
6506         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
6507         comment.
6508         (compute_samebase_partition_bases): Fix typo.
6510 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
6512         * config/i386/sse.md (vec_interleave_highv8sf,
6513         vec_interleave_lowv8sf, vec_interleave_highv4df,
6514         vec_interleave_lowv4df): Remove constraints from expanders.
6516         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
6518 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
6520         * tree-inline.c (expand_call_inline): Fix path dealing with
6521         making lhs of call statement undefined.
6523 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
6525         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
6526         Check availability on NODE, too.
6527         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
6528         (cgraph_node::call_for_symbol_and_aliases): Likewise.
6529         (varpool_node::call_for_symbol_and_aliase): Likewise.
6530         * ipa-pure-const.c (add_new_function): Analyze all bodies.
6531         (propagate_pure_const): Propagate across interposable functions, too.
6532         (skip_function_for_local_pure_const): Do not skip interposable bodies
6533         with aliases.
6534         (pass_local_pure_const::execute): Update.
6536 2016-05-04  Marek Polacek  <polacek@redhat.com>
6538         * doc/invoke.texi: Document -Wdangling-else.
6540 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6542         * config.gcc: Error out when conflicting multilib is detected.  Do not
6543         loop over multilibs since no combination is legal.
6545 2016-05-04  Alan Modra  <amodra@gmail.com>
6547         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
6548         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
6549         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
6550         Align .toc.
6552 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
6554         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
6555         Clean up p5600 comments.
6557 2016-05-04  Richard Biener  <rguenther@suse.de>
6559         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
6560         constructor simplifications.
6561         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
6563 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
6565         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
6566         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
6567         result.set_rtx is null instead of aborting.
6568         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
6569         Always enable.
6570         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
6571         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
6572         *mov<mode>_store_postinc): New patterns.
6574 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
6576         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
6577         as commutative.  Check both conversions are NOP.
6578         ((A & B) OP (C & B)): Remove.
6580 2016-05-04  Alan Modra  <amodra@gmail.com>
6582         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
6584 2016-05-04  Alan Modra  <amodra@gmail.com>
6586         PR target/70866
6587         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
6588         when cr2,3,4 are all fixed regs.
6590 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
6592         PR rtl-optimization/57193
6593         * opts.c (default_options_table): Revert OPT_frename_registers change.
6594         * doc/invoke.texi (-frename-registers, -O2): Likewise.
6596 2016-05-03  Martin Sebor  <msebor@redhat.com>
6598         PR c++/66561
6599         * builtins.c (fold_builtin_FILE): New function.
6600         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
6601         (fold_builtin_0): Call them.
6602         * gimplify.c (gimplify_call_expr): Remove the handling of
6603         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
6605         PR c++/66561
6606         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
6607         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
6608         constants.
6610         PR c++/66639
6611         * doc/extend.texi (Function Names as Strings): Update __func__,
6612         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
6613         constants.
6615 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6616             Richard Biener  <rguenther@suse.de>
6618         PR tree-optimization/70916
6619         * tree-if-conv.c: Include cfganal.h.
6620         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
6621         and remove_fake_exit_edges around the optimization pass.
6623 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
6625         * cgraph.c (symbol_table::create_edge): Set inline_failed.
6626         (cgraph_edge::make_direct): Likewise.
6627         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
6628         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
6629         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
6630         (CIF_THUNK): New code.
6631         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
6632         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
6633         (compute_inline_parameters): Set inline_failed for thunks.
6634         (inline_analyze_function): Cleanup.
6635         * ipa-inline.c (can_inline_edge_p): Do not deal with
6636         call_stmt_cannot_inline_p.
6637         (can_early_inline_edge_p): Likewise.
6638         (early_inliner): Initialize inline_failed.
6639         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
6641 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
6643         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
6644         from nonimm_ssenomem_operand.
6645         (nonimm_ssenomem_operand): New predicate.
6646         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
6647         as operand 0 predicate.
6648         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
6649         Disable unsupported alternatives using "enabled" attribute.
6650         Use register_ssemem_operand as operand 0 predicate.
6651         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
6653 2016-05-03  Marek Polacek  <polacek@redhat.com>
6655         PR c/70859
6656         * input.c (expansion_point_location): New function.
6657         * input.h (expansion_point_location): Declare.
6659 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
6661         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
6662         occurence with frame_offset_ ones.
6664 2016-05-03  Alan Modra  <amodra@gmail.com>
6666         PR rtl-optimization/70890
6667         * ira.c (combine_and_move_insns): When moving def_insn, remove
6668         equivs on use_insn.
6670 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6672         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
6673         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
6674         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
6675         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
6677 2016-05-03  Alan Modra  <amodra@gmail.com>
6679         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
6680         for SAVE_MULTIPLE/STORE_MULTIPLE.
6682 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6684         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
6685         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
6687 2016-05-03  Richard Biener  <rguenther@suse.de>
6689         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
6690         default true.
6691         (gimplify_arg): Likewise.
6692         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
6693         re-writing the result to a decl if required.
6694         (internal_get_tmp_var): Add allow_ssa parameter
6695         and override into_ssa with it.
6696         (get_formal_tmp_var): Adjust.
6697         (get_initialized_tmp_var): Add allow_ssa parameter.
6698         (gimplify_arg): Add allow_ssa parameter and avoid generating
6699         SSA names for the result false.
6700         (gimplify_call_expr): If the call may return twice do not
6701         gimplify parameters into SSA.
6702         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
6703         (gimplify_modify_expr): Adjust assert.  For noreturn calls
6704         with a SSA name LHS adjust its def.
6705         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
6706         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
6707         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
6708         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
6709         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
6710         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
6711         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
6712         (optimize_target_teams): Do not allow SSA names for clause operands.
6713         (gimplify_expr): Likewise for where we mark the result addressable.
6714         * passes.def (pass_init_datastructures): Remove.
6715         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
6716         (rewrite_stmt): Likewise.
6717         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
6718         (replace_locals_op): Replace SSA names.
6719         (copy_gimple_seq_and_replace_locals): Init src_cfun.
6720         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
6721         * cgraph.c (release_function_body): Free CFG annotations only
6722         when we have a CFG.  Simplify.
6723         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
6724         force_gimple_operand instead of get_initialized_tmp_var.
6725         * tree-pass.h (make_pass_init_datastructures): Remove.
6726         * tree-ssa.c (execute_init_datastructures): Remove.
6727         (pass_data_init_datastructures): Likewise.
6728         (class pass_init_datastructures): Likewise.
6729         (make_pass_init_datastructures): Likewise.
6730         * omp-low.c (create_omp_child_function): Init SSA data structures.
6731         (grid_expand_target_grid_body): Likewise.
6732         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
6733         name before adding it to names_to_release.
6734         (remove_bb): Always release SSA defs.
6735         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
6736         before dereferencing it.
6737         * cgraphunit.c (init_lowered_empty_function): Always
6738         int SSA data structures.
6739         * tree-ssanames.c (release_defs): Remove assert that we are in
6740         SSA form.
6741         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
6743 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6744             Uros Bizjak  <ubizjak@gmail.com>
6746         PR rtl-optimization/70467
6747         * config/i386/predicates.md (x86_64_hilo_int_operand,
6748         x86_64_hilo_general_operand): New predicates.
6749         * config/i386/constraints.md (Wd): New constraint.
6750         * config/i386/i386.md (mode attr di): Use Wd instead of e.
6751         (general_hilo_operand): New mode attr.
6752         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
6753         instead of <general_operand>.
6754         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
6755         x86_64_hilo_general_operand instead of <general_operand>.
6757 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6759         PR tree-optimization/70916
6760         * tree-if-conv.c (constant_or_ssa_name): Removed.
6761         (fold_build_cond_expr): Use is_gimple_val instead of
6762         constant_or_ssa_name.
6764         PR tree-optimization/70916
6765         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
6766         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
6768         PR target/49244
6769         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
6770         (optimize_atomic_bit_test_and): New function.
6771         (pass_fold_builtins::execute): Use it.
6772         * optabs.def (atomic_bit_test_and_set_optab,
6773         atomic_bit_test_and_complement_optab,
6774         atomic_bit_test_and_reset_optab): New optabs.
6775         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
6776         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
6777         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
6778         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
6779         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
6780         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
6781         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
6782         * doc/md.texi (atomic_bit_test_and_set@var{mode},
6783         atomic_bit_test_and_complement@var{mode},
6784         atomic_bit_test_and_reset@var{mode}): Document.
6785         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
6786         atomic_bit_test_and_complement<mode>,
6787         atomic_bit_test_and_reset<mode>): New expanders.
6788         (atomic_bit_test_and_set<mode>_1,
6789         atomic_bit_test_and_complement<mode>_1,
6790         atomic_bit_test_and_reset<mode>_1): New insns.
6792 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
6794         PR rtl-optimization/70687
6795         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
6796         instead of unsigned HOST_WIDE_INT.
6798 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
6800         PR rtl-optimization/44281
6801         * hard-reg-set.h (struct target_hard_regs): New field
6802         x_fixed_nonglobal_reg_set.
6803         (fixed_nonglobal_reg_set): New macro.
6804         * reginfo.c (init_reg_sets_1): Initialize it.
6805         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
6806         of fixed_reg_set.
6807         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
6809 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6811         PR tree-optimization/56541
6812         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
6813         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
6814         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
6815         (any_complicated_phi): new static variable.
6816         (aggressive_if_conv): delete.
6817         (if_convertible_phi_p): support phis with more than two arguments.
6818         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
6819         critical pred edges.
6820         (ifcvt_split_critical_edges): support phis with more than two
6821         arguments by checking new parameter.  only split critical edges
6822         if needed.
6823         (tree_if_conversion): handle simd pragma marked loop using new
6824         local variable aggressive_if_conv.  check any_complicated_phi.
6826 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6828         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
6829         before using it.
6831 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6833         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
6834         cbase.
6836 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
6838         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
6839         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
6840         define_insn_and_split.
6841         (mulsi3_i): New define_insn_and_split.
6842         (mulsi3_call): Convert to define_insn.
6843         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
6844         Remove constraints.
6846 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6848         * machmode.h (mode_complex): Add support to give the complex mode
6849         for a given mode.
6850         (GET_MODE_COMPLEX_MODE): Likewise.
6851         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
6852         stored by build_complex_type and gfc_build_complex_type instead of
6853         trying to figure out the appropriate mode based on the size. Raise
6854         an assertion error, if the type was not set.
6855         * genmodes.c (struct mode_data): Add field for the complex type of
6856         the given type.
6857         (blank_mode): Likewise.
6858         (make_complex_modes): Remember the complex mode created in the
6859         base type.
6860         (emit_mode_complex): Write out the mode_complex array to map a
6861         type mode to the complex version.
6862         (emit_insn_modes_c): Likewise.
6863         * tree.c (build_complex_type): Set the complex type to use before
6864         calling layout_type.
6865         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
6866         support for __float128 complex datatypes.
6867         (rs6000_hard_regno_mode_ok): Likewise.
6868         (rs6000_setup_reg_addr_masks): Likewise.
6869         (rs6000_complex_function_value): Likewise.
6870         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
6871         __float128 and __ibm128 complex.
6872         (FLOAT128_IBM_P): Likewise.
6873         (ALTIVEC_ARG_MAX_RETURN): Likewise.
6874         * doc/extend.texi (Additional Floating Types): Document that
6875         -mfloat128 must be used to enable __float128.  Document complex
6876         __float128 and __ibm128 support.
6878 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
6880         PR target/49244
6881         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
6882         char/short arguments promoted to int because of promote_prototypes.
6884 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
6886         * config/i386/predicates.md (register_ssemem_operand): New predicate.
6887         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
6888         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
6889         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
6890         alternatives using "enabled" attribute.  Use register_ssemem_operand
6891         as operand 1 predicate.
6892         (*cmpi<unord>xf_i387): Split XFmode pattern from
6893         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
6894         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
6895         *absneg<mode>2_i387.  Disable unsupported alternatives using
6896         "enabled" attribute.
6897         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
6899 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
6901         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
6902         marker.
6903         (oacc_loop_process): Check mask for loop termination.
6905 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
6907         * cif-code.def (CIF_THUNK): Add.
6908         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
6909         accidental change.
6911 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
6913         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
6914         (dump_inline_summary): Dump it.
6915         (fp_expression_p): New predicate.
6916         (estimate_function_body_sizes): Use it.
6917         (inline_merge_summary): Merge fp_expressions.
6918         (inline_read_section): Read fp_expressions.
6919         (inline_write_summary): Write fp_expressions.
6920         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
6921         codegen boundary if either caller or callee is !fp_expressions.
6922         * ipa-inline.h (inline_summary): Add fp_expressions.
6923         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
6924         to fp_expressions be sure the fp generation flags are updated.
6926 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
6928         PR rtl-optimization/70467
6929         * cse.c (cse_insn): Handle no-op MEM moves after folding.
6931         PR rtl-optimization/70467
6932         * ipa-pure-const.c (check_call): Handle internal calls even in
6933         ipa mode like in local mode.
6935 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6937         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
6939 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
6941         * match.pd (X u< X, X u> X): New transformations.
6943 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
6945         * flag-types.h (enum warn_strict_overflow_code): Move ...
6946         * coretypes.h: ... here.
6947         * fold-const.h (fold_overflow_warning): Declare.
6948         * fold-const.c (fold_overflow_warning): Make non-static.
6949         (fold_comparison): Move the transformation of X +- C1 CMP C2
6950         into X CMP C2 -+ C1 ...
6951         * match.pd: ... here.
6952         * gimple-fold.c (fold_stmt_1): Protect with
6953         fold_defer_overflow_warnings.
6955 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
6957         * omp-low.c (struct oacc_loop): Add 'inner' field.
6958         (new_oacc_loop_raw): Initialize it to zero.
6959         (oacc_loop_fixed_partitions): Initialize it.
6960         (oacc_loop_auto_partitions): Partition outermost loop to outermost
6961         available partitioning.
6963 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
6965         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
6966         register_operand.
6967         (umulsidi3): Likewise.
6968         (indirect_jump): Fix jump instruction assembly patterns.
6970 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
6972         PR target/70860
6973         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
6974         (nvptx_function_value): Assert non-NULL cfun.
6976 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
6978         PR rtl-optimization/70886
6979         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
6981         * cselib.h (rtx_equal_for_cselib_1): Declare.
6982         (rtx_equal_for_cselib_p: New inline function.
6983         * cselib.c (rtx_equal_for_cselib_p): Delete.
6984         (rtx_equal_for_cselib_1): Make public.
6986 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
6988         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
6989         (register_mixssei387nonimm_operand): Remove predicate.
6990         * config/i386/i386.md (*fop_<mode>_comm): Merge from
6991         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
6992         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
6993         for TARGET_MIX_SSE_I387 alternatives.
6994         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
6995         Disable unsupported alternatives using "enabled" attribute.  Use
6996         nonimm_ssenomem_operand as operand 1 predicate.  Also check
6997         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
6999 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
7001         * tree.c (cst_and_fits_in_hwi): Simplify.
7003 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
7005         * tree.h (wi::to_wide): New function.
7006         * expr.c (expand_expr_real_1): Use wi::to_wide.
7007         * fold-const.c (int_const_binop_1): Likewise.
7008         (extract_muldiv_1): Likewise.
7010 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
7012         * wide-int.h: Update offset_int and widest_int documentation.
7013         (WI_SIGNED_SHIFT_RESULT): New macro.
7014         (wi::binary_shift): Define signed_shift_result_type for
7015         shifts on offset_int- and widest_int-like types.
7016         (generic_wide_int): Support <<= and >>= if << and >> are supported.
7017         * tree.h (int_bit_position): Use shift operators instead of wi::
7018          shifts.
7019         * alias.c (adjust_offset_for_component_ref): Likewise.
7020         * expr.c (get_inner_reference): Likewise.
7021         * fold-const.c (fold_comparison): Likewise.
7022         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
7023         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
7024         * tree-dfa.c (get_ref_base_and_extent): Likewise.
7025         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
7026         (stmt_kills_ref_p): Likewise.
7027         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
7028         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
7029         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7030         (ao_ref_init_from_vn_reference): Likewise.
7032 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
7034         * wide-int.h: Update offset_int and widest_int documentation.
7035         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
7036         (wi::binary_traits): Allow ordered comparisons between offset_int and
7037         offset_int, between widest_int and widest_int, and between either
7038         of these types and basic C types.
7039         (operator <, <=, >, >=): Define for the same combinations.
7040         * tree.h (tree_int_cst_lt): Use comparison operators instead
7041         of wi:: comparisons.
7042         (tree_int_cst_le): Likewise.
7043         * gimple-fold.c (fold_array_ctor_reference): Likewise.
7044         (fold_nonarray_ctor_reference): Likewise.
7045         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
7046         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
7047         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
7048         * tree-sra.c (completely_scalarize): Likewise.
7049         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
7050         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
7051         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
7052         (check_for_binary_op_overflow): Likewise.
7053         (search_for_addr_array): Likewise.
7054         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
7056 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
7058         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
7059         (arc_save_restore): Likewise.
7060         (arc_dwarf_register_span): Likewise.
7061         (arc_output_pic_addr_const): Initialize suffix variable.
7063 2016-05-02  Martin Liska  <mliska@suse.cz>
7065         * symbol-summary.h (function_summary::function_summary):
7066         Remove checking assert for all cgraph nodes.
7067         (function_summary::get): Check summary_uid.
7068         (symtab_insertion): Check summary_uid.
7070 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
7072         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
7073         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
7074         bmaskn instruction.
7075         (arc_dwarf_register_span): Remove enum keyword.
7076         (compact_memory_operand_p): New function.
7077         * config/arc/arc.h (reg_class): Add code density register classes.
7078         (REG_CLASS_NAMES): Likewise.
7079         (REG_CLASS_CONTENTS): Likewise.
7080         * config/arc/arc.md (*movqi_insn): Add code density instructions.
7081         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
7082         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
7083         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
7084         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
7085         constraints.
7086         (h, Rcd, Rsd, Rzd): New register constraints.
7087         (T): Use compact_memory_operand_p function.
7088         * config/arc/predicates.md (compact_load_memory_operand): Remove.
7090 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
7092         * config/sh/sh.md (*negnegt, *movtt): Remove.
7094 2016-05-02  Marek Polacek  <polacek@redhat.com>
7095             Tom de Vries  <tom@codesourcery.com>
7097         PR tree-optimization/70700
7098         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
7099         bigger than FIRST_REF_NODE.
7101 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
7103         PR target/52898
7104         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
7105         TARGET_CMPEQDI_T.
7106         (prepare_cbranch_operands): Don't use scratch register.  Assume that
7107         function is used when pseudos can be created.
7108         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
7109         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
7110         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
7111         define_expand.  Allow it only when pseudos can be created.
7112         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
7114 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
7116         * config/i386/constraints.md (BC): Only allow -1 operands.
7117         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
7118         Add "enabled" attribute.  Update XI mode attribute calculation.
7119         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
7120         (*movoi_internal_avx): Update XI mode attribute calculation.
7121         (*movti_internal): Ditto.
7123 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
7125         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
7126         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
7128 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
7130         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
7131         statement on instruction code.  Remove trailing spaces.
7132         (altivec_expand_stv_builtin): Likewise.
7134 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
7136         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
7137         (TARGET_FPU_DOUBLE): Simplify.
7138         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
7139         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
7140         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
7141         with 'TARGET_FPU_DOUBLE'.
7142         * config/sh/sh.md: Likewise.
7144 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
7146         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
7147         SH_DIV_STR_FOR_SIZE): Remove.
7148         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
7149         SH_DIV_STR_FOR_SIZE): Remove.
7151 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
7153         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
7154         logical_reg_operand): Delete.
7155         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
7156         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
7157         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
7158         match_operand and match_test.
7159         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
7160         variables on their first use.  Return bool values.
7161         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
7162         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
7163         arith_reg_operand for input operand.  Remove empty constraints.
7164         (xorsi3): Delete.
7165         (*xorsi3_compact): Rename to xorsi3.
7166         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
7167         (*zero_extend<mode>si2_disp_mem): Update comment.
7168         (mov_nop): Delete.
7170 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
7172         * config/sh/t-sh: Remove SH5 support.
7173         * config.gcc: Likewise.
7174         * configure: Likewise.
7176 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7178         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
7180 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
7182         * config/sh/sh.c (register_sh_passes, sh_option_override,
7183         sh_print_operand, prepare_move_operands,
7184         sh_can_follow_jump): Remove TARGET_SH1 checks.
7185         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
7186         PROMOTE_MODE): Likewise.
7187         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
7188         movdi): Likewise.
7190 2016-04-30  Alan Modra  <amodra@gmail.com>
7192         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
7193         restoring when fixed_reg_p, but allow out-of-line or stmw save.
7194         Check for user regs later to avoid unnecessary looping over regs.
7195         Merge user reg check with non-saved reg check.  Don't force
7196         inline VR restore when static chain used.
7197         (rs6000_frame_related): Omit eh_frame info for user regs when
7198         saving.
7199         (fixed_regs_p): Delete.
7201 2016-04-30  Alan Modra  <amodra@gmail.com>
7203         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
7204         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
7205         Update all uses.
7207 2016-04-30  Alan Modra  <amodra@gmail.com>
7209         PR target/69645
7210         * config/rs6000/rs6000.c (fixed_reg_p): New function.
7211         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
7212         Update all uses.
7214 2016-04-30  Alan Modra  <amodra@gmail.com>
7216         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
7217         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
7218         flag_pic test for Darwin.
7220 2016-04-30  Alan Modra  <amodra@gmail.com>
7222         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
7223         throw_calls_crossed.
7224         (REG_FREQ_CALLS_CROSSED): Delete.
7225         (REG_N_THROWING_CALLS_CROSSED): Delete.
7226         * regstat.c (regstat_bb_compute_ri): Don't calculate
7227         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
7228         (dump_reg_info): Don't print call cross frequency.
7229         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
7230         and REG_N_THROWING_CALLS_CROSSED.
7232 2016-04-30  Alan Modra  <amodra@gmail.com>
7234         * regs.h (struct reg_info_t): Delete live_length.
7235         (REG_LIVE_LENGTH): Delete macro.
7236         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
7237         local_live, local_processed and local_live_last_luid params.
7238         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
7239         Formatting fixes.
7240         (regstat_compute_ri): Adjust for above.  Don't set
7241         REG_LIVE_LENGTH.
7242         (dump_reg_info): Don't print live length.
7243         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
7244         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
7245         Localize loop_depth var.
7247 2016-04-30  Alan Modra  <amodra@gmail.com>
7249         * ira.c (enum valid_equiv): New.
7250         (validate_equiv_mem): Return enum.
7251         (update_equiv_mem): Create replacement in more cases.
7252         (add_store_equivs): Update validate_equiv_mem call.
7254 2016-04-30  Alan Modra  <amodra@gmail.com>
7256         * ira.c (combine_and_move_insns): Rather than scanning insns,
7257         use DF infrastucture to find use and def insns.
7259 2016-04-30  Alan Modra  <amodra@gmail.com>
7261         ira.c (combine_and_move_insns): Move invariant conditions..
7262         (ira.c): ..to here.  Call combine_and_move_insns before
7263         add_store_equivs.  Call grow_reg_equivs later.  Allocate
7264         req_equiv later using max_reg_num() rather than global max_regno.
7265         (contains_replace_regs): Delete.
7266         (add_store_equivs): Remove contains_replace_regs test.
7268 2016-04-30  Alan Modra  <amodra@gmail.com>
7270         * ira.c (struct equiv_mem_data): New.
7271         (equiv_mem, equiv_mem_modified): Delete static vars.
7272         (validate_equiv_mem_from_store): Use "data" param to communicate..
7273         (validate_equiv_mem): ..from here.
7275 2016-04-30  Alan Modra  <amodra@gmail.com>
7277         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
7278         split out from..
7279         (update_reg_equivs): ..here.  Move allocation and freeing of
7280         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
7281         end_alias_analysis to..
7282         (ira): ..here.
7284 2016-04-30  Alan Modra  <amodra@gmail.com>
7286         * ira.c (pdx_subregs): Delete.
7287         (struct equivalence): Add pdx_subregs field.
7288         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
7289         pdx_subregs access.
7290         (update_equiv_regs): Don't create or free pdx_subregs.  Update
7291         pdx_subregs access.
7293 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7295         * config/rs6000/altivec.h: Change definitions of vec_xl and
7296         vec_xst.
7297         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
7298         (LD_ELEMREV_V2DI): New.
7299         (LD_ELEMREV_V4SF): New.
7300         (LD_ELEMREV_V4SI): New.
7301         (LD_ELEMREV_V8HI): New.
7302         (LD_ELEMREV_V16QI): New.
7303         (ST_ELEMREV_V2DF): New.
7304         (ST_ELEMREV_V2DI): New.
7305         (ST_ELEMREV_V4SF): New.
7306         (ST_ELEMREV_V4SI): New.
7307         (ST_ELEMREV_V8HI): New.
7308         (ST_ELEMREV_V16QI): New.
7309         (XL): New.
7310         (XST): New.
7311         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7312         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
7313         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
7314         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
7315         (altivec_expand_builtin): Add handling for
7316         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
7317         (rs6000_invalid_builtin): Add error-checking for
7318         RS6000_BTM_P9_VECTOR.
7319         (altivec_init_builtins): Define builtins used to implement vec_xl
7320         and vec_xst.
7321         (rs6000_builtin_mask_names): Define power9-vector.
7322         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
7323         (RS6000_BTM_P9_VECTOR): Define.
7324         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
7325         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
7326         (vsx_ld_elemrev_v2df): Likewise.
7327         (vsx_ld_elemrev_v4sf): Likewise.
7328         (vsx_ld_elemrev_v4si): Likewise.
7329         (vsx_ld_elemrev_v8hi): Likewise.
7330         (vsx_ld_elemrev_v16qi): Likewise.
7331         (vsx_st_elemrev_v2df): Likewise.
7332         (vsx_st_elemrev_v2di): Likewise.
7333         (vsx_st_elemrev_v4sf): Likewise.
7334         (vsx_st_elemrev_v4si): Likewise.
7335         (vsx_st_elemrev_v8hi): Likewise.
7336         (vsx_st_elemrev_v16qi): Likewise.
7337         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
7338         grammar.
7340 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
7342         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
7343         out into ...
7344         (simplify_control_stmt_condition_1): ... here.  Recurse into
7345         BIT_AND_EXPRs and BIT_IOR_EXPRs.
7347 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
7349         PR target/69810
7350         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
7351         (zero_extendqi<mode>2_dot): Revert earlier conversion from
7352         define_insn_and_split to define_insn.
7353         (zero_extendqi<mode>2_dot2): Same.
7354         (extendqi<mode>2_dot): Same.
7355         (extendqi<mode>2_dot2): Same.
7357 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
7359         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
7360         (probe_stack): New expander.
7361         (probe_stack_<mode>): New insn pattern.
7363 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
7365         * config/i386/i386.md
7366         (operations with memory inputs setting flags peephole2):
7367         Remove uneeded REG_P checks.  Cleanup pattern generation.
7369 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
7371         * tree-vect-loop.c (vect_transform_loop): Fix
7372         nb_iterations_upper_bound computation for vectorized loop.
7374 2016-04-29  Marek Polacek  <polacek@redhat.com>
7375             Jakub Jelinek  <jakub@redhat.com>
7377         PR sanitizer/70342
7378         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
7379         TARGET_EXPR_SLOT as a base.
7381 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
7383         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
7384         with 'rCm2' constraints to limit possible immediate size.
7385         (*load_zeroextendqisi_update): Likewise.
7386         (*load_signextendqisi_update): Likewise.
7387         (*loadhi_update): Likewise.
7388         (*load_zeroextendhisi_update): Likewise.
7389         (*load_signextendhisi_update): Likewise.
7390         (*loadsi_update): Likewise.
7391         (*loadsf_update): Likewise.
7393 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
7395         * config/i386/predicates.md (constm1_operand): Fix comparison.
7397 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
7399         * testsuite/gcc.target/arc/ieee_eq.c: New test.
7401 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
7403         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
7404         remaining SH5 related settings.
7405         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
7406         shmedia_prepare_call_address): Delete.
7407         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
7408         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
7409         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
7410         UNSUPPORTED_SH2A): Remove m5 checks.
7411         (sh_divide_strategy_e): Remove SH5 division strategies.
7412         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
7413         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
7415 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7417         * config/s390/s390.c (s390_rtx_costs): Update documentation.
7419 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7421         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
7422         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
7423         Change lder to ldr.
7424         * config/s390/vector.md ("mov<mode>"): Likewise.
7426 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
7428         * config/s390/constraints.md ("U", "W"): Invoke
7429         s390_mem_constraint with "ZR" and "ZT".
7430         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
7431         addresses when using LRA.  Accept also short displacements for S
7432         and T constraints.  Do not check for long displacement target for
7433         S and T constraints.
7434         (s390_mem_constraint): Remove handling of U and W constraints.
7435         * config/s390/s390.md (various patterns): Remove the short
7436         displacement constraints (Q and R) if a long displacement
7437         constraint is present.  Add longdisp as required CPU capability.
7438         * config/s390/vector.md: Likewise.
7439         * config/s390/vx-builtins.md: Likewise.
7441 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7443         PR target/60040
7444         * reload1.c (reload): Call finish_spills before
7445         restarting reload loop. Skip select_reload_regs
7446         if update_eliminables_and_spill returns true.
7448 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
7450         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
7451         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
7452         (umulhisi3_imm): Update predicates and constraint letters.
7453         (umulhisi3_reg): Declare instruction as commutative.
7454         * config/arc/constraints.md (J12, J16): New constraints.
7455         * config/arc/predicates.md (short_unsigned_const_operand): New
7456         predicate.
7457         (arc_short_operand): Likewise.
7458         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
7460 2016-04-29  Richard Biener  <rguenther@suse.de>
7462         PR tree-optimization/13962
7463         PR tree-optimization/65686
7464         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
7465         * tree-ssa-alias.c (ptrs_compare_unequal): New function
7466         using PTA to compare pointers.
7467         * match.pd: Add pattern for pointer equality compare simplification
7468         using ptrs_compare_unequal.
7470 2016-04-29  Richard Biener  <rguenther@suse.de>
7472         * stor-layout.c (layout_type): Do not build a pointer-to-element
7473         type for arrays.
7475 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
7477         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
7478         Use SWI mode iterator.  Use general_reg_operand predicate.
7479         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
7480         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
7481         predicates.
7483 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
7485         PR middle-end/70843
7486         * fold-const.c (operand_equal_p): Don't verify hash value equality
7487         if arg0 == arg1.
7488         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
7489         and OMP_CLAUSE.
7491 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
7493         PR target/70858
7494         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
7495         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
7496         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
7497         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
7498         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
7500 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
7502         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
7503         to info.  Don't initialize separate fields to 0.  Clean up
7504         formatting a bit.
7506 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7508         * config/i386/i386.md (peephole2s for operations with memory inputs):
7509         Use SWI mode iterator.
7510         (peephole2s for operations with memory outputs): Ditto.
7511         Do not check for stack checking probe.
7513         (probe_stack): Remove expander.
7515 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7516             Andrew Burgess  <andrew.burgess@embecosm.com>
7518         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
7519         operands as 32-bits.
7521 2016-04-28  Jason Merrill  <jason@redhat.com>
7523         * gdbinit.in: Skip line-map.h.
7525 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7526             Andrew Burgess  <andrew.burgess@embecosm.com>
7528         * config/arc/arc.c (arc_conditional_register_usage): Take
7529         TARGET_RRQ_CLASS into account.
7530         (arc_print_operand): Support printing 'p' and 's' operands.
7531         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
7532         as 0.
7533         (TARGET_RRQ_CLASS): Define.
7534         (IS_POWEROF2_OR_0_P): Define.
7535         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
7536         alternatives.
7537         (*tst_movb): New define_insn.
7538         (*tst): Avoid recognition if it could prevent '*tst_movb'
7539         combination; replace c/CnL with c/Chs alternative.
7540         (*tst_bitfield_tst): New define_insn.
7541         (*tst_bitfield_asr): New define_insn.
7542         (*tst_bitfield): New define_insn.
7543         (andsi3_i): Add Rrq variant.
7544         (extzv): New define_expand.
7545         (insv): New define_expand.
7546         (*insv_i): New define_insn.
7547         (*movb): New define_insn.
7548         (*movb_signed): New define_insn.
7549         (*movb_high): New define_insn.
7550         (*movb_high_signed): New define_insn.
7551         (*movb_high_signed + 1): New define_split pattern.
7552         (*mrgb): New define_insn.
7553         (*mrgb + 1): New define_peephole2 pattern.
7554         (*mrgb + 2): New define_peephole2 pattern.
7555         * config/arc/arc.opt (mbitops): New option for nps400, uses
7556         TARGET_NPS_BITOPS_DEFAULT.
7557         * config/arc/constraints.md (q): Make register class conditional.
7558         (Rrq): New register constraint.
7559         (Chs): New constraint.
7560         (Clo): New constraint.
7561         (Chi): New constraint.
7562         (Cbf): New constraint.
7563         (Cbn): New constraint.
7564         (C18): New constraint.
7565         (Cbi): New constraint.
7567 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
7569         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
7570         dst->popcount.
7571         (bitmap_intersection_of_preds): Ditto.
7572         (bitmap_union_of_succs): Ditto.
7573         (bitmap_union_of_preds): Ditto.
7574         * sbitmap.c (do_popcount): Delete.
7575         (BITMAP_DEBUGGING): Delete.
7576         (sbitmap_verify_popcount): Delete.
7577         (sbitmap_alloc): Don't initialize the popcount field.
7578         (sbitmap_alloc_with_popcount): Delete.
7579         (sbitmap_resize): Don't resize the popcount array.
7580         (sbitmap_vector_alloc): Don't initialize the popcount field.
7581         (bitmap_copy): Don't copy the popcount array.
7582         (bitmap_clear): Don't clear the popcount array.
7583         (bitmap_clear): Delete the popcount array handling.
7584         (bitmap_ior_and_compl): Delete the popcount assert.
7585         (bitmap_not): Ditto.
7586         (bitmap_and_compl): Ditto.
7587         (bitmap_and): Delete the popcount array handling.
7588         (bitmap_xor): Ditto.
7589         (bitmap_ior): Ditto.
7590         (bitmap_or_and): Delete the popcount assert.
7591         (bitmap_and_or): Ditto.
7592         (popcount_table): Delete.
7593         (sbitmap_elt_popcount): Delete.
7594         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
7595         (bitmap_set_bit): Delete the popcount assert.
7596         (bitmap_clear_bit): Ditto.
7597         (sbitmap_free): Don't free the popcount array.
7598         (sbitmap_alloc_with_popcount): Delete declaration.
7599         (sbitmap_popcount): Ditto.
7601 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7602             Andrew Burgess  <andrew.burgess@embecosm.com>
7604         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
7605         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
7606         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
7607         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
7608         * config/arc/arc.opt (mcmem): New option.
7609         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
7610         supply length for r/m alternative.
7611         (*extendqisi2_ac): Likewise.
7612         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
7613         r/Uex alternative.
7614         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
7615         (movhi_insn): Likewise.
7616         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
7617         (*zero_extendqihi2_i): Add r/Ucm alternative.
7618         (*zero_extendqisi2_ac): Likewise.
7619         (*zero_extendhisi2_i): Likewise.
7620         * config/arc/constraints.md (Uex): New memory constraint.
7621         (Ucm): New define_constraint.
7622         * config/arc/predicates.md (long_immediate_loadstore_operand):
7623         Return 0 for MEM with cmem_address address.
7624         (cmem_address_0): New predicates.
7625         (cmem_address_1): Likewise.
7626         (cmem_address_2): Likewise.
7627         (cmem_address): Likewise.
7629 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
7631         * config/rs6000/rs6000.c (machine_function): Rename
7632         insn_chain_scanned_p to spe_insn_chain_scanned_p.
7633         (rs6000_stack_info): Adjust.
7635 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7636             Andrew Burgess  <andrew.burgess@embecosm.com>
7638         * config/arc/constraints.md (Usd): Convert to define_constraint.
7639         (Us<): Likewise.
7640         (Us>): Likewise.
7642 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
7644         PR target/70821
7645         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
7646         Add new peephole2 where the first insn is *mov<mode>_or instead of
7647         *mov<mode>_internal.
7649 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
7651         * tracer.c (bb_seen): Make static.
7653 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
7655         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
7656         support, setup defaults.
7657         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
7658         * config/arc/arc.c (arc_init): Add NPS400 support.
7659         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
7660         (TARGET_ARC700): NPS400 is also an ARC700.
7661         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
7663 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
7665         PR target/70668
7666         * config/nds32/nds32.md (casesi): Don't access the operands array
7667         out of bounds.
7669 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7671         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
7672         (or $-1,reg peephole2): Ditto.
7673         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
7675 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
7677         * doc/extend.texi (Common Function Attributes) [optimize]:
7678         Discourage use of the optimize attribute.
7680 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
7682         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
7683         special case builtin.
7684         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
7685         ALTIVEC_BUILTIN_VEC_ADDE.
7686         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7687         support for ALTIVEC_BUILTIN_VEC_ADDE.
7688         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
7689         for __builtin_vec_adde.
7691 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
7693         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
7694         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
7696 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7698         PR testsuite/70595
7699         * doc/sourcebuild.texi (Effective-Target Keywords, Other
7700         attributes): Document cilkplus_runtime.
7702 2016-04-28  Martin Jambor  <mjambor@suse.cz>
7704         * tree-cfg.c (verify_expr): Verify that local declarations belong to
7705         this function.  Call verify_expr on MEM_REFs and bases of other
7706         handled_components.
7708 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7710         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
7711         for WORD_REGISTER_OPERATIONS to runtime check.
7713 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7715         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
7717 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7719         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
7720         big-endian compilation.
7721         * config/arc/arc.md (addf3): Likewise.
7722         (subdf3): Likewise.
7723         (muldf3): Likewise.
7725 2016-04-28  Richard Biener  <rguenther@suse.de>
7727         PR tree-optimization/70840
7728         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
7729         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
7730         Mark x * pow(x,c) -> pow(x,c+1) commutative.
7731         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
7733 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7735         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
7736         and explain why in a comment.
7738 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7740         * config/arc/arc.md (cpu_facility): Add fpx variant.
7741         (subdf3): Prohibit use reverse sub when assist operations option
7742         is enabled.
7743         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
7744         instructions only when FPX is enabled.
7745         * testsuite/gcc.target/arc/trsub.c: New test.
7747 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7749         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
7750         mult_operator when calculating "type" attribute.
7751         (*fop_<mode>_1_i387): Ditto.
7752         (*fop_xf_1_i387): Ditto.
7753         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
7754         Use std::swap to swap operands.  Use RTL expressions to generate
7755         converted pattern.
7757 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7758             Joern Rennecke  <joern.rennecke@embecosm.com>
7760         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
7761         declaration.
7762         (emit_pic_move): Remove.
7763         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
7764         * config/arc/arc.c (emit_pic_move): Removed.
7765         (TARGET_HAVE_TLS): Define.
7766         (arc_conditional_register_usage): Test for arc_tp_regno.
7767         (arc_print_operand, arc_print_operand_address): Handle TLS
7768         unspecs.
7769         (arc_needs_pcl_p): New function.
7770         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
7771         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
7772         (arc_raw_symbolic_reference_mentioned_p): Likewise.
7773         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
7774         (arc_legitimize_tls_address): Likewise.
7775         (DTPOFF_ZERO_SYM): Define.
7776         (arc_legitimize_pic_address): Make it static, handle TLS cases.
7777         (arc_output_pic_addr_const): Print TLS unspecs.
7778         (prepare_pic_move): New function, replaces emit_pic_move.
7779         (arc_legitimate_constant_p): Handle TLS unspecs.
7780         (arc_legitimate_address_p): Likewise.
7781         (arc_rewrite_small_data_p): Use assert for TLS constants.
7782         (prepare_move_operands): Use prepare_pic_move.
7783         (arc_legitimize_address): Legitimize tls addresses.
7784         (arc_epilogue_uses): Check for arc_tp_regno.
7785         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
7786         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
7787         Define.
7788         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
7789         Likewise.
7790         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
7791         %(arc_tls_extra_start_spec).
7792         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
7793         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
7794         (EH_USES): Define.
7795         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
7796         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
7797         (UNSPEC_TLS_OFF): Add.
7798         (R10_REG): Define.
7799         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
7800         (get_thread_pointersi): New patterns.
7801         * config/arc/arc.opt (mtp-regno): New option.
7802         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
7803         (move_dest_operand): Likewise.
7804         * configure: Regenerate.
7805         * configure.ac: Add arc*-*-* case to test for tls.
7806         * doc/invoke.texi (ARC options): Document mtp-regno.
7808 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7810         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
7811         the new ARC HS SIMD instructions.
7812         (arc_preferred_simd_mode): New function.
7813         (arc_autovectorize_vector_sizes): Likewise.
7814         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
7815         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7816         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
7817         (arc_init_builtins): Add new SIMD builtin types.
7818         (arc_split_move): Handle 64 bit vector moves.
7819         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
7820         (TARGET_PLUS_QMACW): Define.
7821         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
7822         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
7823         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
7824         (VSUBADD4H): New builtins.
7825         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
7826         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
7828 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
7829             Matthias Klose  <doko@debian.org>
7831         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
7833 2016-04-28  Richard Biener  <rguenther@suse.de>
7835         PR middle-end/70777
7836         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
7837         canonicalization.
7839 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
7841         * common/config/sh/sh-common.c: Remove SH5 support.
7842         * config/sh/constraints.md: Likewise.
7843         * config/sh/config/sh/elf.h: Likewise.
7844         * config/sh/linux.h: Likewise.
7845         * config/sh/netbsd-elf.h: Likewise.
7846         * config/sh/predicates.md: Likewise.
7847         * config/sh/sh-c.c: Likewise.
7848         * config/sh/sh-protos.h: Likewise.
7849         * config/sh/sh.c: Likewise.
7850         * config/sh/sh.h: Likewise.
7851         * config/sh/sh.md: Likewise.
7852         * config/sh/sh.opt: Likewise.
7853         * config/sh/sync.md: Likewise.
7854         * config/sh/sh64.h: Delete.
7855         * config/sh/shmedia.h: Likewise.
7856         * config/sh/shmedia.md: Likewise.
7857         * config/sh/sshmedia.h: Likewise.
7858         * config/sh/t-netbsd-sh5-64: Likewise.
7859         * config/sh/t-sh64: Likewise.
7860         * config/sh/ushmedia.h: Likewise.
7862 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7864         * config/i386/i386.md (sign_extend to memory peephole2s): Use
7865         general_reg_operand instead of register_operand predicate.
7867 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7869         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
7871 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
7873         * match.pd (A - B > A, A + B < A): New transformations.
7875 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
7877         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
7878         which defaults to true.  Emit an outer pair of parentheses only if
7879         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
7880         don't emit parentheses for the right-hand operand.
7882 2016-04-27  Jeff Law  <law@redhat.com>
7884         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
7886 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7888         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
7889         (altivec_lvx_<mode>_internal): Document.
7890         (altivec_lvx_<mode>_2op): New define_insn.
7891         (altivec_lvx_<mode>_1op): Likewise.
7892         (altivec_lvx_<mode>_2op_si): Likewise.
7893         (altivec_lvx_<mode>_1op_si): Likewise.
7894         (altivec_stvx_<mode>): Remove.
7895         (altivec_stvx_<mode>_internal): Document.
7896         (altivec_stvx_<mode>_2op): New define_insn.
7897         (altivec_stvx_<mode>_1op): Likewise.
7898         (altivec_stvx_<mode>_2op_si): Likewise.
7899         (altivec_stvx_<mode>_1op_si): Likewise.
7900         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7901         Expand vec_ld and vec_st during parsing.
7902         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
7903         changes.
7904         (altivec_expand_stvx_be): Likewise.
7905         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
7906         address-masking behavior in RTL.
7907         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
7908         address-masking behavior in RTL.
7909         (altivec_expand_builtin): Change builtin code arguments for calls
7910         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
7911         (insn_is_swappable_p): Avoid incorrect swap optimization in the
7912         presence of lvx/stvx patterns.
7913         (alignment_with_canonical_addr): New function.
7914         (alignment_mask): Likewise.
7915         (find_alignment_op): Likewise.
7916         (recombine_lvx_pattern): Likewise.
7917         (recombine_stvx_pattern): Likewise.
7918         (recombine_lvx_stvx_patterns): Likewise.
7919         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
7920         stvx patterns from expand.
7921         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
7922         expansions.
7923         (vector_altivec_store_<mode>): Likewise.
7925 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
7927         * config/aarch64/aarch64.md
7928         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
7929         remove the "fp" attributes.
7930         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
7931         add the "simd" attributes.
7932         (*movdf_aarch64): Likewise.
7933         (*movtf_aarch64): Remove the "fp" attributes.
7934         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
7935         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
7937 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7939         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
7940         rtx to rtx_code_label *.
7941         * rtl.h (maybe_set_first_label_num): Likewise.
7943 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7945         * df-core.c (df_add_problem): Make the problem param be const.
7946         (df_remove_problem): Make local "problem" be const.
7947         * df-problems.c (problem_RD): Make const.
7948         (problem_LR): Likewise.
7949         (problem_LIVE): Likewise.
7950         (problem_MIR): Likewise.
7951         (problem_CHAIN): Likewise.
7952         (problem_WORD_LR): Likewise.
7953         (problem_NOTE): Likewise.
7954         (problem_MD): Likewise.
7955         * df-scan.c (problem_SCAN): Likewise.
7956         * df.h (struct df_problem): Make field "dependent_problem" be
7957         const.
7958         (struct dataflow): Likewise for field "problem".
7959         (df_add_problem): Make param const.
7961 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
7963         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
7964         inter-unit moves to/from vector registers are enabled.  Do not disable
7965         for TARGET_MMX.
7967 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7969         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
7970         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
7971         #define to...
7972         (enum df_problem_id): ...this new enum.
7973         (struct df_problem): Convert field "id" from "int" to
7974         enum df_problem_id.
7976 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7978         * rtl.def: Update comment for "things in the instruction chain" to
7979         reflect the removal of the leading "i" field for INSN_UID in
7980         r210360.  Fix bogus apostrophe.
7982 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
7984         * config/i386/i386.md
7985         (lea arith with mem operand + setcc peephole2): Set operator mode.
7987 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
7989         PR target/70155
7990         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
7991         (dimode_scalar_to_vector_candidate_p): This.
7992         (timode_scalar_to_vector_candidate_p): New function.
7993         (scalar_to_vector_candidate_p): Likewise.
7994         (timode_check_non_convertible_regs): Likewise.
7995         (timode_remove_non_convertible_regs): Likewise.
7996         (remove_non_convertible_regs): Likewise.
7997         (remove_non_convertible_regs): Renamed to ...
7998         (dimode_remove_non_convertible_regs): This.
7999         (scalar_chain::~scalar_chain): Make it virtual.
8000         (scalar_chain::compute_convert_gain): Make it pure virtual.
8001         (scalar_chain::mark_dual_mode_def): Likewise.
8002         (scalar_chain::convert_insn): Likewise.
8003         (scalar_chain::convert_registers): Likewise.
8004         (scalar_chain::add_to_queue): Make it protected.
8005         (scalar_chain::emit_conversion_insns): Likewise.
8006         (scalar_chain::replace_with_subreg): Likewise.
8007         (scalar_chain::replace_with_subreg_in_insn): Likewise.
8008         (scalar_chain::convert_op): Likewise.
8009         (scalar_chain::convert_reg): Likewise.
8010         (scalar_chain::make_vector_copies): Likewise.
8011         (scalar_chain::convert_registers): New pure virtual function.
8012         (class dimode_scalar_chain): New class.
8013         (class timode_scalar_chain): Likewise.
8014         (scalar_chain::mark_dual_mode_def): Renamed to ...
8015         (dimode_scalar_chain::mark_dual_mode_def): This.
8016         (timode_scalar_chain::mark_dual_mode_def): New function.
8017         (timode_scalar_chain::convert_insn): Likewise.
8018         (dimode_scalar_chain::convert_registers): Likewise.
8019         (scalar_chain::compute_convert_gain): Renamed to ...
8020         (dimode_scalar_chain::compute_convert_gain): This.
8021         (scalar_chain::replace_with_subreg): Renamed to ...
8022         (dimode_scalar_chain::replace_with_subreg): This.
8023         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
8024         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
8025         (scalar_chain::make_vector_copies): Renamed to ...
8026         (dimode_scalar_chain::make_vector_copies): This.
8027         (scalar_chain::convert_reg): Renamed to ...
8028         (dimode_scalar_chain::convert_reg ): This.
8029         (scalar_chain::convert_op): Renamed to ...
8030         (dimode_scalar_chain::convert_op): This.
8031         (scalar_chain::convert_insn): Renamed to ...
8032         (dimode_scalar_chain::convert_insn): This.
8033         (scalar_chain::convert): Call convert_registers.
8034         (convert_scalars_to_vector): Change to scalar_chain pointer to
8035         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
8036         in 32-bit mode.  Delete scalar_chain pointer.  Call
8037         free_dominance_info in 64-bit mode.
8038         (pass_stv::gate): Remove TARGET_64BIT check.
8039         (ix86_option_override): Put the 64-bit STV pass before the CSE
8040         pass.
8042 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8044         * dwarf2out.h (struct dw_loc_descr_node): Remove the
8045         dw_loc_frame_offset field.
8046         * dwarf2out.c (new_loc_descr): Likewise.
8047         (resolve_args_picking_1): Turn the VISITED hash set into a
8048         FRAME_OFFSET hash map. Use it to associate a frame offset to
8049         visited nodes. Remove uses of the CHECKING_P macro.
8050         (resolve_args_picking): Update call to resolve_args_picking_1.
8052 2016-04-27  Martin Liska  <mliska@suse.cz>
8054         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
8055         (free_loop_data): Release vuses of groups.
8057 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
8059         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
8060         instead of redundant use_id and boolean have_use_for.
8061         (struct iv_use): Change sub_id into group_id.  Remove field next.
8062         Move fields: related_cands, n_map_members, cost_map and selected
8063         to ...
8064         (struct iv_group): ... here.  New structure.
8065         (struct iv_common_cand): Use structure declaration directly.
8066         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
8067         (MAX_CONSIDERED_USES): Rename macro to ...
8068         (MAX_CONSIDERED_GROUPS): ... here.
8069         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
8070         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
8071         (dump_uses): Rename to ...
8072         (dump_groups): ... here.  Update all uses.
8073         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
8074         (find_induction_variables): Refactor format of dump information.
8075         (record_sub_use): Delete.
8076         (record_use): Update all uses.
8077         (record_group): New function.
8078         (record_group_use, find_interesting_uses_op): Call above functions.
8079         Update all uses.
8080         (find_interesting_uses_cond): Ditto.
8081         (group_compare_offset): New function.
8082         (split_all_small_groups): Rename to ...
8083         (split_small_address_groups_p): ... here.  Update all uses.
8084         (split_address_groups):  Update all uses.
8085         (find_interesting_uses): Refactor format of dump information.
8086         (add_candidate_1): Update all uses.  Remove redundant check on iv,
8087         base and step.
8088         (add_candidate, record_common_cand): Remove redundant assert.
8089         (add_iv_candidate_for_biv): Update use.
8090         (add_iv_candidate_derived_from_uses): Update all uses.
8091         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
8092         (alloc_use_cost_map): Ditto.
8093         (set_use_iv_cost, get_use_iv_cost): Rename to ...
8094         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
8095         (determine_use_iv_cost_generic): Ditto.
8096         (determine_group_iv_cost_generic): Ditto.
8097         (determine_use_iv_cost_address): Ditto.
8098         (determine_group_iv_cost_address): Ditto.
8099         (determine_use_iv_cost_condition): Ditto.
8100         (determine_group_iv_cost_cond): Ditto.
8101         (determine_use_iv_cost): Ditto.
8102         (determine_group_iv_cost): Ditto.
8103         (set_autoinc_for_original_candidates): Update all uses.
8104         (find_iv_candidates): Update all uses.  Refactor dump information.
8105         (determine_use_iv_costs): Ditto.
8106         (determine_iv_costs): Ditto.
8107         (iv_ca_cand_for_use): Rename to ...
8108         (iv_ca_cand_for_group): ... here.  Update all uses.
8109         (iv_ca_add_use, iv_ca_add_group): Ditto.
8110         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
8111         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
8112         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
8113         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
8114         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
8115         (create_new_iv, adjust_iv_update_pos): Ditto.
8116         (rewrite_use_address): Delete.
8117         (rewrite_use_address_1): Rename to ...
8118         (rewrite_use_address): ... here.
8119         (rewrite_use_compare): Update all uses.
8120         (rewrite_use): Delete.
8121         (rewrite_uses): Rename to ...
8122         (rewrite_groups): ... here.  Update all uses.
8123         (remove_unused_ivs, free_loop_data): Update all uses.
8124         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
8126 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8128         * rtlanal.c (nonzero_bits1): Convert preprocessor check
8129         for WORD_REGISTER_OPERATIONS to runtime check.
8131 2016-04-27  Richard Biener  <rguenther@suse.de>
8133         PR ipa/70760
8134         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
8135         aggregate_value_p to determine if a function result is
8136         returned by reference.
8137         (ipa_pta_execute): Functions having their address taken are
8138         not automatically nonlocal.
8140 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
8142         PR sanitizer/70683
8143         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
8144         * fold-const.c (operand_equal_p): If flag_checking and
8145         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
8146         and if it returns non-zero, assert iterative_hash_expr on both
8147         args is the same.
8149 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
8151         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
8153 2016-04-27  Nick Clifton  <nickc@redhat.com>
8155         PR middle-end/49889
8156         * varasm.c (merge_weak): Generate an error if an attempt is made
8157         to convert a non-weak static function into a weak, public function.
8159 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8161         * params.def (MAX_PARTITION_SIZE): New param.
8162         * doc/invoke.texi: Document lto-max-partition.
8164 2016-04-27  Richard Biener  <rguenther@suse.de>
8166         PR ipa/70785
8167         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
8168         function cummulating used_from_other_partition, externally_visible
8169         and force_output from aliases.
8170         (refered_from_nonlocal_var): Likewise.
8171         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
8172         node flags properly.
8174 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
8176         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
8177         (-Wmemset-elt-size): New item.
8179 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
8181         PR ada/70759
8182         * stor-layout.h (internal_reference_types): Delete.
8183         * stor-layout.c (reference_types_internal): Likewise.
8184         (internal_reference_types): Likewise.
8185         (layout_type) <REFERENCE_TYPE>: Adjust.
8187 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
8189         PR sanitizer/70683
8190         * tree.h (inchash::add_expr): Add FLAGS argument.
8191         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
8192         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
8193         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
8194         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
8195         if swap_tree_comparison (code) is smaller than code, hash that
8196         and arguments in the other order.  Hash CONVERT_EXPR the same
8197         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
8198         of ADDR_EXPR of decl as the decl itself.  Add or remove
8199         OEP_ADDRESS_OF from recursive flags as needed.  For
8200         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
8201         operands commutatively and only the third one normally.
8202         For internal CALL_EXPR hash in CALL_EXPR_IFN.
8204 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8206         * config/rtems.h (LIB_SPEC): Add -latomic.
8208 2016-04-27  Joel Sherrill  <joel@rtems.org>
8210         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
8211         xilink.ld and flags not relevant to RTEMS.
8213 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
8215         * toplev.c (backend_init_target): Avoid calling init_reload when using
8216         LRA.
8218 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
8220         * reorg.c (try_merge_delay_insns): Declare i and j inside the
8221         for loops rather than one for the whole function.
8223 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
8225         * match.pd (X + CST CMP X): New transformation.
8227 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
8229         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
8230         * fold-const.c (fold_binary_loc): Remove 2 transformations
8231         superseded by match.pd.
8232         * match.pd (x+x -> x*2): Generalize to integers.
8234 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
8236         * config/i386/i386.md (operation on memory peephole): Duplicate an
8237         existing peephole and adapt it to match lea rather than an operation
8238         that clobbers CC.
8240         PR rtl-optimization/57193
8241         * opts.c (default_options_table): Add OPT_frename_registers at -O2
8242         and above.
8243         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
8245 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
8247         * tree-if-conv.c (any_pred_load_store): New static variable.
8248         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
8249         any_pred_load_store instead of and_mask_load_store.
8250         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
8251         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
8252         (combine_blocks, tree_if_conversion): Ditto.
8254 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
8256         PR tree-optimization/70771
8257         PR tree-optimization/70775
8258         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
8259         virtual PHI nodes.  Delete parameter.
8260         (if_convertible_loop_p_1): Delete argument to above function.
8261         (predicate_all_scalar_phis): Delete code handling single-argument
8262         PHIs.
8263         (tree_if_conversion): Mark and update virtual SSA.
8265 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8267         PR target/61821
8268         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
8269         (x86_elf_aligned_common): Rename to ...
8270         (x86_elf_aligned_decl_common): ... this.
8271         Add decl arg.  Switch to .lbss for largecomm object.  Use
8272         LARGECOMM_SECTION_ASM_OP.
8273         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
8274         renaming.
8275         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
8276         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
8277         Pass new decl arg.
8278         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8279         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
8281 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8283         PR target/59407
8284         * config/i386/i386.c (SECTION_LARGE): Define.
8285         (x86_64_elf_select_section): Set it for large data/bss sections.
8286         Only clear SECTION_WRITE for .lrodata.
8287         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
8288         data/bss sections.
8289         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
8290         * varasm.c (default_elf_asm_named_section): Grow flagchars.
8291         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
8292         SECTION_MACH_DEP.
8293         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
8294         * doc/tm.texi: Regenerate.
8296 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
8298         PR bootstrap/70704
8299         * configure.ac (--enable-checking): Document extra flag, for
8300         non-release builds default to --enable-checking=yes,extra.
8301         If misc checking and extra checking, define CHECKING_P to 2 instead
8302         of 1.
8303         * common.opt (fchecking=): Add.
8304         * doc/invoke.texi (-fchecking=): Document.
8305         * doc/install.texi: Document --enable-checking changes.
8306         * configure: Regenerated.
8307         * config.in: Regenerated.
8309 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
8311         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
8312         attribute instead of which_alternative.
8313         * config/i386/sse.md (*mov<mode>_internal): Ditto.
8314         Use EXT_REX_SSE_REG_P where appropriate.
8316 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
8318         * config/i386/predicates.md (const0_operand): Do not match
8319         const_wide_int code.
8320         (const1_operand): Ditto.
8322 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
8324         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
8325         for SSE constm1 operands and TARGET_AVX512VL.
8326         (*movti_internal): Ditto.
8327         (*mov<mode>_or): Use constm1_operand predicate.
8328         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
8329         for SSE vector_all_ones operands and TARGET_AVX512VL.
8330         * config/i386/predicates.md (constm1_operand): New predicate.
8331         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
8332         emission of constant -1 load.
8334 2016-04-25  Jason Merrill  <jason@redhat.com>
8336         * gdbinit.in: Skip is-a.h.
8338         * attribs.c (register_scoped_attributes): Fix logic.
8339         * attribs.h: Declare register_scoped_attributes.
8341 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8343         * config/rs6000/rs6000-builtin.def: Correct pasto error for
8344         stxvd2x and stxvw4x built-in functions.
8346 2016-04-25  DJ Delorie  <dj@redhat.com>
8348         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
8349         (ashrhi3): Likewise.
8350         (lshrhi3): Likewise.
8352 2016-04-25  Richard Biener  <rguenther@suse.de>
8354         PR tree-optimization/70780
8355         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
8356         wasn't visited yet.
8357         (compute_antic): Mark blocks with abnormal preds as visited as
8358         they have a final empty antic-in solution already.
8360 2016-04-25  Michael Collison  <michael.collison@linaro.org>
8362         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
8364 2016-04-25  Michael Collison  <michael.collison@linaro.org>
8366         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
8367         mode is VQI to improve mixed mode vectorization.
8368         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
8369         define_insn to match low half of signed vaddw.
8370         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
8371         define_insn to match high half of signed vaddw.
8372         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
8373         define_insn to match low half of unsigned vaddw.
8374         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
8375         define_insn to match high half of unsigned vaddw.
8376         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
8377         (arm_simd_check_vect_par_cnst_half_p): Likewise.
8378         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
8379         for new function.
8380         (arm_simd_check_vect_par_cnst_half_p): Likewise.
8381         * config/arm/predicates.md (vect_par_constant_high): Support
8382         big endian and simplify by calling
8383         arm_simd_check_vect_par_cnst_half
8384         (vect_par_constant_low): Likewise.
8386 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
8388         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
8389         predicate for operand 2.
8391 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
8392             H.J. Lu  <hongjiu.lu@intel.com>
8394         * config/i386/i386-protos.h (standard_sse_constant_p): Add
8395         machine_mode argument.
8396         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
8397         constm1_rtx operands.  For VOIDmode constants, get mode from
8398         pred_mode.  Check mode size if the mode is supported by ABI.
8399         (standard_sse_constant_opcode): Do not use standard_constant_p.
8400         Strictly check ABI support for all-ones operands.
8401         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
8402         immediates. Update calls to standard_sse_constant_p.
8403         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
8404         (ix86_rtx_costs): Ditto.
8405         * config/i386/i386.md (*movxi_internal_avx512f): Use
8406         nonimmediate_or_sse_const_operand instead of vector_move_operand.
8407         Use (v,BC) alternative instead of (v,C). Use register_operand
8408         checks instead of MEM_P.
8409         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
8410         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
8411         isa attribute.  Use register_operand checks instead of MEM_P.
8412         (*movti_internal): Use nonimmediate_or_sse_const_operand for
8413         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
8414         alternative and corresponding sse2 isa attribute.
8415         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
8416         to standard_sse_constant_p.
8417         (FP constant splitters): Ditto.
8418         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
8419         (C): Ditto.
8420         * config/i386/predicates.md (constm1_operand): Remove.
8421         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
8422         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
8423         vector_all_ones_operand instead of constm1_operand.
8425 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8427         * print-rtl.c (print_rtx_insn_vec): New function.
8428         * print-rtl.h: New prototype.
8429         * store-motion.c (struct st_expr): Make avail_stores a vector.
8430         (st_expr_entry): Adjust.
8431         (free_st_expr_entry): Likewise.
8432         (print_store_motion_mems): Likewise.
8433         (find_moveable_store): Likewise.
8434         (compute_store_table): Likewise.
8435         (delete_store): Likewise.
8436         (build_store_vectors): Likewise.
8438 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8440         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
8442 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8444         * vec.h (vec_safe_contains): New function.
8445         (vec::contains): Likewise.
8446         (vec::begin): Likewise.
8447         (vec::end): Likewise.
8449 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
8451         PR sanitizer/70712
8452         * cfgexpand.c (expand_stack_vars): Fix typo.
8454 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8456         * system.h (list, map, set, vector): Include conditionally.
8457         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
8458         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
8459         * ipa-icf.c (INCLUDE_LIST): Define.
8460         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
8461         * config/sh/sh.c (INCLUDE_VECTOR): Define.
8462         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
8463         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
8464         * cp/logic.cc (INCLUDE_LIST): Define.
8465         * fortran/trans-common.c (INCLUDE_MAP): Define.
8467 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8469         * auto-profile.c: Remove <string.h> include.
8470         * ipa-icf-gimple.c: Remove <list> include.
8471         * diagnostic.c: Remove <new> include.
8472         * genmatch.c: Likewise.
8473         * pretty-print.c: Likewise.
8474         * toplev.c: Likewise
8475         * c/c-objc-common.c: Likewise.
8476         * cp/error.c: Likewise.
8477         * fortran/error.c: Likewise.
8479 2016-04-22  Richard Biener  <rguenther@suse.de>
8481         * lto-streamer-in.c (input_ssa_names): Do not allocate
8482         GIMPLE_NOP for all SSA names.
8483         * lto-streamer-out.c (output_ssa_names): Do not output
8484         SSA names that should have been released.
8486 2016-04-22  Richard Biener  <rguenther@suse.de>
8488         PR tree-optimization/70740
8489         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
8490         VDEF.
8492 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
8494         PR target/70750
8495         * config/i386/predicates.md (call_insn_operand): Replace
8496         sibcall_memory_operand with memory_operand.
8498 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
8500         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
8501         has_single_use() tests.
8502         (register_edge_assert_for_1): Likewise.
8503         (find_assert_locations_1): Check the liveness bitmap instead of
8504         checking has_single_use().
8506 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
8508         PR target/70728
8509         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
8510         Extract AVX-512BW constraint from AVX.
8512 2016-04-21  Richard Biener  <rguenther@suse.de>
8514         PR tree-optimization/70725
8515         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
8516         for phi_convertible_by_degenerating_args.
8517         (predicate_all_scalar_phis): Handle single-argument PHIs.
8519 2016-04-21  Richard Biener  <rguenther@suse.de>
8521         PR middle-end/70747
8522         * fold-const.c (fold_comparison): Return properly typed
8523         constant boolean.
8525 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
8527         PR tree-optimization/70715
8528         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
8529         after expanding BASE using expand_simple_operations.
8531 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
8533         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
8534         New transformations.
8536 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
8538         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
8540 2016-04-20  Jan Hubicka  <jh@suse.cz>
8542         * ipa-inline.c (can_inline_edge_p): Pass caller info to
8543         ultiimate_alias_target.
8544         (update_callee_keys): Likewise.
8545         (lookup_recursive_calls): Likewise.
8546         (speculation_useful_p): Likewise.
8548 2016-04-20  Jan Hubicka  <jh@suse.cz>
8550         PR ipa/70018
8551         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
8552         (set_nothrow_flag_1): ... this; handle interposition correctly;
8553         recurse on aliases and thunks.
8554         (cgraph_node::set_nothrow_flag): New.
8555         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
8556         functions compiled with non-call exceptions that binds to current
8557         def.
8558         (propagate_nothrow): Be safe WRT interposition.
8559         * cgraph.h (set_nothrow_flag): Update prototype.
8561 2016-04-18  Jan Hubicka  <jh@suse.cz>
8563         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
8564         max_loop_iterations_int.
8565         (tree_unswitch_outer_loop): Likewise.
8567 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
8569         PR tree-optimization/69489
8570         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
8571         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
8572         Revise dump message.
8573         (if_convertible_bb_p): Remove check on edge count of basic block's
8574         predecessors.
8576 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
8578         PR tree-optimization/56625
8579         PR tree-optimization/69489
8580         * tree-data-ref.h (DR_INNERMOST): New macro.
8581         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
8582         hashing struct innermost_loop_behavior.
8583         (ref_DR_map): Remove.
8584         (innermost_DR_map): New map.
8585         (baseref_DR_map): Revise comment.
8586         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
8587         to innermost_DR_map accroding to its innermost loop behavior.
8588         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
8589         to its innermost loop behavior.
8590         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
8591         Add initialization for innermost_DR_map.  Record memory reference
8592         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
8593         have innermost loop behavior.
8594         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
8595         innermost_DR_map.
8597 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
8599         * config/i386/i386.md (*lea<mode>_general_1): Rename from
8600         *lea_general_1.  Use explicit SWI12 mode interator.
8601         (*lea<mode>_general_2): Rename from *lea_general_2.
8602         Use explicit SWI12 mode interator.
8603         (*lea<mode>_general_3): Rename from *lea_general_3.
8604         Use explicit SWI12 mode interator.
8605         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
8606         Use explicit SWI12 mode interator.
8607         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
8608         Use explicit SWI48 mode interator.
8610 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
8612         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
8613         Short-cut unaligned load and store cases.  Handle all integer
8614         vector modes.
8615         (ix86_expand_vector_move_misalign): Short-cut unaligned load
8616         and store cases.  Call ix86_avx256_split_vector_move_misalign
8617         directly without checking mode class.
8619 2016-04-20  Andrew Pinski  <apinski@cavium.com>
8620             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8622         PR target/64971
8623         * config/aarch64/aarch64.md (sibcall): Force call
8624         address to be DImode for ILP32.
8625         (sibcall_value): Likewise.
8627 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
8629         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
8631 2016-04-20  Richard Biener  <rguenther@suse.de>
8633         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
8634         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
8635         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
8636         (maybe_push_res_to_seq): Adjust.
8637         * gimple-fold.c (maybe_build_generic_op): Likewise.
8639 2016-04-20  Marek Polacek  <polacek@redhat.com>
8641         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
8642         rather than true.
8644 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
8646         * config/i386/sse.md (vec_unpacks_lo_hi): Always
8647         use kmovw to support AVX512F target.
8649 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
8651         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
8653 2016-04-20  Marek Polacek  <polacek@redhat.com>
8655         PR tree-optimization/70725
8656         * tree-if-conv.c (is_false_predicate): New function.
8657         (predicate_mem_writes): Use it.
8659 2016-04-20  Richard Biener  <rguenther@suse.de>
8661         PR tree-optimization/70726
8662         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
8663         shift amounts from a pattern stmt operand.
8665 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8667         PR target/70674
8668         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
8669         stack_restore_from_fpr pattern when restoring r15.
8670         (s390_optimize_prologue): Strip away the memory barrier in the
8671         parallel when trying to get rid of restore insns.
8672         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
8673         definition for loading the stack pointer from an FPR.  Compared to
8674         the normal move insn this pattern includes a full memory barrier.
8676 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
8678         PR middle-end/70680
8679         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
8680         implicitly linear or lastprivate iterator on the outer context.
8682 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
8684         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
8685         alignment check.
8686         * config/i386/i386.md (ssememalign): Removed.
8687         * config/i386/sse.md: Remove ssememalign attribute from patterns.
8689 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
8691         PR target/69201
8692         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
8693         const short * to __builtin_ia32_loaddquhi512_mask.
8694         (_mm512_maskz_loadu_epi16): Likewise.
8695         (_mm512_mask_storeu_epi16): Pass short * to
8696         __builtin_ia32_storedquhi512_mask.
8697         (_mm512_mask_loadu_epi8): Pass const char * to
8698         __builtin_ia32_loaddquqi512_mask.
8699         (_mm512_maskz_loadu_epi8): Likewise.
8700         (_mm512_mask_storeu_epi8): Pass char * to
8701         __builtin_ia32_storedquqi512_mask.
8702         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
8703         const double * to __builtin_ia32_loadupd512_mask.
8704         (_mm512_mask_loadu_pd): Likewise.
8705         (_mm512_maskz_loadu_pd): Likewise.
8706         (_mm512_storeu_pd): Pass double * to
8707         __builtin_ia32_storeupd512_mask.
8708         (_mm512_mask_storeu_pd): Likewise.
8709         (_mm512_loadu_ps): Pass const float * to
8710         __builtin_ia32_loadups512_mask.
8711         (_mm512_mask_loadu_ps): Likewise.
8712         (_mm512_maskz_loadu_ps): Likewise.
8713         (_mm512_storeu_ps): Pass float * to
8714         __builtin_ia32_storeups512_mask.
8715         (_mm512_mask_storeu_ps): Likewise.
8716         (_mm512_mask_loadu_epi64): Pass const long long * to
8717         __builtin_ia32_loaddqudi512_mask.
8718         (_mm512_maskz_loadu_epi64): Likewise.
8719         (_mm512_mask_storeu_epi64): Pass long long *
8720         to __builtin_ia32_storedqudi512_mask.
8721         (_mm512_loadu_si512): Pass const int * to
8722         __builtin_ia32_loaddqusi512_mask.
8723         (_mm512_mask_loadu_epi32): Likewise.
8724         (_mm512_maskz_loadu_epi32): Likewise.
8725         (_mm512_storeu_si512): Pass int * to
8726         __builtin_ia32_storedqusi512_mask.
8727         (_mm512_mask_storeu_epi32): Likewise.
8728         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
8729         char * to __builtin_ia32_storedquqi256_mask.
8730         (_mm_mask_storeu_epi8): Likewise.
8731         (_mm256_mask_loadu_epi16): Pass const short * to
8732         __builtin_ia32_loaddquhi256_mask.
8733         (_mm256_maskz_loadu_epi16): Likewise.
8734         (_mm_mask_loadu_epi16): Pass const short * to
8735         __builtin_ia32_loaddquhi128_mask.
8736         (_mm_maskz_loadu_epi16): Likewise.
8737         (_mm256_mask_loadu_epi8): Pass const char * to
8738         __builtin_ia32_loaddquqi256_mask.
8739         (_mm256_maskz_loadu_epi8): Likewise.
8740         (_mm_mask_loadu_epi8): Pass const char * to
8741         __builtin_ia32_loaddquqi128_mask.
8742         (_mm_maskz_loadu_epi8): Likewise.
8743         (_mm256_mask_storeu_epi16): Pass short * to.
8744         __builtin_ia32_storedquhi256_mask.
8745         (_mm_mask_storeu_epi16): Pass short * to.
8746         __builtin_ia32_storedquhi128_mask.
8747         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
8748         const double * to __builtin_ia32_loadupd256_mask.
8749         (_mm256_maskz_loadu_pd): Likewise.
8750         (_mm_mask_loadu_pd): Pass onst double * to
8751         __builtin_ia32_loadupd128_mask.
8752         (_mm_maskz_loadu_pd): Likewise.
8753         (_mm256_mask_storeu_pd): Pass double * to
8754         __builtin_ia32_storeupd256_mask.
8755         (_mm_mask_storeu_pd): Pass double * to
8756         __builtin_ia32_storeupd128_mask.
8757         (_mm256_mask_loadu_ps): Pass const float * to
8758         __builtin_ia32_loadups256_mask.
8759         (_mm256_maskz_loadu_ps): Likewise.
8760         (_mm_mask_loadu_ps): Pass const float * to
8761         __builtin_ia32_loadups128_mask.
8762         (_mm_maskz_loadu_ps): Likewise.
8763         (_mm256_mask_storeu_ps): Pass float * to
8764         __builtin_ia32_storeups256_mask.
8765         (_mm_mask_storeu_ps): ass float * to
8766         __builtin_ia32_storeups128_mask.
8767         (_mm256_mask_loadu_epi64): Pass const long long * to
8768         __builtin_ia32_loaddqudi256_mask.
8769         (_mm256_maskz_loadu_epi64): Likewise.
8770         (_mm_mask_loadu_epi64): Pass const long long * to
8771         __builtin_ia32_loaddqudi128_mask.
8772         (_mm_maskz_loadu_epi64): Likewise.
8773         (_mm256_mask_storeu_epi64): Pass long long * to
8774         __builtin_ia32_storedqudi256_mask.
8775         (_mm_mask_storeu_epi64): Pass long long * to
8776         __builtin_ia32_storedqudi128_mask.
8777         (_mm256_mask_loadu_epi32): Pass const int * to
8778         __builtin_ia32_loaddqusi256_mask.
8779         (_mm256_maskz_loadu_epi32): Likewise.
8780         (_mm_mask_loadu_epi32): Pass const int * to
8781         __builtin_ia32_loaddqusi128_mask.
8782         (_mm_maskz_loadu_epi32): Likewise.
8783         (_mm256_mask_storeu_epi32): Pass int * to
8784         __builtin_ia32_storedqusi256_mask.
8785         (_mm_mask_storeu_epi32): Pass int * to
8786         __builtin_ia32_storedqusi128_mask.
8787         * config/i386/i386-builtin-types.def (PCSHORT): New.
8788         (PINT64): Likewise.
8789         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
8790         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
8791         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
8792         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
8793         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
8794         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
8795         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
8796         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
8797         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
8798         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
8799         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
8800         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
8801         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
8802         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
8803         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
8804         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
8805         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
8806         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
8807         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
8808         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
8809         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
8810         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
8811         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
8812         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
8813         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
8814         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
8815         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
8816         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
8817         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
8818         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
8819         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
8820         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
8821         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
8822         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
8823         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
8824         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
8825         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
8826         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
8827         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
8828         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
8829         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
8830         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
8831         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
8832         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
8833         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
8834         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
8835         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
8836         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
8837         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
8838         use UNSPEC_STOREU.
8839         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
8840         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
8841         load nor store.
8842         (ix86_expand_vector_move_misalign): Likewise.
8843         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
8844         to scalar function prototype for unaligned load/store builtins.
8845         (ix86_expand_special_args_builtin): Updated.
8846         * config/i386/sse.md (UNSPEC_LOADU): Removed.
8847         (UNSPEC_STOREU): Likewise.
8848         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
8849         (VI_ULOADSTORE_F_AVX512VL): Likewise.
8850         (ssescalarsize): Handle V4TI, V2TI and V1TI.
8851         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8852         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8853         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
8854         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
8855         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
8856         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
8857         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
8858         (<avx512>_storedqu<mode>_mask): Likewise.
8859         (*sse4_2_pcmpestr_unaligned): Likewise.
8860         (*sse4_2_pcmpistr_unaligned): Likewise.
8861         (*mov<mode>_internal): Renamed to ...
8862         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
8863         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
8864         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
8865         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
8867 2016-04-19  Richard Biener  <rguenther@suse.de>
8869         PR tree-optimization/70171
8870         * tree-ssa-phiprop.c: Include stor-layout.h.
8871         (phiprop_insert_phi): Handle the aggregate copy case.
8872         (propagate_with_phi): Likewise.
8874 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
8876         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
8877         instead of simplify_gen_subreg (... , 0).
8878         (ix86_delegitimize_address): Ditto.
8879         (ix86_split_divmod): Ditto.
8880         (ix86_split_copysign_const): Ditto.
8881         (ix86_split_copysign_var): Ditto.
8882         (ix86_expand_args_builtin): Ditto.
8883         (ix86_expand_round_builtin): Ditto.
8884         (ix86_expand_special_args_builtin): Ditto.
8885         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
8886         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
8887         (udivmodqi4): Ditto.
8888         (absneg splitters): Ditto.
8889         (*jcc_bt<mode>_1): Ditto.
8891 2016-04-19  Richard Biener  <rguenther@suse.de>
8893         PR tree-optimization/70724
8894         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
8895         restoring out from ...
8896         (free_scc_vn): ... here.
8897         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
8898         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
8899         tail merging.
8900         (pass_fre::execute): Restore SSA info.
8902 2016-04-19  Richard Biener  <rguenther@suse.de>
8904         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
8905         * gimple-walk.c (walk_gimple_op): Initialize it.
8906         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
8907         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
8908         remapping SSA names of defs.
8909         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
8910         adjustment.
8912 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
8914         PR middle-end/70689
8915         * lra-constraints.c (equiv_substition_p): New.
8916         (process_alt_operands): Use it.
8917         (swap_operands): Swap it.
8918         (curr_insn_transform): Update it.
8920 2016-04-18  Michael Matz  <matz@suse.de>
8922         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
8923         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
8924         * tree-core.h (tree_type_common.align): Use bit-field.
8925         (tree_type_common.spare): New.
8926         (tree_decl_common.off_align): Make smaller.
8927         (tree_decl_common.align): Use bit-field.
8929         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
8930         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
8931         (scan_sharing_clauses): Ditto.
8932         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8933         (omp_finish_file): Ditto.
8934         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
8935         (layout_decl): Ditto.
8936         (relayout_decl): Ditto.
8937         (finalize_record_size): Use SET_TYPE_ALIGN.
8938         (finalize_type_size): Ditto.
8939         (finish_builtin_struct): Ditto.
8940         (layout_type): Ditto.
8941         (initialize_sizetypes): Ditto.
8942         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
8943         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
8944         (lookup_field_for_decl): Use SET_DECL_ALIGN.
8945         (get_chain_field): Ditto.
8946         (get_trampoline_type): Ditto.
8947         (get_nl_goto_field): Ditto.
8948         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
8949         SET_DECL_ALIGN.
8950         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
8951         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
8952         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8953         (build_qualified_type): Use SET_TYPE_ALIGN.
8954         (build_aligned_type, build_range_type_1): Ditto.
8955         (build_atomic_base): Ditto.
8956         (build_common_tree_nodes): Ditto.
8957         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
8958         (expand_one_stack_var_at): Ditto.
8959         * coverage.c (build_var): Use SET_DECL_ALIGN.
8960         * except.c (init_eh): Ditto.
8961         * function.c (assign_parm_setup_block): Ditto.
8962         * symtab.c (increase_alignment_1): Ditto.
8963         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
8964         * tree-vect-stmts.c (ensure_base_align): Ditto.
8965         * varasm.c (align_variable): Ditto.
8966         (assemble_variable): Ditto.
8967         (build_constant_desc): Ditto.
8968         (output_constant_def_contents): Ditto.
8970         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
8971         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
8972         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
8973         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
8974         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
8976 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
8978         PR target/70708
8979         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
8980         replace %vmovsd with "%vmovq".
8981         (vec_concatv2df): Likewise.
8983 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
8985         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
8986         (*vec_extractv2si_0): Ditto.
8987         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
8988         (zero_extended_scalar_load_operand splitters): Ditto.
8989         (vec_extract splitters): Ditto.
8990         (*vec_extractv4si_0_zext): Ditto.
8991         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
8992         and lowpart_subreg.
8993         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
8994         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
8995         (*sse4_1_extractps): Use lowpart_subreg.
8996         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
8998 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9000         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
9001         gld requirements.
9002         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
9003         Mention Solaris 11 packaging changes.
9004         Update gas and gld requirements.
9005         Remove reference to pre-Solaris 10 bug.
9006         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
9007         systems and bugs.
9008         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
9009         with cc.
9011 2016-04-17  Jan Hubicka  <jh@suse.cz>
9013         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
9014         max_loop_iterations_int.
9016 2016-04-18  Richard Biener  <rguenther@suse.de>
9018         PR tree-optimization/43434
9019         * tree-ssa-structalias.c (struct vls_data): New.
9020         (visit_loadstore): Handle all pointer-based accesses.
9021         (compute_dependence_clique): Compute a bitmap of restrict tags
9022         assigned bases and pass it to visit_loadstore.
9024 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
9026         PR target/70711
9027         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
9028         armv8.1-a and armv8.1-a+crc.
9030 2016-04-18  Richard Biener  <rguenther@suse.de>
9032         PR tree-optimization/70701
9033         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
9034         references after translating through a memcpy.
9036 2016-04-18  Richard Biener  <rguenther@suse.de>
9038         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
9039         (compute_antic): ... here.  For partial antic use regular
9040         postorder and scrap iteration.
9041         (compute_partial_antic_aux): Remove unused return value.
9042         (init_pre): Do not allocate postorder.
9043         (fini_pre): Do not free postorder.
9045 2016-04-18  Richard Biener  <rguenther@suse.de>
9047         PR middle-end/37870
9048         * expmed.c (extract_bit_field_1): Remove broken case
9049         using a wider MODE_INT mode.
9051 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
9053         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
9054         unless compiling with at least GCC-4.8.
9056 2016-04-17  Jan Hubicka  <jh@suse.cz>
9058         PR bootstrap/70706
9059         * graphite.c (graphite_finalize): Update call to
9060         tree_estimate_probability.
9061         * predict.h (tree_estimate_probability): Update prototype.
9063 2016-04-17  Jan Hubicka  <jh@suse.cz>
9065         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
9066         (tree_estimate_probability): Likewise.
9067         (pass_profile::execute): Update.
9068         (report_predictor_hitrates): New function.
9069         * profile.c (compute_branch_probabilities): Use it.
9070         * predict.h (report_predictor_hitrates): Declare.
9072 2016-04-17  Jan Hubicka  <jh@suse.cz>
9074         PR ipa/70018
9075         * cgraph.h (cgraph_node::set_const_flag,
9076         cgraph_node::set_pure_flag): Update prototype to return bool;
9077         update comment.
9078         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
9079         of interposable symbol are interposable, too.
9080         (cgraph_set_const_flag_1): Rename to ...
9081         (set_const_flag_1): ... this one; change to self recursive function
9082         instead of call_for_symbol_thunks_and_aliases. Handle correctly
9083         clearnig the flag in all variants and also virtual thunks of const
9084         functions are pure; track if any change was done.
9085         (cgraph_node::set_const_flag): Update.
9086         (struct set_pure_flag_info): New struct.
9087         (cgraph_set_pure_flag_1): Rename to ...
9088         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
9089         rather than pointer encoded flags; track if any changes was done;
9090         handle correctly clearning flag and setting flag of aliases already
9091         declared const.
9092         (cgraph_node::set_pure_flag): Update.
9093         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
9095 2016-04-17  Tom de Vries  <tom@codesourcery.com>
9097         PR other/70433
9098         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
9099         backslash in label.
9101 2016-04-17  Tom de Vries  <tom@codesourcery.com>
9103         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
9104         '{}<> ' as escape-for-record.
9106 2016-04-17  Tom de Vries  <tom@codesourcery.com>
9108         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
9109         structure.
9111 2016-04-17  Tom de Vries  <tom@codesourcery.com>
9113         PR other/70185
9114         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
9115         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
9116         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
9117         * passes.c (finish_optimization_passes): Only call
9118         finish_graph_dump_file if dfi->graph_dump_initialized.
9119         (execute_function_dump, pass_init_dump_file): Use
9120         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
9122 2016-04-17  Tom de Vries  <tom@codesourcery.com>
9124         PR tree-optimization/70256
9125         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
9126         (debug_varmap): New function.
9128 2016-04-17  Tom de Vries  <tom@codesourcery.com>
9130         PR other/70183
9131         * passes.c (pass_manager::register_pass): Propagate pflags.
9133 2016-04-17  Tom de Vries  <tom@codesourcery.com>
9135         PR other/68875
9136         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
9137         * passes.c (pass_manager::pass_manager): Declare and init p_start in
9138         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
9139         check if it's equal to p_start.
9140         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
9142 2016-04-15  Jan Hubicka  <jh@suse.cz>
9144         PR ipa/70018
9145         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
9146         function does not bind to current def.
9147         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
9148         handle conservatively calls to functions that does not need to bind
9149         to current def.
9150         (check_call): Update call of worse_state.
9151         (ignore_edge_for_nothrow): Update.
9152         (ignore_edge_for_pure_const): Likewise.
9153         (propagate_pure_const): Update calls to worse_state.
9154         (skip_function_for_local_pure_const): Reformat comments.
9156 2016-04-15  Jan Hubicka  <jh@suse.cz>
9158         PR ipa/70018
9159         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
9160         (cgraph_node::function_symbol): Likewise.
9161         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
9162         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
9163         (symtab_node::ultimate_alias_target): Add REF parameter.
9164         (symtab_node::binds_to_current_def_p): Declare.
9165         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
9166         (cgraph_node::function_symbol): Likewise.
9167         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
9168         (cgraph_node::get_availability): Likewise.
9169         (cgraph_edge::binds_to_current_def_p): New inline function.
9170         (varpool_node::get_availability): Add REF parameter.
9171         (varpool_node::ultimate_alias_target): Likewise.
9172         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
9173         (symtab_node::binds_to_current_def_p): Likewise.
9174         * varpool.c (varpool_node::get_availability): Likewise.
9176 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
9178         PR target/70662
9179         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
9180         Fix mode size check.
9182 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
9184         * BASE-VER: Set to 7.0.0.
9186 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
9188         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
9190 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9192         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
9193         architecture revisions.
9195 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
9197         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
9198         * config/i386/i386.c (ix86_using_red_zone): No longer static.
9199         * config/i386/i386.md (stack decrement to push peepholes): Guard
9200         with !x86_using_red_zone ().
9202 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
9204         PR c++/70675
9205         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
9206         to dump_generic_node.
9207         (NIY): Pass also flags to do_niy.
9209 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
9211         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
9212         (simd_clone_vector_of_formal_parm_types)
9213         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
9214         (simd_clone_mangle, simd_clone_create)
9215         (simd_clone_adjust_return_type, create_tmp_simd_array)
9216         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
9217         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
9218         (ipa_simd_modify_function_body, simd_clone_linear_addend)
9219         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
9220         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
9221         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
9222         * omp-simd-clone.c: ... this new file.
9223         (simd_clone_vector_of_formal_parm_types): Make it static.
9224         * Makefile.in (OBJS): Add omp-simd-clone.o.
9226 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
9228         PR target/70662
9229         * config/i386/sse.md: Use proper memory operand modifiers.
9232 2016-04-15  Richard Biener  <rguenther@suse.de>
9233         Alan Modra  <amodra@gmail.com>
9235         PR tree-optimization/70130
9236         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
9237         when alignment stays not the same and no not use the realign
9238         scheme then.
9240 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9242         PR target/70669
9243         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
9244         direct move handlers for KFmode. Change TFmode handlers test from
9245         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
9247 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
9249         PR c++/70594
9250         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
9251         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
9252         (inlined_polymorphic_ctor_dtor_block_p): Use it.
9253         * tree-ssa-live.c (remove_unused_scope_block_p): When
9254         in_ctor_dtor_block, avoid discarding not just BLOCKs with
9255         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
9256         block_ultimate_origin is FUNCTION_DECL.
9257         (remove_unused_locals): If current_function_decl is
9258         polymorphic_ctor_dtor_p, pass initial true to
9259         remove_unused_scope_block_p' is_ctor_dtor_block.
9261 2016-04-14  Martin Sebor  <msebor@redhat.com>
9263         PR c++/69517
9264         PR c++/70019
9265         PR c++/70588
9266         * doc/extend.texi (Variable Length): Revert.
9268 2016-04-14  Marek Polacek  <polacek@redhat.com>
9269             Jan Hubicka  <hubicka@ucw.cz>
9271         PR c++/70029
9272         * tree.c (verify_type): Disable the canonical type of main variant
9273         check.
9275 2016-04-14  Jason Merrill  <jason@redhat.com>
9277         * cfgexpand.c, expr.c: Revert previous change.
9279 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
9281         PR middle-end/70643
9282         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
9283         when building a mem ref for the incoming reduction variable.
9285 2016-04-14  Richard Biener  <rguenther@suse.de>
9287         PR tree-optimization/70614
9288         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
9289         loop if the evolution dropped to chrec_dont_know.
9290         (interpret_condition_phi): Likewise.
9292 2016-04-14  Richard Biener  <rguenther@suse.de>
9294         PR tree-optimization/70623
9295         * tree-ssa-pre.c (changed_blocks): Make global ...
9296         (compute_antic): ... local here.  Move and fix worklist
9297         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
9298         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
9299         worklist handling, dump when ANTIC_IN changed.
9300         (compute_partial_antic_aux): Remove worklist handling.
9301         (init_pre): Do not compute post dominators.  Add a comment about
9302         the CFG order chosen.
9303         (fini_pre): Do not free post dominators.
9305 2016-04-13  Martin Sebor  <msebor@redhat.com>
9307         PR c++/69517
9308         PR c++/70019
9309         PR c++/70588
9310         * doc/extend.texi (Variable Length): Document C++ specifics.
9312 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
9314         PR c++/70641
9315         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
9316         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
9317         eh edges have been purged.
9319         PR c++/70594
9320         * tree-sra.c (create_access_replacement,
9321         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
9322         gets fancy name.
9323         * tree-pretty-print.c (dump_fancy_name): New function.
9324         (dump_decl_name, dump_generic_node): Use it.
9326 2016-04-13  Jason Merrill  <jason@redhat.com>
9328         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
9329         * expr.c (expand_expr_real_1): Likewise.
9331 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
9333         * config/i386/i386.md (kunpckhi): Swap operands.
9334         (kunpcksi): Likewise.
9335         (kunpckdi): Likewise.
9336         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
9337         (vec_pack_trunc_<mode>): Likewise.
9339 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
9341         PR debug/70628
9342         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
9344         PR middle-end/70633
9345         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
9346         gimplification turns some element into non-constant.
9348         PR debug/70628
9349         * rtl.h (convert_memory_address_addr_space_1): New prototype.
9350         * explow.c (convert_memory_address_addr_space_1): No longer static,
9351         add NO_EMIT argument and don't call convert_modes if true, pass
9352         it down recursively, remove break after return.
9353         (convert_memory_address_addr_space): Adjust caller.
9354         * simplify-rtx.c (simplify_unary_operation_1): Call
9355         convert_memory_address_addr_space_1 instead of convert_memory_address,
9356         if it returns NULL, don't simplify.
9358 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
9360         PR target/70630
9361         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
9363 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
9365         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9366         Bump the upper SIMDLEN limits, so that if the return type or
9367         characteristic type if the return type is void can be passed in
9368         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
9369         allowed.
9371 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
9373         PR target/70640
9374         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
9375         Do not use "=" constraint on an input constraint.
9376         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9377         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9378         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
9379         generates (neg (abs ...)) instead of (abs ...).
9381 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
9383         PR rtl-optimization/70596
9384         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
9385         just invalidate LRA data and reset them.  Adjust dump wording.
9387 2016-04-12  Martin Liska  <mliska@suse.cz>
9389         Revert
9390         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
9392         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
9393         estimates here.
9394         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9395         max_loop_iterations_int.
9396         (tree_unswitch_outer_loop): Likewise.
9397         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
9398         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9400 2016-04-12  Tom de Vries  <tom@codesourcery.com>
9402         PR tree-optimization/68756
9403         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
9404         instead of new_name.
9406 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
9408         PR tree-optimization/70602
9409         * tree-sra.c (generate_subtree_copies): Don't write anything into
9410         constant pool decls.
9412         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
9413         regardless whether there are depend clauses or not.
9415 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
9417         PR target/70381
9418         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
9419         target attribute and pragma from changing the -mfloat128
9420         and -mfloat128-hardware options.
9422         * doc/extend.texi (Additional Floating Types): Document PowerPC
9423         __float128 restrictions.
9425 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
9427         PR target/70133
9428         * config/aarch64/driver-aarch64.c
9429         (aarch64_get_extension_string_for_isa_flags): New.
9430         (arch_extension): Rename to...
9431         (aarch64_arch_extension): ...This.
9432         (ext_to_feat_string): Rename to...
9433         (aarch64_extensions): ...This.
9434         (aarch64_core_data): Keep track of architecture extension flags.
9435         (cpu_data): Rename to...
9436         (aarch64_cpu_data): ...This.
9437         (aarch64_arch_driver_info): Keep track of architecture extension
9438         flags.
9439         (get_arch_name_from_id): Rename to...
9440         (get_arch_from_id): ...This, change return type.
9441         (host_detect_local_cpu): Update and reformat for renames, handle
9442         extensions through common infrastructure.
9444 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
9446         PR target/70133
9447         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
9448         track of a canonical flag name.
9449         (all_extensions): Likewise.
9450         (arch_to_arch_name): Also track extension flags enabled by the arch.
9451         (all_architectures): Likewise.
9452         (aarch64_parse_extension): Move to here.
9453         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
9454         rework.
9455         (aarch64_rewrite_selected_cpu): Update for above change.
9456         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
9457         are handled, such that the single explicit value enabled by an
9458         extension is kept seperate from the implicit values it also enables.
9459         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
9460         to here.
9461         (aarch64_parse_extension): New.
9462         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
9463         here to config/aarch64/aarch64-protos.h.
9464         (aarch64_parse_extension): Move from here to
9465         common/config/aarch64/aarch64-common.c.
9466         (aarch64_option_print): Update.
9467         (aarch64_declare_function_name): Likewise.
9468         (aarch64_start_file): Likewise.
9469         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
9470         the canonical flag for extensions.
9471         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
9472         flags.
9474 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
9476         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
9477         AARCH64_FL_CRC.
9479 2016-04-09  Tom de Vries  <tom@codesourcery.com>
9481         PR tree-optimization/68953
9482         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
9483         first to last subscript.
9485 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
9487         PR tree-optimization/70586
9488         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
9489         for any calls.
9491 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
9493         PR lto/70289
9494         PR ipa/70348
9495         PR tree-optimization/70373
9496         PR middle-end/70533
9497         PR middle-end/70534
9498         PR middle-end/70535
9499         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
9500         clauses for acc parallel reductions as necessary.  Error on those
9501         that are private.
9502         * omp-low.c (scan_sharing_clauses): Don't install variables which
9503         are used in acc parallel reductions.
9504         (lower_rec_input_clauses): Remove dead code.
9505         (lower_oacc_reductions): Add support for reference reductions.
9506         (lower_reduction_clauses): Remove dead code.
9507         (lower_omp_target): Don't remap variables appearing in acc parallel
9508         reductions.
9509         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
9511 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
9513         PR middle-end/70593
9514         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
9515         with multiple SSA_NAME defs, force the outputs other than first
9516         to be live before calling live_track_process_def on each output.
9518         PR rtl-optimization/70574
9519         * fwprop.c (forward_propagate_and_simplify): Don't add
9520         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
9521         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
9522         paradoxical subregs within *loc.
9524 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
9526         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
9527         -ftree-parallelize-loops={0,1}.
9528         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
9529         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
9530         * config/ia64/hpux.h (LIB_SPEC): Likewise.
9531         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9532         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9534 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
9536         PR sanitizer/70541
9537         * asan.c (instrument_derefs): If we get unknown location, extract it
9538         with EXPR_LOCATION.
9539         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
9541 2016-04-08  Tom de Vries  <tom@codesourcery.com>
9543         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
9544         implicit firstprivate clause.
9546 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9548         PR target/70566
9549         * config/arm/thumb2.md (tst + branch-> lsls + branch
9550         peephole below *orsi_not_shiftsi_si): Require that condition
9551         register is dead after the peephole.
9552         (second peephole after the above): Likewise.
9554 2016-04-08  Alan Modra  <amodra@gmail.com>
9556         PR target/70117
9557         * builtins.c (fold_builtin_classify): For IBM extended precision,
9558         look at just the high-order double to test for NaN.
9559         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
9560         test just the high double for Inf but both doubles for subnormal
9561         limit.
9563 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
9565         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
9566         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
9567         node->simdclone->mask_mode != VOIDmode masks.
9568         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
9569         earlier, use it instead of node->simdclone.
9570         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9571         Set clonei->mask_mode.
9573 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
9575         PR c/70436
9576         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
9577         Pass it through to cp_parser_already_scoped_statement.
9578         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
9579         it through to cp_parser_statement.
9580         (cp_parser_statement): Pass IF_P through to
9581         cp_parser_iteration_statement.
9582         (cp_parser_pragma): Adjust call to
9583         cp_parser_iteration_statement.
9585 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
9587         PR c/70436
9588         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
9589         resolve a future -Wparentheses warning.
9590         * omp-low.c (scan_sharing_clauses): Likewise.
9591         * tree-parloops.c (eliminate_local_variables): Likewise.
9593 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
9595         PR rtl-optimization/70398
9596         * lra-constraints.c (process_address_1): Check zero scale and code
9597         for reloading with zero scale.
9599 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
9601         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
9602         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
9604 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
9606         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9607         Add support for AVX512F clones, include them by default for
9608         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
9609         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
9610         up to 128.
9612         PR middle-end/70550
9613         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
9614         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
9615         firstprivate clauses.
9616         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
9617         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
9618         (lower_omp_target): Set TREE_NO_WARNING for
9619         non-addressable possibly uninitialized vars which are copied into
9620         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
9622 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
9624         * config/pa/predicates.md (integer_store_memory_operand): Accept
9625         REG+D operands with a large offset when reload_in_progress is true.
9626         (floating_point_store_memory_operand): Likewise.
9628 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
9630         PR c++/70336
9631         * match.pd (nested int casts): Limit to GIMPLE.
9633 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
9635         PR ipa/66223
9636         * ipa-devirt.c (maybe_record_node): Fix comment; use
9637         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
9639 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
9641         PR rtl-optimization/70542
9642         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
9643         if there are any uses other than insn or debug insns.
9645 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
9646             Jakub Jelinek  <jakub@redhat.com>
9648         PR tree-optimization/70509
9649         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
9650         Shift HOST_WIDE_INT_1U instead of 1.
9652 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
9654         PR tree-optimization/70509
9655         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
9656         of the vector base type for index.
9658 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
9660         PR target/70510
9661         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
9663 2016-04-05  Richard Biener  <rguenther@suse.de>
9665         PR tree-optimization/70526
9666         * tree-sra.c (build_ref_for_offset): Use prev_base to
9667         extract the alias pointer type.
9669 2016-04-05  Richard Biener  <rguenther@suse.de>
9671         * dse.c (struct store_info): Remove alias_set member.
9672         (struct read_info_type): Likewise.
9673         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
9674         spill_deleted, clear_alias_set_lookup): Remove.
9675         (get_group_info): Remove dead base == NULL_RTX case.
9676         (dse_step0): Remove initialization of removed variables.
9677         (delete_dead_store_insn): Reomve alias set dumping.
9678         (free_read_records): Remove alias_set handling.
9679         (canon_address): Remove alias_set_out parameter.
9680         (record_store): Remove spill_alias_set, it's always zero.
9681         (check_mem_read_rtx): Likewise.
9682         (dse_step2): Rename from ...
9683         (dse_step2_nospill): ... this.  Adjust.
9684         (scan_stores): Rename from ...
9685         (scan_stores_nospill): ... this.
9686         (scan_reads): Rename from ...
9687         (scan_reads_nospill): ... this.
9688         (scan_stores_spill, scan_reads_spill): Remove.
9689         (dse_step3_scan): Remove for_spills argument which is always false.
9690         (dse_step3): Likewise.
9691         (dse_step5): Rename from ...
9692         (dse_step5_nospill): ... this.  Remove alias_set handling.
9693         (rest_of_handle_dse): Adjust.
9695 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
9697         PR target/70525
9698         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
9699         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
9700         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
9701         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
9703 2016-04-05  Richard Biener  <rguenther@suse.de>
9705         PR middle-end/70499
9706         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
9707         non-register type temporaries into SSA.
9709 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
9711         PR ipa/66223
9712         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
9713         calls when sanitizing.
9714         (possible_polymorphic_call_target_p): Fix formatting.
9716 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9717             Jakub Jelinek <jakub@redhat.com>
9719         PR middle-end/70457
9720         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
9721         to ensure a call statement is compatible with a built-in's
9722         prototype.
9723         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
9724         Likewise.
9726 2016-04-04  Richard Biener  <rguenther@suse.de>
9728         PR rtl-optimization/70484
9729         * rtl.h (canon_output_dependence): Declare.
9730         * alias.c (canon_output_dependence): New function.
9731         * dse.c (record_store): Use canon_output_dependence rather
9732         than canon_true_dependence.
9734 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
9736         PR ipa/68881
9737         * cgraph.h (symtab_node::copy_visibility_from): New function.
9738         * symtab.c (symtab_node::copy_visibility_from): New function.
9739         * ipa-visibility.c (optimize_weakref): New function.
9740         (function_and_variable_visibility): Use it.
9742 2016-04-04  Martin Liska  <mliska@suse.cz>
9744         PR hsa/70402
9745         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
9746         value that is really in range handled by SBR instruction.
9747         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
9748         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
9749         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
9751 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
9753         PR target/70416
9754         PR target/67391
9755         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
9756         set, but not for SP_REG operands.
9758 2016-04-02  Martin Sebor  <msebor@redhat.com>
9760         PR c++/67376
9761         * fold-const.c (maybe_nonzero_address): New function.
9762         (fold_comparison): Call it.  Fold equality and relational
9763         expressions involving null pointers.
9764         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
9766 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
9768         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
9769         the "Y" constraint (scalar FP 0.0 immediate).
9771         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
9772         Add the "const_double" to the list of operand constraints.
9774 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
9776         PR rtl-optimization/70467
9777         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
9778         If low word of the last operand is 0, just emit addition/subtraction
9779         for the high word.
9781 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9783         PR target/70404
9784         * config/s390/s390.c (s390_expand_insv): Check for everything
9785         constant instead of just VOIDmode stuff.
9787 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9789         PR target/70496
9790         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
9792 2016-04-01  Nathan Sidwell  <nathan@acm.org>
9794         * tree.def (TRY_CATCH_EXPR): Correct documentation.
9796 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
9798         PR rtl-optimization/70461
9799         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
9800         is necessary.
9802 2016-03-31  Martin Liska  <mliska@suse.cz>
9804         PR hsa/70399
9805         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
9806         a tree value or an immediate integer value to a buffer
9807         that is eventually copied to a BRIG section.
9808         (emit_immediate_operand): Call the function here.
9809         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
9810         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
9811         of class' fields that are removed.
9812         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
9813         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
9814         m_brig_repr_size fields.
9816 2016-03-31  Martin Liska  <mliska@suse.cz>
9818         PR hsa/70391
9819         * hsa-gen.c (hsa_function_representation::update_dominance): New
9820         function.
9821         (convert_addr_to_flat_segment): Likewise.
9822         (gen_hsa_memory_set): New alignment argument.
9823         (gen_hsa_ctor_assignment): Likewise.
9824         (gen_hsa_insns_for_single_assignment): Provide alignment
9825         to gen_hsa_ctor_assignment.
9826         (gen_hsa_insns_for_direct_call): Add new argument.
9827         (expand_lhs_of_string_op): New function.
9828         (expand_string_operation_builtin): Likewise.
9829         (expand_memory_copy): New function.
9830         (expand_memory_set): New function.
9831         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
9832         (convert_switch_statements): Change signature.
9833         (generate_hsa): Use a return value of the function.
9834         (pass_gen_hsail::execute): Do not call
9835         convert_switch_statements here.
9836         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
9837         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
9838         (hsa_function_representation::update_dominance): New function.
9840 2016-03-31  Martin Liska  <mliska@suse.cz>
9842         PR hsa/70391
9843         * hsa-brig.c (emit_directive_variable): Emit alignment
9844         according to hsa_symbol::m_align.
9845         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
9846         (dump_hsa_symbol): Dump alignment of HSA symbols.
9847         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
9848         (gen_hsa_addr_with_align): New function.
9849         (hsa_bitmemref_alignment): Use newly added function.
9850         (gen_hsa_insns_for_load): Likewise.
9851         (gen_hsa_insns_for_store): Likewise.
9852         (gen_hsa_memory_copy): New argument added.
9853         (gen_hsa_insns_for_single_assignment): Respect
9854         alignment for assignments processed via gen_hsa_memory_copy.
9855         (gen_hsa_insns_for_direct_call): Likewise.
9856         (gen_hsa_insns_for_return): Likewise.
9857         (gen_function_def_parameters): Set default alignment.
9858         * hsa.c (hsa_object_alignment): New function.
9859         (hsa_byte_alignment): Pasted function.
9860         * hsa.h (hsa_symbol::m_align): New field.
9862 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
9864         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
9865         scratch field for goto case.
9867 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
9869         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
9871 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
9873         PR target/70442
9874         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
9875         (scalar_chain::convert_insn): Call convert_op for reg
9876         moves to handle undefined registers.
9878 2016-03-31  Nathan Sidwell  <nathan@acm.org>
9880         PR c++/70393
9881         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
9882         Assert we don't want to move backwards.
9884 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
9886         PR target/70453
9887         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
9889 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
9891         PR rtl-optimization/70460
9892         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
9893         with operand from REG_LABEL_OPERAND, instead substitute
9894         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
9895         Don't do anything for REG_NON_LOCAL_GOTO jumps.
9897 2016-03-31  Martin Liska  <mliska@suse.cz>
9899         * passes.c (execute_one_pass): Do not call
9900         todo_after for a discarded function.
9902 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
9904         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
9905         (no_cost, infinite_cost): Initialize the new field.
9906         (get_computation_cost_at): Record setup cost.
9907         (determine_use_iv_cost_address): Skip cost computation for sub
9908         uses if we can estimate it without losing accuracy.
9910 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
9912         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
9913         estimates here.
9914         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9915         max_loop_iterations_int.
9916         (tree_unswitch_outer_loop): Likewise.
9917         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
9918         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9920 2016-03-30  Richard Biener  <rguenther@suse.de>
9922         PR middle-end/70450
9923         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
9925 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
9927         PR target/70421
9928         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
9929         in gen_blendm expander.
9931 2016-03-30  Nick Clifton  <nickc@redhat.com>
9933         PR target/62254
9934         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
9935         case where we are already provided with an SImode SUBREG.
9937 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
9939         PR target/70439
9940         * config/i386/i386.c (ix86_expand_epilogue): Properly check
9941         conflict between DRAP register and __builtin_eh_return.
9943 2016-03-30  Michael Matz  <matz@suse.de>
9944             Richard Biener  <rguenther@suse.de>
9946         PR ipa/12392
9947         * ipa-polymorphic-call.c (struct type_change_info): Change
9948         speculative to an unsigned allowing to limit the work we do.
9949         (csftc_abort_walking_p): New inline function..
9950         (check_stmt_for_type_change): Limit the number of may-defs
9951         skipped for speculative devirtualization to
9952         max-speculative-devirt-maydefs.
9953         * params.def (max-speculative-devirt-maydefs): New param.
9954         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
9956 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
9958         PR target/63890
9959         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
9960         and TARGET_MACHO.
9962 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
9964         PR tree-optimization/59124
9965         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
9966         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
9968 2016-03-29  Jeff Law  <law@redhat.com>
9970         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
9972 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
9974         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
9975         to HOST_WIDE_INT.
9977 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
9979         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
9980         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
9981         gcrt0.o if linking dynamically.
9983 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
9985         PR ipa/70283
9986         * ipa-devirt.c (methods_equal_p): New function.
9987         (compare_virtual_tables): Use it.
9988         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
9989         * cgraphclones.c (clone_function_name_1): Use
9990         symbol_table::symbol_suffix_separator.
9991         * coverage.c (build_var): Likewise.
9992         * symtab.c (symbol_table::symbol_suffix_separator): New.
9994 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
9996         PR rtl-optimization/70429
9997         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
9998         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
9999         mode != result_mode.
10001         PR c++/70353
10002         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
10004         PR tree-optimization/70405
10005         * ssa-iterators.h (num_imm_uses): Add missing braces.
10007 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
10009         PR rtl-optimization/68695
10010         * ira-color.c (allocno_copy_cost_saving): New.
10011         (improve_allocation): Use it.
10013 2016-03-29  Richard Henderson  <rth@redhat.com>
10015         PR middle-end/70355
10016         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
10018 2016-03-29  Richard Biener  <rguenther@suse.de>
10020         PR middle-end/70424
10021         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
10022         use alignment returned by get_pointer_alignment_1 if it is
10023         bigger than BITS_PER_UNIT.
10024         * builtins.c (get_pointer_alignment_1): Do not return true
10025         for alignment extracted from SSA info.
10027 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
10029         * config/ft32/ft32.opt (mnodiv): New.
10030         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
10031         * doc/invoke.texi (FT32 Options -mnodiv): New.
10033 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
10035         PR target/70406
10036         * config/i386/i386.md (define_split, andn): Fix modes.
10038 2016-03-26  Richard Biener  <rguenther@suse.de>
10039             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10041         PR ipa/70366
10042         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
10043         instead of
10044         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
10045         as 2nd argument to cl_optimization_restore().
10047 2016-03-25  Richard Henderson  <rth@redhat.com>
10049         PR target/70120
10050         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
10051         * config/aarch64/aarch64-protos.h: Declare it.
10052         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
10054 2016-03-25  Alan Modra  <amodra@gmail.com>
10056         PR target/70052
10057         * config/rs6000/constraints.md (j): Simplify.
10058         * config/rs6000/predicates.md (easy_fp_constant): Exclude
10059         decimal float 0.D.
10060         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
10061         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
10062          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
10063         in all constraint alternatives.
10064         (movtd_64bit_nodm): Delete "j" constraint alternative.
10066 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
10068         * tree-ssa-propagate.c: Enhance docs for
10069         SSA_PROP_NOT_INTERESTING.
10071 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
10073         * doc/extend.texi: Fix typo in documentation to pure attribute.
10075 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
10077         PR target/70319
10078         * config/pa/pa.md (bswapdi2): Use a scratch register.
10080 2016-03-24  Richard Henderson  <rth@redhat.com>
10082         PR middle-end/69845
10083         * fold-const.c (extract_muldiv_1): Correct test for multiplication
10084         overflow.
10086 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
10088         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
10089         using ix86_expand_binary_operator instead of gen_andsi3.
10091 2016-03-24  Richard Biener  <rguenther@suse.de>
10093         PR tree-optimization/70396
10094         * tree-vect-stmts.c (vectorizable_comparison): Use
10095         get_vectype_for_scalar_type.
10097 2016-03-24  Richard Biener  <rguenther@suse.de>
10099         PR middle-end/70370
10100         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
10101         with register bases.
10103 2016-03-24  Richard Biener  <rguenther@suse.de>
10105         PR tree-optimization/70372
10106         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
10107         build_all_ones_cst to also handle vector types correctly.
10109 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
10111         PR target/70381
10112         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
10113         -mfloat128 here.
10115 2016-03-23  Marek Polacek  <polacek@redhat.com>
10117         PR c++/69884
10118         * doc/invoke.texi: Document -Wignored-attributes.
10120 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
10122         PR tree-optimization/69042
10123         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
10124         parameter from 30 to 40.
10126 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
10128         PR tree-optimization/69042
10129         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
10130         for use with constant offset stripped in base.
10132 2016-03-23  Richard Biener  <rguenther@suse.de>
10134         PR middle-end/70251
10135         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
10136         mode compatibility check.
10137         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
10139 2016-03-23  Jeff Law  <law@redhat.com>
10141         PR tree-optimization/64058
10142         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
10143         CONFLICT_COUNT.
10144         (struct ssa_conflicts): Move up earlier in the file.
10145         (conflicts_, var_map_): New static variables.
10146         (initialize_conflict_count): New function to initialize the
10147         CONFLICT_COUNT field for each conflict pair.
10148         (compare_pairs): Lazily initialize the conflict count and use it
10149         as the first tie-breaker.
10150         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
10151         and wipe conflicts_ and map_ around the call to qsort.  Remove
10152         special case for 2 coalesce pairs.
10153         * bitmap.c (bitmap_count_unique_bits): New function.
10154         (bitmap_count_bits_in_word): New function, extracted from
10155         bitmap_count_bits.
10156         (bitmap_count_bits): Use bitmap_count_bits_in_word.
10157         * bitmap.h (bitmap_count_unique_bits): Declare it.
10159 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
10161         PR target/69917
10162         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
10163         transparent alias chain for decl assembler name.
10164         * config/sol2.c (solaris_assemble_visibility): Likewise.
10166 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10168         * config/arm/arm1020e.md (1020call_op): Reduce reservation
10169         duration.
10170         (v10_fdivs): Likewise.
10171         (v10_fdivd): Likewise.
10173 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10175         PR driver/70132
10176         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
10177         to not call fclose twice on file.
10179 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
10181         PR tree-optimization/70354
10182         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
10183         oprnd0 is wider than oprnd1 and there is a cast from the wider
10184         type to oprnd1, mask it with the mask of the narrower type.
10186         PR target/70321
10187         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
10188         Optimize TARGET_STV splitters, if high or low word of last argument
10189         is 0 or -1.
10191 2016-03-22  Jeff Law  <law@redhat.com>
10193         PR target/70232
10194         tree-ssa-threadbackward.c
10195         (fsm_find_control_statement_thread_paths): Correctly distinguish
10196         between old style jump threads vs FSM jump threads.
10198 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
10200         PR target/70302
10201         * config/i386/i386.c (scalar_chain::convert_op): Support
10202         uninitialized register usage case.
10204 2016-03-22  Richard Biener  <rguenther@suse.de>
10206         PR middle-end/70251
10207         * genmatch.c (gen_transform): Adjust last parameter to a three-state
10208         int...
10209         (capture::gen_transform): ... to change behavior when substituting
10210         a condition into cond or not-cond expr context.
10211         (dt_simplify::gen_1): Adjust.
10212         * gimple-match-head.c: Include gimplify.h for unshare_expr.
10213         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
10214         last change and instead change to
10215         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
10216         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
10218 2016-03-22  Anthony Green  <green@moxielogic.com>
10220         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
10221         issue for moxiebox targets.
10222         (CC1PLUS_SPEC): Ditto.
10224 2016-03-22  Richard Biener  <rguenther@suse.de>
10226         PR middle-end/70333
10227         * fold-const.c (extract_muldiv_1): Properly perform multiplication
10228         in the wide type.
10230 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10232         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
10234 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10236         PR target/70325
10237         * config/i386/i386.c (def_builtin): Handle
10238         OPTION_MASK_ISA_AVX512VL to be and-ed with other
10239         bits.
10240         (const struct builtin_description bdesc_special_args[]):
10241         Remove duplicate ISA bits.
10243 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
10245         PR target/70329
10246         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
10247         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
10248         in a way that works also for AVX512BW.
10250         PR target/70300
10251         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
10252         instead of source if operands[1] is xmm16 and above and
10253         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
10254         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
10256         PR c++/70295
10257         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
10258         on assign if (*from_p) is a comparison, set it to
10259         TREE_NO_WARNING (*from_p).
10261 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
10263         PR middle-end/70326
10264         * lra.c (restore_scratches): Ignore deleted insns.
10266 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
10267             Jakub Jelinek  <jakub@redhat.com>
10269         PR tree-optimization/70317
10270         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
10271         to HONOR_NANS.
10273 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
10275         PR target/70327
10276         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
10277         of ix86_expand_move.
10278         (movoi): Ditto.
10279         (movti): Use general_operand for operand 1 predicate.
10281 2016-03-21  Martin Liska  <mliska@suse.cz>
10283         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
10284         insns.
10285         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
10287 2016-03-21  Martin Liska  <mliska@suse.cz>
10289         PR ipa/70306
10290         * ipa-icf.c (sem_function::parse): Skip static
10291         constructors and destructors.
10293 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
10295         PR target/70296
10296         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
10297         function-like macro, peek following token(s) if it is followed
10298         by CPP_OPEN_PAREN token with optional padding in between, and
10299         if not, don't treat it like a macro.
10301 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10302             Alexander Monakov  <amonakov@ispras.ru>
10304         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
10305         for the stabs debug format.
10307 2016-03-21  Richard Biener  <rguenther@suse.de>
10309         PR tree-optimization/70310
10310         * tree-vect-generic.c (expand_vector_condition): Fold the built
10311         condition.
10313 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
10315         PR target/70293
10316         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
10317         Block third alternative for AVX-512VL target,
10319 2016-03-21  Martin Liska  <mliska@suse.cz>
10321         PR hsa/70234
10322         * hsa-brig.c (emit_function_directives): Mark unemitted
10323         global variables for emission.
10324         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
10325         (get_symbol_for_decl): Likewise.
10326         * hsa.h (struct hsa_symbol): New flag.
10328 2016-03-21  Richard Biener  <rguenther@suse.de>
10330         PR tree-optimization/70288
10331         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
10332         we do not estimate unsimplified all-constant conditionals or
10333         switches as optimized away.
10335 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
10337         PR rtl-optimization/69102
10338         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
10339         when we have a readonly dependency context.
10341 2016-03-18  Jeff Law  <law@redhat.com>
10343         PR rtl-optimization/70263
10344         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
10345         (update_equiv_regs): When trying to move a store to after the insn
10346         that sets the source of the store, make sure the store occurs after
10347         the insn that sets the source of the store.  When successful note
10348         the REG_EQUIV note created in the dump file.
10350 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
10351             Bernd Schmidt  <bschmidt@redhat.com>
10353         * doc/extend.texi: Document more potential problems with basic asms.
10355 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
10357         PR rtl-optimization/70278
10358         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
10359         VOIDmode.
10361 2016-03-18  Jason Merrill  <jason@redhat.com>
10363         * calls.c (load_register_parameters): Fix zero size sibcall logic.
10365 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
10367         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
10368         values to 128b regs.
10370 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
10372         PR tree-optimization/70252
10373         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
10374         boolean vector has a proper number of elements.
10375         (supportable_narrowing_operation): Likewise.
10377 2016-03-18  Tom de Vries  <tom@codesourcery.com>
10379         PR ipa/70269
10380         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
10382 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
10384         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
10385         instead of replace_rtx for DEBUG_INSNs.
10387 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10389         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
10390         load type reservations.
10392 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
10394         PR target/70188
10395         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
10396         define_constraint for "Q" and "T" constraints.
10398 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
10400         Tweak the pipeline model for Exynos M1
10402         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
10403         model.
10405 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
10407         PR c/70264
10408         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
10409         where one or both locations aren't within a line_map.
10411 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10413         PR driver/70192
10414         * opts.c (finish_options): Don't set flag_pie to the default if
10415         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
10416         if it is -1.
10418 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
10420         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
10421         true as ALL_REGS argument to replace_rtx.
10423 2016-03-17  Richard Biener  <rguenther@suse.de>
10425         PR debug/70271
10426         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
10427         last.
10429 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
10431         PR target/70245
10432         * rtl.h (replace_rtx): Add ALL_REGS argument.
10433         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
10434         equality and assert mode is the same, instead of just rtx pointer
10435         equality.
10436         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
10437         true as ALL_REGS argument to replace_rtx.
10439 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
10441         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
10442         for boolean vector with vector mode only.
10443         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
10445 2016-03-17  Nick Clifton  <nickc@redhat.com>
10447         PR target/70162
10448         * config/rx/rx.c (rx_print_integer): Print negative constants in
10449         decimal.
10451 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
10453         PR target/70261
10454         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
10456 2016-03-16  Richard Henderson  <rth@redhat.com>
10457             Richard Biener  <rguenth@suse.de>
10459         PR middle-end/70240
10460         PR middle-end/68215
10461         PR tree-opt/68714
10462         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
10463         first operand as is_gimple_condexpr.
10465         PR middle-end/70240
10466         PR middle-end/68215
10467         Revert r231575
10468         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
10469         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
10470         Do not gimplify the result.
10471         (do_unop): Adjust call to tree_vec_extract.
10472         (do_binop): Likewise.
10473         (do_compare): Likewise.
10474         (do_plus_minus): Likewise.
10475         (do_negate): Likewise.
10476         (expand_vector_condition): Likewise.
10477         (do_cond): Likewise.
10479 2016-03-16  Richard Henderson  <rth@redhat.com>
10481         PR target/70048
10482         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
10483         (aarch64_classify_address): Use it.
10484         (aarch64_legitimize_address): Force all subexpressions of PLUS
10485         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
10487 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
10488             Richard Biener  <rguenth@suse.de>
10490         PR target/70245
10491         * rtlanal.c (replace_rtx): For REG, if from is a REG,
10492         return to even if only REGNO is equal, and assert
10493         mode is the same.
10495 2016-03-11  Jeff Law  <law@redhat.com>
10497         PR rtl-optimization/70224
10498         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
10500 2016-03-16  Richard Henderson  <rth@redhat.com>
10502         PR middle-end/70199
10503         * function.h (struct function): Add has_forced_label_in_static.
10504         * gimplify.c (force_labels_r): Set it.
10505         * lto-streamer-in.c (input_struct_function_base): Read it.
10506         * lto-streamer-out.c (output_struct_function_base): Write it.
10507         * tree-inline.c (has_label_address_in_static_1): Remove.
10508         (copy_forbidden): Remove fndecl parameter; test
10509         has_forced_label_in_static.
10510         (inline_forbidden_p): Update call to copy_forbidden.
10511         (tree_versionable_function_p): Likewise.
10512         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
10513         (chkp_versioning): Likewise.
10514         * tree-inline.h (copy_forbidden): Update decl.
10516 2016-03-16  Marek Polacek  <polacek@redhat.com>
10518         PR c/70093
10519         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
10520         function being thunked if the result type doesn't have fixed size.
10521         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
10522         doesn't have fixed size.
10524 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
10526         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
10527         reporting malformed loop nest.
10529 2016-03-16  Tom de Vries  <tom@codesourcery.com>
10531         PR lto/70187
10532         * ipa-devirt.c (possible_polymorphic_call_targets): Move
10533         nodes.length () == 1 test to before first nodes[0] access.
10535 2016-03-16  Tom de Vries  <tom@codesourcery.com>
10537         PR tree-optimization/68715
10538         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
10539         single_pred_p test.
10541 2016-03-16  Tom de Vries  <tom@codesourcery.com>
10543         PR tree-optimization/68809
10544         * graphite-scop-detection.c (same_close_phi_node): Test if result types
10545         are the same.
10547 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
10548             Sandra Loosemore  <sandra@codesourcery.com>
10550         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
10551         on leaf attribute. Mention ELF interposition problems.
10553 2016-03-16  Alan Modra  <amodra@gmail.com>
10555         PR rtl-optimization/69195
10556         PR rtl-optimization/47992
10557         * ira.c (indirect_jump_optimize): Ignore artificial defs.
10558         Add comments.
10560 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
10562         PR bootstrap/69513
10563         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
10565 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10567         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
10569 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
10571         PR rtl-optimization/70222
10572         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
10573         optimization if mode is different from result_mode, queue up masking
10574         of the result in outer_op.  Formatting fix.
10576         PR middle-end/70239
10577         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
10578         of safe_grow.
10580 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
10582         PR rtl-optimization/69032
10583         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
10584         looping backwards over basic block insns.
10586 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
10588         PR target/66660
10589         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
10590         to non-speculative when propagating trap bits.
10592 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
10594         PR rtl-optimization/63384
10595         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
10596         DEBUG_INSN_P insns.
10598 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
10600         PR target/64411
10601         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
10602         factored out from ...
10603         (sched_analyze_insn): ... here.
10604         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
10605         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
10606         get_implicit_reg_pending_clobbers in it.
10607         (setup_id_reg_sets): Use setup_id_implicit_regs.
10608         (deps_init_id): Ditto.
10610 2016-03-15  Tom de Vries  <tom@codesourcery.com>
10612         PR ipa/70161
10613         * cgraph.c (cgraph_node::get_body): Save, reset and restore
10614         dump_file_name.
10615         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
10616         execute_function_dump.
10617         (execute_one_pass): Don't dump function if it will be dumped after ipa
10618         transform.
10620 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
10622         * genrecog.c (match_pattern_2): If pred is NULL don't call
10623         safe_predicate_mode on it.
10625 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
10627         PR middle-end/70219
10628         * lra-constraints.c (delete_move_and_clobber): Change assertion
10629         to also allow dregno == 0.
10631 2016-03-14  Richard Henderson  <rth@redhat.com>
10633         PR tree-opt/68714
10634         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
10635         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
10636         (reassociate_bb): Use optimize_vec_cond_expr; avoid
10637         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
10638         on vectors.
10640 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
10642         PR target/70083
10643         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
10644         regs.
10645         (lra_create_live_ranges_1): initialize hard register biggest_mode to
10646         VOIDmode.
10647         * lra-constraints.c (split_reg): For hard regs, try to find the
10648         biggest single-register mode used in the function.
10650 2016-03-14  Richard Biener  <rguenther@suse.de>
10652         PR tree-optimization/56365
10653         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
10654         constants to compare against.
10656 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
10658         PR target/70098
10659         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
10660         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
10661         (define_split for the GPR case): Use int_reg_operand instead of
10662         gpc_reg_operand for the output.
10664 2016-03-14  Tom de Vries  <tom@codesourcery.com>
10666         PR tree-optimization/70045
10667         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
10668         create_empty_if_region_on_edge argument.
10670 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
10672         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
10673         (STACK_CHECK_PROTECT): Likewise.
10674         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
10675         (STACK_CHECK_PROTECT): Likewise.
10676         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
10677         (STACK_CHECK_PROTECT): Likewise.
10678         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
10679         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10680         (STACK_CHECK_PROTECT): Likewise.
10682 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
10684         PR rtl-optimization/69307
10685         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
10686         registers in modes that span more than one register.
10688 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
10690         PR target/69614
10691         * lra-constraints.c (delete_move_and_clobber): New.
10692         (remove_inheritance_pseudos): Use it.
10694 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
10696         PR ada/70017
10697         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
10698         the libcall is LCT_THROW.
10699         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
10700         for the checking routine.
10702 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10704         PR target/70131
10705         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
10706         optimization if we have direct move.
10707         (roundu32<mode>2_fprs): Likewise.
10709 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
10711         PR target/70123
10712         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
10713         be rematerialized.
10714         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
10715         Arguments swapped.  All callers changed.  Take reg_renumber into
10716         account, and Calculate and compare register ranges for hard regs.
10718 2016-03-11  Jeff Law  <law@redhat.com>
10720         PR tree-optimization/70190
10721         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10722         Handle cases where we can not extract the taken edge, even though we
10723         found a constant value.
10725         PR tree-optimization/64058
10726         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
10727         (num_coalesce_pairs): Move up earlier in file.
10728         (find_coalesce_pair): Initialize the INDEX field for each pair
10729         discovered.
10730         (compare_pairs): No longer sort on the elements in each pair.
10731         Instead break ties with the index of the coalesce pair.
10733 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10735         PR target/70002
10736         * config/aarch64/aarch64-protos.h
10737         (aarch64_save_restore_target_globals): New prototype.
10738         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
10739         Call the above when popping pragma.
10740         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
10741         New function.
10742         (aarch64_set_current_function): Rewrite using the above.
10744 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
10746         PR tree-optimization/70177
10747         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
10748         (extract_ops_from_tree): ... this.  In the 2 argument
10749         overload remove _1 suffix.
10750         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
10751         (extract_ops_from_tree): ... this.
10752         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
10753         Adjust callers.
10754         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
10755         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
10756         extract_ops_from_tree instead of 2 operand one.
10758 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
10760         PR tree-optimization/70013
10761         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
10762         for constant-pool entries.
10764 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
10766         PR rtl-optimization/70174
10767         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
10768         followed by gen_lowpart on force_reg instead of just gen_lowpart.
10770         PR tree-optimization/70169
10771         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
10772         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
10773         for unknown codes.
10775 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
10776             Jakub Jelinek  <jakub@redhat.com>
10778         PR target/70160
10779         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
10780         of uninitialized values.
10782 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10784         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
10785         define_expand.
10786         ("*trunctddd2"): New pattern definition.
10787         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
10788         TD->DD truncation.
10790 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10792         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
10793         definitions for BFP and DFP rounding modes.
10794         ("fixuns_truncdddi2", "fixuns_trunctddi2")
10795         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
10796         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
10797         ("fix_trunctf<mode>2"): Use the new constants instead of magic
10798         numbers.
10800 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10802         * config/s390/constraints.md: Adjust comment.
10803         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
10804         s390_decompose_addrstyle_without_index.
10805         * config/s390/predicates.md (shift_count_or_setmem_operand):
10806         Rename to setmem_operand.
10807         * config/s390/s390-protos.h
10808         (s390_decompose_shift_count): Rename to
10809         s390_decompose_addrstyle_without_index.
10810         * config/s390/s390.c (s390_decompose_shift_count)
10811         (s390_mem_constraint, print_shift_count_operand)
10812         (print_operand_address, print_operand): Rename
10813         s390_decompose_shift_count to
10814         s390_decompose_addrstyle_without_index and rename
10815         print_shift_count_operand to print_addrstyle_operand troughout the
10816         file.
10817         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
10818         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
10819         Rename shift_count_or_setmem_operand to setmem_operand.
10820         * config/s390/vx-builtins.md ("vec_insert<mode>")
10821         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
10822         nonmemory_operand.
10824 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10826         PR target/70168
10827         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
10828         Handle overlapping retval and newval.
10830 2016-03-10  Nick Clifton  <nickc@redhat.com>
10832         PR target/7044
10833         * config/aarch64/aarch64.c
10834         (aarch64_override_options_after_change_1): When forcing
10835         flag_omit_frame_pointer to be true, use a special value that can
10836         be detected if this function is called again, thus preventing
10837         flag_omit_leaf_frame_pointer from being forced to be false.
10839 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10841         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10842         Set x_flag_omit_leaf_frame_pointer when handling
10843         -momit-leaf-frame-pointer.
10845 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10847         PR lto/69589
10848         * cgraph.c (cgraph_node::dump): Dump split_part and
10849         indirect_call_target.
10850         * cgraph.h (cgraph_node): Add indirect_call_target flag.
10851         * ipa.c (has_addr_references_p): Cleanup.
10852         (is_indirect_call_target_p): New.
10853         (walk_polymorphic_call_targets): Do not mark virtuals that may be
10854         called indirectly as local.
10855         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
10857 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10859         PR ipa/69630
10860         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
10861         on cxa_pure_virtual.
10863 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10865         PR lto/69589
10866         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
10868 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10870         PR lto/69589
10871         * tree.c (need_assembler_name_p): Only record main variant type names.
10873 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
10875         PR target/70113.
10876         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
10877         Always define to 0 or 1.
10878         (TARGET_FIX_ERR_A53_843419): New macro.
10879         * config/aarch64/aarch64-elf-raw.h
10880         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
10881         * config/aarch64/aarch64-linux.h: Likewise.
10882         * config/aarch64/aarch64.c
10883         (aarch64_override_options_after_change_1): Do not default
10884         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
10885         843419 is on.
10886         (aarch64_attributes): Handle fix-cortex-a53-843419.
10887         (aarch64_can_inline_p): Likewise.
10888         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
10890 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
10891         Jakub Jelinek <jakub@redhat.com>
10893         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
10894         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
10895         DECL_COMMONS if flag_unconstrained_commons is set.
10896         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10897         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
10898         (funconstrained-commons): Document.
10900 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
10902         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
10903         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
10905 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
10907         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
10908         has a proper number of elements.
10910 2016-03-10  Alan Modra  <amodra@gmail.com>
10912         PR rtl-optimization/69195
10913         PR rtl-optimization/47992
10914         * ira.c (recorded_label_ref): Delete.
10915         (update_equiv_regs): Return void.
10916         (indirect_jump_optimize): New function.
10917         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
10918         before regstat_compute_ri.  Don't rebuild_jump_labels here.
10919         Delete update_regstat.
10921 2016-03-10  Richard Biener  <rguenther@suse.de>
10923         PR tree-optimization/70128
10924         * tree-ssa-structalias.c (set_uids_in_ptset): Set
10925         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
10927 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
10929         PR tree-optimization/70152
10930         * tree-sra.c (replace_removed_params_ssa_names): Copy over
10931         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
10933         PR target/70086
10934         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
10935         instead of gen_sse2_loadlpd.
10936         * config/i386/sse.md (*vec_concatv2df): Rename to...
10937         (vec_concatv2df): ... this.
10939         PR tree-optimization/70127
10940         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
10942 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
10944         PR c/68473
10945         PR c++/70105
10946         * diagnostic-show-locus.c (compatible_locations_p): New function.
10947         (layout::layout): Sanitize ranges using compatible_locations_p.
10949 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
10951         PR c/68473
10952         PR c++/70105
10953         * diagnostic-show-locus.c (layout_range::layout_range): Replace
10954         location_range param with three const expanded_locations * and a
10955         bool.
10956         (layout::layout): Replace call to
10957         rich_location::lazily_expand_location with get_expanded_location.
10958         Extract the range and perform location expansion here, passing
10959         the results to the layout_range ctor.
10960         * diagnostic.c (source_range::debug): Delete.
10961         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
10962         of rich_location::get_expanded_location.
10963         * gcc-rich-location.c (get_range_for_expr): Delete.
10964         (gcc_rich_location::add_expr): Reimplement to avoid the
10965         rich_location::add_range overload that took a location_range,
10966         passing a location_t instead.
10968 2016-03-09  Richard Biener  <rguenther@suse.de>
10969         Jakub Jelinek  <jakub@redhat.com>
10971         PR tree-optimization/70138
10972         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
10973         Also skip vect_double_reduction_def.
10975 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
10977         PR target/70049
10978         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
10979         if the operand is "m".
10981 2016-03-09  Nathan Sidwell  <nathan@acm.org>
10983         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
10985 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10987         * config/i386/i386.c (processor_target_table): Fix cost table
10988         intialization order for znver1.
10990 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
10992         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
10993         - becuase -> because.
10994         * ipa-reference.c (ignore_module_statics): Likewise.
10995         * cgraph.c (cgraph_node::get_body): Likewise.
10996         * ipa-inline.c (early_inliner): Likewise.
10997         * ipa-devirt.c (types_same_for_odr): Likewise.
10998         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
10999         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
11001 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11003         * tree-ssa-math-opts.c: Fix typo in comment.
11005 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
11007         PR target/70110
11008         * config/i386/i386.c (scalar_chain::make_vector_copies,
11009         scalar_chain::convert_reg): Call end_sequence in between
11010         get_insns and emit_conversion_insns rather than after both
11011         calls.
11013 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
11015         PR target/70064
11016         * config/i386/i386.h (machine_function): Add
11017         pc_thunk_call_expanded flag.
11018         (ix86_pc_thunk_call_expanded): New define.
11019         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
11020         (*set_got): Rename insn pattern from set_got.
11021         (*set_got_labelled): Rename inst pattern from set_got_labelled.
11022         * config/i386/i386.c (ix86_compute_frame_layout): Use
11023         ix86_pc_thunk_call_expanded to prevent red-zone.
11025 2016-03-07  Martin Jambor  <mjambor@suse.cz>
11027         * hsa.h (hsa_get_ctor_statements): Declare.
11028         (hsa_get_dtor_statements): Likewise.
11029         (hsa_get_kernel_dispatch_type): Likewise.
11030         * hsa.c (hsa_get_ctor_statements): New function.
11031         (hsa_get_dtor_statements): Likewise.
11032         (hsa_get_kernel_dispatch_type): Likewise.
11033         * hsa-brig.c (hsa_cdtor_statements): Removed.
11034         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
11035         hsa_get_dtor_statements.
11036         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
11037         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
11039 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11041         * config/arm/arm-cores.def (cortex-r8): New.
11042         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
11043         * config/arm/arm-tune.md: Likewise.
11044         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
11046 2016-03-07  Martin Sebor  <msebor@redhat.com>
11048         PR rtl-optimization/19705
11049         * doc/invoke.texi (Options That Control Optimization): Clarify
11050         -fno-branch-count-reg.
11052 2016-02-26  Richard Biener  <rguenther@suse.de>
11053             Jeff Law  <law@redhat.com>
11055         PR tree-optimization/69740
11056         * cfghooks.c (remove_edge): Request loop fixups if we delete
11057         an edge that might turn an irreducible loop into a natural
11058         loop.
11059         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
11060         Move after definition of loops_state_clear.
11062 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
11064         PR rtl-optimization/69052
11065         * rtlanal.c (commutative_operand_precedence): Set higher precedence
11066         to CONST_WIDE_INT.
11068 2016-03-07  Tom de Vries  <tom@codesourcery.com>
11070         PR tree-optimization/70116
11071         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
11072         is_tm_ending stmts and ubsan/asan internal functions.
11073         (find_duplicate): Use it.  Don't test is_tm_ending here.
11075 2016-03-07  Richard Biener  <rguenther@suse.de>
11077         PR tree-optimization/70115
11078         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
11079         (propagate_constants_for_unrolling): Use replace_uses_by.
11081 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
11083         PR middle-end/69916
11084         * omp-low.c (struct oacc_loop): Add ifns.
11085         (new_oacc_loop_raw): Initialize it.
11086         (finish_oacc_loop): Clear mask & flags if no ifns.
11087         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
11088         (oacc_loop_xform_loop): Add ifns arg & adjust.
11089         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
11091 2016-03-07  Richard Henderson  <rth@redhat.com>
11093         PR rtl-opt/70061
11094         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
11095         (insert_value_copy_on_edge): Likewise.
11097 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11099         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
11101 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11103         PR target/62281
11104         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
11106 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
11108         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
11110 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
11112         Fix sseimul type attribute.
11113         * config/i386/znver1.md
11114         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
11115         znver1_sseimul_avx256_load) : Fix the type attribute.
11116         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
11117         pipe usage and latency.
11119 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
11121         PR c++/70084
11122         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
11123         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
11124         to the right type.
11126 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
11128         PR c/69973
11129         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
11131         PR rtl-optimization/69941
11132         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
11133         the reg share its mode.
11135 2016-03-04  Jeff Law  <law@redhat.com>
11137         PR tree-optimization/69196
11138         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11139         If the both SSA_NAMEs are anonymous, then consider them unassociated
11140         and include the PHI in the statement count.
11142 2016-03-05  Tom de Vries  <tom@codesourcery.com>
11144         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
11145         construct in oacc routine.  Check for oacc region in oacc routine.
11147 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
11149         PR target/70062
11150         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
11151         2016-02-22 changes, instead don't recurse if RECUR is already true.
11152         Don't change *dynamic_check if RECUR.  Adjust recursive caller
11153         to pass true to the new argument.
11154         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
11156         PR target/70059
11157         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
11158         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
11159         fixes.
11160         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
11162 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
11164         PR rtl-optimization/57676
11165         * lra-assigns.c (lra_assign): Guard test for maximum iterations
11166         with flag_checking.
11168 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
11170         * tree-vect-patterns.c (search_type_for_mask): Handle
11171         comparison of booleans.
11173 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
11175         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
11176         Fix @xref usage.
11178         PR debug/69947
11179         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
11180         all other ops that have dw_val_class_die_ref operands,
11181         and DW_OP_GNU_entry_value.
11183 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11185         PR rtl-optimization/69904
11186         * config/arm/arm.c (arm_cannot_copy_insn_p):
11187         Return true for load-exclusive instructions.
11189 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
11191         PR target/70021
11192         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
11193         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
11194         the pattern no matter if it is used just by non-pattern, pattern
11195         or mix thereof.
11196         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
11197         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
11198         oprnd1 def_stmt is in pattern, don't look through it.
11200 2016-03-03  Marek Polacek  <polacek@redhat.com>
11202         PR middle-end/70050
11203         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
11205 2016-03-03  Martin Liska  <mliska@suse.cz>
11207         PR tree-optimization/70043
11208         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
11209         previous statement if we see a debug statement.
11211 2016-03-03  Richard Biener  <rguenther@suse.de>
11213         PR tree-optimization/55936
11214         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
11215         parameter and guard unsafe equivalence use.
11216         (vrp_evaluate_conditional_warnv_with_ops): Always use
11217         safe equivalences but not via the quadratic compare_names
11218         helper.
11220 2016-03-03  Michael Collison  <michael.collison@linaro.org>
11222         PR target/70014
11223         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
11224         for operand 1 to s_register_operand. Change predicate for operand
11225         2 to arm_not_immediate_operand.
11227 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
11229         * doc/tm.texi: Regenerated.
11231 2016-03-02  Richard Henderson  <rth@redhat.com>
11233         PR rtl-opt/67145
11234         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
11235         simplification when all args are positive non-fixed registers.
11237 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11239         * target.def (lra_p): Specify that new ports should use LRA.
11241 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
11243         PR libgomp/69555
11244         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
11245         gimplify_type_sizes the type they refer to.
11246         (omp_notice_variable): Handle reference vars to VLAs.
11247         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
11248         reference to VLA decls in the second pass instead of first pass.
11250 2016-03-02  Tom de Vries  <tom@codesourcery.com>
11252         PR tree-optimization/68659
11253         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
11254         new_expr == NULL_TREE.
11255         (get_new_name): Handle ADDR_EXPR.
11257 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
11259         PR rtl-optimization/69052
11260         * loop-invariant.c (canonicalize_address): New function.
11261         (inv_can_prop_to_addr_use): Check validity of address expression
11262         which is canonicalized by above function.
11264 2016-03-02  Alan Modra  <amodra@gmail.com>
11266         PR ipa/69990
11267         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
11268         larger alignment.
11270 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
11272         PR target/70028
11273         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
11274         (*movhi_internal): Put mask moves from and to memory separately
11275         from moves from/to GPRs.
11277 2016-03-02  Richard Biener  <rguenther@suse.de>
11279         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
11280         GENERIC expressions in GIMPLE.
11282 2016-03-02  Richard Biener  <rguenther@suse.de>
11284         * config/i386/i386.c (type_natural_mode): Fix typo.
11286 2016-03-02  Nick Clifton  <nickc@redhat.com>
11288         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
11290 2016-03-02  Richard Biener  <rguenther@suse.de>
11291             Uros Bizjak  <ubizjak@gmail.com>
11293         PR target/67278
11294         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
11296 2016-03-02  Richard Biener  <rguenther@suse.de>
11298         PR middle-end/67278
11299         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
11301 2016-03-02  Marek Polacek  <polacek@redhat.com>
11303         PR c/67854
11304         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
11305         "is promoted to" warning.
11307 2016-03-01  DJ Delorie  <dj@redhat.com>
11309         * config.gcc: Deprecate mep-*.
11311 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
11313         PR middle-end/70025
11314         * lra-constraints.c (regno_val_use_in): New.
11315         (match_reload): Use it instead of regno_use_in.
11317 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
11319         PR rtl-optimization/70007
11320         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
11321         references present in REG_EQUAL notes attached to non-SET patterns.
11323 2016-03-01  Jeff Law  <law@redhat.com>
11325         PR tree-optimization/69196
11326         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11327         Appropriately clamp the number of statements to copy when the
11328         thread path does not traverse a loop backedge.
11330         PR tree-optimization/69196
11331         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11332         Do count some PHIs in the thread path against the insn count.  Decrease
11333         final statement count by one as the control statement in the last
11334         block will get removed.  Remove special cased code for handling PHIs
11335         in the last block.
11337 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
11339         PR target/70027
11340         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
11341         asm dialect alternatives to explicit GOTPCREL calls.
11343 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
11345         PR ada/70017
11346         * ira.c (do_reload): Issue warning for generic stack checking here...
11347         * reload1.c (reload): ...instead of here and streamline it.
11349 2016-03-01  Nick Clifton  <nickc@redhat.com>
11351         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
11353 2016-03-01  Richard Biener  <rguenther@suse.de>
11355         PR tree-optimization/69983
11356         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
11357         types and fall back to operand_equal_p.
11359 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11361         Revert
11362         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11364         * config/s390/constraints.md ("jm8"): New constraint.
11365         * config/s390/predicates.md ("const_int_8bitset_operand"): New
11366         predicate.
11367         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
11368         into ...
11369         ("*setmem_long<setmem_and>"): New pattern.
11370         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
11371         into ...
11372         ("*setmem_long_31z<setmem_and>"): New pattern.
11373         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
11374         New substitution rules with the required attributes.
11377 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11379         Revert
11380         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11382         * gensupport.c (process_substs_on_one_elem): Split loop to
11383         complete mark_operands_used_in_match_dup on all expressions in the
11384         vector first.
11385         (adjust_operands_numbers): Inline into process_substs_on_one_elem
11386         and remove function.
11388 2016-03-01  Richard Biener  <rguenther@suse.de>
11390         PR middle-end/70022
11391         * fold-const.c (fold_indirect_ref_1): Fix range checking for
11392         vector BIT_FIELD_REF extract.
11394 2016-03-01  Richard Biener  <rguenther@suse.de>
11396         PR tree-optimization/69994
11397         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
11399 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
11401         PR tree-optimization/69956
11402         * tree-vect-stmts.c (supportable_widening_operation): Support
11403         multi-step conversion of boolean vectors.
11404         (supportable_narrowing_operation): Likewise.
11406 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11408         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
11409         anymore.
11411 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11413         * config/s390/subst.md (DSI_VI): New mode iterator.
11414         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
11415         * config/s390/vector.md ("vec_set<mode>"): Move expander before
11416         the insn definition.
11417         ("*vec_set<mode>"): Change predicate and add alternative to
11418         support only either register or const_int operands as element
11419         selector.
11420         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
11421         operands.
11422         ("vec_extract<mode>"): New expander.
11423         ("*vec_extract<mode>"): New insn definition supporting reg and
11424         const_int element selectors.
11425         ("*vec_extract<mode>_plus"): New insn definition supporting
11426         reg+const_int element selectors.
11427         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
11428         following expander+insn definition.
11429         ("<vec_shifts_name><mode>3"): New expander.
11430         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
11432 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11434         * config/s390/s390.md ("*tabort_1"): Change predicate to
11435         nonmemory_operand.  Add a second alternative to cover
11436         register as well as const int operands.
11437         ("*tabort_1_plus"): New pattern definition.
11439 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11441         * config/s390/s390.md ("*ashrdi3_cc_31")
11442         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
11443         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
11444         Merge insn definitions into ...
11445         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
11446         New pattern definition.
11447         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
11448         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
11449         ("*ashr<mode>3_and"): Merge insn definitions into ...
11450         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
11451         New pattern definition.
11452         * config/s390/subst.md ("addr_style_op_cc_subst")
11453         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
11454         substitutions patterns plus attributes.
11455         Add ashiftrt to SUBST iterator.
11457 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11459         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
11460         op2 to nonmemory_operand.
11461         ("*<shift>di3_31", "*<shift>di3_31_and"):
11462         Merge into single pattern definition ...
11463         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
11464         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
11465         pattern definition ...
11466         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
11467         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
11468         iterator.
11470 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11472         * config/s390/predicates.md (const_int_6bitset_operand): New
11473         predicate.
11474         * config/s390/s390.md: Include subst.md.
11475         ("rotl<mode>3"): New expander.
11476         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
11477         ...
11478         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
11479         * config/s390/subst.md: New file.
11481 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11483         * config/s390/s390.md ("op_type", "atype", "length" attributes):
11484         Remove RRR type.  It doesn't really exist.
11485         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
11486         attributes.
11487         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
11488         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
11489         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
11490         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
11491         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
11492         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
11493         `enabled' attribute.
11495 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11497         * gensupport.c (process_substs_on_one_elem): Split loop to
11498         complete mark_operands_used_in_match_dup on all expressions in the
11499         vector first.
11500         (adjust_operands_numbers): Inline into process_substs_on_one_elem
11501         and remove function.
11503 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
11505         PR target/69706
11506         * config/sparc/sparc.c (NWORDS_UP): Rename to...
11507         (CEIL_NWORDS): ...this.  Use CEIL macro.
11508         (compute_fp_layout): Adjust to above renaming.
11509         (function_arg_union_value): Likewise.
11510         (sparc_arg_partial_bytes): Likewise.
11511         (sparc_function_arg_advance): Likewise.
11513 2016-02-29  Jeff Law  <law@redhat.com>
11515         PR tree-optimization/70005
11516         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
11517         where an object with a boolean range is compared against a value
11518         outside [0..1].
11520         PR tree-optimization/69999
11521         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
11522         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
11523         loop cleanups.
11525 2016-02-29  Richard Biener  <rguenther@suse.de>
11527         PR tree-optimization/69994
11528         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
11529         (get_unary_op): Look through nop conversions.
11530         (ops_equal_values_p): New function, look for equality diregarding
11531         nop conversions.
11532         (eliminate_plus_minus_pair): Use ops_equal_values_p
11533         (repropagate_negates): Do not use get_unary_op here.
11535 2016-02-29  Martin Liska  <mliska@suse.cz>
11537         * system.h: Poison ENABLE_CHECKING macro.
11539 2016-02-29  Martin Liska  <mliska@suse.cz>
11541         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
11542         is presented in dump flags.
11543         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
11544         (hsa_regalloc): Likewise.
11546 2016-02-19  Richard Biener  <rguenther@suse.de>
11548         PR tree-optimization/69980
11549         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
11550         permutation of those we need to keep.
11552 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
11554         PR target/69706
11555         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
11556         (NWORDS_UP): ...this
11557         (init_cumulative_args): Minor tweaks.
11558         (sparc_promote_function_mode): Likewise.
11559         (scan_record_type): Delete.
11560         (traverse_record_type): New function template.
11561         (classify_data_t): New structure type.
11562         (classify_registers): New inline function.
11563         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
11564         exhausted.  Instantiate traverse_record_type on classify_registers and
11565         deal with the case of a structure passed in slot #15 with no FP field
11566         in the first word.
11567         (assign_data_t): New structure type.
11568         (compute_int_layout): New static function.
11569         (compute_fp_layout): Likewise.
11570         (count_registers): New inline function.
11571         (assign_int_registers): New static function.
11572         (assign_fp_registers): Likewise.
11573         (assign_registers): New inline function.
11574         (function_arg_record_value_1): Delete.
11575         (function_arg_record_value_2): Likewise.
11576         (function_arg_record_value_3): Likewise.
11577         (function_arg_record_value): Adjust to above changes.  Instantiate
11578         traverse_record_type on count_registers to first count the number of
11579         registers to be used and then on assign_registers to assign them.
11580         (function_arg_union_value): Adjust to above renaming.
11581         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
11582         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
11583         case of a structure passed in slot #15
11584         (sparc_function_arg_advance): Likewise.
11585         (function_arg_padding): Minor tweak.
11587 2016-02-29  Richard Biener  <rguenther@suse.de>
11589         PR tree-optimization/69720
11590         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
11591         the adjustment_def path for possibly vectorized defs.
11592         (vect_create_epilog_for_reduction): Handle vectorized initial
11593         defs properly.
11595 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
11597         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
11599 2016-02-27  Jeff Law  <law@redhat.com>
11601         Revert
11602         2016-02-26  Richard Biener  <rguenther@suse.de>
11603                     Jeff Law  <law@redhat.com>
11605         PR tree-optimization/69740
11606         * cfghooks.c (remove_edge): Request loop fixups if we delete
11607         an edge that might turn an irreducible loop into a natural
11608         loop.
11610 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
11612         PR rtl-optimization/69896
11613         * tree-vect-generic.c (get_compute_type): Avoid single element
11614         vector types.
11616 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
11618         Rename the AArch64 tuning option and related functions to enable the
11619         Newton series for the reciprocal square root to reflect its
11620         approximative characteristic.
11622         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
11623         function to "aarch64_emit_approx_rsqrt".
11624         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
11625         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
11626         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
11627         (xgene1_tunings): Likewise.
11628         (use_rsqrt_p): Likewise.
11629         (aarch64_emit_swrsqrt): Use new function name.
11630         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
11631         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
11632         text explaining this option.
11633         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
11635 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
11637         PR target/69969
11638         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11639         complain about -mallow-movmisalign without -mvsx if
11640         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
11642 2016-02-26  Joel Sherrill  <joel@rtems.org>
11644         * config.gcc: Add x86_64-*-rtems*.
11645         * config/i386/rtems-64.h: New file.
11647 2016-02-26  Joel Sherrill  <joel@rtems.org>
11649         * config.gcc: Add aarch64-*-rtems*.
11650         * config/aarch64/rtems.h: New file.
11652 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
11654         PR target/69946
11655         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
11656         shift amount using %h.  Add comment.
11658 2016-02-26  Richard Biener  <rguenther@suse.de>
11659             Jeff Law  <law@redhat.com>
11661         PR tree-optimization/69740
11662         * cfghooks.c (remove_edge): Request loop fixups if we delete
11663         an edge that might turn an irreducible loop into a natural
11664         loop.
11666 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11668         PR middle-end/69920
11669         * tree-sra.c (sra_modify_assign): Do not remove loads of
11670         uninitialized aggregates to SSA_NAMEs.
11672 2016-02-26  Richard Henderson  <rth@redhat.com>
11674         PR target/69709
11675         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
11676         pseudo in case the target rtx matches the source of the left
11677         shift.
11679 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11681         PR hsa/69568
11682         * hsa.h (hsa_type_packed_p): Declare.
11683         * hsa.c (hsa_type_packed_p): New function.
11684         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
11685         loads.
11686         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
11687         * hsa-brig.c (emit_basic_insn): Likewise.
11689 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11691         pr hsa/69674
11692         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
11693         pointers.
11694         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
11696 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11698         * hsa.h (is_a_helper): New overload for hsa_op_immed for
11699         hsa_op_with_type operands.
11700         (hsa_unsigned_type_for_type): Declare.
11701         * hsa.c (hsa_unsigned_type_for_type): New function.
11702         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
11703         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
11704         the finalizer.  Do not emit extra move.
11706 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11708         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
11709         atomic operations in private segment.
11711 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11713         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
11714         statements to wi->info.  Also disallow omp simd constructs.
11715         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
11716         for not gridifying.  Dump special string for omp_for.
11718 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11720         PR target/69245
11721         * config/aarch64/aarch64.c (aarch64_set_current_function):
11722         Save/restore target globals when switching to
11723         target_option_default_node.
11725 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11727         PR target/69613
11728         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
11729         Return 0 if !SHIFT_COUNT_TRUNCATED.
11731 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
11732             Eric Botcazou  <ebotcazou@adacore.com>
11734         PR rtl-optimization/69891
11735         * dse.c (scan_insn): If we can't figure out memset arguments
11736         or they are non-constant, call clear_rhs_from_active_local_stores.
11738 2016-02-26  Martin Liska  <mliska@suse.cz>
11740         * doc/extend.texi: Mention clog10, clog10f an clog10l
11741         in Builtins section.
11743 2016-02-26  Martin Liska  <mliska@suse.cz>
11745         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
11746         CHECKING_P.
11747         (resolve_args_picking_1): Likewise.
11748         * dwarf2out.h (struct GTY): Likewise.
11750 2016-02-26  Martin Liska  <mliska@suse.cz>
11752         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
11753         with flag_checking.
11754         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
11756 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
11757             Martin Liska  <mliska@suse.cz>
11759         * doc/install.texi: Mention --enable-valgrind-annotations.
11761 2016-02-26  Richard Biener  <rguenther@suse.de>
11763         PR tree-optimization/69551
11764         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
11765         looking through aliases adjust DECL_PT_UID to refer to the
11766         ultimate alias target.
11768 2016-02-25  Martin Liska  <mliska@suse.cz>
11770         PR middle-end/69919
11771         * alloc-pool.c (after_memory_report): New variable.
11772         * alloc-pool.h (base_pool_allocator ::release): Do not use
11773         the infrastructure if after_memory_report.
11774         * toplev.c (toplev::main): Mark after memory report.
11776 2016-02-25  Richard Biener  <rguenther@suse.de>
11778         PR tree-optimization/48795
11779         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
11781 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
11783         PR driver/68463
11784         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
11785         offloading is enabled and -fopenacc or -fopenmp is specified.
11786         (CRTOFFLOADEND): Likewise.
11787         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
11788         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
11789         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
11790         (offload_objects_file_name): New static var.
11791         (tool_cleanup): Remove offload_objects_file_name file.
11792         (find_offloadbeginend): Replace with ...
11793         (find_crtoffloadtable): ... this.
11794         (run_gcc): Remove offload_argc and offload_argv.
11795         Get offload_objects_file_name from -foffload-objects=... option.
11796         Read names of object files with offload from this file, pass them to
11797         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
11798         don't pass offloadbegin and offloadend to the linker.  Don't pass
11799         offload non-LTO files to the linker, because now they're not claimed.
11801 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
11803         PR ipa/69630
11804         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
11805         on builtin_unreachable.
11807 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
11809         PR rtl-optimization/69896
11810         * regcprop.c: Include cfgrtl.h.
11811         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
11812         than remembered mode, either delete it (if noop_move_p), or
11813         treat like copy_p but not noop_p instruction.
11815 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11817         PR debug/69705
11818         * dwarf2out.c (gen_variable_die): Work around buggy LTO
11819         - allow NULL decl for Fortran DW_TAG_common_block variables.
11821 2016-02-24  Jason Merrill  <jason@redhat.com>
11823         * common.opt (flifetime-dse): Add -flifetime-dse=1.
11825 2016-02-24  Richard Biener  <rguenther@suse.de>
11826             Jakub Jelinek  <jakub@redhat.com>
11828         PR middle-end/69760
11829         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
11830         conditionally executed ops to well-defined overflow behavior.
11832 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11834         PR middle-end/69915
11835         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
11836         elements.
11838 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11840         PR rtl-optimization/69886
11841         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
11842         argument.  Use it when checking validity of set instructions.
11843         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
11844         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
11845         callsite.
11846         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
11847         * store-motion.c (find_moveable_store): Update
11848         can_assign_to_reg_without_clobbers_p callsite.
11850 2016-02-24  Richard Biener  <rguenther@suse.de>
11852         PR middle-end/68963
11853         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
11854         bogus check.
11855         (record_nonwrapping_iv): Do not fall back to the low/high bound
11856         for non-constant IV bases if the stmt is not always executed.
11858 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11860         * config/arm/arm-cores.def (cortex-a32): New entry.
11861         * config/arm/arm-tables.opt: Regenerate.
11862         * config/arm/arm-tune.md: Regenerate.
11863         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
11864         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
11865         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
11866         for -mcpu and -mtune.
11868 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11870         PR target/69875
11871         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
11872         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
11873         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
11874         (atomic_loaddi_1): Delete.
11875         (atomic_loaddi): Rewrite expander using the above changes.
11877 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11879         PR c/69918
11880         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
11881         2 to 3.
11883 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11884             Richard Biener  <rguenth@suse.de>
11886         PR middle-end/69909
11887         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
11888         set_mem_attributes if tem is SSA_NAME which got expanded
11889         as a MEM.
11891 2016-02-24  Richard Biener  <rguenther@suse.de>
11893         PR tree-optimization/69907
11894         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
11895         end of permutations for BB vectorization.
11897 2016-02-24  Christian Bruel  <christian.bruel@st.com>
11899         * config/arm/arm-c.c (arm_option_override): Initialize
11900         target_option_current_node.
11901         * config/arm/arm.c (arm_pragma_target_parse): Replace
11902         build_target_option_node call by target_option_current_node.
11903         Set target_option_current_node.
11904         Fix comments.
11906 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
11908         PR target/69810
11909         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
11910         define_insn_and_split to define_insn.
11911         (zero_extendqi<mode>2_dot2): Same.
11912         (extendqi<mode>2_dot): Same.
11913         (extendqi<mode>2_dot2): Same.
11915 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
11917         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
11918         and add bypass for AES{D,E} and AESMC pairs.
11919         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
11920         and AESMC pairs.
11922 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
11924         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
11925         series for reciprocal square root in Exynos M1.
11927 2016-02-23  Martin Sebor  <msebor@redhat.com>
11929         PR c/69759
11930         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
11931         __builtin_alloca_with_align.
11933 2016-02-23  Richard Henderson  <rth@redhat.com>
11935         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
11936         (ix86_register_pragmas): Remove __seg_tls.
11937         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
11938         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
11939         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
11940         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
11941         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
11942         * doc/extend.texi (__seg_tls): Remove item.
11944 2016-02-23  Richard Biener  <rguenther@suse.de>
11946         * alloc-pool.h (struct allocation_object): Make id member
11947         conditional on CHECKING_P again.
11948         (get_instance): Adjust.
11949         (base_pool_allocator): Likewise.
11951 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
11953         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
11954         (parallelize_loops): In OpenACC kernels mode, set n_threads to
11955         zero.
11956         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
11957         flag_openacc.
11958         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
11960 2016-02-23  Richard Biener  <rguenther@suse.de>
11962         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
11963         * bitmap.h (struct bitmap_usage): Likewise.
11964         (bitmap_move): Declare.
11965         * bitmap.c (register_overhead): Take size_t argument.
11966         (bitmap_move): New function.
11967         * df-problems.c (df_rd_transfer_function): Use bitmap_move
11968         to properly account overhead.
11969         * tree.c (free_node): Use tree_size.
11971 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
11973         PR c++/69902
11974         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
11975         when inverting comparison.
11977         PR c/69900
11978         * common.opt (Wunreachable-code): Add Warning flag.
11980 2016-02-23  Mark Wielaard  <mjw@redhat.com>
11981             Jakub Jelinek  <jakub@redhat.com>
11983         PR c/69911
11984         * cgraphunit.c (check_global_declaration): Check main_input_filename
11985         and DECL_SOURCE_FILE are not NULL.
11987 2016-02-23  Martin Jambor  <mjambor@suse.cz>
11989         PR tree-optimization/69666
11990         * tree-sra.c (sra_modify_assign): Do not attempt to create
11991         default_def replacements for unscalarizable regions.
11993 2016-02-20  Mark Wielaard  <mjw@redhat.com>
11995         PR c/28901
11996         * cgraphunit.c (check_global_declaration): Check level of
11997         warn_unused_const_variable and main_input_filename.
11998         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
11999         (-Wunused-variable): For C implies -Wunused-const-variable=1.
12000         (-Wunused-const-variable): Explain levels 1 and 2.
12002 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
12004         PR target/69888
12005         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
12006         identical arguments.  Formatting and spelling fixes.
12008         PR target/69885
12009         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
12010         be specified.
12012         PR target/69894
12013         PR target/69895
12014         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
12015         and m68k-devices.def.
12016         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
12017         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
12019 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
12021         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
12022         and HImode registers.
12024 2016-02-22  Richard Biener  <rguenther@suse.de>
12026         PR tree-optimization/69882
12027         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
12028         preserve permutations present because of gaps.
12029         (vect_supported_load_permutation_p): Always continue checking
12030         permutations after vect_attempt_slp_rearrange_stmts.
12032 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
12034         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
12035         min_profitable_estimate, rather than min_profitable_iters.
12037 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
12039         PR target/69885
12040         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
12041         SImode for last match_operand.
12043 2016-02-22  Martin Liska  <mliska@suse.cz>
12045         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
12046         return bitsize - 1 as the return value.
12048 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
12050         PR target/69806
12051         PR target/54089
12052         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
12053         Handle negative shift counts.
12054         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
12055         force_reg on the shift constant.
12056         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
12057         (lshrsi3_d): Handle negative shift counts.
12059 2016-02-22  Richard Biener  <rguenther@suse.de>
12060             Tom de Vries  <tom@codesourcery.com>
12062         * graph.c: Include dumpfile.h.
12063         (print_graph_cfg): Split into three overloads.
12064         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
12066 2016-02-22  Tom de Vries  <tom@codesourcery.com>
12068         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
12069         dump-fn.
12071 2016-02-22  Richard Biener  <rguenther@suse.de>
12073         PR ipa/37448
12074         * ipa-inline-transform.c (inline_call): When not updating
12075         overall summaries adjust self size by the growth estimate.
12076         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
12077         hash-set, do not update overall summaries here.  Renamed from ...
12078         (inline_to_all_callers): ... this which is now wrapping the
12079         above and performing delayed overall summary update.
12080         (early_inline_small_functions): Delay updating of the overall
12081         summary.
12083 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
12085         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
12086         variable.
12088 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
12090         PR driver/69805
12091         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
12092         :%* in %:gt() argument.
12093         (greater_than_spec_func): Adjust for expecting only numbers,
12094         if there are more than two numbers, compare the last two.
12096 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
12098         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
12099         -Wnarrowing with -std.
12101 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
12103         PR c++/69851
12104         * expr.c (store_field): Don't use bit-field path if exp is
12105         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
12106         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
12107         and the assignment can be performed by bitwise copy.  Formatting
12108         fix.
12110         PR middle-end/69838
12111         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
12112         call copy_reg_eh_region_note_forward on before and/or after sequences
12113         and remove note from insn if it no longer can throw.
12115         PR target/69820
12116         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
12117         if TARGET_AVX512BW.
12119 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12121         * config/s390/vector.md: Add missing commutative operand markers
12122         to the patterns which qualify for one.
12123         * config/s390/vx-builtins.md: Likewise.
12125 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12127         * config/s390/vector.md (VI, VI_QHS): Add single element vector
12128         types to mode iterators.
12129         (vec_double): ... and mode attribute.
12130         * config/s390/vx-builtins.md (non_vec_int): Likewise.
12132 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12134         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
12135         Change the predicate of op2 from nonimmediate to general and let
12136         reload fix it if necessary.
12138 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12140         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
12142 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12144         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
12145         mode.
12147 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12149         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
12150         * config/s390/s390.c (s390_expand_vec_movstr): New function.
12151         * config/s390/s390.md ("movstr<P:mode>"): Call
12152         s390_expand_vec_movstr.
12154 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12156         * config/s390/s390.md: Add missing output modifier for operand 1
12157         to print it as address properly.
12159 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12161         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
12162         * config/s390/2964.md: New file.
12163         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
12164         of insn grouping attributes depending on the CPU level.
12165         (s390_get_unit_mask): New function.
12166         (s390_sched_score): Remove the OOO from the scheduling macros.
12167         Add loop to calculate a score for the instruction mix.
12168         (s390_sched_reorder): Likewise plus improve debug output.
12169         (s390_sched_variable_issue): Rename macros as above.  Calculate
12170         the unit distances after actually scheduling an insn.  Improve
12171         debug output.
12172         (s390_sched_init): Clear last_scheduled_unit_distance array.
12173         * config/s390/s390.md: Include 2964.md.
12175 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
12177         PR target/69671
12178         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
12179         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
12180         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
12181         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
12182         *avx512f_<code>v8div16qi2_mask_1): New insns.
12184 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
12186         PR target/68404
12187         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
12188         2016-02-09 change.
12190         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
12191         earlyclobber from target.  Use wF constraint for fused memory
12192         address.
12193         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
12195 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
12196             Martin Liska  <mliska@suse.cz>
12198         PR sanitizer/69863
12199         * cfgexpand.c (asan_sanitize_stack_p): New function.
12200         (partition_stack_vars): Use the function.
12201         (expand_stack_vars): Likewise.
12202         (defer_stack_allocation): Likewise.
12203         (expand_used_vars): Likewise.
12205 2016-02-18  Richard Biener  <rguenther@suse.de>
12207         PR middle-end/69553
12208         * fold-const.c (operand_equal_p): Properly compare offsets for
12209         IMAGPART_EXPR and ARRAY_REF.
12211 2016-02-18  Nick Clifton  <nickc@redhat.com>
12213         PR target/62254
12214         PR target/69610
12215         * config/arm/arm.c (arm_option_override_internal): Disable
12216         interworking if the target does not support thumb instructions.
12217         (arm_reload_in_hi): Handle the case where a register to register
12218         move needs reloading because there is no simple pattern to handle
12219         it.
12220         (arm_reload_out_hi): Likewise.
12222 2016-02-18  Richard Biener  <rguenther@suse.de>
12224         PR middle-end/69854
12225         * match.pd: Don't use fold_binary or fold_unary for folding
12226         constants.
12228 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
12230         PR c++/69850
12231         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
12232         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
12233         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
12234         warn on gimple_no_warning_p statements.
12236 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
12238         * doc/extend.texi (C++ Attributes): Correct description of
12239         warn_unused type attribute.
12241 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12243         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
12244         correct instruction.
12246 2016-02-17  Richard Biener  <rguenther@suse.de>
12248         PR rtl-optimization/69609
12249         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
12250         (find_traces_1_round): When ending a trace update cached priority
12251         of successors.
12252         (bb_to_key): Use cached priority when available.
12253         (copy_bb): Initialize cached priority.
12254         (reorder_basic_blocks_software_trace_cache): Likewise.
12256 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12258         PR target/69161
12259         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
12260         New predicate.
12261         (aarch64_comparison_operator): Break overly long line into two.
12262         (aarch64_comparison_operation): Likewise.
12263         * config/aarch64/aarch64.md (cstorecc4): Use
12264         aarch64_comparison_operator_mode instead of
12265         aarch64_comparison_operator.
12266         (cstore<mode>4): Likewise.
12267         (aarch64_cstore<mode>): Likewise.
12268         (*cstoresi_insn_uxtw): Likewise.
12269         (cstore<mode>_neg): Likewise.
12270         (*cstoresi_neg_uxtw): Likewise.
12272 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12274         PR target/69161
12275         * config/arm/predicates.md (arm_comparison_operator_mode):
12276         New predicate.
12277         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
12278         instead of arm_comparison_operator.
12279         (*mov_negscc): Likewise.
12280         (*mov_notscc): Likewise.
12281         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
12282         (*thumb2_mov_negscc): Likewise.
12283         (*thumb2_mov_negscc_strict_it): Likewise.
12284         (*thumb2_mov_notscc): Likewise.
12285         (*thumb2_mov_notscc_strict_it): Likewise.
12287 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
12289         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
12290         Add missing return.
12292 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
12294         * config/visium/visium.c (machine_libfunc_index): New enum.
12295         (machine_libfuncs): New structure.
12296         (visium_libfuncs): New static variable.
12297         (TARGET_INIT_LIBFUNCS): Define to...
12298         (visium_init_libfuncs): ...this.  New function.
12299         (expand_block_move_4): Use the appropriate libfunc.
12300         (expand_block_move_2): Likewise.
12301         (expand_block_move_1): Likewise.
12302         (expand_block_set_4): Likewise.
12303         (expand_block_set_2): Likewise.
12304         (expand_block_set_1): Likewise.
12305         (visium_trampoline_init): Likewise.
12307 2016-02-17  Nick Clifton  <nickc@redhat.com>
12309         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
12310         TI's devices.csv file as of March 2016.
12312 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12314         PR Target/48344
12315         * opts-global.c (handle_common_deferred_options): Introduce and
12316         initialize two global variables to remember command-line options
12317         specifying a stack-limiting register.
12318         * opts.h: Add extern declarations of the two new global variables.
12319         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
12320         variable based on the values of the two new global variables.
12322 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
12324         PR c/69835
12325         * common.opt (Wnonnull-compare): New warning.
12326         * doc/invoke.texi (-Wnonnull): Remove text about comparison
12327         of arguments against NULL.
12328         (-Wnonnull-compare): Document.
12329         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
12330         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
12331         * passes.def (pass_warn_nonnull_compare): Add.
12332         * gimple-ssa-nonnull-compare.c: New file.
12334 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
12336         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
12337         AARCH64_EXTRA_TUNE_RECIP_SQRT.
12339 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
12341         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
12342         reciprocal sqrt for -mlow-precision-recip-sqrt.
12344 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
12345             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12347         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
12348         always use lane loads to construct non-constant vectors.
12350 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
12352         * config/aarch64/aarch64.md
12353         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
12354         constraints for operand 3.
12355         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
12357 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
12358             Richard Biener  <rguenther@suse.de>
12360         PR tree-optimization/69820
12361         * tree-vect-patterns.c (type_conversion_p): Return false if
12362         *orig_type is unsigned single precision or boolean.
12363         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
12364         Formatting fix.
12366 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
12368         PR rtl-optimization/69764
12369         PR rtl-optimization/69771
12370         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
12371         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
12373 2016-02-16  Richard Biener  <rguenther@suse.de>
12375         PR tree-optimization/69776
12376         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
12377         sets from caller.
12378         (indirect_refs_may_alias_p): Likewise.
12379         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
12380         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
12381         according to tbaa_p.
12382         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
12383         (optimize_stmt): For redundant store discovery do not allow tbaa.
12385 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
12387         PR tree-optimization/69714
12388         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
12389         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
12391 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
12393         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
12394         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
12395         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
12396         * config/arc/arc.c (arc_init): Check FPU options.
12397         (get_arc_condition_code): Handle new CC_FPU* modes.
12398         (arc_select_cc_mode): Likewise.
12399         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
12400         register pair only. Allow access for ARCv2 accumulator.
12401         (gen_compare_reg): Whenever we have FPU support use FPU compare
12402         instructions.
12403         (arc_reorg): Don't generate brcc insns when FPU compare
12404         instructions are involved.
12405         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
12406         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
12407         floating point emulation.
12408         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
12409         (REVERSE_CONDITION): Add new CC_FPU* modes.
12410         (TARGET_FP_SP_BASE): Define.
12411         (TARGET_FP_DP_BASE): Likewise.
12412         (TARGET_FP_SP_FUSED): Likewise.
12413         (TARGET_FP_DP_FUSED): Likewise.
12414         (TARGET_FP_SP_CONV): Likewise.
12415         (TARGET_FP_DP_CONV): Likewise.
12416         (TARGET_FP_SP_SQRT): Likewise.
12417         (TARGET_FP_DP_SQRT): Likewise.
12418         (TARGET_FP_DP_AX): Likewise.
12419         * config/arc/arc.md (ARCV2_ACC): New constant.
12420         (type): New fpu type attribute.
12421         (SDF): Conditional iterator.
12422         (cstore<mode>, cbranch<mode>): Change expand condition.
12423         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
12424         handles FPU/FPX cases as well.
12425         * config/arc/arc.opt (mfpu): New option.
12426         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
12427         Renamed.
12428         (adddf3, muldf3, subdf3): Removed.
12429         * config/arc/predicates.md (proper_comparison_operator): Recognize
12430         CC_FPU* modes.
12431         * config/arc/fpu.md: New file.
12432         * doc/invoke.texi (ARC Options): Document mfpu option.
12434 2016-02-16  Richard Biener  <rguenther@suse.de>
12436         PR rtl-optimization/69291
12437         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
12438         noce_operand_ok check.
12440 2016-02-16  Tom de Vries  <tom@codesourcery.com>
12442         PR lto/67709
12443         * omp-low.c (simd_clone_create): Remove call to
12444         symtab->call_cgraph_insertion_hooks.
12446 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
12448         PR tree-optimization/69802
12449         * tree-ssa-reassoc.c (update_range_test): If op is
12450         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
12451         op == 1 test of precision 1 integral op, otherwise handle
12452         that case as op itself.  Fix up formatting.
12453         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
12454         up formatting.
12456 2016-02-16  Richard Biener  <rguenther@suse.de>
12458         PR tree-optimization/69586
12459         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
12460         types for conversion sources.
12462 2016-02-16  Richard Biener  <rguenther@suse.de>
12464         PR middle-end/69801
12465         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
12466         mask OEP_ADDRESS_OF.
12468 2016-02-16  Alan Modra  <amodra@gmail.com>
12470         PR target/68973
12471         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
12472         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
12473         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
12474         (p8_mtvsrwz): New.
12475         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
12476         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
12477         (p8_fmrgow_<mode>): Likewise.
12478         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
12479         changes.
12480         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
12481         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
12482         to use movdi_internal64.  Remove op0_di.
12483         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
12485 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
12487         Add support for the FCCMP insn types
12489         * config/aarch64/aarch64.md (fccmp): Change insn type.
12490         (fccmpe): Likewise.
12491         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
12492         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
12493         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
12494         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
12495         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
12496         * config/arm/types.md (fccmps): Add new insn type.
12497         (fccmpd): Likewise.
12499 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12501         * alias.c (get_alias_set): Fix a typo in comment.
12503 2016-02-15  Richard Biener  <rguenther@suse.de>
12505         PR tree-optimization/69595
12506         * match.pd: Complete range test simplification to true.
12508 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
12510         PR rtl-optimization/69648
12511         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
12512         pic_offset_table_rtx.
12514         PR rtl-optimization/69752
12515         * ira.c (update_equiv_regs): When looking for more than a single SET,
12516         also take other side effects into account.
12518 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
12520         * config/s390/s390.c (s390_function_profiler): Add a new sequence
12521         for z900+ CPUs in 31-bit mode.
12523 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
12525         * common/config/s390/s390-common.c (s390_supports_split_stack):
12526         New function.
12527         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
12528         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
12529         * config/s390/s390.c (struct machine_function): New field
12530         split_stack_varargs_pointer.
12531         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
12532         in s390_emit_prologue.
12533         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
12534         vararg pointer.
12535         (morestack_ref): New global.
12536         (SPLIT_STACK_AVAILABLE): New macro.
12537         (s390_expand_split_stack_prologue): New function.
12538         (s390_live_on_entry): New function.
12539         (s390_va_start): Use split-stack vararg pointer if appropriate.
12540         (s390_asm_file_end): Emit the split-stack note sections.
12541         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
12542         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
12543         (UNSPECV_SPLIT_STACK_CALL): New unspec.
12544         (UNSPECV_SPLIT_STACK_DATA): New unspec.
12545         (split_stack_prologue): New expand.
12546         (split_stack_space_check): New expand.
12547         (split_stack_data): New insn.
12548         (split_stack_call): New expand.
12549         (split_stack_call_*): New insn.
12550         (split_stack_cond_call): New expand.
12551         (split_stack_cond_call_*): New insn.
12553 2016-02-15  Richard Biener  <rguenther@suse.de>
12555         PR tree-optimization/69783
12556         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12557         Add trivially correct cases.
12559 2016-02-15  Tom de Vries  <tom@codesourcery.com>
12561         PR lto/69655
12562         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
12563         do_force_output.
12564         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
12566 2016-02-15  Richard Biener  <rguenther@suse.de>
12568         PR tree-optimization/69776
12569         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
12570         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
12571         indicate whether we can use TBAA to disambiguate against stores.
12572         Use alias-set zero if not.
12573         (visit_reference_op_store): Do not use TBAA when looking up
12574         redundant stores.
12575         * tree-ssa-pre.c (compute_avail): Use TBAA here.
12576         (eliminate_dom_walker::before_dom_children): But not when looking
12577         up redundant stores.
12579 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
12581         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
12583 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12585         *  config/i386/znver1.md
12586         (znver1_pop, znver1_pop_mem,
12587         znver1_load_imov_double_store,
12588         znver1_load_imov_direct_store,
12589         znver1_load_imov_direct_load,
12590         znver1_load_imov_double_load): Add new.
12591         (znver1_insn, znver1_insn_load): Add icmov type.
12592         (znver1_sseavx_fma,
12593         znver1_sseavx_fma_load,
12594         znver1_avx256_fma,
12595         znver1_avx256_fma_load): Fix pipe usage.
12597 2016-02-14  Alan Modra  <amodra@gmail.com>
12599         PR target/68973
12600         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
12601         with an invalid hard reg, reload just the reg not the entire
12602         pre/post-inc/dec address expression.
12604 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
12606         PR target/67260
12607         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
12608         fixed R1_REG scratch reg.
12609         (sibcall_value_pcrel_fdpic): Likewise.
12611 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
12613         PR target/67636
12614         PR target/64345
12615         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
12617 2016-02-12  Walter Lee  <walt@tilera.com>
12619         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
12620         * config/tilegx/t-tilegx: Likewise.
12622 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
12624         PR other/69554
12625         * diagnostic-show-locus.c (struct line_span): New struct.
12626         (layout::get_first_line): Delete.
12627         (layout::get_last_line): Delete.
12628         (layout::get_num_line_spans): New member function.
12629         (layout::get_line_span): Likewise.
12630         (layout::print_heading_for_line_span_index_p): Likewise.
12631         (layout::get_expanded_location): Likewise.
12632         (layout::calculate_line_spans): Likewise.
12633         (layout::m_first_line): Delete.
12634         (layout::m_last_line): Delete.
12635         (layout::m_line_spans): New field.
12636         (layout::layout): Update comment.  Replace m_first_line and
12637         m_last_line with m_line_spans, replacing their initialization
12638         with a call to calculate_line_spans.
12639         (diagnostic_show_locus): When printing source lines and
12640         annotations, rather than looping over a single span
12641         of lines, instead loop over each line_span within
12642         the layout, with an inner loop over the lines within them.
12643         Call the context's start_span callback when changing line spans.
12644         * diagnostic.c (diagnostic_initialize): Initialize start_span.
12645         (diagnostic_build_prefix): Break out the building of the location
12646         part of the string into...
12647         (diagnostic_get_location_text): ...this new function, rewriting
12648         it from nested ternary expressions to a sequence of "if"
12649         statements.
12650         (default_diagnostic_start_span_fn): New function.
12651         * diagnostic.h (diagnostic_start_span_fn): New typedef.
12652         (diagnostic_context::start_span): New field.
12653         (default_diagnostic_start_span_fn): New prototype.
12655 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
12657         PR driver/69779
12658         * gcc.c (driver::finalize): Fix cleanup of "specs".
12660 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
12662         PR driver/69265
12663         PR driver/69453
12664         * gcc.c (driver::driver): Initialize m_option_suggestions.
12665         (driver::~driver): Clean up m_option_suggestions.
12666         (suggest_option): Convert to...
12667         (driver::suggest_option): ...this, and split out into
12668         driver::build_option_suggestions and find_closest_string.
12669         (driver::build_option_suggestions): New function, from
12670         first half of suggest_option.  Special-case
12671         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
12672         the sanitizer_opts array.  For options of enum types, add the
12673         various enum values to the candidate strings.
12674         (driver::handle_unrecognized_options): Remove "const".
12675         * gcc.h (driver::handle_unrecognized_options): Likewise.
12676         (driver::build_option_suggestions): New decl.
12677         (driver::suggest_option): New decl.
12678         (driver::m_option_suggestions): New field.
12679         * opts-common.c (add_misspelling_candidates): New function.
12680         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
12681         and make non-static.
12682         * opts.h (sanitizer_opts): New array decl.
12683         (add_misspelling_candidates): New function decl.
12684         * spellcheck.c (find_closest_string): New function.
12685         * spellcheck.h (find_closest_string): New function decl.
12687 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
12689         PR rtl-optimization/69764
12690         PR rtl-optimization/69771
12691         * optabs.c (expand_binop_directly): For shift_optab_p, force
12692         convert_modes with VOIDmode if xop1 has VOIDmode.
12694 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
12696         PR target/69729
12697         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
12698         to correctly determine instrumentation thunks.
12700 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
12702         PR ipa/69241
12703         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
12704         type by reference, force lhs on the call.
12706         PR ipa/68672
12707         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
12708         Compute retval and retbnd early in all cases if split_part_return_p
12709         and return_bb is not EXIT.  Remove all clobber stmts and reset
12710         all debug stmts that refer to SSA_NAMEs defined in split part,
12711         except if it is retval, in that case replace the old retval with the
12712         lhs of the call to the split part.
12714 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12716         revert:
12717         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12719         PR middle-end/66726
12720         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
12721         whose result is used in PHI.
12722         (maybe_optimize_range_tests): Likewise.
12723         (final_range_test_p): Likweise.
12725 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12727         PR middle-end/66726
12728         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
12729         whose result is used in PHI.
12730         (maybe_optimize_range_tests): Likewise.
12731         (final_range_test_p): Likweise.
12733 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
12735         * cgraph.c: Spelling fixes - behaviour -> behavior and
12736         neighbour -> neighbor.
12737         * target.def: Likewise.
12738         * sel-sched.c: Likewise.
12739         * config/mips/mips.c: Likewise.
12740         * config/arc/arc.md: Likewise.
12741         * config/arm/cortex-a57.md: Likewise.
12742         * config/arm/arm.c: Likewise.
12743         * config/arm/neon.md: Likewise.
12744         * config/arm/arm-c.c: Likewise.
12745         * config/vms/vms-c.c: Likewise.
12746         * config/s390/s390.c: Likewise.
12747         * config/i386/znver1.md: Likewise.
12748         * config/i386/i386.c: Likewise.
12749         * config/ia64/hpux-unix2003.h: Likewise.
12750         * config/msp430/msp430.md: Likewise.
12751         * config/rx/rx.c: Likewise.
12752         * config/rx/rx.md: Likewise.
12753         * config/aarch64/aarch64-simd.md: Likewise.
12754         * config/aarch64/aarch64.c: Likewise.
12755         * config/nvptx/nvptx.c: Likewise.
12756         * config/bfin/bfin.c: Likewise.
12757         * config/cris/cris.opt: Likewise.
12758         * config/rs6000/rs6000.c: Likewise.
12759         * target.h: Likewise.
12760         * spellcheck.c: Likewise.
12761         * ira-build.c: Likewise.
12762         * tree-inline.c: Likewise.
12763         * builtins.c: Likewise.
12764         * lra-constraints.c: Likewise.
12765         * explow.c: Likewise.
12766         * hwint.h: Likewise.
12767         * targhooks.c: Likewise.
12768         * tree-vect-data-refs.c: Likewise.
12769         * expr.c: Likewise.
12770         * doc/tm.texi: Likewise.
12771         * doc/extend.texi: Likewise.
12772         * doc/install.texi: Likewise.
12773         * doc/md.texi: Likewise.
12774         * tree-ssa-tail-merge.c: Likewise.
12775         * sched-int.h: Likewise.
12776         * match.pd: Likewise.
12777         * sched-ebb.c: Likewise.
12778         * target.def (omit_struct_return_reg): Likewise.
12779         * gimple-ssa-isolate-paths.c: Likewise.
12780         (find_implicit_erroneous_behaviour): Renamed to...
12781         (find_implicit_erroneous_behavior): ... this.
12782         (find_explicit_erroneous_behaviour): Renamed to...
12783         (find_explicit_erroneous_behavior): ... this.
12784         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
12786 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
12788         PR rtl-optimization/64682
12789         PR rtl-optimization/69567
12790         PR rtl-optimization/69737
12791         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
12792         in I2 as well, just lose it.
12794 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12796         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
12797         New variable.
12798         (aarch64_last_printed_tune_string): Likewise.
12799         (aarch64_declare_function_name): Only output .arch assembler
12800         directive if it will be different from the previously output
12801         directive.  Same for .tune comment but only if -dA is set.
12802         (aarch64_start_file): New function.
12803         (TARGET_ASM_FILE_START): Define.
12805 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
12807         PR plugins/69758
12808         * Makefile.in (PLUGIN_HEADERS): Add params.list.
12810 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
12812         PR target/65313
12813         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
12814         -Wmaybe-uninitialized warning.
12816 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
12818         PR target/69713
12819         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
12821 2016-02-11  Richard Biener  <rguenther@suse.de>
12823         PR rtl-optimization/69291
12824         * ifcvt.c (noce_try_store_flag_constants): Do not allow
12825         subexpressions affected by changing the result.
12827 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
12829         PR target/69148
12830         * lra-constraints.c (curr_insn_transform): Find in/out operands
12831         for secondary memory moves.  Update dups.
12833 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
12835         PR tree-optimization/69652
12836         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
12837         to nested loop, did source re-formatting, skip debug statements,
12838         add check on statement with volatile operand, remove dead scalar
12839         statements.
12841 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
12842             Patrick Palka  <ppalka@gcc.gnu.org>
12844         PR ipa/69241
12845         PR c++/69649
12846         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
12847         calls if the return type is TREE_ADDRESSABLE.
12848         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
12849         * ipa-split.c (split_function): Fix doubled "we" in comment.
12850         Use void return type for the split part even if
12851         !split_point->split_part_set_retval.
12853 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
12855         PR tree-optimization/68021
12856         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
12857         when computing the value of biv cand by itself.
12859 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
12861         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
12862         (cortexa57_tunings): Likewise.
12863         (cortexa72_tunings): Likewise.
12864         (arch_macro_fusion_pair_p): Add support for AES fusion.
12865         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
12866         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
12867         Allow virtual registers before reload so early scheduling works.
12868         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
12869         correct latency and pipeline.
12870         (cortex_a57_crypto_complex): Likewise.
12871         (cortex_a57_crypto_xor): Likewise.
12872         (define_bypass): Add AES bypass.
12874 2016-02-10  Richard Biener  <rguenther@suse.de>
12876         PR tree-optimization/69726
12877         * passes.def: Add DCE pass before late uninit.
12878         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
12879         really fixup if-conversions job.
12881 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
12883         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
12884         (arm_cortex_a57_tune): Likewise.
12885         (aarch_macro_fusion_pair_p): Add support for AES fusion.
12886         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
12888 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
12890         * timevar.def (TV_PHASE_DBGINFO): Delete.
12891         (TV_PHASE_CHECK_DBGINFO): Likewise.
12892         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
12894 2016-02-10  Richard Biener  <rguenther@suse.de>
12896         PR tree-optimization/69719
12897         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12898         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
12900 2016-02-09  Andrew Pinski  <apinski@cavium.com>
12902         PR tree-opt/69282
12903         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
12904         get_vcond_mask_icode returns false.
12906 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
12908         PR target/68404
12909         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
12910         an ADDIS that adds a pointer to a large constant that sets the
12911         upper16 bits with a load operation.
12913 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
12915         PR target/68532
12916         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
12917         order.
12918         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
12919         endian.
12920         (vzipq_s16): Likewise.
12921         (vzipq_s32): Likewise.
12922         (vzipq_f32): Likewise.
12923         (vzipq_u8): Likewise.
12924         (vzipq_u16): Likewise.
12925         (vzipq_u32): Likewise.
12926         (vzipq_p8): Likewise.
12927         (vzipq_p16): Likewise.
12929 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
12931         PR target/68532
12932         * config/arm/arm.c (neon_endian_lane_map): New function.
12933         (neon_vector_pair_endian_lane_map): New function.
12934         (arm_evpc_neon_vuzp): Allow for big endian lane order.
12935         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
12936         endian.
12937         (vuzpq_s16): Likewise.
12938         (vuzpq_s32): Likewise.
12939         (vuzpq_f32): Likewise.
12940         (vuzpq_u8): Likewise.
12941         (vuzpq_u16): Likewise.
12942         (vuzpq_u32): Likewise.
12943         (vuzpq_p8): Likewise.
12944         (vuzpq_p16): Likewise.
12946 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
12948         PR target/69634
12949         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
12950         debug insns.
12952 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
12954         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
12955         truncate const_int operand 1 to QImode.
12957 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
12959         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
12960         corresponding to an abnormal edge.
12962 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12964         PR tree-optimization/69599
12965         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
12966         function.
12967         (find_func_aliases_for_builtin_call, find_func_clobbers)
12968         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
12969         partition.
12971 2016-02-09  Richard Biener  <rguenther@suse.de>
12973         PR tree-optimization/69715
12974         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
12975         LHS on calls as non-rewritable.
12977 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12979         PR lto/69707
12980         * lto-wrapper.c (append_diag_options): New function.
12981         (compile_offload_image): Call append_diag_options.
12983 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
12985         PR other/69722
12986         * doc/extend.texi (Flag Output Operands): Correct sectioning.
12987         Minor copy-edit to fix verb tenses.
12989 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
12991         PR tree-optimization/69209
12992         * ipa-split.c (split_function): If split part is not
12993         returning retval, retval has gimple type but is not
12994         gimple value, force it into a SSA_NAME first.
12996 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
12998         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
12999         outdated section.
13001 2016-02-08  Jason Merrill  <jason@redhat.com>
13003         PR c++/69631
13004         * convert.c (convert_to_integer_1): Check dofold on truncation
13005         distribution.
13006         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
13007         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
13008         Rename from *_nofold.
13009         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
13010         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
13012 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
13014         PR target/60410
13015         * tree.c (build_common_tree_nodes): Remove short_double argument.
13016         All callers changed.
13017         * tree.h (build_common_tree_nodes): Adjust declaration.
13018         * doc/invoke.texi (-fshort-double): Remove documentation.
13019         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13020         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
13021         * lto-wrapper.c (merge_and_complain, append_compiler_options)
13022         (append_linker_options): Don't handle OPT_fshort_double.
13024         PR rtl-optimization/68730
13025         * lra-remat.c (insn_to_cand_activation): New static variable.
13026         (lra_remat): Allocate and free it.
13027         (create_cand): New arg activation. Initialize a field in
13028         insn_to_cand_activation if it is nonnull.
13029         (create_cands): Pass the activation insn to create_cand when making
13030         a candidate involving an output reload.  Reorganize code a little.
13031         (do_remat): Keep track of active status of candidates in a separate
13032         bitmap.
13034 2016-02-08  Richard Biener  <rguenther@suse.de>
13036         PR tree-optimization/69719
13037         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
13038         Properly use absolute of the difference of the two offsets to
13039         compare or adjust the segment length.
13041 2016-02-08  Richard Biener  <rguenther@suse.de>
13042             Jeff Law  <law@redhat.com>
13044         PR target/68273
13045         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
13046         types for anonymous SSA names.
13048 2016-02-08   Richard Biener  <rguenther@suse.de>
13050         PR rtl-optimization/69274
13051         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
13053 2016-02-08  Jeff Law  <law@redhat.com>
13055         PR tree-optimization/65917
13056         * tree-ssa-dom.c (record_temporary_equivalences): Record both
13057         equivalences from if (x == y) style conditionals.
13058         (loop_depth_of_name): Remove.
13059         (record_equality): Remove loop depth check.
13060         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
13061         (const_and_copies::record_const_or_copy_raw): New member function.
13062         * tree-ssa-scopedtables.c
13063         (const_and_copies::record_const_or_copy_raw): New, factored out of
13064         (const_and_copies::record_const_or_copy): Call new member function.
13066 2016-02-05  Jeff Law  <law@redhat.com>
13068         PR tree-optimization/68541
13069         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
13070         (count_stmts_in_block): New function.
13071         (poor_ifcvt_candidate_code): Likewise.
13072         (is_feasible_trace): Add some heuristics to determine when path
13073         splitting is profitable.
13074         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
13075         is a diamond with a single exit.
13077 2016-02-05  Martin Sebor  <msebor@redhat.com>
13079         PR c++/69662
13080         * doc/invoke.texi: Update -Wplacement-new to take an optional
13081         argument.
13083 2016-02-06  Richard Henderson  <rth@redhat.com>
13085         PR c/69643
13086         * tree.c (tree_nop_conversion_p): Do not strip casts into or
13087         out of non-standard address spaces.
13089 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
13091         PR rtl-optimization/69691
13092         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
13094 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
13096         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
13097         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
13098         (*ieee128_mfvsrd_64bit): Likewise.
13099         (*ieee128_mfvsrd_32bit): Likewise.
13101 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
13103         PR target/69369
13104         Revert r232560:
13105         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
13107         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
13108         instrumented_version.
13110 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
13112         * doc/invoke.texi (Optimize Options): In table of --param options
13113         rename second occurrence of tracer-min-branch-ratio to
13114         tracer-min-branch-probability, rename
13115         tracer-min-branch-ratio-feedback to
13116         tracer-min-branch-probability-feedback and clarify description,
13117         rename sched-spec-state-edge-prob-cutoff to
13118         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
13119         to selsched-insns-to-rename, rename lto-minpartition to
13120         lto-min-partition, delete reorder-blocks-duplicate and
13121         reorder-blocks-duplicate-feedback.
13123 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13125         * config/s390/s390.c (s390_register_info_set_ranges): Remove
13126         superfluous loops.
13128 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13130         * doc/extend.texi: S/390: Correct some typos.
13132 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13134         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
13136 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13138         PR target/69625
13139         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
13140         (s390_register_info_gprtofpr): Use new macros above.
13141         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
13142         its name.
13143         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
13144         its name.  Adjust restore and save gpr ranges.
13145         (s390_register_info_set_ranges): New function.
13146         (s390_register_info): Use new macros above.  Call
13147         s390_register_info_set_ranges.
13148         (s390_optimize_register_info): Likewise.
13149         (s390_hard_regno_rename_ok): Use new macros.
13150         (s390_hard_regno_scratch_ok): Likewise.
13151         (s390_emit_epilogue): Likewise.
13152         (s390_can_use_return_insn): Likewise.
13153         (s390_optimize_prologue): Likewise.
13154         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
13156 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
13158         PR bootstrap/69677
13159         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
13160         alignment fixes.
13161         (ix86_option_override_internal): Disable TARGET_STV even for
13162         -m{incoming,preferred}-stack-boundary=3.
13164 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13166         * config.gcc: Mark deprecated rtems targets as obsolete.
13168 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
13170         PR rtl-optimization/64682
13171         PR rtl-optimization/69567
13172         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
13173         before I2 only if the register is both used and set in I2.
13175 2016-02-04  DJ Delorie  <dj@redhat.com>
13177         * config/msp430/msp430.c (msp430_start_function): Add function type.
13179 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
13181         PR fortran/69368
13182         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
13184 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
13186         PR rtl-optimization/69577
13187         Revert:
13188         2015-10-29  Richard Henderson  <rth@redhat.com>
13190         PR target/68124
13191         PR rtl-opt/67609
13192         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
13193         sse check to the exact conditions of PR 67609.
13195 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
13197         PR target/69667
13198         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
13199         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
13200         not allowed into the traditional Altivec registers.
13201         (movtd_64bit_nodm): Likewise.
13202         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
13204 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
13206         * config/aarch64/cortex-a57-fma-steering.c
13207         (aarch64_register_fma_steering): Remove "static" from arguments
13208         to register_pass.
13210 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
13212         PR target/69619
13213         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
13214         twice when complex.
13216 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
13218         * doc/invoke.texi: Delete -mno-fma4.
13220 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
13222         PR rtl-optimization/69577
13223         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
13224         (find_subregs_of_mode): Update accordingly.  Iterate over partial
13225         definitions.
13227 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
13229         * config/arm/arm-protos.h (neon_reinterpret): Remove.
13230         * config/arm/arm.c (neon_reinterpret): Remove.
13231         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
13232         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
13233         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
13234         vreinterpretti): Remove.
13235         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
13236         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13237         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
13238         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
13239         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
13240         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
13241         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
13242         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
13243         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
13244         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
13245         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
13246         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
13247         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
13248         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
13249         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
13250         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
13251         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
13252         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
13253         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
13254         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
13255         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
13256         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
13257         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
13258         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
13259         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
13260         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
13261         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
13262         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
13263         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
13264         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
13265         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
13266         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
13267         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
13268         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
13269         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
13270         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
13271         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
13272         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
13273         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
13274         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
13275         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
13276         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
13277         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
13278         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
13279         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
13280         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
13281         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
13282         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
13283         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
13284         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
13285         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
13286         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
13287         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
13288         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
13289         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
13290         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
13291         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
13292         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
13293         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
13294         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
13295         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
13296         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
13297         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
13298         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
13299         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
13300         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
13301         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
13302         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
13303         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
13304         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
13305         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
13306         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
13307         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
13308         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
13309         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
13310         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
13311         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
13312         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
13313         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
13314         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
13315         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
13316         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
13317         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
13318         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
13319         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
13320         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
13321         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
13322         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
13323         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
13324         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
13325         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
13326         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
13327         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
13328         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
13329         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
13330         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
13331         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
13332         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
13333         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
13334         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
13335         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
13336         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
13337         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
13339 2016-02-04  Martin Liska  <mliska@suse.cz>
13341         PR sanitizer/69276
13342         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
13343         that are gimple_store_p.
13344         (maybe_instrument_call): Likewise.
13346 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
13348         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
13349         register scaling out of memory reference and comment why.
13351 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13353         PR target/65932
13354         PR target/67714
13355         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
13356         folding the source of a SET.
13358 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13360         PR target/65932
13361         PR target/67714
13362         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
13363         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
13365 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
13367         PR target/65932
13368         PR target/67714
13369         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
13370         HImode.
13372 2016-02-04  Christian Bruel  <christian.bruel@st.com>
13374         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
13375         * config/arm/arm.c (arm_set_current_function): Likewise.
13377 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
13378             Ilya Enkovich  <enkovich.gnu@gmail.com>
13379             H.J. Lu  <hongjiu.lu@intel.com>
13381         PR target/69454
13382         * config/i386/i386.c (convert_scalars_to_vector): Remove
13383         stack alignment fixes.
13384         (ix86_option_override_internal): Disable TARGET_STV if stack
13385         might not be aligned enough.
13386         (ix86_minimum_alignment): Assert that TARGET_STV is false.
13388 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
13390         * config/i386/x86-tune.def: Disable default prefetching
13391         for -march=znver1.
13393 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
13394             Vladimir Makarov  <vmakarov@redhat.com>
13396         PR target/69461
13397         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
13398         in validating fused toc addresses.
13400 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
13402         PR c/69627
13403         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
13404         range->m_caret fields if range->m_show_caret_p is false.
13406         PR target/69644
13407         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
13408         Force oldval into register if it does not satisfy reg_or_short_operand
13409         predicate.  Fix up formatting.
13411 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
13412             Alexandre Oliva  <aoliva@redhat.com>
13414         PR target/69461
13415         * lra-constraints.c (simplify_operand_subreg): Check additionally
13416         address validity after potential reloading.
13417         (process_address_1): Check insns validity.  In case of failure do
13418         nothing.
13420 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
13422         PR target/69118
13423         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
13424         Fix target.
13426 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
13428         * wide-int.cc (canonize_uhwi): New function.
13429         (wi::divmod_internal): Use it.
13431 2016-02-02  James Norris  <jnorris@codesourcery.com
13433         * gimplify.c (omp_notice_variable): Add usage check.
13435 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13437         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
13438         like LE, GE, LT, GT when emitting relational operator.
13440 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
13442         * ira-costs.c (find_costs_and_classes): Add extra argument.
13443         * target.def (ira_change_pseudo_allocno_class): Add parameter.
13444         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
13445         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
13446         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
13447         Add best_class parameter, and return it if not ALL_REGS.
13448         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
13449         Add parameter.
13450         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
13451         Update target hook.
13453 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
13455         * config/aarch64/aarch64.c
13456         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
13457         (aarch64_ira_change_pseudo_allocno_class): New function.
13459 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
13461         PR target/67032
13462         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
13464 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13466         * config/avr/avr.c (avr_option_override): Set
13467         PARAM_ALLOW_STORE_DATA_RACES to 1.
13469 2016-02-02  Richard Biener  <rguenther@suse.de>
13471         PR tree-optimization/69595
13472         * match.pd: Add range test simplifications to true/false.
13474 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
13476         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
13477         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
13478         instead.
13480 2016-02-02  Richard Biener  <rguenther@suse.de>
13482         PR tree-optimization/69606
13483         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
13484         info on the result before moving a stmt.
13486 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
13488         PR middle-end/68542
13489         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
13490         branch with vector comparison.
13491         * config/i386/sse.md (VI48_AVX): New mode iterator.
13492         (define_expand "cbranch<mode>4): Add support for conditional branch
13493         with vector comparison.
13494         * tree-vect-loop.c (optimize_mask_stores): New function.
13495         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
13496         has_mask_store field of vect_info.
13497         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
13498         vectorized loops having masked stores after vec_info destroy.
13499         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
13500         correspondent macros.
13501         (optimize_mask_stores): Add prototype.
13503 2016-02-02  Alan Modra  <amodra@gmail.com>
13505         PR target/69548
13506         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
13507         allow subregs.
13509 2016-02-02  Alan Modra  <amodra@gmail.com>
13511         PR target/68662
13512         * config/rs6000/rs6000.c (need_toc_init): New var, set it
13513         whenever toc_label_name used.
13514         (rs6000_file_start): Don't set up toc section here,
13515         (rs6000_output_function_epilogue): do so here instead,
13516         (rs6000_xcoff_file_start): and here.
13517         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
13518         (load_toc_aix_di): Likewise.
13520 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
13522         PR rtl-optimization/69592
13523         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
13524         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
13525         (num_sign_bit_copies_binary_arith_p): New inline function.
13526         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
13528 2016-02-01  Jeff Law  <law@redhat.com>
13530         PR tree-optimization/69580
13531         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
13532         * tree-ssa-threadbackward.c
13533         (fsm_find_control_statement_thread_paths): Do not try to walk
13534         through large PHI nodes.
13536 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
13538         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
13539         when count is incremented above limit, don't analyze further
13540         insns afterwards.
13542         * omp-low.c (oacc_parse_default_dims): Avoid
13543         -Wsign-compare warning, make sure value fits into int
13544         rather than just unsigned int.
13546 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
13548         PR tree-optimization/67921
13549         * fold-const.c (split_tree): New parameters.  Convert pointer
13550         type variable part to proper type before negating.
13551         (fold_binary_loc): Pass new arguments to split_tree.
13553 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
13555         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
13556         (nvptx_goacc_validate_dims): Extend to handle global defaults.
13557         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
13558         * doc/tm.texti: Rebuilt.
13559         * doc/invoke.texi (fopenacc-dim): Document.
13560         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
13561         (append_compiler_options): Likewise.
13562         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
13563         (oacc_parse_default_dims): New.
13564         (oacc_validate_dims): Add USED arg.  Select non-unity default when
13565         possible.
13566         (oacc_loop_fixed_partitions): Return mask of used partitions.
13567         (oacc_loop_auto_partitions): Emit dump info.
13568         (oacc_loop_partition): Return mask of used partitions.
13569         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
13570         loop partitioning and validation calls.
13572 2016-02-01  Richard Biener  <rguenther@suse.de>
13574         PR middle-end/69556
13575         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
13577 2016-02-01  Richard Biener  <rguenther@suse.de>
13579         PR tree-optimization/69574
13580         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
13581         of asserting return chrec_dont_know.
13583 2016-02-01  Martin Liska  <mliska@suse.cz>
13585         * mem-stats-traits.h: Add copyright header.
13586         * mem-stats.h: Likewise.
13588 2016-02-01  Richard Biener  <rguenther@suse.de>
13590         PR tree-optimization/69579
13591         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
13592         Do not propagate through abnormal PHI results.
13594 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
13596         * postreload.c (reload_cse_simplify): Remove dead code.
13598 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
13600         PR rtl-optimization/69570
13601         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
13602         if there is more than one set, not if there is a single set.
13604 2016-02-01  Richard Henderson  <rth@redhat.com>
13606         PR rtl-opt/69535
13607         * combine.c (make_compound_operation): When looking through a
13608         subreg, make sure to re-extend to the width of the outer mode.
13610 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
13612         PR tree-optimization/69546
13613         * wide-int.cc (wi::divmod_internal): For unsigned division
13614         where both operands fit into uhwi, if o1 is 1 and o0 has
13615         msb set, if divident_prec is larger than bits per hwi,
13616         clear another quotient word and return 2 instead of 1.
13617         Similarly for remainder with msb in HWI set, if dividend_prec
13618         is larger than bits per hwi.
13620 2016-01-29  Martin Jambor  <mjambor@suse.cz>
13622         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
13623         Use short lowercase names.
13624         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
13625         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
13626         acq_rel one.  Protect warning agains segfaults if
13627         get_memory_order_name returns NULL.
13628         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
13629         with release semantics.  Do not warn if get_memory_order already did.
13630         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
13631         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
13632         if get_memory_order already did.
13634 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
13636         * doc/install.texi: Document that isl-0.16 is supported.
13638 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
13640         PR target/69299
13641         * config/i386/constraints.md (Bm): Describe as special memory
13642         constraint.
13643         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
13644         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13645         * genpreds.c (struct constraint_data): Add is_special_memory.
13646         (have_special_memory_constraints, special_memory_start): New
13647         static vars.
13648         (special_memory_end): Ditto.
13649         (add_constraint): Add new arg is_special_memory.  Add code to
13650         process its true value.  Update have_special_memory_constraints.
13651         (process_define_constraint): Pass the new arg.
13652         (process_define_register_constraint): Ditto.
13653         (choose_enum_order): Process special memory.
13654         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
13655         function insn_extra_special_memory_constraint.
13656         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13657         * gensupport.c (process_rtx): Process
13658         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13659         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
13660         * ira-lives.c (single_reg_class): Use
13661         insn_extra_special_memory_constraint.
13662         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
13663         * lra-constraints.c (process_alt_operands): Ditto.
13664         (curr_insn_transform): Use insn_extra_special_memory_constraint.
13665         * recog.c (asm_operand_ok, preprocess_constraints): Process
13666         CT_SPECIAL_MEMORY.
13667         * reload.c (find_reloads): Ditto.
13668         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
13669         * stmt.c (parse_input_constraint): Use
13670         insn_extra_special_memory_constraint.
13672 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
13674         PR target/69530
13675         * lra-splill.c (lra_final_code_change): Revert r229087 by
13676         removing all sub-registers.
13678 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
13680         PR target/65604
13681         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
13683 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
13685         PR target/69551
13686         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
13687         SSE1, copy target into the temporary reg first before recursing
13688         on it.
13690 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
13692         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
13693         with vm.
13695 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
13697         * ginclude/stdarg.h: Test __cplusplus instead of
13698         __GXX_EXPERIMENTAL_CXX0X__.
13700 2016-01-29  Richard Biener  <rguenther@suse.de>
13702         PR tree-optimization/69547
13703         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
13704         Do not mark clobbers necessary.
13705         (mark_all_reaching_defs_necessary_1): Likewise.
13707 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13709         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
13710         declaration name with %qs and print it in both error messages.
13711         Also fix indentation.
13713 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13715         PR other/69006
13716         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
13717         trailing blank line from error message.
13719 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
13721         PR c++/69462
13722         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
13723         for C++-11.
13725 2016-01-29  Richard Biener  <rguenther@suse.de>
13727         PR middle-end/69537
13728         * match.pd: Allow all integral types when simplifying a
13729         widening or sign-changing conversion.
13731 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13733         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
13734         back to setting codegen_error to fail codegen.
13736 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
13738         PR target/69459
13739         * config/i386/constraints.md (C): Only accept constant zero operand.
13740         (BC): New constraint.
13741         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
13742         instead of C constraint.
13743         * doc/md.texi (Machine Constraints): Update description
13744         of C constraint.
13746 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
13748         PR target/68400
13749         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
13751 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
13753         PR middle-end/69542
13754         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
13755         non-debug insns.
13757 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
13759         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
13760         branches if using guessed profile.
13762 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
13764         * graphite-optimize-isl.c (optimize_isl): Fix dump.
13766 2016-01-28  Richard Henderson  <rth@redhat.com>
13768         PR target/69305
13769         * config/aarch64/aarch64-modes.def (CC_Cmode): New
13770         * config/aarch64/aarch64-protos.h: Update.
13771         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
13772         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
13773         (aarch64_get_condition_code_1): Handle CC_Cmode.
13774         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
13775         (*add<mode>3_compareC_cconly_imm): New.
13776         (*add<mode>3_compareC_cconly): New.
13777         (*add<mode>3_compareC_imm): New.
13778         (add<mode>3_compareC): New.
13779         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
13780         to be first.  Use aarch64_carry_operation.
13781         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
13782         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
13783         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
13784         (subti3): Use subdi3_compare1.
13785         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
13786         (sub<mode>3_compare1): New.
13787         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
13788         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
13789         (*subsi3_carryin_uxtw): Likewise.
13790         (*ngc<mode>, *ngcsi_uxtw): Likewise.
13791         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
13792         * config/aarch64/iterators.md (DWI): New.
13793         * config/aarch64/predicates.md (aarch64_carry_operation): New.
13794         (aarch64_borrow_operation): New.
13796 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
13798         * graphite-optimize-isl.c (optimize_isl): Print a different debug
13799         message when isl does not return a valid schedule.
13801 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13803         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13804         Remove comments from class declarations: they are already in the code
13805         close by the defs.
13807 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13809         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
13810         codegen_error_p.
13811         (ternary_op_to_tree): Same.
13812         (unary_op_to_tree): Same.
13813         (nary_op_to_tree): Same.
13814         (gcc_expression_from_isl_expr_op): Same.
13815         (gcc_expression_from_isl_expression): Same.
13816         (graphite_create_new_loop): Same.
13817         (graphite_create_new_loop_guard): Same.
13818         (build_iv_mapping): Same.
13819         (graphite_create_new_guard): Same.
13820         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
13821         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
13823 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13825         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
13826         instead of setting codegen_error to fail codegen.
13828 2016-01-28  Jason Merrill  <jason@redhat.com>
13830         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
13832 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13834         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
13835         Remove CONST_INT_P check in CCMP cost calculation.
13837 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13839         * config/aarch64/aarch64.c (generic_vector_cost):
13840         Set vec_permute_cost.
13841         (cortexa57_vector_cost): Likewise.
13842         (exynosm1_vector_cost): Likewise.
13843         (xgene1_vector_cost): Likewise.
13844         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
13845         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
13846         Add vec_permute_cost entry.
13848 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13850         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
13851         immediate as %1.
13852         (add<mode>3_compare0): Likewise.
13853         (addsi3_compare0_uxtw): Likewise.
13854         (add<mode>3nr_compare0): Likewise.
13855         (compare_neg<mode>): Likewise.
13856         (<optab><mode>3): Likewise.
13858 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
13860         * tree-vect-stmts.c (vectorizable_comparison): Add
13861         NULL check for vectype.
13863 2016-01-28  Richard Biener  <rguenther@suse.de>
13865         PR tree-optimization/69466
13866         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
13867         Account for PHIs we couldn't duplicate.
13869 2016-01-28  Martin Liska  <mliska@suse.cz>
13871         PR pch/68758
13872         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
13873         instead of ENABLE_VALGRIND_CHECKING.
13875 2016-01-27  Richard Henderson  <rth@redhat.com>
13877         PR rtl-opt/69447
13878         * lra-remat.c (subreg_regs): New.
13879         (dump_candidates_and_remat_bb_data): Dump it.
13880         (operand_to_remat): Reject if operand in subreg_regs.
13881         (set_bb_regs): Collect subreg_regs.
13882         (lra_remat): Init and free subreg_regs.  Compute
13883         calculate_local_reg_remat_bb_data before create_cands.
13885 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
13887         PR target/68986
13888         * config/i386/i386.c (ix86_update_stack_boundary): Don't
13889         change stack_alignment_needed for __tls_get_addr call.
13891 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
13893         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
13895 2016-01-27  Jeff Law  <law@redhat.com>
13897         PR tree-optimization/68398
13898         PR tree-optimization/69196
13899         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
13900         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
13901         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13902         Only count PHIs in the last block in the path.  The others will
13903         const/copy propagate away.  Add heuristic to allow more irreducible
13904         subloops to be created when it is likely profitable to do so.
13906         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13907         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
13908         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
13910 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
13912         PR lto/69254
13913         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
13914         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
13915         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
13916         * tree-streamer-in.c: Include asan.h.
13917         (streamer_get_builtin_tree): For builtins in sanitizer
13918         range call initialize_sanitizer_builtins and retry.
13920 2016-01-27  Ian Lance Taylor  <iant@google.com>
13922         * common.opt (fkeep-gc-roots-live): New undocumented option.
13923         * tree-ssa-loop-ivopts.c (add_candidate_1): If
13924         -fkeep-gc-roots-live, skip pointers.
13925         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
13926         NULL.
13928 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
13930         PR target/69512
13931         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
13932         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
13934 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
13936         PR target/68380
13937         * configure.ac: NetBSD provides SSP in its C library.
13938         * configure: Updated.
13940 2016-01-27  Richard Biener  <rguenther@suse.de>
13942         PR tree-optimization/69166
13943         * tree-vect-loop.c (vect_is_simple_reduction): Always check
13944         reduction code for commutativity / associativity.
13946 2016-01-27  Martin Jambor  <mjambor@suse.cz>
13948         PR tree-optimization/69355
13949         * tree-sra.c (analyze_access_subtree): Correct hole detection when
13950         total_scalarization fails.
13952 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
13954         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
13955         power9.
13957 2016-01-27  Christian Bruel  <christian.bruel@st.com>
13959         PR target/69245
13960         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
13961         Move arm_reset_previous_fndecl and set_target_option_current_node in
13962         the conditional part.  Call save_restore_target_globals.
13963         * config/arm/arm.c (arm_set_current_function):
13964         Refactor to better support #pragma target and attribute mix.
13965         Call save_restore_target_globals.
13966         * config/arm/arm-protos.h (save_restore_target_globals): New function.
13968 2016-01-27  Martin Liska  <mliska@suse.cz>
13970         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
13971         reference for an HSA kernel and its host function.
13973 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
13975         PR tree-optimization/69399
13976         * wide-int.h (wi::lrshift): For larger precisions, only
13977         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
13979 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
13981         * config/arc/predicates.md (proper_comparison_operator): Reject
13982         constant-constant comparison.
13984 2016-01-26  Tom de Vries  <tom@codesourcery.com>
13986         PR tree-optimization/69110
13987         * tree-data-ref.c (initialize_data_dependence_relation): Handle
13988         DR_NUM_DIMENSIONS == 0.
13990 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
13991             Sebastian Pop  <s.pop@samsung.com>
13993         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
13994         isl_ast_op_cond and isl_ast_op_select.
13995         (gcc_expression_from_isl_expr_op): Same.
13997 2016-01-26  Jason Merrill  <jason@redhat.com>
13999         PR c++/68782
14000         * tree.c (recompute_constructor_flags): Split out from
14001         build_constructor.
14002         (verify_constructor_flags): New.
14003         * tree.h: Declare them.
14005 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
14007         PR rtl-optimization/69217
14008         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
14009         are no TYPE_FIELDS set for the record type.
14011 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
14013         PR target/68662
14014         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
14015         toc_label_name unconditionally.
14016         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
14017         SYMBOL_REF string.  Use toc_label_name instead of constructing
14018         LCTOC1.
14019         (rs6000_elf_declare_function_name): Use toc_label_name instead of
14020         constructing LCTOC1.
14022 2016-01-26  Martin Sebor  <msebor@redhat.com>
14024         PR other/69477
14025         * doc/extend.texi (Common Type Attributes): Move text that talks about
14026         attribute packed from attribute aligned to the section discussing
14027         the former attribute for clarity.
14029 2016-01-26  Richard Henderson  <rth@redhat.com>
14031         PR middle-end/60908
14032         * trans-mem.c (tm_region_init): Mark entry block as visited.
14034 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
14036         PR other/69006
14037         * diagnostic-show-locus.c (layout::print_source_line): Replace
14038         call to pp_newline with call to layout::print_newline.
14039         (layout::print_annotation_line): Likewise.
14040         (layout::move_to_column): Likewise.
14041         (layout::print_any_fixits): After printing any fixits, print a
14042         trailing newline, if necessary.
14043         (layout::print_newline): New method, resetting any colorization
14044         before a newline.
14045         (diagnostic_show_locus): Move the pp_newline to before the
14046         early bailout.  Remove dummy block enclosing the layout instance.
14047         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
14048         of pp_newline_and_flush with pp_flush.
14049         (diagnostic_append_note): Delete use of pp_newline.
14050         (diagnostic_append_note_at_rich_loc): Delete.
14051         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
14052         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
14053         when newline characters are added to the buffer.
14055 2016-01-26  Michael Matz  <matz@suse.de>
14057         * configure.ac (ac_cv_std_swap_in_utility): New test.
14058         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
14059         * configure: Regenerate.
14060         * config.in: Regenerate.
14062 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
14064         * config/arc/arc.md (cstoresi4): Force operand into register.
14065         (arcset<code>): Fix predicate.
14066         (arcsetltu): Likewise.
14067         (arcsetgeu): Likewise.
14068         (arcsethi): Likewise.
14069         (arcsetls): Likewise.
14071 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
14073         PR tree-optimization/69483
14074         * gimple-fold.c (canonicalize_constructor_val): Return NULL
14075         if base has error_mark_node type.
14077 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
14079         PR target/68620
14080         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
14081         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
14082         New helper macros.
14083         (vget_lane_f16): Handle big-endian.
14084         (vgetq_lane_f16): Likewise.
14085         (vset_lane_f16): Likewise.
14086         (vsetq_lane_f16): Likewise.
14087         * config/arm/iterators.md (VQXMOV): Add V8HF.
14088         (VDQ): Add V4HF and V8HF.
14089         (V_reg): Handle V4HF and V8HF.
14090         (Is_float_mode): Likewise.
14091         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
14092         neon_vdup_nv8hf): New patterns.
14093         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
14094         Use VD_LANE iterator.
14095         (neon_vld1_dup<mode>): Use VQ2 iterator.
14097 2016-01-26  Nathan Sidwell  <nathan@acm.org>
14099         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
14100         (set_oacc_fn_attrib): Add IS_KERNEL arg.
14101         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
14102         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
14103         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
14104         (oacc_validate_dims): Add LEVEL arg, don't return level.
14105         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
14106         oacc_validate_dims.
14107         (execute_oacc_device_lower): Adjust, add more dump output.
14108         * tree-ssa-loop.c (gate_oacc_kernels): Use
14109         oacc_fn_attrib_kernels_p.
14110         * tree-parloops.c (create_parallel_loop): Adjust
14111         set_oacc_fn_attrib call.
14113 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
14115         PR lto/69254
14116         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
14117         (append_compiler_options): Handle -fcilkplus.
14118         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
14120 2016-01-26  Nick Clifton  <nickc@redhat.com>
14122         PR target/66655
14123         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
14124         been marked as DECL_ONE_ONLY but we do not the means to make it
14125         so, then do not allow it to bind locally.
14127 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
14129         PR lto/69254
14130         * opts.h (parse_sanitizer_options): New prototype.
14131         * opts.c (sanitizer_opts): New array.
14132         (parse_sanitizer_options): New function.
14133         (common_handle_option): Use parse_sanitizer_options.
14135 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
14137         PR target/68986
14138         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
14139         alignment adjustment to ...
14140         (ix86_update_stack_boundary): Here.  Don't over-align stack for
14141         __tls_get_addr.
14142         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
14143         if __tls_get_addr is called.
14145 2016-01-26  Christian Bruel  <christian.bruel@st.com>
14147         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
14149 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
14151         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
14153 2016-01-26  Richard Biener  <rguenther@suse.de>
14155         PR middle-end/69467
14156         * match.pd: Guard X * CST CMP 0 pattern with single_use.
14158 2016-01-26  Richard Biener  <rguenther@suse.de>
14160         PR tree-optimization/69452
14161         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
14162         (move_computations_dom_walker::before_dom_children): Rename
14163         to ...
14164         (move_computations_worker): This.
14165         (move_computations): Perform an RPO rather than a DOM walk.
14167 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
14169         PR target/69442
14170         * combine.c (combine_instructions): For REG_EQUAL note with
14171         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
14172         to the underlying register.
14173         * doc/rtl.texi (REG_EQUAL): Document the behavior of
14174         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
14176 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
14178         PR target/67896
14179         * config/aarch64/aarch64-builtins.c
14180         (aarch64_init_simd_builtin_types): Do not set structural
14181         equality to __Poly{8,16,64,128}_t types.
14183 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
14185         PR tree-optimization/69400
14186         * wide-int.cc (wi_pack): Take the precision as argument and
14187         perform canonicalization here rather than in the callers.
14188         Use the main loop to handle all full-width HWIs.  Add a
14189         zero HWI if in_len isn't a full result.
14190         (wi::divmod_internal): Update accordingly.
14191         (wi::mul_internal): Likewise.  Simplify.
14193 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
14194             Sebastian Pop  <s.pop@samsung.com>
14196         * graphite-poly.c (apply_poly_transforms): Simplify.
14197         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
14198         (print_isl_map): Same.
14199         (print_isl_union_map): Same.
14200         (print_isl_schedule): New.
14201         (debug_isl_schedule): New.
14202         * graphite-dependences.c (scop_get_reads): Do not call
14203         isl_union_map_add_map that is undocumented isl functionality.
14204         (scop_get_must_writes): Same.
14205         (scop_get_may_writes): Same.
14206         (scop_get_original_schedule): Remove.
14207         (scop_get_dependences): Do not call isl_union_map_compute_flow that
14208         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
14209         (compute_deps): Remove.
14210         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
14211         (debug_schedule_ast): New.
14212         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
14213         set_separate_option.
14214         (graphite_regenerate_ast_isl): Add dump.
14215         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
14216         from scop->transformed_schedule.
14217         (graphite_regenerate_ast_isl): Add more dump.
14218         * graphite-optimize-isl.c (optimize_isl): Set
14219         scop->transformed_schedule.  Check whether schedules are equal.
14220         (apply_poly_transforms): Move here.
14221         * graphite-poly.c (apply_poly_transforms): ... from here.
14222         (free_poly_bb): Static.
14223         (free_scop): Static.
14224         (pbb_number_of_iterations_at_time): Remove.
14225         (print_isl_ast): New.
14226         (debug_isl_ast): New.
14227         (debug_scop_pbb): New.
14228         * graphite-scop-detection.c (print_edge): Move.
14229         (print_sese): Move.
14230         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
14231         (build_scop_scattering): Remove.
14232         (create_pw_aff_from_tree): Assert instead of bailing out.
14233         (add_condition_to_pbb): Remove unused code, do not fail.
14234         (add_conditions_to_domain): Same.
14235         (add_conditions_to_constraints): Remove.
14236         (build_scop_context): New.
14237         (add_iter_domain_dimension): New.
14238         (build_iteration_domains): Initialize pbb->iterators.
14239         Call add_conditions_to_domain.
14240         (nested_in): New.
14241         (loop_at): New.
14242         (index_outermost_in_loop): New.
14243         (index_pbb_in_loop): New.
14244         (outermost_pbb_in): New.
14245         (add_in_sequence): New.
14246         (add_outer_projection): New.
14247         (outer_projection_mupa): New.
14248         (add_loop_schedule): New.
14249         (build_schedule_pbb): New.
14250         (build_schedule_loop): New.
14251         (embed_in_surrounding_loops): New.
14252         (build_schedule_loop_nest): New.
14253         (build_original_schedule): New.
14254         (build_poly_scop): Call build_original_schedule.
14255         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
14256         (free_poly_dr): Remove.
14257         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
14258         (free_poly_bb): Remove.
14259         (debug_loop_vec): Remove.
14260         (print_isl_ast): Declare.
14261         (debug_isl_ast): Declare.
14262         (scop_do_interchange): Remove.
14263         (scop_do_strip_mine): Remove.
14264         (scop_do_block): Remove.
14265         (flatten_all_loops): Remove.
14266         (optimize_isl): Remove.
14267         (pbb_number_of_iterations_at_time): Remove.
14268         (debug_scop_pbb): Declare.
14269         (print_schedule_ast): Declare.
14270         (debug_schedule_ast): Declare.
14271         (struct scop): Remove schedule.  Add original_schedule,
14272         transformed_schedule.
14273         (free_gimple_poly_bb): Remove.
14274         (print_generated_program): Remove.
14275         (debug_generated_program): Remove.
14276         (unify_scattering_dimensions): Remove.
14277         * sese.c (print_edge): ... here.
14278         (print_sese): ... here.
14279         (debug_edge): ... here.
14280         (debug_sese): ... here.
14281         * sese.h (print_edge): Declare.
14282         (print_sese): Declare.
14283         (dump_edge): Declare.
14284         (dump_sese): Declare.
14286 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
14287             Sebastian Pop  <s.pop@samsung.com>
14289         * Makefile.in: Set ISLVER in site.exp.
14291 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
14293         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
14294         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
14295         through DECL_VALUE_EXPR for expansion.
14297 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14299         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
14300         the frame info after reload completed.
14302 2016-01-25  Jeff Law  <law@redhat.com>
14304         PR tree-optimization/69196
14305         PR tree-optimization/68398
14306         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
14307         tree-ssa-threadupdate.c.
14308         (determine_bb_domination_status): Prototype
14309         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
14310         (determine_bb_domination_status): No longer static.
14311         (valid_jump_thread_path): Remove code to detect characteristics
14312         of the jump thread path not associated with correctness.
14313         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
14314         Correct test for thread path length.  Count PHIs for real operands as
14315         statements that need to be copied.  Do not count ASSERT_EXPRs.
14316         Look at all the blocks in the thread path.  Compute and selectively
14317         filter thread paths based on threading through the latch, threading
14318         a multiway branch or crossing a multiway branch.
14320 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14322         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
14323         decl with __attribute__ ((unused)) annotation.
14325 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
14327         PR target/69421
14328         * tree-vect-stmts.c (vectorizable_condition): Check vectype
14329         of operands is compatible with a statement vectype.
14331 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
14333         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
14334         improve wording for mixed storage order support.
14336 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
14338         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
14339         (vcvt_u64_f64): Likewise.
14340         (vcvta_s64_f64): Likewise.
14341         (vcvta_u64_f64): Likewise.
14342         (vcvtm_s64_f64): Likewise.
14343         (vcvtm_u64_f64): Likewise.
14344         (vcvtn_s64_f64): Likewise.
14345         (vcvtn_u64_f64): Likewise.
14346         (vcvtp_s64_f64): Likewise.
14347         (vcvtp_u64_f64): Likewise.
14349 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
14351         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
14352         (arc_init): Check validity mll64 option.
14353         (arc_save_restore): Use double load/store instruction.
14354         (arc_expand_movmem): Likewise.
14355         (arc_split_move): Don't split if we have double load/store
14356         instructions. Returns a boolean.
14357         (arc_process_double_reg_moves): Change function to return boolean
14358         instead of a sequence of instructions.
14359         (arc_dwarf_register_span): New function.
14360         * config/arc/arc-protos.h (arc_split_move): Change prototype.
14361         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
14362         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
14363         (*movdf_insn): Likewise.
14364         * config/arc/arc.opt (mll64): New option.
14365         * config/arc/predicates.md (even_register_operand): New predicate.
14366         * doc/invoke.texi (ARC Options): Add mll64 documentation.
14368 2016-01-25  Richard Biener  <rguenther@suse.de>
14370         PR lto/69393
14371         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
14372         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
14373         DECL_NAMELESS.
14374         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
14376 2016-01-25  Richard Biener  <rguenther@suse.de>
14378         PR tree-optimization/69376
14379         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
14380         flag.
14381         (VN_INFO_ANTI_RANGE_P): New inline.
14382         (VN_INFO_RANGE_TYPE): Likewise.
14383         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
14384         SSA_NAME_ANTI_RANGE_P.
14385         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
14386         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14387         Properly query VN_INFO_RANGE_TYPE.
14389 2016-01-25  Nick Clifton  <nickc@redhat.com>
14391         PR target/66655
14392         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
14394 2016-01-23  Tom de Vries  <tom@codesourcery.com>
14396         PR tree-optimization/69426
14397         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
14398         removed clobber.
14400 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
14402         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
14403         "the the" with "the" in the comments.
14404         * ipa-devirt.c (build_type_inheritance_graph,
14405         update_type_inheritance_graph): Likewise.
14406         * tree.c (build_function_type_list_1): Likewise.
14407         * cfgloopmanip.c (scale_loop_profile): Likewise.
14408         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
14409         * gimple-ssa-split-paths.c
14410         (find_block_to_duplicate_for_splitting_paths): Likewise.
14411         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
14412         * expr.c (convert_move): Likewise.
14413         * var-tracking.c (vt_stack_adjustments): Likewise.
14414         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
14415         * tree-vrp.c (test_for_singularity): Likewise.
14417         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
14418         directly instead of building a temporary tree.
14420         PR bootstrap/69434
14421         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
14422         remove <algorithm> include.
14424 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
14426         PR target/69432
14427         * config/i386/i386.c: Include dojump.h.
14428         (expand_small_movmem_or_setmem,
14429         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
14430         fixes.
14431         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
14432         if dynamic_check != -1.
14434 2016-01-21  Jeff Law  <law@redhat.com>
14436         PR middle-end/69347
14437         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
14438         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
14439         into dominated_by_p.
14440         (cprop_into_successor_phis): Avoid unnecessary tests.
14442 2016-01-22  Richard Henderson  <rth@redhat.com>
14444         PR target/69416
14445         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
14446         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
14448 2016-01-22  Michael Matz  <matz@suse.de>
14450         * system.h (string, algorithm): Include only conditionally.
14451         (new): Include always under C++.
14452         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
14453         * final.c (toplevel): Ditto.
14454         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
14455         * genconditions.c (write_header): Make gencondmd.c define
14456         INCLUDE_STRING.
14457         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
14459         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
14460         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
14462 2016-01-22  Christian Bruel  <christian.bruel@st.com>
14464         PR target/68674
14465         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
14467 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14469         PR target/69403
14470         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
14471         define_insn_and_split.  Ensure operands[1] and operands[0] do not
14472         get assigned the same register.
14474 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
14476         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
14478 2016-01-22  Christian Bruel  <christian.bruel@st.com>
14480         * config/arm/arm-c.c (arm_pragma_target_parse):
14481         Remove warn_builtin_macro_redefined overwrite.
14483 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14485         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
14486         flag_non_call_exceptions compatibility.
14488 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
14490         PR debug/66668
14491         * dwarf2out.c (add_child_die_after): New function.
14492         (dwarf_qual_info_t): New type.
14493         (dwarf_qual_info): New variable.
14494         (qualified_die_p): New function.
14495         (modified_type_die): For -fdebug-types-section, ensure
14496         canonical order of qualifiers.  Put qualified DIEs adjacent
14497         to the corresponding non-qualified type DIE and search there
14498         for existing qualified DIEs.
14500 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14502         * doc/extend.texi (scalar_storage_order type attribute): Document
14503         restriction on type punning and aliasing, and remove future tense.
14505 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
14507         PR target/69252
14508         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
14509         first stage.
14511 2016-01-21  Jeff Law  <law@redhat.com>
14513         PR middle-end/69347
14514         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
14515         useless call to record_temporary_equivalences.
14516         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
14517         allocate 10 slots in the bb_path vector and let it grow as needed.
14518         (fsm_find_control_statement_thread_paths): Similarly for the next_path
14519         vector.
14521 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
14523         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
14524         Detangle.
14525         * configure: Regenerate.
14527 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
14529         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
14530         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
14532 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
14534         PR middle-end/66178
14535         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
14536         drop EXPAND_INITIALIZER.
14537         * rtl.h (contains_symbolic_reference_p): Declare.
14538         * rtlanal.c (contains_symbolic_reference_p): New function.
14539         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
14540         a subtraction into a NOT if symbolic constants are involved.
14542 2016-01-21  Anton Blanchard  <anton@samba.org>
14543             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14545         PR target/63354
14546         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
14547         #define.
14548         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
14549         function.
14551 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
14553         * config/microblaze/microblaze.c
14554         (get_branch_target): New.
14555         (insert_wic_for_ilb_runout): New.
14556         (insert_wic): New.
14557         (microblaze_machine_dependent_reorg): New.
14558         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
14559         * config/microblaze/microblaze.md
14560         (UNSPEC_IPREFETCH): Define.
14561         (iprefetch): New pattern
14562         * config/microblaze/microblaze.opt
14563         (mxl-prefetch): New flag.
14565 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
14567         * config/microblaze/microblaze.h
14568         (FIXED_REGISTERS): Update in macro.
14569         (CALL_USED_REGISTERS): Update in macro.
14571 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
14573         PR rtl-optimization/68920
14574         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
14575         moves.
14577 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
14579         PR rtl-optimization/68990
14580         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
14581         pseudo instead of inheritance ones.
14583 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14584             Nick Clifton  <nickc@redhat.com>
14586         PR target/69129
14587         PR target/69012
14588         * config/mips/mips.c (mips_compute_frame_info): Initialise
14589         args_size and hard_frame_pointer_offset fields of the frame
14590         structure before calling mips_global_pointer.
14592 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
14594         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
14595         label reference.
14596         * configure: Regenerate.
14598 2016-01-21  Richard Biener  <rguenther@suse.de>
14600         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
14602 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
14604         * config/s390/s390.c (s390_asm_declare_function_size): Add code
14605         to actually emit the .size directive.
14607 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
14608              Jakub Jelinek  <jakub@redhat.com>
14610         PR target/69187
14611         PR target/65624
14612         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
14613         args array size by one to avoid buffer overflow.
14615 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
14617         * config/s390/s390.md (pool_section_start): Use switch_to_section
14618         to select proper read-only data section instead of hardcoding
14619         .rodata.
14620         (pool_section_end): Use switch_to_section to match the above.
14622 2016-01-21  Richard Biener  <rguenther@suse.de>
14624         PR tree-optimization/69378
14625         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
14626         (set_ssa_val_to): Use it for dominance checks taking into
14627         account not executable edges.
14629 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
14631         PR c++/69355
14632         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
14633         for bitsize instead of GET_MODE_PRECISION (mode).
14635 2016-01-20  Martin Sebor  <msebor@redhat.com>
14637         PR c/52291
14638         * extend.texi (__sync Builtins): Clarify the semantics of
14639         __sync_fetch_and_OP built-ins on pointers.
14640         (__atomic Builtins): Same.
14642 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14643             Sebastian Pop  <s.pop@samsung.com>
14645         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
14646         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
14647         (is_valid_rename): Same.
14648         (translate_isl_ast_to_gimple::get_rename): Same.
14649         (translate_isl_ast_to_gimple::rename_all_uses): Same.
14650         (translate_isl_ast_to_gimple::rename_uses): Same.
14651         (get_new_name): Check for close_phi nodes.
14652         (copy_loop_phi_args): Use phi_node_kind.
14653         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
14654         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
14656 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14657             Sebastian Pop  <s.pop@samsung.com>
14659         Revert commit r229783.
14660         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
14661         Remove use of parameter_rename_map.
14662         (copy_def): Remove.
14663         (copy_internal_parameters): Remove.
14664         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
14665         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
14666         (free_sese_info): Do not free parameter_rename_map.
14667         (set_rename): Do not use parameter_rename_map.
14668         (rename_uses): Update call to set_rename.
14669         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
14670         * sese.h (parameter_rename_map_t): Remove.
14671         (struct sese_info_t): Remove field parameter_rename_map.
14673 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14674             Sebastian Pop  <s.pop@samsung.com>
14676         * graphite-isl-ast-to-gimple.c: Fix comment.
14677         * graphite-scop-detection.c (defined_in_loop_p): New.
14678         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
14679         names defined in loop.
14681 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14682             Sebastian Pop  <s.pop@samsung.com>
14684         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
14685         Discard unstructured if-then-else regions.
14687 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14688             Sebastian Pop  <s.pop@samsung.com>
14690         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
14691         (cleanup_loop_iter_dom): Remove.
14692         (build_loop_iteration_domains): Remove.
14693         (build_scop_context): Remove.
14694         (build_scop_iteration_domain): Remove.
14695         (add_loop_constraints): New.
14696         (build_iteration_domains): New.
14697         (build_poly_scop): Call build_iteration_domains.
14699 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14700             Sebastian Pop  <s.pop@samsung.com>
14702         * graphite-scop-detection.c
14703         (scop_detection::harmful_loop_in_region): Free dom and loops.
14704         (scop_detection::loop_body_is_valid_scop): Free bbs.
14706 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14707             Sebastian Pop  <s.pop@samsung.com>
14709         * graphite-scop-detection.c (record_loop_in_sese): New.
14710         (gather_bbs::before_dom_children): Call record_loop_in_sese.
14711         (build_scops): Remove call to build_sese_loop_nests.
14712         * sese.c (sese_record_loop): Remove.
14713         (build_sese_loop_nests): Remove.
14714         (new_sese_info): Remove region->loops.
14715         (free_sese_info): Same.
14716         * sese.h (sese_contains_loop): Same.
14717         (build_sese_loop_nests): Remove.
14718         (sese_contains_loop): Remove.
14720 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14721             Sebastian Pop  <s.pop@samsung.com>
14723         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
14724         loop_is_valid_in_scop.
14725         (scop_detection::harmful_stmt_in_region): Renamed
14726         harmful_loop_in_region.
14727         Call loop_is_valid_in_scop.
14729 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14730             Sebastian Pop  <s.pop@samsung.com>
14732         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
14733         isl_ast_node_mark.
14735 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14736             Sebastian Pop  <s.pop@samsung.com>
14738         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
14739         * graphite.h (struct poly_bb): Remove field is_reduction.
14740         (PBB_IS_REDUCTION): Remove.
14742 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14743             Sebastian Pop  <s.pop@samsung.com>
14745         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
14746         (add_pdr_constraints): Same.
14747         (scop_get_reads): Same.
14748         (scop_get_must_writes): Same.
14749         (scop_get_may_writes): Same.
14750         (scop_get_original_schedule): Same.
14751         (extend_schedule): Same.
14752         (apply_schedule_on_deps): Same.
14753         (carries_deps): Same.
14754         (compute_deps): Same.
14755         (scop_get_dependences): Same.
14756         * graphite-isl-ast-to-gimple.c
14757         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
14758         * graphite-optimize-isl.c (get_schedule_for_band): Same.
14759         (get_schedule_for_band_list): Same.
14760         (get_schedule_map): Same.
14761         (apply_schedule_map_to_scop): Same.
14762         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
14763         (build_loop_iteration_domains): Same.
14764         (add_condition_to_pbb): Same.
14765         (add_param_constraints): Same.
14766         (pdr_add_memory_accesses): Same.
14767         (pdr_add_data_dimensions): Same.
14769 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
14771         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
14772         requirements.
14774 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
14776         * common.opt (feliminate-dwarf2-dups): Replace references to
14777         "DWARF 2" with just "DWARF".
14778         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
14779         * doc/extend.texi: Likewise.
14780         * doc/cpp.texi: Likewise.
14781         * doc/invoke.texi: Likewise.
14782         (Option Summary): Add -gdwarf to list of Debugging Options.
14783         (Debugging Options): Document -gdwarf.
14784         * doc/contrib.texi: Spell "DWARF" like that.
14786 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
14788         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
14789         warning.  Fix up formatting.
14791         PR middle-end/67653
14792         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
14793         attempt to mark memory input operand addressable and
14794         call prepare_gimple_addressable in that case.  Don't adjust
14795         input_location for diagnostics, use error_at instead.
14797 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
14799         * config/rs6000/ppc-auxv.h: New file.
14800         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
14801         (cpu_is): Likewise.
14802         (cpu_supports): Likewise.
14803         * config/rs6000/rs6000.c: include "ppc-auxv.h".
14804         (cpu_is_info): New variable.
14805         (cpu_supports_info): Likewise.
14806         (tcb_verification_symbol): Likewise.
14807         (cpu_builtin_p): Likewise.
14808         (cpu_expand_builtin): New function.
14809         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
14810         (rs6000_init_builtins): Likewise.
14811         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
14812         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
14813         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
14814         * configure: Regenerate.
14815         * config.in: Likewise.
14816         * doc/extend.texi (PowerPC Built-in Functions): Document
14817         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
14819 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
14821         PR target/68609
14822         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
14823         domain check.
14824         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
14825         for V4SFmode.
14827 2016-01-20  Richard Henderson  <rth@redhat.com>
14829         PR bootstrap/69343
14830         PR bootstrap/69339
14831         PR tree-opt/68964
14832         Revert:
14833         * tree.c (tm_define_builtin): New.
14834         (find_tm_vector_type): New.
14835         (build_tm_vector_builtins): New.
14836         (build_common_builtin_nodes): Call it.
14838 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
14840         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
14841         (arm_fp_ok): Likewise.
14842         (arm_fp): Likewise.
14843         (arm_crypto): Likewise.
14845 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
14846             Richard Biener  <rguenther@suse.de>
14848         PR tree-optimization/69328
14849         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
14850         vectors have same number of elements.
14851         (vectorizable_condition): Fix masked version recognition.
14853 2016-01-20  Richard Biener  <rguenther@suse.de>
14855         PR tree-optimization/69345
14856         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
14857         (VN_INFO_PTR_INFO): Likewise.
14858         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
14859         info when it is equal between non-dominating SSA names.
14860         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14861         Make sure to look at original SSA infos.
14863 2016-01-20  Jeff Law  <law@redhat.com>
14865         PR target/25114
14866         * config/m68k/predicates.md (pow2_m1_operand): New predicate
14867         extracted from ...
14868         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
14869         (pc_or_label_operand): New predicate.
14870         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
14871         tests for small integers that are 2^n - 1.
14873 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
14875         * doc/invoke.texi (Options Summary): Add '.' after @xref.
14877 2016-01-19  Jeff Law  <law@redhat.com>
14879         PR middle-end/69347
14880         * tree-ssa-threadbackwards.c
14881         (fsm_find_control_statement_thread_paths): Do not try to lookup
14882         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
14884 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14886         * doc/lto.texi: Remove text that says only Gold has linker plugin
14887         support.
14889 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
14891         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
14892         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
14893         the DIE accordingly.
14894         (modified_type_die): Add REVERSE parameter and pass it recursively,
14895         as well as to base_type_die.  Adjust presence check accordingly.
14896         (base_type_for_mode): Adjust call to modified_type_die.
14897         (add_type_attribute): Add REVERSE parameter and pass it to
14898         modified_type_die.
14899         (generic_parameter_die): Adjust call to add_type_attribute.
14900         (add_scalar_info): Likewise.
14901         (add_subscript_info): Likewise.
14902         (gen_array_type_die): Likewise.
14903         (gen_descr_array_type_die): Likewise.
14904         (gen_entry_point_die): Likewise.
14905         (gen_enumeration_type_die): Likewise.
14906         (gen_formal_parameter_die): Likewise.
14907         (gen_subprogram_die): Likewise.
14908         (gen_variable_die ): Likewise.
14909         (gen_const_die): Likewise.
14910         (gen_field_die): Likewise.
14911         (gen_pointer_type_die): Likewise.
14912         (gen_reference_type_die): Likewise.
14913         (gen_ptr_to_mbr_type_die): Likewise.
14914         (gen_inheritance_die): Likewise.
14915         (gen_subroutine_type_die): Likewise.
14916         (gen_typedef_die): Likewise.
14917         (force_type_die): Adjust call to modified_type_die.
14919 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
14921         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
14922         flow throughout the file.  Fix broken link to Objective-C 2.0
14923         documentation.
14924         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
14925         errors.
14927 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14929         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
14931 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14933         PR ipa/66223
14934         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
14935         (maybe_record_node): Record cxa_pure_virtual as the only possible
14936         target if there are not ohter candidates.
14937         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
14939 2016-01-19  Richard Biener  <rguenther@suse.de>
14941         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
14942         (get_memory_order): Likewise.
14944 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
14946         * tree-vect-stmts.c (vectorizable_store): Check
14947         rhs vectype.
14949 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
14951         PR jit/68446
14952         * gcc.c (driver::decode_argv): Add call to
14953         init_opts_obstack before init_options_struct.
14954         * opts.c (init_opts_obstack): Remove idempotency.
14955         (init_options_struct): Replace call to init_opts_obstack
14956         with a gcc_assert to verify that it has already been called.
14957         * toplev.c (toplev::main): Add call to init_opts_obstack before
14958         calls to init_options_struct.
14959         (toplev::finalize): Move cleanup of opts_obstack next to
14960         cleanup of save_decoded_options, clearing the latter, and
14961         save_decoded_options_count.
14963 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14965         PR target/69135
14966         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
14967         attribute to unconditional.  Remove %? from output template.
14969 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14970             Jiong Wang  <jiong.wang@arm.com>
14972         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
14973         generated from different expand order.
14975 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14977         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
14978         Add support for CCMP costing.
14980 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14982         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
14983         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
14984         (fccmpe<mode>): Likewise.
14985         (fcmp): Rename to fcmp and globalize pattern.
14986         (fcmpe): Likewise.
14987         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
14988         (aarch64_gen_ccmp_next): Add FP support.
14990 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14992         * target.def (gen_ccmp_first): Update documentation.
14993         (gen_ccmp_next): Likewise.
14994         * doc/tm.texi (gen_ccmp_first): Update documentation.
14995         (gen_ccmp_next): Likewise.
14996         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
14997         expand_ccmp_expr_1.  Improve comments.
14998         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
14999         (ccmp_ior<mode>): Remove pattern.
15000         (cmp<mode>): Remove expand.
15001         (cmp): Globalize pattern.
15002         (cstorecc4): Use cc_register.
15003         (mov<mode>cc): Remove ccmp_cc_register check.
15004         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
15005         Simplify after removal of CC_DNE/* modes.
15006         (aarch64_ccmp_mode_to_code): Remove.
15007         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
15008         In 'k' case use integer as condition.
15009         (aarch64_nzcv_codes): Remove inverted cases.
15010         (aarch64_code_to_ccmode): Remove.
15011         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
15012         comparison with CC register to be used in folowing CCMP/branch/CSEL.
15013         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
15014         pattern.  Return the comparison with CC register.  Invert conditions
15015         when bitcode is OR.
15016         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
15017         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
15019 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
15021         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
15022         instrumented_version.
15024 2016-01-19  Richard Biener  <rguenther@suse.de>
15026         PR tree-optimization/69336
15027         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
15028         handled components with get_ref_base_and_extent.
15029         (equal_mem_array_ref_p): Adjust.
15031 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
15033         PR debug/65779
15034         * shrink-wrap.c: Include valtrack.h.
15035         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
15036         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
15037         in between insn and where it will be moved to.  Call
15038         dead_debug_insert_temp.
15039         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
15040         first and dead_debug_local_finish at the end.
15041         For uses and defs bitmap, handle all regs in between REGNO and
15042         END_REGNO, not just the first one.
15044 2016-01-19  Richard Biener  <rguenther@suse.de>
15046         PR tree-optimization/69352
15047         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
15048         (equal_mem_array_ref_p): Constrain size and max size properly.
15049         Compare the reverse flag.
15051 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
15053         * ira.c (ira): Update regstat data if we deleted insns.
15055 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
15057         PR rtl-optimization/68955
15058         PR rtl-optimization/64557
15059         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
15060         here.  Fix up formatting.
15061         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
15063 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
15065         PR lto/69133
15066         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
15067         assume that the node has body.
15068         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
15069         check.
15071 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
15073         * lto-streamer-out.c (lto_output): Do not stream instrumentation
15074         thunks.
15076 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
15078         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
15079         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
15081 2016-01-19  Martin Jambor  <mjambor@suse.cz>
15082             Martin Liska  <mliska@suse.cz>
15083             Michael Matz  <matz@suse.de>
15085         * Makefile.in (OBJS): Add new source files.
15086         (GTFILES): Add hsa.c.
15087         * common.opt (disable_hsa): New variable.
15088         (-Whsa): New warning.
15089         * config.in (ENABLE_HSA): New.
15090         * configure.ac: Treat hsa differently from other accelerators.
15091         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
15092         $enable_offloading.
15093         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
15094         * doc/install.texi (Configuration): Document --with-hsa-runtime,
15095         --with-hsa-runtime-include, --with-hsa-runtime-lib and
15096         --with-hsa-kmt-lib.
15097         * doc/invoke.texi (-Whsa): Document.
15098         (hsa-gen-debug-stores): Likewise.
15099         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
15100         to invoke offload compiler for hsa acclerator.
15101         * opts.c (common_handle_option): Determine whether HSA offloading
15102         should be performed.
15103         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
15104         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
15105         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
15106         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
15107         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
15108         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
15109         GF_OMP_FOR_KIND_GRID_LOOP.
15110         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
15111         (pp_gimple_stmt_1): Likewise.
15112         * gimple-walk.c (walk_gimple_stmt): Likewise.
15113         * gimple.c (gimple_build_omp_grid_body): New function.
15114         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
15115         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
15116         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
15117         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
15118         GF_OMP_TEAMS_GRID_PHONY.
15119         (gimple_statement_omp_single_layout): Updated comments.
15120         (gimple_build_omp_grid_body): New function.
15121         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
15122         (gimple_omp_for_grid_phony): New function.
15123         (gimple_omp_for_set_grid_phony): Likewise.
15124         (gimple_omp_parallel_grid_phony): Likewise.
15125         (gimple_omp_parallel_set_grid_phony): Likewise.
15126         (gimple_omp_teams_grid_phony): Likewise.
15127         (gimple_omp_teams_set_grid_phony): Likewise.
15128         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
15129         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
15130         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
15131         (BUILT_IN_GOMP_TARGET): Updated type.
15132         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
15133         (adjust_for_condition): New function.
15134         (get_omp_for_step_from_incr): Likewise.
15135         (extract_omp_for_data): Moved parts to adjust_for_condition and
15136         get_omp_for_step_from_incr.
15137         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
15138         (fixup_child_record_type): Bail out if receiver_decl is NULL.
15139         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
15140         (scan_omp_parallel): Do not create child functions for phony
15141         constructs.
15142         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
15143         (scan_omp_1_op): Checking assert we are not remapping to
15144         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
15145         (parallel_needs_hsa_kernel_p): New function.
15146         (expand_parallel_call): Register apprpriate parallel child
15147         functions as HSA kernels.
15148         (grid_launch_attributes_trees): New type.
15149         (grid_attr_trees): New variable.
15150         (grid_create_kernel_launch_attr_types): New function.
15151         (grid_insert_store_range_dim): Likewise.
15152         (grid_get_kernel_launch_attributes): Likewise.
15153         (get_target_argument_identifier_1): Likewise.
15154         (get_target_argument_identifier): Likewise.
15155         (get_target_argument_value): Likewise.
15156         (push_target_argument_according_to_value): Likewise.
15157         (get_target_arguments): Likewise.
15158         (expand_omp_target): Call get_target_arguments instead of looking
15159         up for teams and thread limit.
15160         (grid_expand_omp_for_loop): New function.
15161         (grid_arg_decl_map): New type.
15162         (grid_remap_kernel_arg_accesses): New function.
15163         (grid_expand_target_kernel_body): New function.
15164         (expand_omp): Call it.
15165         (lower_omp_for): Do not emit phony constructs.
15166         (lower_omp_taskreg): Do not emit phony constructs but create for them
15167         a temporary variable receiver_decl.
15168         (lower_omp_taskreg): Do not emit phony constructs.
15169         (lower_omp_teams): Likewise.
15170         (lower_omp_grid_body): New function.
15171         (lower_omp_1): Call it.
15172         (grid_reg_assignment_to_local_var_p): New function.
15173         (grid_seq_only_contains_local_assignments): Likewise.
15174         (grid_find_single_omp_among_assignments_1): Likewise.
15175         (grid_find_single_omp_among_assignments): Likewise.
15176         (grid_find_ungridifiable_statement): Likewise.
15177         (grid_target_follows_gridifiable_pattern): Likewise.
15178         (grid_remap_prebody_decls): Likewise.
15179         (grid_copy_leading_local_assignments): Likewise.
15180         (grid_process_kernel_body_copy): Likewise.
15181         (grid_attempt_target_gridification): Likewise.
15182         (grid_gridify_all_targets_stmt): Likewise.
15183         (grid_gridify_all_targets): Likewise.
15184         (execute_lower_omp): Call grid_gridify_all_targets.
15185         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
15186         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
15187         (tree_omp_clause): Added union field dimension.
15188         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
15189         * tree.c (omp_clause_num_ops): Added number of arguments of
15190         OMP_CLAUSE__GRIDDIM_.
15191         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
15192         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
15193         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
15194         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
15195         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
15196         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
15197         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
15198         * tree-pass.h (make_pass_gen_hsail): Declare.
15199         (make_pass_ipa_hsa): Likewise.
15200         * ipa-hsa.c: New file.
15201         * lto-section-in.c (lto_section_name): Add hsa section name.
15202         * lto-streamer.h (lto_section_type): Add hsa section.
15203         * timevar.def (TV_IPA_HSA): New.
15204         * hsa-brig-format.h: New file.
15205         * hsa-brig.c: New file.
15206         * hsa-dump.c: Likewise.
15207         * hsa-gen.c: Likewise.
15208         * hsa.c: Likewise.
15209         * hsa.h: Likewise.
15210         * toplev.c (compile_file): Call hsa_output_brig.
15211         * hsa-regalloc.c: New file.
15213 2016-01-18  Jeff Law  <law@redhat.com>
15215         PR tree-optimization/69320
15216         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
15217         ranged object, do nothing if the RHS constant is not [0..1].
15218         (optimize_stmt): Comparing a boolean ranged object against a
15219         constant outside [0..1] results in a compile-time constant.
15221         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
15222         test.
15224 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
15226         * doc/invoke.texi (Invoking GCC): Add new section to menu.
15227         (Option Summary): Update to reflect new section and moved options.
15228         (C++ Dialect Options): Move -fstats to new section.
15229         (Debugging Options): Move all dump, statistics, and other GCC
15230         developer options to new section.  Rewrite section introduction
15231         and re-order remaining options to put the more basic ones first.
15232         (Optimization Options): Move -fira-verbose and -flto-report* to
15233         new section.
15234         (Developer Options): New section incorporating moved options.
15235         * doc/cppopts.texi (-dM): Update cross-reference.
15237 2016-01-18  Richard Henderson  <rth@redhat.com>
15239         PR target/69176
15240         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
15241         operands to pseudo only if CSE is expected.  Split long immediate
15242         operands only after reload, and for the stack pointer.
15243         (*add<GPI>3_pluslong): Remove.
15244         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
15245         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
15246         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
15247         (*add<GPI>3 peepholes): New.
15248         (*add<GPI>3 splitters): New.
15249         * config/aarch64/constraints.md (Upl): New.
15250         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
15252 2016-01-18  Richard Biener  <rguenther@suse.de>
15254         PR tree-optimization/69297
15255         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
15256         stmt at most once.
15257         (vect_bb_vectorization_profitable_p): Clear visited flag again.
15259 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
15261         PR middle-end/68542
15262         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
15263         of mixind vector and scalar types.
15264         (fold_relational_const): Add handling of vector
15265         comparison with boolean result.
15266         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
15267         comparison of vector operands with boolean result for EQ/NE only.
15268         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
15269         (verify_gimple_cond): Likewise.
15270         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
15271         valid type of VAL.
15273 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
15275         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
15276         !TARGET_OCTEON.
15278 2016-01-18  Richard Biener  <rguenther@suse.de>
15280         PR middle-end/69308
15281         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
15283 2016-01-18  Tom de Vries  <tom@codesourcery.com>
15285         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
15287 2016-01-18  Tom de Vries  <tom@codesourcery.com>
15289         * omp-low.c (set_oacc_fn_attrib): Make extern.
15290         * omp-low.h (set_oacc_fn_attrib): Declare.
15291         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
15292         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
15293         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
15294         Add and handle function parameter oacc_kernels_p.
15295         (find_reduc_addr, get_omp_data_i_param): New function.
15296         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
15297         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
15298         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
15299         Calculate dominance info.  Skip loops that are not in a kernels region
15300         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
15301         (pass_parallelize_loops::execute): Call parallelize_loops with
15302         oacc_kernels_p argument.
15303         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
15304         New member function.
15305         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
15306         * passes.def: Add argument to pass_parallelize_loops instantation.
15308 2016-01-18  Tom de Vries  <tom@codesourcery.com>
15310         * tree-parloops.c (pass_parallelize_loops::execute): Allow
15311         pass_parallelize_loops to be run outside the loop pipeline.
15313 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
15315         * tree-scalar-evolution.c (follow_copies_to_constant): New.
15316         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
15318 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
15320         PR target/63679
15321         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
15322         using get_ref_base_and_extent.
15323         (equal_mem_array_ref_p): New.
15324         (hashable_expr_equal_p): Add call to previous.
15326 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
15328         PR target/63679
15329         * tree-sra.c (disqualified_constants, constant_decl_p): New.
15330         (sra_initialize): Allocate disqualified_constants.
15331         (sra_deinitialize): Free disqualified_constants.
15332         (disqualify_candidate): Update disqualified_constants when appropriate.
15333         (create_access): Scan for constant-pool entries as we go along.
15334         (scalarizable_type_p): Add check against type_contains_placeholder_p.
15335         (maybe_add_sra_candidate): Allow constant-pool entries.
15336         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
15337         (initialize_constant_pool_replacements): New.
15338         (sra_modify_assign): Avoid mangling assignments created by previous,
15339         and don't generate writes into constant pool.
15340         (sra_modify_function_body): Call initialize_constant_pool_replacements.
15342 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
15344         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
15345         andnot instruction.
15346         (scalar_chain::convert_op): Likewise.
15347         * config/i386/i386.md (*andndi3_doubleword): New.
15349 2016-01-18  Richard Biener  <rguenther@suse.de>
15351         PR tree-optimization/69170
15352         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
15353         building a vector from scalar results of a pattern stmt.
15355 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
15357         * haifa-sched.c (autopref_multipass_init): Work around
15358         -Wmaybe-uninitialized warning.
15360 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15362         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
15363         against the constant 0.
15365 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15367         PR tree-optimization/68799
15368         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
15369         look up phi candidates in the statement-candidate map.
15370         (phi_add_costs): Likewise.
15371         (record_phi_increments): Likewise.
15372         (phi_incr_cost): Likewise.
15373         (ncd_with_phi): Likewise.
15374         (all_phi_incrs_profitable): Likewise.
15376 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
15378         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
15379         -Wmaybe-uninitialized warning.
15381 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
15383         * doc/invoke.texi (Invoking GCC): Add new section to menu.
15384         (Option Summary): Update to reflect new section and moved options.
15385         (C++ Dialect Options): Move -fvtable-verify and related options.
15386         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
15387         and profiling-related options.
15388         (Optimization Options): Move profile generation options and
15389         -fstack-protector and related options.
15390         (Instrumentation Options): New section incorporating moved options.
15391         (Code Generation Options): Move -finstrument-functions and
15392         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
15394 2016-01-16  Tom de Vries  <tom@codesourcery.com>
15396         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
15398 2016-01-16  Tom de Vries  <tom@codesourcery.com>
15400         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
15402 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
15404         * hash-table.h (hash_table::empty): Turn into an inline wrapper
15405         that checks whether the table is already empty.  Rename the
15406         original implementation to...
15407         (hash_table::empty_slot): ...this new private function.
15409 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
15411         PR diagnostic/68899
15412         * diagnostic-show-locus.c (layout::print_source_line): Move x
15413         offset of line until after call to
15414         get_line_width_without_trailing_whitespace.
15416 2016-01-15  Jeff Law  <law@redhat.com>
15418         PR tree-optimization/69270
15419         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
15420         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
15421         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
15422         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
15423         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
15424         ssa_name_has_boolean_range and constant_boolean_node.
15426 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
15428         PR rtl-optimization/69030
15429         * lra-spills.c (remove_pseudos): Check nrefs and make the function
15430         returning bool.
15431         (spill_pseudos): Delete debug insn for dead pseudo.
15432         (lra_spill): Initiate spill_hard_reg and slots memory separately.
15434 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
15436         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
15437         New.
15438         (TYPES_UNOPUS): Likewise.
15439         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
15440         builtin type, from UNOP to UNOPUS.
15441         (lbtruncuv4sf): Likewise.
15442         (lbtruncuv2df): Likewise.
15443         (lrounduv2sf): Likewise.
15444         (lrounduv4sf): Likewise.
15445         (lrounduv2df): Likewise.
15446         (lroundusf): Likewise.
15447         (lroundusf): Likewise.
15448         (lceiluv2sf): Likewise.
15449         (lceiluv4sf): Likewise.
15450         (lceiluv2df): Likewise.
15451         (lceilusf): Likewise.
15452         (lceiludf): Likewise.
15453         (lflooruv2sf): Likewise.
15454         (lflooruv4sf): Likewise.
15455         (lflooruv2df): Likewise.
15456         (lfloorusf): Likewise.
15457         (lfloorudf): Likewise.
15458         (lfrintnuv2sf): Likewise.
15459         (lfrintnuv4sf): Likewise.
15460         (lfrintnuv2df): Likewise.
15461         (lfrintnusf): Likewise.
15462         (lfrintnudf): Likewise.
15463         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
15464         conversion.
15465         (vcvtq_u32_f32): Likewise.
15466         (vcvtq_u64_f64): Likewise.
15467         (vcvta_u32_f32): Likewise.
15468         (vcvtaq_u32_f32): Likewise.
15469         (vcvtaq_u64_f64): Likewise.
15470         (vcvtm_u32_f32): Likewise.
15471         (vcvtmq_u32_f32): Likewise.
15472         (vcvtmq_u64_f64): Likewise.
15473         (vcvtn_u32_f32): Likwise.
15474         (vcvtnq_u32_f32): Likewise.
15475         (vcvtnq_u64_f64): Likewise.
15476         (vcvtp_u32_f32): Likewise.
15477         (vcvtpq_u32_f32): Likewise.
15478         (vcvtpq_u64_f64): Likewise.
15479         (vcvtmd_u64_f64): Likewise.
15480         (vcvtms_u32_f32): Likewise.
15481         (vcvtad_u64_f64): Likewise.
15482         (vcvtas_u32_f32): Likewise.
15483         (vcvtnd_u64_f64): Likewise.
15484         (vcvtns_u32_f32): Likewise.
15485         (vcvtpd_u64_f64): Likewise.
15486         (vcvtps_u32_f32): Likewise.
15488 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15490         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
15491         CSEL of zero_extended registers.
15493 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15495         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
15496         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
15498 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15500         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
15501         false when argument string is not found in the attributes table
15502         at all.
15504 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
15506         PR target/68609
15507         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
15508         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
15509         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
15510         precision estimate.
15512 2016-01-15  Richard Biener  <rguenther@suse.de>
15514         PR tree-optimization/66856
15515         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
15516         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
15517         (vect_create_new_slp_node): Increment stmt reference count.
15518         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
15519         an SLP tree before swapping operands.
15520         (vect_build_slp_tree): Likewise.
15521         (destroy_bb_vec_info): Free stmt info after SLP instances.
15522         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
15523         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
15524         (STMT_VINFO_NUM_SLP_USES): New macro.
15526 2016-01-15  Richard Biener  <rguenther@suse.de>
15528         PR debug/69137
15529         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
15530         (add_linkage_name): ... here.
15531         (gen_typedef_die): Use add_linkage_name_raw instead of
15532         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
15533         if necessary.
15535 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
15537         * gimplify.c (oacc_default_clause): Decode reference and pointer
15538         types for both kernels and parallel regions.
15540 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
15542         PR middle-end/69246
15543         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
15545 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
15547         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
15548         (convert_scalars_to_vector): Likewise.
15550 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
15552         * doc/extend.texi (Type Traits): Fix grammar.
15554 2016-01-15  Martin Jambor  <mjambor@suse.cz>
15556         * tree-inline.c (remap_decl): Use existing dclarations if
15557         remapping a type and prevent_decl_creation_for_types.
15558         (replace_locals_stmt): Do an initial remapping of non-VLA typed
15559         decls first.  Do real remapping with
15560         prevent_decl_creation_for_types set.
15561         * tree-inline.h (copy_body_data): New field
15562         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
15563         padding.
15565 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15567         * config/s390/s390.opt (mmvcle): More verbose help text.
15569 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15571         * config/s390/s390.opt: Add period to -mzvector option text.
15573 2016-01-15  Richard Biener  <rguenther@suse.de>
15575         PR tree-optimization/68961
15576         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
15577         of invariants in stores again.
15579 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15581         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
15583 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
15585         * config/i386/i386.c (ix86_expand_branch): Don't split
15586         DI mode xor instruction to SI mode.
15588 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
15590         PR ipa/68148
15591         * ipa-icf.c (sem_function::merge): Virtual functions may become
15592         reachable even if they address is not taken and there are no
15593         idrect calls.
15595 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
15597         * lto-streamer-out.c (subtract_estimated_size): New function.
15598         (get_symbol_initial_value): Use it.
15600 2016-01-15  Christian Bruel  <christian.bruel@st.com>
15602         PR target/65837
15603         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
15604         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
15605         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
15606         use add_builtin_function_ext_scope instead of add_builtin_function.
15607         (neon_set_p, neon_crypto_set_p): Remove.
15608         (arm_init_builtins): Always call arm_init_neon_builtins and
15609         arm_init_crypto_builtins.
15610         (arm_expand_builtin): Check that builtins are allowed for the arch.
15611         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
15612         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
15613         arm_init_neon_builtins call.
15615 2016-01-15  Richard Biener  <rguenther@suse.de>
15617         PR tree-optimization/69117
15618         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
15619         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
15620         of the leader conservatively.
15621         (free_scc_vn): Restore original SSA name infos.
15623 2016-01-14  Jeff Law  <law@redhat.com>
15625         PR tree-optimization/69270
15626         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
15627         single bit of precision, verify it's also unsigned.
15628         (record_edge_info): Use constant_boolean_node rather than fold_convert
15629         to convert boolean_true/boolean_false to the right type.
15631 2016-01-14  Richard Henderson  <rth@redhat.com>
15633         PR rtl-opt/69014
15634         * loop-doloop.c (record_reg_sets): New.
15635         (doloop_optimize): Reject the transform if the sequence
15636         clobbers registers live at the end of the loop block.
15637         (doloop_optimize_loops): Enable df_live if needed.
15639 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15641         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
15642         * config/rs6000/rs6000.c: Likewise.
15643         * config/rs6000/rs6000.h: Likewise.
15644         * config/rs6000/rs6000.md: Likewise.
15645         * doc/extend.texi: Likewsie.
15647 2016-01-14  Jeff Law  <law@redhat.com>
15649         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
15650         typo.
15652 2016-01-14  Richard Henderson  <rth@redhat.com>
15654         PR c/69272
15655         PR tree-opt/68964
15656         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
15657         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
15658         instead of builtin_decl_declared_p to test for declaration.
15660 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
15662         * doc/loop.texi (Loop Analysis and Representation): Document
15663         loop_depth function.
15665 2016-01-14  Tom de Vries  <tom@codesourcery.com>
15667         PR tree-optimization/68773
15668         * omp-low.c (expand_omp_target): Don't set force_output.
15669         * varpool.c (varpool_node::get_create): Same.
15670         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
15671         offload_funcs with force_output.
15673 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
15675         PR debug/69244
15676         * lra-eliminations.c (move_plus_up): Don't change anything if either
15677         the outer or inner subreg mode is not MODE_INT.
15678         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
15679         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
15681 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
15683         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
15684         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
15685         reduc_uplus_@var{m}): Remove.
15686         * expr.c (expand_expr_real_2): Remove expansion path for
15687         reduc_[us](min|max|plus) optabs.
15688         * optabs-tree.c (scalar_reduc_to_vector): Remove.
15689         * optabs-tree.h (scalar_reduc_to_vector): Remove.
15690         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
15691         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
15692         * tree-vect-loop.c (vectorizable_reduction): Remove test for
15693         reduc_[us](min|max|plus) optabs.
15695 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
15697         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
15698         (reduc_plus_scal_v2sf): New.
15699         (reduc_smax_v2sf): Rename to...
15700         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
15701         (reduc_smin_v2sf): Rename to...
15702         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
15704 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
15706         * alias.c (compare_base_symbol_refs): New function.
15707         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
15708         it.
15710 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
15712         PR middle-end/68146
15713         PR tree-optimization/69155
15714         * tree-complex.c: Include cfganal.h.
15715         (phis_to_revisit): New variable.
15716         (extract_component): Add phiarg_p argument.  Assert that returned
15717         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
15718         (update_phi_components): Partly rewrite to use loop over real/imag
15719         components instead of code duplication.  If extract_component returns
15720         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
15721         create_tmp_reg into the PHI node instead, and mention the phi triplet
15722         in phis_to_revisit.
15723         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
15724         in phis_to_revisit at the end.
15726 2016-01-14  Richard Biener  <rguenther@suse.de>
15728         PR tree-optimization/68060
15729         * tree-vect-loop.c (vect_is_simple_reduction): Check the
15730         outer loop reduction is only used in the inner loop before
15731         detecting a double reduction.
15733 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
15735         PR target/68269
15736         * combine.c (expand_field_assignment): Punt if compute_mode is
15737         unsupported scalar mode.
15739 2016-01-14  Richard Biener  <rguenther@suse.de>
15741         PR tree-optimization/66856
15742         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
15743         SLP node only if it built successfully.
15744         (vect_analyze_slp_instance): Adjust.
15746 2016-01-14  Jeff Law  <law@redhat.com>
15748         PR tree-optimization/69270
15749         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
15750         (record_edge_info): Use it.  Convert boolean_{true,false}_node
15751         to the type of op0.
15753 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
15755         PR ipa/66487
15756         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
15757         use block_ultimate_origin
15758         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
15760 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
15762         * doc/invoke.texi (Submodel Options): Rename section to
15763         "Machine-Dependent Options" to better reflect its content.
15764         Rewrite introductory text to remove archaic CPU names.
15765         Update references.
15767 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
15769         * doc/invoke.texi (Code Gen Options): Move section up in file,
15770         before target-specific options.  Update menu and option summary
15771         to reflect the new section ordering.
15773 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
15775         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
15776         (C++ Dialect Options): Add cross-reference to -std option.
15777         * doc/standards.texi (C++ Language): Document C++14 support.
15779 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15781         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
15782         for pack/unpack functions for __ibm128.
15783         (PACK_IF): Likewise.
15784         (UNPACK_IF): Likewise.
15786         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
15787         support for __ibm128 pack/unpack functions.
15788         (rs6000_invalid_builtin): Likewise.
15789         (rs6000_init_builtins): Likewise.
15790         (rs6000_opt_masks): Likewise.
15792         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
15793         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
15794         functions
15795         (RS6000_BTM_COMMON): Likewise.
15797         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
15798         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
15799         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
15800         128-bit floating point.  Add support for the double values to be
15801         in Altivec registers for TF/IF packing and unpacking, but restrict
15802         TD packing sub-fields to be FPR registers.  Don't allow overlapped
15803         register support for packing.  Allow pack inputs to be memory
15804         locations.  Don't build generator functions for unpack<mode>_dm
15805         and unpack<mode>_nodm.
15806         (unpack<mode>_dm): Likewise.
15807         (unpack<mode>_nodm): Likewise.
15808         (pack<mode>): Likewise.
15810         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
15811         built-in functions to pack/unpack explicit __ibm128 values.
15812         (__builtin_unpack_ibm128): Likewise.
15814         * doc/extend.texi (PowerPC Built-in Functions): Document
15815         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
15817 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
15819         PR c/66208
15820         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
15821         Add new arg loc and pass it down as context.
15822         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
15823         to the location to use for the warning.
15824         (check_function_arguments): New arg loc.  All callers changed.  Pass
15825         it to check_function_nonnull.
15826         * c-common.h (check_function_arguments): Adjust declaration.
15828 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
15830         PR tree-optimization/69156
15831         * gimple.c (validate_type): Removed.
15832         (gimple_builtin_call_types_compatible_p): Use
15833         useless_type_conversion_p instead of validate_type.
15834         * value-prof.c (gimple_stringop_fixed_value): Fold
15835         icall_size to correct type.
15837 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
15839         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
15840         effects.
15842 2016-01-13  Richard Henderson  <rth@redhat.com>
15844         PR tree-opt/68964
15845         * target.def (builtin_tm_load, builtin_tm_store): Remove.
15846         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
15847         (ix86_builtin_tm_store): Remove.
15848         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15849         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15850         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15851         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15852         * doc/tm.texi: Rebuild.
15854         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
15855         (BUILT_IN_TM_MEMCPY_RTWN): New.
15856         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
15857         fallback from vector to integer helpers.
15858         (build_tm_load): Handle vector types directly, instead of
15859         via target hook.
15860         (build_tm_store): Likewise.
15861         (expand_assign_tm): Prepare for register types not handled by
15862         the above.  Copy them to memory and use memcpy.
15863         * tree.c (tm_define_builtin): New.
15864         (find_tm_vector_type): New.
15865         (build_tm_vector_builtins): New.
15866         (build_common_builtin_nodes): Call it.
15868 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
15870         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
15871         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
15873 2016-01-13  Tom de Vries  <tom@codesourcery.com>
15875         PR tree-optimization/69169
15876         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
15877         handled_struct_type param.
15878         (create_variable_info_for, intra_create_variable_infos): Call
15879         create_variable_info_for_1 with extra arg.
15881 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
15883         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
15884         and "armv8.1-a+crc" entries.
15886 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
15888         PR target/69228
15889         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
15890         Change first operand predicate from register_or_constm1_operand
15891         to register_operand.
15892         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
15893         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
15894         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
15895         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
15896         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
15897         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
15898         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
15899         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
15900         comparison with constm1_rtx from vec_prefetch_gen part.
15902 2016-01-13  Richard Biener  <rguenther@suse.de>
15904         PR tree-optimization/69013
15905         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
15906         Exchange assert for a test.
15908 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15910         PR target/69247
15911         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
15913 2016-01-13  Richard Biener  <rguenther@suse.de>
15915         PR tree-optimization/69242
15916         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
15917         assert with a check.
15919 2016-01-13  Richard Biener  <rguenther@suse.de>
15921         PR tree-optimization/69186
15922         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15923         Properly guard vect_update_misalignment_for_peel call.
15925 2016-01-12  Jeff Law  <law@redhat.com>
15927         PR tree-optimization/pr67755
15928         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
15929         "need_profile_correction".
15930         (thread_block_1): Initialize new field to false by default.  If we
15931         have multiple thread paths through a common joiner to different
15932         final targets, then set new field to true.
15933         (compute_path_counts): Only do count adjustment when it's really
15934         needed.
15936 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15938         * doc/invoke.texi (Spec Files): Move section down in file, past
15939         all command-line option descriptions.
15941 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15943         PR middle-end/54809
15944         * doc/gty.texi: Remove documentation of mark_hook.
15945         * gengtype.c (struct write_types_data): Remove code to support
15946         mark_hook attribute.
15947         (walk_type): Likewise.
15948         (write_func_for_structure): Likewise.
15950 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15952         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
15953         Directory Options, and -specs= to Overall Options.
15954         (Overall Options): Adjust similarly.  Reorder to group related
15955         options together.  Make -specs= cross-reference the spec file details.
15956         (Directory Options): Adjust similarly.
15958 2016-01-12  Jeff Law  <law@redhat.com>
15960         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
15962 2016-01-12  Olivier Hainque  <hainque@adacore.com>
15964         * gcc.c (spec_undefvar_allowed): New global.
15965         (process_command): Set to true when running for --version or --help,
15966         alone or together.
15967         (getenv_spec_function): When the variable is not defined, use the
15968         variable name as the variable value if we're allowed not to issue
15969         a fatal error.
15971 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
15973         PR tree-optimization/68911
15974         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
15975         information computed for expression "init + nit * step".
15977 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15979         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
15980         about name of GCC executable.  Remove deleted node from menu.
15981         (Directory Options) <-B>: Remove cross-reference to deleted node.
15982         (Target Options): Delete section.
15984 2016-01-12  Christian Bruel  <christian.bruel@st.com>
15986         PR target/69180
15987         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
15988         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
15990 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
15992         PR target/69198
15993         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
15994         aligned_mem is properly set for AVX512-VL floating point masked
15995         stores.
15997         PR target/69175
15998         * ifcvt.c (cond_exec_process_if_block): When removing the last
15999         insn from then_bb, remove also any possible barriers that follow it.
16001 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
16003         PR target/68456
16004         PR target/69226
16005         * config/i386/iamcu.h (SIZE_TYPE): New macro.
16006         (PTRDIFF_TYPE): Likewise.
16007         (WCHAR_TYPE): Likewise.
16008         (WCHAR_TYPE_SIZE): Likewise.
16009         (STDINT_LONG32): Likewise.
16011 2016-01-12  Richard Biener  <rguenther@suse.de>
16013         PR tree-optimization/69053
16014         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
16015         convert initial value for cond reductions.
16017 2016-01-12  Richard Biener  <rguenther@suse.de>
16019         PR tree-optimization/69007
16020         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
16021         widen_sum after dot_prod and sad.
16023 2016-01-12  Richard Biener  <rguenther@suse.de>
16025         PR tree-optimization/69168
16026         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
16027         pattern stmt SLP type.
16028         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
16029         end up unused so cope with that case.
16031 2016-01-12  Richard Biener  <rguenther@suse.de>
16033         PR tree-optimization/69157
16034         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
16035         stmts def type only during analyze phase.
16036         (vectorizable_call): Likewise.
16037         (vectorizable_simd_clone_call): Likewise.
16038         (vectorizable_conversion): Likewise.
16039         (vectorizable_assignment): Likewise.
16040         (vectorizable_shift): Likewise.
16041         (vectorizable_operation): Likewise.
16042         (vectorizable_store): Likewise.
16043         (vectorizable_load): Likewise.
16045 2016-01-12  Richard Biener  <rguenther@suse.de>
16047         PR tree-optimization/69174
16048         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
16049         space.
16050         (vectorizable_load): Properly compute the number of loads needed
16051         for permuted strided SLP loads and do not spuriously assign
16052         to SLP_TREE_VEC_STMTS.
16054 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
16056         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
16057         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
16058         (MD_EXEC_PREFIX): Remove.
16059         (MD_STARTFILE_PREFIX) Removee.
16060         (FILE_NAME_ABSOLUTE_P): Remove.
16061         (CPP_SPEC): Do not read macros from sys/version.h.
16062         (LINK_COMMAND_SPEC): Remove.
16063         (LOCAL_INCLUDE_DIR): Remove.
16064         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
16065         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
16066         (POST_LINK_SPEC): Define to invoke stubify after linker
16067         (LIBSTDCXX): Remove define
16068         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
16069         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
16070         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
16071         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
16072         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
16073         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
16074         (i386_djgpp_asm_named_section): Add propotype of new procedure
16076         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
16077         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
16078         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
16079         in config/i386/djgpp.h).
16080         (STANDARD_STARTFILE_PREFIX_2): Define identical to
16081         STANDARD_STARTFILE_PREFIX_1.
16082         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
16083         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
16084         installation errors.
16085         (MAX_OFILE_ALIGNMENT): Define to 128.
16086         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
16088         * config/i386/djgpp.c: New file. Add implementation of
16089         i386_djgpp_asm_named_section.
16091         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
16093         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
16094         Add rule for building djgpp.o.
16096 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16098         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
16099         (rtx_is_swappable_p): Reductions are swappable.
16100         (insn_is_swappable_p): V2DF reductions are swappable.
16102 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
16104         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
16105         reloads for other unsupported memory operands.
16107 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
16108             Jim Wilson  <jim.wilson@linaro.org>
16110         PR target/69194
16111         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
16112         copy_to_mode_reg instead of force_reg.
16114 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
16116         PR target/69225
16117         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
16118         TARGET_80387 is true.
16120 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
16122         PR target/69071
16123         * lra-eliminations.c (move_plus_up): Only move plus up
16124         if subreg of the constant can be simplified into constant
16125         and use the simplified subreg of the constant instead of
16126         the original constant.
16128         * fold-const.c (fold_convertible_p): Don't return true
16129         for conversion of VECTOR_TYPE to same sized integral type.
16130         (fold_convert_loc): Fix up formatting.  Fold conversion of
16131         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
16132         instead of NOP_EXPR.
16134         PR tree-optimization/69214
16135         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
16136         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
16137         Formatting fix.
16139         PR tree-optimization/69207
16140         * tree-vect-slp.c (vect_get_constant_vectors): For
16141         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
16142         fold_convertible_p to vector_type's element type, and always
16143         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
16145 2016-01-11  Richard Biener  <rguenther@suse.de>
16147         PR tree-optimization/69173
16148         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
16149         fixup the cycle if all stmts are in a pattern.
16151 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
16153         PR middle-end/68999
16154         * alias.c (base_alias_check): Move check for addresses with
16155         alignment ANDs before the call for compare_base_decls.
16156         (memrefs_conflict_p): Return -1 for different decls
16157         that went through alignment adjustments.
16159 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16161         PR rtl-optimization/68796
16162         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
16163         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
16164         and QImode comparisons against zero with CC_NZmode.
16165         * config/aarch64/iterators.md (short_mask): New mode_attr.
16167 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
16169         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
16170         (<avx512>_store<mode>_mask): Likewise.
16172 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
16173             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16175         PR rtl-optimization/68841
16176         * ifcvt.c (struct noce_if_info): Add orig_x field.
16177         (bbs_ok_for_cmove_arith): Add to_rename parameter.
16178         Don't record conflicts on to_rename if it's present.
16179         Allow memory destinations in sets.
16180         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
16181         blocks, passing orig_x to the checks.
16182         (noce_process_if_block): Set if_info->orig_x appropriately.
16184 2016-01-11  Tom de Vries  <tom@codesourcery.com>
16186         PR tree-optimization/69069
16187         * tree-parloops.c (create_parallel_loop): Add missing phi args.
16189 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
16191         PR rtl-optimization/68920
16192         * config/i386/i386.c (ix86_option_override_internal): Restrict number
16193         of conditional moves for  RTL if-conversion to 1 for
16194         TARGET_ONE_IF_CONV_INSN.
16195         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
16196         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
16197         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
16198         parameter to restirct number of conditional moves for
16199         RTL if-conversion.
16200         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
16201         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
16202         conditionl moves.
16204 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
16206         PR bootstrap/69123
16207         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
16208         onepart vars.  Fix typo in comment.  Fix reversed condition in
16209         unshare test.
16210         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
16212         PR bootstrap/69123
16213         * var-tracking.c (dump_onepart_variable_differences): New.
16214         (dataflow_set_different): If a detailed dump is requested,
16215         delay early returns and dump differences between onepart
16216         variables present before and after, and added variables.
16218 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
16220         PR target/69010
16221         * expr.c (expand_expr_real_1): For boolean vector constants
16222         with a scalar mode use const_scalar_mask_from_tree.
16223         (const_scalar_mask_from_tree): New.
16224         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
16225         assigned to a mask type to handle constants.
16227 2016-01-11  Martin Jambor  <mjambor@suse.cz>
16229         PR ipa/69044
16230         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
16231         useless parameters if we cannot change function signature.
16233 2016-01-11  Martin Jambor  <mjambor@suse.cz>
16235         PR ipa/66616
16236         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
16237         flag.
16239 2016-01-11  Tom de Vries  <tom@codesourcery.com>
16241         PR tree-optimization/69109
16242         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
16243         latch with phi.
16245 2016-01-11  Tom de Vries  <tom@codesourcery.com>
16247         PR tree-optimization/69108
16248         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
16249         res is not used in a phi.
16251 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
16253         PR 67425
16254         * common.opt (frandom-seed): Fix parameter name.
16255         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
16257 2016-01-11  Tom de Vries  <tom@codesourcery.com>
16259         PR tree-optimization/69058
16260         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
16261         not supported.
16263 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
16265         * config/arc/arc.opt (mdiv-rem): Add period to the end.
16266         (mcode-density): Likewise.
16268 2016-01-10  Tom de Vries  <tom@codesourcery.com>
16270         PR tree-optimization/69062
16271         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
16272         (parallelize_loops): Don't paralelize loop that has phi with address
16273         arg.
16275 2016-01-10  Tom de Vries  <tom@codesourcery.com>
16277         PR tree-optimization/69039
16278         * tree-parloops.c (try_create_reduction_list): Only allow single exit
16279         phi for reduction.
16281 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
16283         PR middle-end/68743
16284         * match.pd: Require target has function_c99_misc before doing
16285         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
16287 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
16289         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
16290         use GMPINC.
16291         * configure: Regenerate.
16293 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
16295         PR middle-end/50865
16296         PR tree-optimization/69097
16297         * fold-const.h (expr_not_equal_to): New prototype.
16298         * fold-const.c: Include stringpool.h and tree-ssanames.h.
16299         (expr_not_equal_to): New function.
16300         * match.pd (X % -Y is the same as X % Y): Don't optimize
16301         unless X is known not to be equal to minimum or Y is known
16302         not to be equal to -1.
16303         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
16304         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
16305         (simplify_stmt_using_ranges): Adjust caller.
16306         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
16307         substitute_and_fold.
16309 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
16311         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
16312         w/o DECL_NAME.
16314 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
16316         PR tree-optimization/69167
16317         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
16318         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
16319         ops[0] comparison.
16320         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
16322 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
16323             Richard Biener  <rguenther@suse.de>
16325         PR tree-optimization/68707
16326         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
16327         instances that can be handled via vect_load_lanes.
16329 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
16331         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
16332         if we can't determine address equivalence.
16333         * alias.c (compare_base_decl): Update for changed return value of
16334         symtab_node::equal_address_to.
16336 2016-01-08  Jason Merrill  <jason@redhat.com>
16338         PR c++/68983
16339         PR c++/67557
16340         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
16341         * expr.c (store_field): Not here.
16342         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
16343         call with TREE_ADDRESSABLE type.
16344         * tree-cfg.c (verify_gimple_call): Adjust.
16346 2016-01-08  Olivier Hainque  <hainque@adacore.com>
16348         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
16349         libc_internal.
16351 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
16353         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
16354         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
16355         (reduc_smin_v2sf): Rename to...
16356         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
16357         (reduc_splus_v2sf): Rename to...
16358         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
16360 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
16362         PR tree-optimization/69162
16363         * gimplify.c (gimplify_va_arg_expr): Encode original type of
16364         valist argument in another argument.
16365         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
16366         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
16367         to determine the va_list type, build a MEM_REF instead of
16368         build_fold_indirect_ref.
16370         PR tree-optimization/69172
16371         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
16372         gimple_build.
16374 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16376         PR tree-optimization/67781
16377         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
16378         and cmpnop in two steps: first the ones not accessed in original
16379         gimple expression in a endian independent way and then the ones not
16380         accessed in the final result in an endian-specific way.
16382 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
16384         PR tree-optimization/69083
16385         * tree-vect-slp.c (vect_get_constant_vectors): For
16386         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
16387         element type.  If op is fold_convertible_p to vector_type's element
16388         type, use NOP_EXPR instead of VCE.
16390 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
16392         PR rtl-optimization/67778
16393         PR rtl-optimization/68634
16394         PR rtl-optimization/68909
16395         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
16396         block from the stack until done with it.  Remove a superfluous
16397         bitmap set.  Remove a superfluous bitmap test.
16399 2016-01-07  Martin Sebor  <msebor@redhat.com>
16401         PR c/68966
16402         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
16403         constraint on the type of arguments.
16405 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
16407         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
16408         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
16409         unaligned_access on the gcc_options set.
16410         * config/arm/arm.c (arm_option_override_internal): Use
16411         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
16413 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
16415         PR target/69140
16416         * config/i386/i386.c (ix86_frame_pointer_required): Enable
16417         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
16419 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
16421         Revert
16422         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
16424         PR target/69140
16425         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
16426         depending on frame_pointer_needed before remaining integer and SSE
16427         registers are saved.
16429 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
16431         PR 1078
16432         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
16434 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
16436         PR target/69171
16437         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
16438         Use the "xBm" constraint.
16439         (float<sseintvecmodelower><mode>2<mask_name><round_name):
16440         Likewise.
16441         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
16442         (sse_cvtsi2ssq<round_name>): Likewise.
16443         (sse_cvtss2si<round_name>): Likewise.
16444         (sse_cvtss2siq<round_name>): Likewise.
16445         (sse2_cvtsi2sdq<round_name>): Likewise.
16446         (sse2_cvtsd2si<round_name>): Likewise.
16447         (sse2_cvtsd2siq<round_name>): Likewise.
16448         * config/i386/subst.md (round_nimm_scalar_predicate): New
16449         predicate.
16451 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
16453         PR middle-end/67639
16454         * varasm.c (make_decl_rtl): Mark invalid register vars as
16455         DECL_EXTERNAL.
16457         PR rtl-optimization/66206
16458         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
16459         All callers changed.
16461 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
16463         PR tree-optimization/69141
16464         * tree-ssa-pre.c: Include langhooks.h.
16465         (eliminate_dom_walker::before_dom_children): Use
16466         lang_hooks.decl_printable_name instead of
16467         cgraph_node::get ()->name ().
16469         PR middle-end/68960
16470         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
16471         it and DECL_ALIGN too.
16473 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
16475         * config/mips/mips-ftypes.def: Sort to lexicographical order.
16477 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
16479         PR target/69140
16480         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
16481         depending on frame_pointer_needed before remaining integer and SSE
16482         registers are saved.
16484 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16486         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
16487         mode iterator with VSX_M2.
16488         (*p9_vecstore_<mode>): Likewise.
16489         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
16490         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
16491         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
16492         (define_split for VSX_LE128 stores): Likewise.
16493         (define_peephole2 for TImode LE swaps): Likewise.
16494         (define_split for VSX_LE128 post-reload stores): Likewise.
16496 2016-01-06  Marek Polacek  <polacek@redhat.com>
16498         PR sanitizer/69099
16499         * convert.c (convert_to_integer_1): Adjust call to
16500         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
16501         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
16502         EXPR instead of ARG.
16503         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
16505 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
16507         PR 1078
16508         * doc/extend.texi (RL78 Variable Attributes): New section.
16510 2016-01-05  Marek Polacek  <polacek@redhat.com>
16512         PR c/69104
16513         * builtins.c (get_memmodel): Use expansion point location rather than
16514         the input location.  Call warning_at rather than warning.
16515         (expand_builtin_atomic_compare_exchange): Likewise.
16516         (expand_builtin_atomic_load): Likewise.
16517         (expand_builtin_atomic_store): Likewise.
16518         (expand_builtin_atomic_clear): Likewise.
16520 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
16522         PR target/68991
16523         * config/i386/i386.c (ix86_expand_vector_logical_operator):
16524         Replace nonimmediate_operand with vector_operand.
16525         * config/i386/predicates.md (vector_operand): New predicate.
16526         (general_vector_operand): Replace nonimmediate_operand with
16527         vector_operand.
16528         * config/i386/sse.md: Replace nonimmediate_operand with
16529         vector_operand and m constraint with Bm constraint on SSE
16530         patterns with 16-byte memory operand.
16531         * config/i386/subst.md (round_nimm_predicate): Replace
16532         nonimmediate_operand with vector_operand.
16533         (round_saeonly_nimm_predicate): Likewise.
16534         (round_saeonly_nimm_scalar_predicate): New.
16536 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
16538         PR target/68991
16539         * config/i386/constraints.md (Bm): New constraint.
16540         * config/i386/predicates.md (vector_memory_operand): New
16541         predicate.
16542         * config/i386/sse.md: Replace xm with xBm in plusminus and
16543         any_logic patterns.
16545 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
16547         PR 1078
16548         * doc/extend.texi (V850 Function Attributes): New section.
16549         (V850 Variable Attributes): New section.
16551 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
16553         PR 1078
16554         * doc/extend.texi (MicroBlaze Function Attributes): Document
16555         interrupt_handler and fast_interrupt attributes.
16557 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
16559         PR other/60465
16560         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
16561         for local symbolic operands.
16562         * config/ia64/predicates.md (local_symbolic_operand64): New
16563         predicate.
16565 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16567         PR rtl-optimization/68651
16568         * combine.c (combine_simplify_rtx): Canonicalize x + x into
16569         x << 1.
16571 2016-01-05  Nathan Sidwell  <nathan@acm.org>
16573         * alias.c (compare_base_decls): Use symtab_node::get.
16575 2016-01-05  Nick Clifton  <nickc@redhat.com>
16577         PR target/68770
16578         * ira-costs.c (copy_cost): Initialise the t_icode field of the
16579         secondary_reload_info structure.
16581         PR target/66655
16582         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
16583         decls if weak support is available.
16585 2016-01-04  Martin Sebor  <msebor@redhat.com>
16587         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
16589 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
16591         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
16592         OPTION_MASK_P9_DFORM.
16594         * config/rs6000/constraints.md (wo constraint): New constraint for
16595         ISA 3.0 (power9).
16597         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
16598         for wo constraint.
16599         (rs6000_init_hard_regno_mode_ok): Likewise.
16601         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
16602         wo constraint.
16604         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
16605         expanders not to have constraints.  Add support for ISA 3.0 xxperm
16606         instruction.  Add support for fusing xxlor with xxperm.
16607         (altivec_vperm_<mode>_internal): Likewise.
16608         (altivec_vperm_v8hiv16qi): Likewise.
16609         (altivec_vperm_<mode>v16q): Likewise.
16610         (altivec_vperm_<mode>_uns): Likewise.
16611         (vperm_v8hiv4si): Likewise.
16612         (vperm_v16qiv8hi): Likewise.
16614         * doc/md.texi (RS/6000 constraints): Document wo constraint.
16616 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
16618         Update copyright years.
16620         * gcc.c (process_command): Update copyright notice dates.
16621         * gcov-dump.c (print_version): Ditto.
16622         * gcov.c (print_version): Ditto.
16623         * gcov-tool.c (print_version): Ditto.
16624         * gengtype.c (create_file): Ditto.
16625         * doc/cpp.texi: Bump @copying's copyright year.
16626         * doc/cppinternals.texi: Ditto.
16627         * doc/gcc.texi: Ditto.
16628         * doc/gccint.texi: Ditto.
16629         * doc/gcov.texi: Ditto.
16630         * doc/install.texi: Ditto.
16631         * doc/invoke.texi: Ditto.
16633 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16635         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
16636         modes larger than TImode as TImode if NEON is not enabled.
16638 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16640         PR target/69100
16641         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
16642         mode for %f0-%f31 only if TARGET_FPU.
16644 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16646         PR target/69072
16647         * config/sparc/sparc.c (scan_record_type): Take into account subfields
16648         to compute the PACKED_P predicate.
16649         (function_arg_record_value): Minor tweaks.
16651 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16653         * doc/install.texi (--with-multilib-list): Describe the meaning of the
16654         option for arm*-*-* targets.
16656 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
16658         * doc/extend.texi (Common Function Attributes): Move docs for
16659         MSP430-specific attributes to....
16660         (MSP430 Function Attributes): ...here.  Delete the redundant
16661         entries and copy-edit the remaining text.
16662         (MSP430 Variable Attributes): Use uniform format for index
16663         entries and add a cross-reference to the corresponding function
16664         attribute docs.
16666 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
16668         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
16669         -finite-math typo.
16670         (x86 Options): Likewise.
16672 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
16674         PR 1078
16676         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
16677         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
16678         to corresponding attribute.
16680 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
16682         * doc/extend.texi (Common Function Attributes) <noplt>: Move
16683         to correct alphabetization of table.  Copy-edit and correct
16684         markup.
16685         <stack_protect>: Likewise.
16686         <target_clones>: Likewise.
16687         <simd>: Likewise.
16688         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
16689         Correct punctuation.
16690         (Code Gen Options) <-fno-plt>: Copy-edit.
16692 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16694         PR target/68917
16695         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
16696         SI values.  Explicitly convert SI to DI and vice-versa.
16698 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
16700         PR tree-optimization/69070
16701         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
16702         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
16704         PR sanitizer/69055
16705         * ubsan.c (ubsan_instrument_float_cast): Call
16706         initialize_sanitizer_builtins.
16708         PR target/69015
16709         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
16711 Copyright (C) 2016 Free Software Foundation, Inc.
16713 Copying and distribution of this file, with or without modification,
16714 are permitted in any medium without royalty provided the copyright
16715 notice and this notice are preserved.