1 2016-12-14 Jakub Jelinek <jakub@redhat.com>
4 * valtrack.c: Include rtl-iter.h.
5 (struct rtx_subst_pair): Add insn field.
6 (propagate_for_debug_subst): If pair->to contains at least 2
7 regs, create a DEBUG_INSN with a debug temp before pair->insn
8 and replace from with the debug temp instead of pair->to.
9 (propagate_for_debug): Initialize p.insn.
10 * combine.c (insn_uid_check): New inline function.
11 (INSN_COST, LOG_LINKS): Use it instead of INSN_UID.
12 (find_single_use, combine_instructions,
13 cant_combine_insn_p, try_combine): Use NONDEBUG_INSN_P instead of
16 2016-12-14 Martin Sebor <msebor@redhat.com>
19 * builtin-attrs.def (ATTR_NONNULL_1_1, ATTR_NONNULL_1_2): Defined.
20 (ATTR_NONNULL_1_3, ATTR_NONNULL_1_4, ATTR_NONNULL_1_5): Same.
21 (ATTR_NOTHROW_NONNULL_1_1, ATTR_NOTHROW_NONNULL_1_2): Same.
22 (ATTR_NOTHROW_NONNULL_1_3, ATTR_NOTHROW_NONNULL_1_4): Same.
23 (ATTR_NOTHROW_NONNULL_1_5): Same.
24 (ATTR_NONNULL_1_FORMAT_PRINTF_1_2): Same.
25 (ATTR_NONNULL_1_FORMAT_PRINTF_2_0): Same.
26 (ATTR_NONNULL_1_FORMAT_PRINTF_2_3): Same.
27 (ATTR_NONNULL_1_FORMAT_PRINTF_3_0): Same.
28 (ATTR_NONNULL_1_FORMAT_PRINTF_3_4): Same.
29 (ATTR_NONNULL_1_FORMAT_PRINTF_4_0): Same.
30 (ATTR_NONNULL_1_FORMAT_PRINTF_4_5): Same.
31 * builtins.c (validate_arg): Add argument. Treat null pointers
32 passed to nonnull arguments as invalid.
33 (validate_arglist): Same.
34 * builtins.def (fprintf, fprintf_unlocked): Add nonnull attribute.
35 (printf, printf_unlocked, sprintf. vfprintf, vsprintf): Same.
36 (__sprintf_chk, __vsprintf_chk, __fprintf_chk, __vfprintf_chk): Same.
37 * calls.c (get_nonnull_ags, maybe_warn_null_arg): New functions.
38 (initialize_argument_information): Diagnose null pointers passed to
39 arguments declared nonnull.
40 * calls.h (get_nonnull_args): Declared.
42 2016-12-14 Michael Meissner <meissner@linux.vnet.ibm.com>
44 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): On ISA
45 3.0/power9, add support to use the VEXTU{B,H,W}{L,R}X extract
47 * config/rs6000/vsx.md (VSr2): Add IEEE 128-bit floating point
48 type constraint registers.
50 (FL_CONV): New mode iterator for binary floating types that have a
51 direct conversion from 64-bit integer to floating point.
52 (vsx_extract_<mode>_p9): Add support for the ISA 3.0/power9
53 VEXTU{B,H,W}{L,R}X extract instructions.
54 (vsx_extract_<mode>_p9 splitter): Add splitter to load up the
55 extract byte position into the GPR if we are using the
56 VEXTU{B,H,W}{L,R}X extract instructions.
57 (vsx_extract_<mode>_di_p9): Support extracts to GPRs.
58 (vsx_extract_<mode>_store_p9): Support extracting to GPRs so that
59 we can use reg+offset address instructions.
60 (vsx_extract_<mode>_var): Support extracts to GPRs.
61 (vsx_extract_<VSX_EXTRACT_I:mode>_<SDI:mode>_var): New combiner
62 insn to combine vector extracts with zero_extend.
63 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Optimize
64 extracting a small integer vector element and converting it to a
66 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
67 (UNSPEC_XXEXTRACTUW): New unspec.
68 (UNSPEC_XXINSERTW): Likewise.
69 (vextract4b): Add support for the vec_vextract4b built-in
71 (vextract4b_internal): Likewise.
72 (vinsert4b): Add support for the vec_insert4b built-in function.
73 Include both a version that inserts element 1 from a V4SI object
74 and one that inserts a DI object.
75 (vinsert4b_internal): Likewise.
76 (vinsert4b_di): Likewise.
77 (vinsert4b_di_internal): Likewise.
78 * config/rs6000/predicates.md (const_0_to_11_operand): New
79 predicate, match 0..11.
80 * config/rs6000/rs6000-builtin.def (BU_P9V_VSX_3): Set built-in
81 type to ternary, not binary.
82 (BU_P9V_64BIT_VSX_3): Likewise.
83 (P9V_BUILTIN_VEXTRACT4B): Add support for vec_vinsert4b and
84 vec_extract4b non-overloaded built-in functions.
85 (P9V_BUILTIN_VINSERT4B): Likewise.
86 (P9V_BUILTIN_VINSERT4B_DI): Likewise.
87 (P9V_BUILTIN_VEC_VEXTULX): Move to section that adds 2 operand ISA
88 3.0 built-in functions.
89 (P9V_BUILTIN_VEC_VEXTURX): Likewise.
90 (P9V_BUILTIN_VEC_VEXTRACT4B): Add support for overloaded
91 vec_insert4b and vec_extract4 built-in functions.
92 (P9V_BUILTIN_VEC_VINSERT4B): Likewise.
93 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
94 overloaded support for vec_vinsert4b and vec_extract4b.
95 * config/rs6000/rs6000.c (altivec_expand_builtin): Add checks for
96 the vec_insert4b and vec_extract4b byte number being a constant in
98 * config/rs6000/altivec.h (vec_vinsert4b): Support vec_vinsert4b
99 and vec_extract4b built-in functions.
100 * doc/extend.doc (PowerPC VSX built-in functions): Document
101 vec_insert4b and vec_extract4b.
103 2016-12-14 Martin Liska <mliska@suse.cz>
105 * gimple-pretty-print.c (dump_probability): New function.
106 (dump_edge_probability): Use the function.
107 (dump_gimple_label): Likewise.
108 (dump_gimple_bb_header): Likewise.
110 2016-12-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
111 Jakub Jelinek <jakub@redhat.com>
113 * tree-ssa-strlen.c (fold_strstr_to_memcmp): New function.
114 (strlen_optimize_stmt): Call fold_strstr_to_memcmp.
116 2016-12-14 Eric Botcazou <ebotcazou@adacore.com>
118 * lra-constraints.c (process_address_1): Do not attempt to decompose
119 addresses for MEMs that satisfy fixed-form constraints.
121 2016-12-14 Richard Biener <rguenther@suse.de>
123 PR tree-optimization/78788
124 * tree-vrp.c (set_value_range): Allow [-INF(OVF), +INF(OVF)].
125 (set_and_canonicalize_value_range): Do not drop the above to
128 2016-12-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
130 * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
131 Adjust unaligned load cost.
133 2016-12-13 Uros Bizjak <ubizjak@gmail.com>
136 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
137 Calculate additional gain for andnot for targets without BMI.
139 2016-12-13 Carl Love <cel@us.ibm.com>
141 * config/rs6000/rs6000-c.c: Add built-in support for
142 vector float vec_pack (vector double, vector double)
143 vector double vec_sld (vector double, vector double)
144 * config/rs6000/rs6000.c: Add icode check for vsldoi_v2df to allow
145 4-bit unsigned literal.
146 * config/rs6000/rs6000-builtin.def: Add definition for VSLDOI_2DF
147 * doc/extend.texi: Update the built-in documentation file for the
148 new powerpc vec_pack and vec_sld built-ins.
150 2016-12-13 Martin Liska <mliska@suse.cz>
152 * sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
153 (sanopt_optimize): Add new argument.
154 (sanitize_asan_mark_unpoison): New function.
155 (maybe_contains_asan_check): Likewise.
156 (sanitize_asan_mark_poison): Likewise.
157 (pass_sanopt::execute): Call the new functions.
159 2016-12-13 Martin Liska <mliska@suse.cz>
161 PR tree-optimization/78428
162 * expr.c (store_constructor_field): Add new arguments to the function.
163 (store_constructor): Set up bitregion_end and add gcc_unreachable to
164 fields that have either non-constant size or (and) offset.
166 2016-12-13 Marek Polacek <polacek@redhat.com>
168 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
169 parameters' type from int to HOST_WIDE_INT.
170 (compute_overlap_steps_for_affine_1_2): Change parameters' type from
171 int to HOST_WIDE_INT.
172 (build_classic_dist_vector_1): Likewise.
173 (add_multivariate_self_dist): Likewise.
175 2016-12-13 Michael Matz <matz@suse.de>
177 PR tree-optimization/78725
178 * tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
179 at correct use point.
181 2016-12-13 Martin Liska <mliska@suse.cz>
183 * asan.c (asan_expand_mark_ifn): Use renamed
184 BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
185 * sanitizer.def: Likewise.
187 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
189 * doc/extend.texi (Half-Precision): Update to document current
192 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
194 * doc/extend.texi (Floating Types): Document availability of
195 _Float16 on ARM/AArch64.
197 2016-12-13 Richard Biener <rguenther@suse.de>
199 PR tree-optimization/78699
200 * tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
203 2016-12-13 Richard Biener <rguenther@suse.de>
206 * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
207 * tree-object-size.c (compute_builtin_object_size): Use
209 * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
211 2016-12-13 Martin Liska <mliska@suse.cz>
213 * asan.c (asan_mark_poison_p): Remove.
214 (asan_mark_p): New function.
215 (transform_statements): Use the function.
216 (asan_expand_mark_ifn): Do not use masked enum.
217 * asan.h (enum asan_mark_flags): Declare it via a macro.
218 * gimple-pretty-print.c (dump_gimple_call_args): Dump first
219 argument of ASAN_MARK.
220 * gimplify.c (build_asan_poison_call_expr): Use new enum values.
221 (asan_poison_variable): Likewise.
223 2016-12-13 Jakub Jelinek <jakub@redhat.com>
226 * ipa-pure-const.c (cdtor_p): Return true for
227 DECL_STATIC_{CON,DE}STRUCTOR even when it is
228 DECL_LOOPING_CONST_OR_PURE_P.
230 2016-12-12 Jakub Jelinek <jakub@redhat.com>
232 PR tree-optimization/78777
233 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
234 insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
237 * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
240 2016-12-12 Martin Sebor <msebor@redhat.com>
244 * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
245 rather than res.bounded.
246 (get_width_and_precision): Set precision to -1 when negative.
247 (adjust_range_for_overflow): New function.
248 (format_integer): Correct the handling of the space, plus, and pound
249 flags, and the special case of zero precision.
250 Always set res.bounded to true unless either precision or width
251 is specified and unknown.
252 Call adjust_range_for_overflow.
253 Avoid use zero as the shortest value when precision is specified
255 (format_directive): Remove vestigial quoting. Always inform of
256 argument value or range when it's available.
257 (add_bytes): Correct the computation of boundrange used to
258 decide whether a warning is of a "maybe" or "defnitely" kind.
260 2016-12-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
262 * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
264 2016-12-12 Uros Bizjak <ubizjak@gmail.com>
267 * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
268 flag_unsafe_math_optimizations.
269 (X87_ENABLE_FLOAT): Ditto.
271 2016-12-12 Marek Polacek <polacek@redhat.com>
274 * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
275 Case 1; check POINTER_TYPE_P instead.
277 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
279 PR rtl-optimization/78669
280 * ira.c (combine_and_move_insns): When deleting an insn, clear the
281 replace flag for all used regs in that insn.
283 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
285 * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
286 arm_arch_core_flags to ...
287 * common/config/arm/arm-common.c: There.
289 2016-12-12 Eric Botcazou <ebotcazou@adacore.com>
291 * config/sparc/constraints.md (T): Use special memory constraint.
293 (W): Add TARGET_ARCH64 test.
294 * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
295 (*movdf_insn_sp32): Likewise.
296 (*mov<VM64:mode>_insn_sp32): Likewise. Replace 'e' with 'f' in
297 conjunction with offsettable memory references.
299 2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
301 * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
302 to avoid shared structure error.
304 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
307 * config/rs6000/rs6000.c (find_alignment_op): Discard from
308 consideration any artificial definition.
310 2016-12-11 Iain Sandoe <iain@codesourcery.com>
312 * configure.ac (CROSS directory tests): Remove the assumption that
313 Darwin hosts contain suitable target sysroots in "/".
314 * configure: Regenerate.
316 2016-12-11 Iain Sandoe <iain@codesourcery.com>
318 PR rtl-optimization/71496
319 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
320 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
321 reload_macho_picbase_di): Likewise.
323 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
325 * config/pa/pa.c (pa_callee_copies): New function.
326 * config/pa/pa.opt (mcaller-copies): New option.
327 * doc/invoke.texi (mcaller-copies): Document option.
329 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
332 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
333 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
335 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
336 constant shifts larger or equal than 32.
338 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
340 * config/i386/x86-64.h: Append --32 to the assembler options when
341 -m16 is used on non-glibc systems as well.
343 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
346 * config/i386/mmintrin.h (__m64_u): New type
347 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
348 Make the allowed unaligned memory access explicit.
350 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
352 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
353 Generally use cpu generic.
355 2016-12-10 Jakub Jelinek <jakub@redhat.com>
356 Marc Glisse <marc.glisse@inria.fr>
358 PR tree-optimization/78720
359 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
360 is negative, sign extend to @1's type and than AND with C.
362 2016-12-10 Jakub Jelinek <jakub@redhat.com>
365 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
366 non-zero low bound or non-standard element sizes.
369 * lto-streamer-in.c (input_function): In addition to debug stmts
370 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
373 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
375 * config/rs6000/rs6000-passes.def: New file.
376 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
377 * config/rs6000/rs6000.c (rs6000_option_override): Remove
378 registration of machine-specific passes.
379 (pass_analyze_swaps::clone): New function.
380 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
382 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
385 * ipa-cp.c (propagate_vr_accross_jump_function): Call
386 drop_tree_overflow after fold_convert.
388 2016-12-09 Jakub Jelinek <jakub@redhat.com>
391 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
392 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
395 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
398 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
399 GET_MODE_BITSIZE. Return 2.
400 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
401 TARGET_POPCNTD the same as TARGET_CTZ.
402 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
403 (ffs<mode>2): Reimplement.
405 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
407 PR rtl-optimization/78255
408 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
409 NO_FUNCTION_CSE is true.
411 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
414 * ipa-icf.c (sem_function::parse): Don't process functions with
415 oacc decl attributes, as they may be OpenACC routines.
417 2016-12-09 David Malcolm <dmalcolm@redhat.com>
419 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
422 2016-12-09 Nathan Sidwell <nathan@acm.org>
425 * convert.c (convert_to_integer_1): Maybe fold conversions to
426 integral types with fewer bits than its mode.
428 2016-12-09 Martin Liska <mliska@suse.cz>
430 * tree-pretty-print.c (pretty_print_string): Escape non-printable
433 2016-12-09 Jakub Jelinek <jakub@redhat.com>
435 PR tree-optimization/78726
436 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
437 argument. For lhs uses in debug stmts, don't replace lhs with
438 new_lhs, but with a debug temp set to new_lhs opcode op.
439 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
440 OP down to make_new_ssa_for_def.
441 (zero_one_operation): Call make_new_ssa_for_all_defs even when
442 stmts_to_fix is empty, if *def has not changed yet. Pass
443 OPCODE to make_new_ssa_for_all_defs.
445 2016-12-08 Martin Sebor <msebor@redhat.com>
448 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
449 identifier tree nodes.
450 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
451 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
452 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
453 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
454 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
455 * builtins.c (expand_builtin_alloca): Call
456 maybe_warn_alloc_args_overflow.
457 * builtins.def (aligned_alloc, calloc, malloc, realloc):
458 Add attribute alloc_size.
459 (alloca): Add attribute alloc_size and returns_nonnull.
460 * calls.h (maybe_warn_alloc_args_overflow): Declare.
461 * calls.c (alloc_max_size, operand_signed_p): New functions.
462 (maybe_warn_alloc_args_overflow): Define.
463 (initialize_argument_information): Diagnose overflow in functions
464 declared with attaribute alloc_size.
465 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
466 -Walloc-size-larger-than.
468 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
470 PR rtl-optimization/78671
471 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
474 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
476 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
477 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
479 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
482 * config/aarch64/aarch64.c (aarch64_classify_address):
483 Set load_store_pair_p for TImode and TFmode.
485 2016-12-08 David Malcolm <dmalcolm@redhat.com>
487 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
488 regno_reg_rtx resizing logic to...
489 (emit_status::ensure_regno_capacity): ...this new method,
490 and ensure that the buffers are large enough.
491 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
492 rather than ggc_vec_alloc.
493 * function.h (emit_status::ensure_regno_capacity): New method.
495 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
497 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
498 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
499 * doc/invoke.texi (-fsanitize=kernel-address):
500 Don't say that it enables -fsanitize-address-use-after-scope.
502 2016-12-08 Bin Cheng <bin.cheng@arm.com>
505 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
506 sign bit for index step of data reference.
508 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
510 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
511 Handle SYMBOL_SMALL_TLSGD for ILP32.
512 * config/aarch64/aarch64.md : tlsgd_small modified into
513 tlsgd_small_<mode> to support SImode and DImode.
514 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
517 2016-12-08 Andrew Pinski <apinski@cavium.com>
519 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
520 Access the lower part of RTX appropriately.
522 2016-12-07 David Malcolm <dmalcolm@redhat.com>
524 * genpreds.c (write_tm_constrs_h): Update for renaming of
525 rtx_reader_ptr to md_reader_ptr.
526 (write_tm_preds_h): Likewise.
527 (write_insn_preds_c): Likewise.
528 * read-md.c (rtx_reader_ptr): Rename to...
529 (md_reader_ptr): ...this, and convert from an
530 rtx_reader * to a md_reader *.
531 (rtx_reader::set_md_ptr_loc): Rename to...
532 (md_reader::set_md_ptr_loc): ...this.
533 (rtx_reader::get_md_ptr_loc): Rename to...
534 (md_reader::get_md_ptr_loc): ...this.
535 (rtx_reader::copy_md_ptr_loc): Rename to...
536 (md_reader::copy_md_ptr_loc): ...this.
537 (rtx_reader::fprint_md_ptr_loc): Rename to...
538 (md_reader::fprint_md_ptr_loc): ...this.
539 (rtx_reader::print_md_ptr_loc): Rename to...
540 (md_reader::print_md_ptr_loc): ...this.
541 (rtx_reader::join_c_conditions): Rename to...
542 (md_reader::join_c_conditions): ...this.
543 (rtx_reader::fprint_c_condition): ...this.
544 (rtx_reader::print_c_condition): Rename to...
545 (md_reader::print_c_condition): ...this.
546 (fatal_with_file_and_line): Update for renaming of
547 rtx_reader_ptr to md_reader_ptr.
548 (rtx_reader::require_char): Rename to...
549 (md_reader::require_char): ...this.
550 (rtx_reader::require_char_ws): Rename to...
551 (md_reader::require_char_ws): ...this.
552 (rtx_reader::require_word_ws): Rename to...
553 (md_reader::require_word_ws): ...this.
554 (rtx_reader::read_char): Rename to...
555 (md_reader::read_char): ...this.
556 (rtx_reader::unread_char): Rename to...
557 (md_reader::unread_char): ...this.
558 (rtx_reader::peek_char): Rename to...
559 (md_reader::peek_char): ...this.
560 (rtx_reader::read_name): Rename to...
561 (md_reader::read_name): ...this.
562 (rtx_reader::read_escape): Rename to...
563 (md_reader::read_escape): ...this.
564 (rtx_reader::read_quoted_string): Rename to...
565 (md_reader::read_quoted_string): ...this.
566 (rtx_reader::read_braced_string): Rename to...
567 (md_reader::read_braced_string): ...this.
568 (rtx_reader::read_string): Rename to...
569 (md_reader::read_string): ...this.
570 (rtx_reader::read_skip_construct): Rename to...
571 (md_reader::read_skip_construct): ...this.
572 (rtx_reader::handle_constants): Rename to...
573 (md_reader::handle_constants): ...this.
574 (rtx_reader::traverse_md_constants): Rename to...
575 (md_reader::traverse_md_constants): ...this.
576 (rtx_reader::handle_enum): Rename to...
577 (md_reader::handle_enum): ...this.
578 (rtx_reader::lookup_enum_type): Rename to...
579 (md_reader::lookup_enum_type): ...this.
580 (rtx_reader::traverse_enum_types): Rename to...
581 (md_reader::traverse_enum_types): ...this.
582 (rtx_reader::rtx_reader): Rename to...
583 (md_reader::md_reader): ...this, and update for renaming of
584 rtx_reader_ptr to md_reader_ptr.
585 (rtx_reader::~rtx_reader): Rename to...
586 (md_reader::~md_reader): ...this, and update for renaming of
587 rtx_reader_ptr to md_reader_ptr.
588 (rtx_reader::handle_include): Rename to...
589 (md_reader::handle_include): ...this.
590 (rtx_reader::handle_file): Rename to...
591 (md_reader::handle_file): ...this.
592 (rtx_reader::handle_toplevel_file): Rename to...
593 (md_reader::handle_toplevel_file): ...this.
594 (rtx_reader::get_current_location): Rename to...
595 (md_reader::get_current_location): ...this.
596 (rtx_reader::add_include_path): Rename to...
597 (md_reader::add_include_path): ...this.
598 (rtx_reader::read_md_files): Rename to...
599 (md_reader::read_md_files): ...this.
600 * read-md.h (class rtx_reader): Split into...
601 (class md_reader): ...new class.
602 (rtx_reader_ptr): Rename to...
603 (md_reader_ptr): ...this, and convert to a md_reader *.
604 (class noop_reader): Update base class to be md_reader.
605 (class rtx_reader): Reintroduce as a subclass of md_reader.
606 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
607 (read_char): Update for renaming of rtx_reader_ptr to
609 (unread_char): Likewise.
610 * read-rtl.c (rtx_reader_ptr): New global.
611 (rtx_reader::apply_iterator_to_string): Rename to...
612 (md_reader::apply_iterator_to_string): ...this.
613 (rtx_reader::copy_rtx_for_iterators): Rename to...
614 (md_reader::copy_rtx_for_iterators): ...this.
615 (rtx_reader::read_conditions): Rename to...
616 (md_reader::read_conditions): ...this.
617 (rtx_reader::record_potential_iterator_use): Rename to...
618 (md_reader::record_potential_iterator_use): ...this.
619 (rtx_reader::read_mapping): Rename to...
620 (md_reader::read_mapping): ...this.
621 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
623 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
624 than directly accessing m_string_obstack.
625 (rtx_reader::rtx_reader): New ctor.
626 (rtx_reader::~rtx_reader): New dtor.
628 2016-12-07 Martin Sebor <msebor@redhat.com>
634 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
636 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
637 (check_memop_sizes): Same.
638 (expand_builtin_memcpy): Call check memop_sizes.
639 (expand_builtin_mempcpy): Same.
640 (expand_builtin_memset): Same,
641 (expand_builtin_bzero): Same.
642 (expand_builtin_memory_chk): Call check_sizes.
643 (expand_builtin_strcpy): Same.
644 (expand_builtin_strncpy): Same.
645 (maybe_emit_sprintf_chk_warning): Same.
646 (expand_builtin): Handle strcat and strncat.
647 (fini_object_sizes): Reset pointers.
648 (compute_object_size): New function.
649 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
650 Avoid issuing warnings also issued during built-in expansion.
651 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
653 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
656 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
657 V2DImode elements are SUBREG's convert the result into DImode
658 rather than failing in emit_move_insn.
660 2016-12-07 Jakub Jelinek <jakub@redhat.com>
662 * builtins.c (fold_builtin_strstr): Removed.
663 (fold_builtin_2): Don't call fold_builtin_strstr.
664 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
665 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
666 (gimple_fold_builtin_strstr): New function.
667 (gimple_fold_builtin): Call it.
668 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
671 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
672 var to lhs of new_stmt right before noreturn handling rather than to
673 lhs of e->call_stmt early.
675 2016-12-07 David Malcolm <dmalcolm@redhat.com>
677 * read-md.c (rtx_reader::require_char): New method.
678 (require_char_ws): Convert from function to...
679 (rtx_reader::require_char_ws): ...method.
680 (rtx_reader::require_word_ws): New method.
681 * read-md.h (rtx_reader::require_char): New method decl.
682 (require_char_ws): Remove global decl in favor of...
683 (rtx_reader::require_char_ws): ...new method decl.
684 (rtx_reader::require_word_ws): New method decl.
685 (rtx_reader::peek_char): New method decl.
687 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
689 PR rtl-optimization/78617
690 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
691 registers, also setting hard registers mapped to pseudo registers.
693 2016-12-07 David Malcolm <dmalcolm@redhat.com>
695 * cfgexpand.c (pass_expand::execute): Move stack initializations
696 to rtl_data::init_stack_alignment and call it.
697 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
698 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
700 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
702 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
703 (ira): Move initialization of crtl->is_leaf earlier.
705 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
707 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
708 (movtf_aarch64): Likewise.
709 * config/aarch64/aarch64.c (aarch64_classify_address):
710 Use correct intersection of offsets.
711 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
712 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
713 Use 7-bit signed scaled mode for modes > 16 bytes.
715 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
717 PR rtl-optimization/78561
718 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
719 constant_pool_empty_p in place of get_pool_size_upper_bound.
720 (rs6000_stack_info): Likewise.
721 (rs6000_emit_prologue): Likewise.
722 (rs6000_elf_declare_function_name): Likewise.
723 (rs6000_set_up_by_prologue): Likewise.
724 (rs6000_can_eliminate): Likewise.
725 * output.h (get_pool_size_upper_bound): Delete.
726 (constant_pool_empty_p): New.
727 * varasm.c (get_pool_size_upper_bound): Delete
728 (constant_pool_empty_p): New.
730 2016-12-07 Bin Cheng <bin.cheng@arm.com>
732 PR tree-optimization/78691
733 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
734 Require integral type for the outer expression.
736 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
738 * config/aarch64/aarch64.c
739 (aarch64_builtin_support_vector_misalignment): New.
740 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
742 2016-12-06 David Malcolm <dmalcolm@redhat.com>
745 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
746 Conditionalize the string comparison on Pmode == DImode.
748 2016-12-06 Tom de Vries <tom@codesourcery.com>
750 PR tree-optimization/67955
751 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
752 (stmt_kills_ref_p): Use it.
754 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
757 * calls.c (expand_call): Move back call to prepare_call_address.
759 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
762 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
763 ?* constraints for the ISA 3.0 patterns, so the register allocator
764 is more likely to allocate QImode/HImode to vector registers for
765 conversion to floating point unless a reload is needed.
766 (zero_extendhi<mode>2): Likewise.
767 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
768 first alternative which is converting QImode/HImode to floating
769 point and the QImode/HImode value is in a vector register, and
770 does not allocate the second pseudo register. Remove zero
771 extending into traditional floating point registers, since the
772 instruction used only works on traditional altivec registers.
773 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
775 2016-12-06 David Malcolm <dmalcolm@redhat.com>
777 * config/i386/i386.c: Include print-rtl.h.
778 (selftest::ix86_test_dumping_memory_blockage): New function.
779 (selftest::ix86_run_selftests): Call it.
780 * print-rtl-function.c (print_rtx_function): Create an
781 rtx_reuse_manager and use it.
782 * print-rtl.c: Include "rtl-iter.h".
783 (rtx_writer::rtx_writer): Add reuse_manager param.
784 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
785 (uses_rtx_reuse_p): New function.
786 (rtx_reuse_manager::preprocess): New function.
787 (rtx_reuse_manager::has_reuse_id): New function.
788 (rtx_reuse_manager::seen_def_p): New function.
789 (rtx_reuse_manager::set_seen_def): New function.
790 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
791 prefix the first time in_rtx is seen, and print reuse_rtx
793 (print_inline_rtx): Supply NULL for new reuse_manager param.
794 (debug_rtx): Likewise.
795 (print_rtl): Likewise.
796 (print_rtl_single): Likewise.
797 (rtx_writer::print_rtl_single_with_indent): Likewise.
798 * print-rtl.h: Include bitmap.h when building for host.
799 (rtx_writer::rtx_writer): Add reuse_manager param.
800 (rtx_writer::m_rtx_reuse_manager): New field.
801 (class rtx_reuse_manager): New class.
802 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
803 param and use it when constructing rtx_writer.
804 (selftest::test_dumping_rtx_reuse): New function.
805 (selftest::rtl_tests_c_tests): Call it.
806 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
807 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
808 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
809 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
811 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
814 * lra-lives.c (process_bb_lives): Update biggest mode for
815 implicitly used hard reg.
817 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
819 * config/i386/predicates.md (general_gr_operand): New predicate.
820 * config/i386/i386.md (TImode and DImode push_operand splitter):
821 Use general_gr_operand. Macroize using DWI mode macro.
822 (TImode and DImode nonimmediate_operand splitter): Use
823 nonimmediate_gr_operand and general_gr_operand. Macroize using
825 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
826 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
827 and general_gr_operand.
828 (XFmode nonimmediate_operand splitter): Ditto.
829 (DFmode nonimmediate_operand splitter): Ditto.
830 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
832 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
834 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
835 alphabetical order with respect to other ARMv8 processors.
836 * config/arm/arm-tables.opt: Regenerate.
837 * config/arm/arm-tune.md: Likewise.
839 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
841 * config/mips/mips.c (mips_expand_builtin_insn): Check input
842 ranges of literal integer arguments.
844 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
847 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
848 destroy_predicate_vecs.
849 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
851 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
854 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
855 argument type to a pred_chain.
856 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
858 (flatten_out_predicate_chains): Remove.
859 (uninit_uses_cannot_happen): Rename from
860 uninit_ops_invalidate_phi_use.
861 Change logic so that we are checking that the PHI use will
862 invalidate _ALL_ possibly uninitialized operands.
863 (is_use_properly_guarded): Rename call to
864 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
866 2016-12-06 Tamar Christina <tamar.christina@arm.com>
868 * gcc/config/aarch64/arm_neon.h
869 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
870 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
871 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
872 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
873 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
874 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
875 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
876 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
877 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
878 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
879 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
880 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
881 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
882 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
884 2016-12-06 Jakub Jelinek <jakub@redhat.com>
887 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
888 plus offset is non-zero. For maybe_nonzero_address decl base0,
889 require indirect_base0.
892 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
893 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
894 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
895 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
896 and arguments have no side-effects, return 0.
897 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
900 * fold-const-call.c (fold_const_call): Handle
901 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
903 PR tree-optimization/78675
904 * tree-vect-loop.c (vectorizable_live_operation): For
905 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
906 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
908 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
911 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
912 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
913 (copy_insn_1) <CLOBBER>: Likewise.
915 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
918 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
919 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
920 comparing signed to unsigned values.
921 (FUNCTION_ARG_REGNO_P): Likewise.
923 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
924 Stefan Freudenberger <stefan@reservoir.com>
926 PR tree-optimization/78646
927 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
928 addition used for the memory base expression should have the type
931 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
934 * config.gcc (*-*-uclinux*): Enable posix threads.
936 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
938 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
939 * config/i386/avx512dqintrin.h: Ditto.
940 * config/i386/avx512fintrin.h: Ditto.
941 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
942 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
943 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
944 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
945 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
946 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
948 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
949 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
950 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
951 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
952 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
953 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
954 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
955 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
956 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
958 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
960 * combine.c: Revert r243162.
962 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
964 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
965 X tests a single bit.
967 2016-12-05 Nathan Sidwell <nathan@acm.org>
969 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
970 (diagnostic_action_after_output): ... here.
971 (diagnostic_report_diagnostic): Call it for non-notes.
972 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
973 (diagnostic_check_max_errors): Declare.
975 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
977 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
978 (ENDFILE_SPEC): Likewise.
980 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
982 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
983 * config/arc/arc.c (arc_unspec_offset): New function.
984 (arc_finalize_pic): Change.
985 (arc_emit_call_tls_get_addr): Likewise.
986 (arc_legitimize_tls_address): Likewise.
987 (arc_legitimize_pic_address): Likewise.
988 (insn_is_tls_gd_dispatch): Remove.
989 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
990 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
991 (tls_gd_dispatch): Likewise.
993 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
995 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
998 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
1000 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
1001 (sparc_split_reg_mem_legitimate): ...this.
1002 (sparc_split_reg_mem): Declare.
1003 (sparc_split_mem_reg): Likewise.
1004 (sparc_split_regreg_legitimate): Rename to...
1005 (sparc_split_reg_reg_legitimate): ...this.
1006 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
1007 (sparc_split_reg_mem_legitimate): ...this.
1008 (sparc_split_reg_mem): New function.
1009 (sparc_split_mem_reg): Likewise.
1010 (sparc_split_regreg_legitimate): Rename to...
1011 (sparc_split_reg_reg_legitimate): ...this.
1012 (sparc_split_reg_reg): New function.
1013 * config/sparc/sparc.md (lra): Remove "none" value.
1014 (enabled): Adjust to above change.
1015 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
1016 (DImode splitters): Adjust to above renamings and use new functions.
1017 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
1018 (DFmode splitters): Adjust to above renamings and use new functions.
1019 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
1020 constraint in conjunction with e.
1021 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
1022 alternative and reorder others.
1023 (VM64:mode splitters): Adjust to above renamings and use new functions.
1025 2016-12-04 Martin Sebor <msebor@redhat.com>
1028 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1029 identifier tree nodes.
1030 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1031 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1032 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1033 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1034 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1035 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1036 Add attribute alloc_size.
1037 (alloca): Add attribute alloc_size and returns_nonnull.
1039 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
1042 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
1043 (dimode_scalar_chain::compute_convert_gain): Ditto.
1044 (dimode_scalar_chain::convert_insn): Ditto.
1046 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1048 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
1049 cases to build a lowpart SUBREG.
1051 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1052 David S. Miller <davem@davemloft.net>
1054 * config/sparc/constraints.md (U): Adjust comment.
1055 * config/sparc/sparc.md (lra): New attribute.
1056 (enabled): For base instructions, if the lra attribute is set,
1057 return 1 if it is in keeping with TARGET_LRA.
1058 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
1059 constraint and duplicate them with U replaced by r.
1060 (*movdf_insn_sp32): Likewise.
1061 (*mov<VM64:mode>_insn_sp32): Likewise.
1062 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
1064 2016-12-02 Jeff Law <law@redhat.com>
1066 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
1067 variable main_variant.
1069 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1071 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
1072 default on PowerPC linux systems.
1074 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
1076 PR rtl-optimization/78638
1077 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
1078 GET_MODE (op). Fix this.
1080 2016-12-02 David Malcolm <dmalcolm@redhat.com>
1083 * selftest.c (selftest::assert_strndup_eq): Rename to...
1084 (selftest::assert_xstrndup_eq): ...this, and remove call to
1086 (selftest::test_strndup): Rename to...
1087 (selftest::test_xstrndup): ...this, updating for above renaming.
1088 (selftest::test_libiberty): Update for renaming.
1090 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1093 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
1094 subversion id 242679 that causes the wrong store instruction to be
1095 generated if a DImode is in an Altivec register using REG+REG
1098 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
1101 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
1102 and corresponding post-reload splitter.
1104 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1106 * config/aarch64/aarch64.h (machine_function): Add
1107 reg_is_wrapped_separately field.
1108 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
1109 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
1111 (aarch64_save_callee_saves): Don't save registers that are wrapped
1113 (aarch64_restore_callee_saves): Don't restore registers that are
1115 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
1116 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
1117 (aarch64_get_separate_components): New function.
1118 (aarch64_get_next_set_bit): Likewise.
1119 (aarch64_components_for_bb): Likewise.
1120 (aarch64_disqualify_components): Likewise.
1121 (aarch64_emit_prologue_components): Likewise.
1122 (aarch64_emit_epilogue_components): Likewise.
1123 (aarch64_set_handled_components): Likewise.
1124 (aarch64_process_components): Likewise.
1125 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
1126 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
1127 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
1128 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
1129 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
1130 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
1132 2016-12-02 Martin Jambor <mjambor@suse.cz>
1134 * passes.def: Move pass_rebuild_cgraph_edges to the end of
1135 pass_build_ssa_passes.
1137 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
1139 * config/alpha/alpha.md (exception_receiver): Copy
1140 alpha_gp_ave_rtx return value.
1142 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
1144 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
1145 for several include directories that may be relative to sysroot.
1146 * config/i386/x-mingw32 (gplus_includedir): Define.
1147 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
1148 (native_system_includedir): Likewise.
1149 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
1150 override if TARGET_SYSTEM_ROOT is defined.
1151 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
1153 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1156 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
1157 (dimode_scalar_chain::compute_convert_gain): Likewise.
1158 (dimode_scalar_chain::convert_insn): Likewise.
1159 * config/i386/i386.md (*one_cmpldi2_doubleword): New
1160 define_insn_and_split.
1161 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
1164 * rtl.c (copy_rtx): Don't clear used flag here.
1165 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
1167 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
1168 'E' in format, copy all vectors.
1169 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
1170 * valtrack.c (cleanup_auto_inc_dec): Likewise.
1171 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
1173 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1174 Thomas Preud'homme <thomas.preudhomme@arm.com>
1176 * config/arm/arm-builtins.c (arm_builtins): Define
1177 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
1178 (bdesc_2arg): Add line for cmse_nonsecure_caller.
1179 (arm_init_builtins): Handle cmse_nonsecure_caller.
1180 (arm_expand_builtin): Likewise.
1181 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
1183 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1184 Thomas Preud'homme <thomas.preudhomme@arm.com>
1186 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
1187 (cmse_nonsecure_call_clear_caller_saved): New.
1188 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
1189 (arm_function_ok_for_sibcall): Disable sibcalls for
1190 cmse_nonsecure_call.
1191 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
1192 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
1193 (call_value): Likewise.
1194 (nonsecure_call_internal): New.
1195 (nonsecure_call_value_internal): New.
1196 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
1197 (*nonsecure_call_value_reg_thumb1_v5): New.
1198 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
1199 (*nonsecure_call_value_reg_thumb2): New.
1200 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
1202 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1203 Thomas Preud'homme <thomas.preudhomme@arm.com>
1205 * config/arm/arm.c (gimplify.h): New include.
1206 (arm_handle_cmse_nonsecure_call): New.
1207 (arm_attribute_table): Added cmse_nonsecure_call.
1208 (arm_comp_type_attributes): Deny compatibility of function types
1209 with without the cmse_nonsecure_call attribute.
1210 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
1212 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1213 Thomas Preud'homme <thomas.preudhomme@arm.com>
1215 * config/arm/arm.c (output_return_instruction): Clear
1217 (thumb2_expand_return): Likewise.
1218 (thumb1_expand_epilogue): Likewise.
1219 (thumb_exit): Likewise.
1220 (arm_expand_epilogue): Likewise.
1221 (cmse_nonsecure_entry_clear_before_return): New.
1222 (comp_not_to_clear_mask_str_un): New.
1223 (compute_not_to_clear_mask): New.
1224 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
1225 * config/arm/thumb2.md (*thumb2_return): Disable for
1226 cmse_nonsecure_entry functions.
1227 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
1228 cmse_nonsecure_entry functions.
1230 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1231 Thomas Preud'homme <thomas.preudhomme@arm.com>
1233 * config/arm/arm.c (use_return_insn): Change to return with bxns
1234 when cmse_nonsecure_entry.
1235 (output_return_instruction): Likewise.
1236 (arm_output_function_prologue): Likewise.
1237 (thumb_pop): Likewise.
1238 (thumb_exit): Likewise.
1239 (thumb2_expand_return): Assert that entry functions always have simple
1241 (arm_expand_epilogue): Handle entry functions.
1242 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
1243 (arm_asm_declare_function_name): New.
1244 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
1245 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
1246 use arm_asm_declare_function_name.
1248 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1249 Thomas Preud'homme <thomas.preudhomme@arm.com>
1251 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
1252 (arm_attribute_table): Added cmse_nonsecure_entry
1253 (arm_compute_func_type): Handle cmse_nonsecure_entry.
1254 (cmse_func_args_or_return_in_stack): New.
1255 (arm_handle_cmse_nonsecure_entry): New.
1256 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
1257 (IS_CMSE_ENTRY): Likewise.
1258 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
1260 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1261 Thomas Preud'homme <thomas.preudhomme@arm.com>
1263 * config.gcc (extra_headers): Added arm_cmse.h.
1264 * config/arm/arm-arches.def (ARM_ARCH):
1265 (armv8-m): Add FL2_CMSE.
1266 (armv8-m.main): Likewise.
1267 (armv8-m.main+dsp): Likewise.
1268 * config/arm/arm-c.c
1269 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
1270 * config/arm/arm-flags.h: Define FL2_CMSE.
1271 * config/arm.c (arm_arch_cmse): New.
1272 (arm_option_override): New error for unsupported cmse target.
1273 * config/arm/arm.h (arm_arch_cmse): New.
1274 * config/arm/arm.opt (mcmse): New.
1275 * config/arm/arm_cmse.h: New file.
1276 * doc/invoke.texi (ARM Options): Add -mcmse.
1277 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
1278 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
1280 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1282 * config/avr/avr.c: Fix coding rule glitches.
1284 2016-12-02 Martin Jambor <mjambor@suse.cz>
1286 * hsa.c (hsa_callable_function_p): Return false for artificial
1289 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
1291 PR rtl-optimization/78561
1292 * varasm.c (recompute_pool_offsets): New.
1293 (output_constant_pool): Call it.
1295 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
1297 PR rtl-optimization/78561
1298 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
1299 get_pool_size to get_pool_size_upper_bound.
1300 (rs6000_stack_info): Likewise.
1301 (rs6000_emit_prologue): Likewise.
1302 (rs6000_elf_declare_function_name): Likewise.
1303 (rs6000_set_up_by_prologue): Likewise.
1304 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
1305 * output.h (get_pool_size): Rename to...
1306 (get_pool_size_upper_bound): ...This.
1307 * varasm.c (get_pool_size): Rename to...
1308 (get_pool_size_upper_bound): ...This.
1310 2016-12-02 Bin Cheng <bin.cheng@arm.com>
1312 * match.pd: Add new pattern:
1313 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
1315 2016-12-02 Nathan Sidwell <nathan@acm.org>
1317 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
1320 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
1323 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
1326 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1328 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
1331 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1333 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
1334 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
1335 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
1336 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
1337 avr_mcu_types.flash_size to compute default value.
1338 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
1339 mcu->flash_size to compute value for spec.
1341 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1343 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
1344 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
1345 about linker description to avoid progmem altogether.
1346 [absdata]: Point to -mabsdata option.
1348 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1350 PR rtl-optimization/78547
1351 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
1352 DECL_INCOMING_RTL is not shared.
1353 * config/i386/i386.c (convert_scalars_to_vectors): If any
1354 insns have been converted, adjust all parameter's DEC_RTL and
1355 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
1358 PR rtl-optimization/78575
1359 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
1360 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
1361 if not already wrapped in a subreg. Make sure df_insn_rescan does not
1362 affect further iterations.
1364 2016-12-02 Martin Liska <mliska@suse.cz>
1367 * sreal.c (sreal::to_int): Make absolute value before shifting.
1368 (sreal::operator/): Likewise.
1369 (sreal_verify_negative_division): New test.
1370 (void sreal_c_tests): Call the new test.
1371 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
1373 (sreal::normalize_down): Likewise.
1375 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1377 * combine.c (combine_simplify_rtx): Suppress replacement of
1378 "(and (reg) (const_int bit))" with "if_then_else".
1380 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1383 * config/s390/s390.md ("extzv")
1384 ("*extzv<mode><clobbercc_or_nocc>")
1385 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
1386 ("*<risbg_n>_ior_and_sr_ze")
1387 ("*extract1bitdi<clobbercc_or_nocc>")
1388 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
1389 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
1390 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
1391 to validate the arguments of zero_extract and sign_extract.
1393 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1396 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
1398 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1400 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
1402 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
1405 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1407 * config/s390/vector.md (vec_halfhalf): New mode iterator.
1408 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
1409 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
1410 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
1411 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
1412 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
1413 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
1414 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
1415 ("vec_unpacku_lo_v4si"): New pattern definitions.
1416 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
1419 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1421 * config/s390/s390-protos.h (s390_reverse_condition): New
1423 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
1425 (s390_reverse_condition): New function.
1426 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
1429 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1431 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
1432 (CCVHUANY): Remove modes.
1433 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
1435 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
1436 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
1438 (s390_branch_condition_mask): Adjust to use the new cc consumer
1439 modes. The new modes allow for proper reversal in the middle-end.
1440 (s390_expand_vec_compare_cc): Determine the proper cc producer and
1441 consumer modes for a comparison.
1442 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
1443 throughout the file.
1444 * config/s390/vx-builtins.md: Likewise.
1446 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1448 * asan.c (asan_global_struct): Refactor.
1449 (create_odr_indicator): New function.
1450 (asan_needs_odr_indicator_p): Likewise.
1451 (is_odr_indicator): Likewise.
1452 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
1454 (asan_protect_global): Do not protect odr indicators.
1456 2016-12-01 Jeff Law <law@redhat.com>
1458 * tree-ssa-threadedge.c
1459 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
1460 propagation of operands if there are no operands.
1462 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1464 PR tree-optimization/78586
1465 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
1466 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
1467 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
1468 type is INTEGER_TYPE or POINTER_TYPE.
1470 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
1473 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
1474 (vextuhrx): Likewise.
1475 (vextuwlx): Likewise.
1476 (vextuwrx): Likewise.
1478 2016-12-01 David Malcolm <dmalcolm@redhat.com>
1480 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
1481 early_dwarf_finished.
1483 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
1484 David S. Miller <davem@davemloft.net>
1486 * config/sparc/sparc.opt (mlra): New target option.
1487 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
1488 (sparc_lra_p): ...this. New function.
1489 (D_MODES, DF_MODES): Add missing cast.
1490 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1491 provide these insns when flag_pic.
1492 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
1493 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
1494 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
1495 embmedany_textulo, embmedany_textlo): Likewise.
1496 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
1498 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
1502 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
1504 2016-12-01 Richard Biener <rguenther@suse.de>
1505 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1507 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
1508 memset if len-oldlen != 0.
1509 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
1511 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
1513 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
1515 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
1517 * config/avr/avr.c: Fix coding rule glitches.
1519 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
1521 PR tree-optimization/78598
1522 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
1525 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
1527 PR rtl-optimization/78596
1528 * combine.c (simplify_comparison): Cast to unsigned to avoid
1529 left shifting of negative value.
1531 2016-12-01 Matthias Klose <doko@ubuntu.com>
1533 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
1535 2016-12-01 Richard Biener <rguenther@suse.de>
1537 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
1538 treat arrays with same type as objects that cannot overlap.
1540 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
1542 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
1543 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
1544 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
1546 2016-12-01 Jakub Jelinek <jakub@redhat.com>
1549 * dwarf2out.c (loc_descr_plus_const): For negative offset use
1550 uint_loc_descriptor instead of int_loc_descriptor and perform negation
1551 in unsigned HOST_WIDE_INT type.
1552 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
1555 * config/rs6000/rs6000.c (rs6000_frame_related): Call
1556 set_used_flags (pat) before any simplifications. Clear used flag on
1557 PARALLEL copy. Don't guard add_reg_note call. Call
1558 copy_rtx_if_shared on pat before storing it into
1559 REG_FRAME_RELATED_EXPR.
1561 2016-12-01 Alan Modra <amodra@gmail.com>
1563 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
1564 look inside UNSPEC_VSX_XXSPLTW vec.
1566 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
1568 PR rtl-optimization/78607
1569 * combine.c (try_combine): Emit a barrier after a unconditional trap.
1571 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
1574 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
1575 element is not a constant or in a register, force it to a
1579 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
1580 that will be set to a vector element to be in a register.
1581 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
1582 the wrong multiplier to convert the element number to a byte
1585 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
1587 PR tree-optimization/77856
1588 * lra-constraints.c (inherit_in_ebb): Check original regno for
1589 invalid invariant regs too. Set only clobbered hard regs for the
1590 invalid invariant regs.
1592 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
1594 Commit files forgotten in r242966.
1596 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
1597 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
1598 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
1599 prefix check to find wrap-around value, instead use MCU flash size.
1600 For 8k flash devices, update link_pmem_wrap spec string to
1601 add --pmem-wrap-around=8k.
1602 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
1604 (LINK_SPEC): ...to here.
1606 2016-11-30 David Malcolm <dmalcolm@redhat.com>
1609 * selftest.c (selftest::assert_strndup_eq): New function.
1610 (selftest::test_strndup): New function.
1611 (selftest::test_libiberty): New function.
1612 (selftest::selftest_c_tests): Call test_libiberty.
1614 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1616 PR rtl-optimization/78610
1617 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
1620 2016-11-30 Bin Cheng <bin.cheng@arm.com>
1622 PR tree-optimization/78574
1623 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
1624 header PHI that doesn't define biv.
1626 2016-11-30 Jakub Jelinek <jakub@redhat.com>
1628 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
1631 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
1632 sharing the SUBREG rtx between move and following insn.
1634 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
1635 for REG_EQUIV argument.
1637 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
1639 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
1641 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
1644 * real.c (real_hash): Add cast to avoid left
1645 shifting of negative values.
1647 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1650 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
1651 from a subreg in operands[1] and don't call REGNO on a non-reg
1652 expression when deciding to force operands[2] into a reg.
1654 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
1655 Andrew Burgess <andrew.burgess@embecosm.com>
1657 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
1658 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
1659 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
1660 * config/arc/arc700.md: Add define_bypass for store/load.
1662 2016-11-30 Martin Liska <mliska@suse.cz>
1664 * cgraph.c (symbol_table::initialize): Initialize
1665 ipa_clones_dump_file.
1666 (cgraph_node::remove): Report to ipa_clones_dump_file.
1667 * cgraph.h: Add new argument (suffix) to cloning methods.
1668 * cgraphclones.c (dump_callgraph_transformation): New function.
1669 (cgraph_node::create_clone): New argument.
1670 (cgraph_node::create_virtual_clone): Likewise.
1671 (cgraph_node::create_version_clone): Likewise.
1672 * dumpfile.c: Add .ipa-clones dump file.
1673 * dumpfile.h (enum tree_dump_index): Add TDI_clones
1674 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
1675 to dump_callgraph_transformation.
1677 2016-11-30 Martin Liska <mliska@suse.cz>
1680 * asan.c (asan_expand_mark_ifn): Properly
1681 select a VAR_DECL from FRAME.* component reference.
1683 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1685 PR rtl-optimization/78583
1686 * simplify-rtx.c (simplify_truncation): Add check missing from the
1689 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1691 PR rtl-optimization/78590
1692 * combine.c (change_zero_ext): Transform zero_extend of subregs only
1693 if the subreg_reg is a scalar integer mode.
1695 2016-11-30 Jakub Jelinek <jakub@redhat.com>
1697 PR tree-optimization/78586
1698 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
1699 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
1700 Don't build_int_cst min/max twice. Formatting fix.
1702 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
1704 PR rtl-optimization/78588
1705 * combine.c (if_then_else_cond): Also guard against BLKmode.
1706 * rtlanal.c (num_sign_bit_copies1): Add assert.
1708 2016-11-29 Jeff Law <law@redhat.com>
1710 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
1713 * lra-constraints.c (check_and_process_move): Constrain the
1714 range of DCLASS and SCLASS to avoid false positive out of bounds
1715 array index warning.
1717 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1719 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
1721 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1723 PR preprocessor/78569
1724 * input.c (get_substring_ranges_for_loc): Fail gracefully if
1725 line directives were present.
1727 2016-11-30 Matthias Klose <doko@ubuntu.com>
1729 * doc/install.texi: Document configure options --enable-objc-gc
1730 and --with-target-bdw-gc.
1732 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1735 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
1736 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
1737 residing in traditional altivec registers can be stored
1740 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
1743 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
1744 overhead loop start between a call and its CALL_ARG_LOCATION
1747 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
1749 * config/bfin/linux.h (CPP_SPEC): Define.
1751 2016-11-29 Martin Sebor <msebor@redhat.com>
1753 PR tree-optimization/78512
1754 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
1755 * config/rs6000/linux.h: Same.
1756 * config/rs6000/linux64.h: Same.
1757 * config/sol2.h: Same.
1758 * config/sol2.c (solaris_printf_pointer_format): Remove.
1759 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
1760 * doc/tm.texi: Regenerate.
1761 * gimple-ssa-sprintf.c (format_pointer): Rempove.
1762 (pass_sprintf_length::compute_format_length): Return bool.
1763 (pass_sprintf_length::handle_gimple_call): Adjust.
1764 * target.def (printf_pointer_format): Remove.
1765 * targhooks.c (default_printf_pointer_format): Remove.
1766 (linux_printf_pointer_format): Same.
1767 * targhooks.h (default_printf_pointer_format): Remove.
1768 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
1770 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
1772 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
1774 (SWI1248_AVX512BWDQ): Ditto.
1775 (SWI1248_AVX512BW): Ditto.
1776 (k<any_logic:code><mode>): Ditto.
1777 (kandn<mode>): Ditto.
1778 (kxnor<mode>): Ditto.
1779 (knot<mode>): Ditto.
1780 (*k<any_lshift:code><mode>): Ditto.
1781 (kortestzhi, kortestchi): Ditto.
1782 (kunpckhi, kunpcksi, kunpckdi): Ditto.
1784 2016-11-29 Andrew Pinski <apinski@cavium.com>
1786 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
1789 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
1792 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
1793 to stack before call mcount.
1794 (tilegx_can_use_return_insn_p): Clean up code.
1796 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1798 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
1800 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1806 * spellcheck.c (selftest::test_find_closest_string): Verify that
1807 we don't offer the goal string as a suggestion.
1808 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
1809 offer the goal string as a suggestion.
1812 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
1814 * config/arc/arc.c (arc_override_options): Avoid selection of
1815 compact casesi for ARCv2.
1817 2016-11-29 Richard Biener <rguenther@suse.de>
1819 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
1820 PHIs after a regular stmt.
1821 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
1824 2016-11-29 Martin Liska <mliska@suse.cz>
1826 PR gcov-profile/78582
1827 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
1828 to prevent PHI argument clash.
1830 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
1832 * config/arc/arc.opt (marclinux): Fix typo.
1833 (marclinux_prof): Likewise.
1835 2016-11-29 Jiong Wang <jiong.wang@arm.com>
1837 * target.def (stack_protect_runtime_enabled_p): New.
1838 * function.c (expand_function_end): Guard stack_protect_epilogue with
1839 targetm.stack_protect_runtime_enabled_p.
1840 * cfgexpand.c (pass_expand::execute): Likewise.
1841 * calls.c (expand_call): Likewise.
1842 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
1843 * doc/tm.texi: Regenerate.
1845 2016-11-29 Richard Biener <rguenther@suse.de>
1848 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
1850 2016-11-29 Janus Weil <janus@gcc.gnu.org>
1852 * doc/contrib.texi: Add a few missing gfortran contributors.
1854 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
1856 * combine.c (change_zero_ext): Also handle extends from a subreg
1857 to a mode bigger than that of the operand of the subreg.
1859 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
1862 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
1863 stack_restore_tie insn instead of stack_tie, for the SVR4 and
1865 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
1867 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1869 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
1870 head_components and tail_components.
1871 (spread_components): New algorithm.
1872 (emit_common_tails_for_components): Clear head_components and
1874 (insert_prologue_epilogue_for_components): Write extra output to the
1875 dump file for sibcalls and abnormal exits.
1877 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1879 PR rtl-optimization/78342
1880 * combine.c: Include "cfghooks.h".
1881 (try_combine): If we create an unconditional trap, break the basic
1882 block in two just after it, and remove the edge between; also, set
1883 the *new_direct_jump_p flag so that cleanup_cfg is run.
1885 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1887 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
1890 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
1892 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
1893 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
1894 output template string.
1895 (*anddi_1): Use multi-line output template string.
1898 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1901 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
1902 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
1903 note has been removed.
1904 * postreload.c (reload_combine_recognize_pattern): If
1905 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
1907 2016-11-28 Martin Sebor <msebor@redhat.com>
1910 * gimple-ssa-sprintf.c (target_max_value): Remove.
1911 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
1912 (get_width_and_precision): New function.
1913 (format_integer, format_floating, get_string_length, format_string):
1914 Correct handling of width and precision with unknown value.
1915 (format_directive): Add warning.
1916 (pass_sprintf_length::compute_format_length): Allow for precision
1917 to consist of a sole period with no asterisk or digits after it.
1919 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1921 PR rtl-optimization/78546
1922 * simplify-rtx.c (neg_const_int): When negating most negative
1923 number in mode wider than HOST_BITS_PER_WIDE_INT, use
1924 simplify_const_unary_operation to produce CONST_DOUBLE or
1926 (simplify_plus_minus): Handle the case where neg_const_int
1927 doesn't return a CONST_INT.
1929 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
1932 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
1933 left shifting of negative values.
1935 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1938 * tree-nested.c (convert_local_reference_stmt): After adding
1939 shared (FRAME.NN) clause to omp parallel, task or target,
1940 add it also to all outer omp parallel, task or target constructs.
1942 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
1944 * config/i386/i386.md (UNSPEC_KMASKOP): New.
1945 (UNSPEC_KMOV): Remove.
1946 (kmovw): Expand to plain HImode move.
1947 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
1948 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
1949 Remove corresponding clobber-removing splitter.
1950 (*anddi_1): Remove mask register alternatives.
1954 (*<any_or:code><mode>_1): Ditto.
1955 (*<any_or:code>qi_1): Ditto.
1956 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
1957 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
1958 Remove corresponding splitter to operation with general registers.
1959 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
1960 (*andn<SWI12:mode>): New pattern.
1961 (*kxnor<mode>): Remove general register alternatives. Tag pattern
1962 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
1963 with general registers.
1964 (knot<mode>): New insn pattern.
1965 (*one_cmpl<mode>2_1): Remove mask register alternatives.
1966 (one_cmplqi2_1): Ditto.
1967 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
1968 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
1969 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
1970 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
1971 to generate kmaskop shift.
1972 (vec_unpacks_hi_<mode>): Ditto.
1973 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
1974 Use CODE_FOR_kandhi.
1975 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
1976 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
1977 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
1979 2016-11-28 Richard Biener <rguenther@suse.de>
1981 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
1982 to SSA names via extract_range_from_ssa_name if allowed.
1984 2016-11-28 Richard Biener <rguenther@suse.de>
1986 PR tree-optimization/78542
1987 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
1990 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
1992 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
1993 isolates a single bit, even if the condition involves subregs.
1995 2016-11-28 Tamar Christina <tamar.christina@arm.com>
1997 * config/aarch64/aarch64-simd-builtins.def
1998 (BSL_P): Added di and v2di mode.
1999 * config/aarch64/arm_neon.h
2000 (vsriq_n_p64, vsri_n_p64): Added poly type.
2001 (vextq_p64, vext_p64): Likewise.
2002 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
2004 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2006 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
2007 (TYPES_GETREGP): Likewise.
2008 (TYPES_SHIFTINSERTP): Likewise.
2009 (TYPES_COMBINEP): Likewise.
2010 (TYPES_STORE1P): Likewise.
2011 * config/aarch64/aarch64-simd-builtins.def
2012 (combine): Added poly generator.
2013 (get_dregoi): Likewise.
2014 (get_dregci): Likewise.
2015 (get_dregxi): Likewise.
2019 * config/aarch64/arm_neon.h
2020 (poly64x1x2_t, poly64x1x3_t): New.
2021 (poly64x1x4_t, poly64x2x2_t): Likewise.
2022 (poly64x2x3_t, poly64x2x4_t): Likewise.
2023 (poly64x1_t): Likewise.
2024 (vcreate_p64, vcombine_p64): Likewise.
2025 (vdup_n_p64, vdupq_n_p64): Likewise.
2026 (vld2_p64, vld2q_p64): Likewise.
2027 (vld3_p64, vld3q_p64): Likewise.
2028 (vld4_p64, vld4q_p64): Likewise.
2029 (vld2_dup_p64, vld3_dup_p64): Likewise.
2030 (vld4_dup_p64, vsli_n_p64): Likewise.
2031 (vsliq_n_p64, vst1_p64): Likewise.
2032 (vst1q_p64, vst2_p64): Likewise.
2033 (vst3_p64, vst4_p64): Likewise.
2034 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
2035 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
2036 (vget_lane_p64, vgetq_lane_p64): Likewise.
2037 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
2038 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
2039 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
2040 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
2041 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
2042 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
2043 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
2044 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
2045 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
2046 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
2047 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
2048 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
2049 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
2050 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
2051 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
2052 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
2053 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
2054 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
2055 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
2056 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
2057 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
2058 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
2059 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
2060 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
2061 (vset_lane_p64, vsetq_lane_p64): Likewise.
2062 (vget_low_p64, vget_high_p64): Likewise.
2063 (vcombine_p64, vst2_lane_p64): Likewise.
2064 (vst3_lane_p64, vst4_lane_p64): Likewise.
2065 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
2066 (vst4q_lane_p64, vget_lane_p64): Likewise.
2067 (vget_laneq_p64, vset_lane_p64): Likewise.
2068 (vset_laneq_p64, vcopy_lane_p64): Likewise.
2069 (vcopy_laneq_p64, vdup_n_p64): Likewise.
2070 (vdupq_n_p64, vdup_lane_p64): Likewise.
2071 (vdup_laneq_p64, vld1_p64): Likewise.
2072 (vld1q_p64, vld1_dup_p64): Likewise.
2073 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
2074 (vmov_n_p64, vmovq_n_p64): Likewise.
2075 (vst3q_p64, vst4q_p64): Likewise.
2076 (vld1_lane_p64, vld1q_lane_p64): Likewise.
2077 (vst1_lane_p64, vst1q_lane_p64): Likewise.
2078 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
2079 (vdupq_laneq_p64): Likewise.
2081 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2083 * config/arm/arm_neon.h (vget_lane_p64): New.
2085 2016-11-28 Iain Sandoe <iain@codesourcery.com>
2088 * configure.ac (with_ld64): Use portable method to extract the
2089 major part of the version number.
2090 * configure: Regenerated.
2092 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2094 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
2095 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
2096 intmax_t couldn't be determined.
2097 (format_integer): Make {,u}intmax_type_node no longer static,
2098 initialize them only when needed. For z and t use
2099 signed_or_unsigned_type_for instead of assuming size_t and
2100 ptrdiff_t have the same precision.
2103 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
2104 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
2105 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
2106 vector instead of traversing m_classes hash table. Release
2108 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
2110 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
2111 add it also to m_classes_vec vector.
2112 (sem_item_optimizer::remove_symtab_node,
2113 sem_item_optimizer::build_hash_based_classes,
2114 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
2115 (sem_item_optimizer::subdivide_classes_by_equality,
2116 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
2117 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
2118 instead of traversing m_classes hash table. Formatting fixes.
2119 (sem_item_optimizer::traverse_congruence_split,
2120 sem_item_optimizer::do_congruence_step_for_index,
2121 sem_item_optimizer::do_congruence_step): Formatting fixes.
2122 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
2123 vector instead of traversing m_classes hash table.
2124 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
2125 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
2126 instead of traversing m_classes hash table.
2128 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
2130 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
2131 X is not unused after.
2133 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
2135 PR rtl-optimization/78120
2136 * rtlanal.c (insn_rtx_cost): Revert previous change.
2138 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
2141 * config/avr/avr.md (SPLIT34): New mode iterator.
2142 (bitop): New code iterator.
2143 (*iorhi3.ashift8-*). New insn-and-split patterns.
2144 (*movhi): Post-reload split reg = 0.
2145 [!MOVW]: Post-reload split reg = reg.
2146 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
2147 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
2148 (iorhi3, iorpsi3, iorsi3): Same.
2149 (xorhi3, xorpsi3, xorsi3): Same.
2150 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
2151 costs to *iorhi3.ashift8-* patterns.
2153 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2154 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2157 * config.in: Regenerate
2158 * config/darwin-driver.c (darwin_driver_init): Emit a version string
2160 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
2161 * config/darwin.opt(asm_macosx_version_min): New.
2162 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
2163 * configure: Regenerate
2164 * configure.ac: Check for mmacosx-version-min handling.
2166 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2169 * config/i386/i386.c (ix86_code_end): Note that we emitted code
2170 where the function might otherwise appear empty for picbase thunks.
2171 (ix86_output_function_epilogue): If we find a zero-sized function
2172 assume that reaching it is UB and trap. If we find a trailing label
2174 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
2175 find a zero-sized function assume that reaching it is UB and trap.
2176 If we find a trailing label, append a nop.
2178 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2181 * config/darwin-sections.def (picbase_thunk_section): New.
2182 * config/darwin.c (darwin_init_sections): Set up picbase thunk
2183 section. (darwin_rodata_section, darwin_objc2_section,
2184 machopic_select_section, darwin_asm_declare_constant_name,
2185 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
2186 coalesced with newer linkers.
2187 (darwin_override_options): Decide on usage of coalesed sections
2188 on the basis of the target linker version.
2189 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
2190 * config/darwin.opt (mtarget-linker): New.
2191 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
2192 a coalesced section, instead use a thunks section.
2194 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2197 * configure.ac (with-ld64): New var, set for Darwin, set on
2198 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
2199 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
2200 * config/darwin10.h(DEF_LD64): Update for this target version.
2201 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
2202 (DEF_LD64): Update for this target version.
2203 * configure: Regenerated.
2204 * config.in: Regenerated.
2206 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2209 * config/darwin.c (imachopic_indirection_name): Make data
2210 section indirections linker-visible.
2211 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
2212 constant labels linker-visible.
2214 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2216 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
2217 (free_lang_data): Remove assignment to ptrdiff_type_node.
2219 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2221 PR rtl-optimization/78526
2222 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
2223 beyond val's precision.
2225 PR rtl-optimization/78527
2226 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
2227 out of bounds shift count.
2229 2016-11-25 Martin Liska <mliska@suse.cz>
2232 * doc/invoke.texi (-fprofile-use): Fix reference to a section
2233 where -fprofile-generate is documented.
2235 2016-11-25 Martin Liska <mliska@suse.cz>
2237 PR gcov-profile/78086
2238 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
2239 not supported by a target. Set priority to 100 if possible.
2240 (build_gcov_exit_decl): Likewise.
2242 2016-11-25 Richard Biener <rguenther@suse.de>
2245 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
2246 unary, binary and single RHSs.
2247 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
2249 2016-11-25 Bin Cheng <bin.cheng@arm.com>
2254 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
2255 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
2256 and set it to result code if transformation is valid. Use code EQ
2257 directly in last simplification case.
2259 2016-11-25 Richard Biener <rguenther@suse.de>
2261 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
2262 before valueizing return stmts.
2264 2016-11-24 Richard Biener <rguenther@suse.de>
2266 PR tree-optimization/78343
2267 * passes.def: Add CD-DCE pass after loop splitting.
2268 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
2269 SCEV init/finalize ...
2270 (perform_tree_ssa_dce): ... here. Deal with being
2271 executed inside the loop pipeline in aggressive mode.
2273 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2275 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
2277 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2279 PR tree-optimization/77673
2280 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
2281 (init_symbolic_number): Initialize src field from src parameter.
2282 (perform_symbolic_merge): Select most dominated statement as the
2283 source statement. Set src field of resulting n structure from the
2284 input src with the lowest address.
2285 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
2286 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
2287 of load from src field rather than insertion statement. Cancel
2288 optimization if statement analyzed is not dominated by the insertion
2290 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
2291 dominance information.
2293 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
2296 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2298 2016-11-25 Martin Jambor <mjambor@suse.cz>
2300 PR tree-optimization/70965
2301 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
2303 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
2306 * config/i386/i386.c (i386_excess_precision): Do not return
2307 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2308 EXCESS_PRECISION_TYPE_STANDARD.
2309 * target.def (excess_precision): Document that targets should
2310 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2311 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
2312 Fix typo in first sentence.
2313 * doc/tm.texi: Regenerate.
2315 2016-11-25 Richard Biener <rguenther@suse.de>
2317 PR tree-optimization/78396
2318 * tree-vectorizer.c (vectorize_loops): When the if-converted
2319 body contains masked loads or stores do not attempt to
2320 basic-block-vectorize it.
2322 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2323 Alan Hayward <alan.hayward@arm.com>
2324 David Sherwood <david.sherwood@arm.com>
2326 * function.h (spill_slot_alignment): Declare.
2327 * function.c (spill_slot_alignment): New function.
2328 * lra-spills.c (slot): Add align and size fields.
2329 (assign_mem_slot): Use them in the call to assign_stack_local.
2330 (add_pseudo_to_slot): Update the fields.
2331 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
2333 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2334 Alan Hayward <alan.hayward@arm.com>
2335 David Sherwood <david.sherwood@arm.com>
2337 * stor-layout.c (layout_type): Allow the caller to set the mode of
2338 a float type. Only choose one here if the mode is still VOIDmode.
2339 * tree.c (build_common_tree_nodes): Set the type mode of decimal
2340 floats before calling layout_type.
2341 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
2343 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2345 * tree-tailcall.c (find_tail_calls): Allow calls to reference
2346 local variables if all references are known to be direct.
2348 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2349 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2352 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
2353 non null and it's precision matches precision of lhs's type.
2355 2016-11-24 Martin Sebor <msebor@redhat.com>
2357 PR tree-optimization/78476
2358 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
2360 (handle_gimple_call): Adjust signature.
2361 (try_substitute_return_value): Remove calls to bounded functions
2362 with zero buffer size whose result is known.
2363 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
2365 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2367 * varasm.c (assemble_start_function): Wrap align_log definition in
2368 ASM_OUTPUT_MAX_SKIP_ALIGN.
2370 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
2372 * config/i386/i386.md (wide AND insn to QImode splitter): Use
2373 explicit mode macros.
2374 (wide OR insn to QImode splitter): Ditto.
2376 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
2378 PR rtl-optimization/77541
2379 * lra-constraints.c (struct input_reload): Add field match_p.
2380 (get_reload_reg): Check modes of input reloads to generate unique
2381 value reload pseudo.
2382 (match_reload): Add input reload pseudo for the current insn.
2384 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2386 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
2387 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
2388 architecture levels.
2389 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
2390 the aarch64_fp16_type_node, not all HFmode types.
2391 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
2392 (aarch64_scalar_mode_supported_p): Likewise.
2393 (aarch64_excess_precision): New.
2394 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
2395 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
2396 (TARGET_C_EXCESS_PRECISION): Likewise.
2398 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2400 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
2401 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2403 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2405 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
2406 (<optab>dihf2): Likewise.
2407 (aarch64_fp16_<optab><mode>hf2): New.
2409 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
2412 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
2414 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2416 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
2417 Enable REE at -O2 and higher.
2418 * config/sparc/sparc.c (sparc_option_override): Disable it by default
2421 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2425 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
2426 (new_temp_expr_table): Initialise reg_vars_cnt.
2427 (free_temp_expr_table): Release reg_vars_cnt.
2428 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
2430 (find_replaceable_in_bb): Use the above to record register variable
2431 write occurrences and cancel replacement across them.
2433 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2435 PR rtl-optimization/78437
2436 * ree.c (get_uses): New function.
2437 (combine_reaching_defs): When a copy is needed, return false if any
2438 reaching use of the source register reads it in a mode larger than
2439 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
2441 2016-11-24 Martin Liska <mliska@suse.cz>
2443 * gimple-pretty-print.c (dump_edge_probability): New function.
2444 (dump_gimple_switch): Dump label edge probabilities.
2445 (dump_gimple_cond): Likewise.
2446 (dump_gimple_label): Dump
2447 (dump_gimple_bb_header): Dump basic block frequency.
2448 (pp_cfg_jump): Replace e->dest argument with e.
2449 (dump_implicit_edges): Likewise.
2450 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
2451 Use gimple_bb (at) instead of at->bb.
2453 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
2455 * common.opt (flimit-function-alignment): New.
2456 * doc/invoke.texi (-flimit-function-alignment): Document.
2457 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
2458 * final.c (shorten_branches): Set it.
2459 * varasm.c (assemble_start_function): Limit alignment if
2462 2016-11-24 Richard Biener <rguenther@suse.de>
2464 PR tree-optimization/71595
2465 * cfgloopmanip.h (remove_path): Add irred_invalidated and
2466 loop_closed_ssa_invalidated parameters, defaulted to NULL.
2467 * cfgloopmanip.c (remove_path): Likewise, pass them along to
2468 called functions. Only fix irred flags if the caller didn't
2470 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
2471 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
2474 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
2476 PR rtl-optimization/78120
2477 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
2478 cases, and additionally test against max_seq_cost for speed
2480 (noce_process_if_block): Compute an estimate for the original cost when
2481 optimizing for speed, using the minimum of then and else block costs.
2483 PR rtl-optimization/78120
2484 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
2486 PR rtl-optimization/78120
2487 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
2489 2016-11-24 Bin Cheng <bin.cheng@arm.com>
2491 * match.pd: Refine type conversion in result expr for below pattern:
2492 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
2494 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2497 * tree.h (wi::fits_to_boolean_p): New predicate.
2498 (wi::fits_to_tree_p): Use it for boolean types.
2499 * tree.c (int_fits_type_p): Likewise.
2501 2016-11-24 Martin Liska <mliska@suse.cz>
2503 * print-tree.c (struct bucket): Remove.
2504 (print_node): Add new argument which drives whether a tree node
2505 is printed briefly or not.
2506 (debug_tree): Replace a custom hash table with hash_set<T>.
2507 * print-tree.h (print_node): Add the argument.
2509 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
2511 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
2513 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
2516 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
2517 if it is at least NREGS wide.
2519 2016-11-23 Joseph Myers <joseph@codesourcery.com>
2521 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
2522 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
2523 TFmode, IFmode and KFmode.
2525 2016-11-23 Joseph Myers <joseph@codesourcery.com>
2527 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
2530 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
2532 * combine.c (change_zero_ext): Only change the mode of a hard register
2533 destination if can_change_dest_mode holds for that.
2535 2016-11-23 Jeff Law <law@redhat.com>
2537 * varasm.c (assemble_name): Increase buffer size for name.
2539 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
2541 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
2543 * doc/extend.texi: Constify first argument to __builtin_object_size.
2545 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2547 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
2548 to be used. Add brackets around macro argument.
2550 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
2552 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
2554 2016-11-23 Jakub Jelinek <jakub@redhat.com>
2557 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
2558 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
2560 2016-11-23 Jakub Jelinek <jakub@redhat.com>
2563 * omp-low.c (build_outer_var_ref): Change lastprivate argument
2564 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
2565 on worksharing constructs, treat it like clauses on simd construct.
2567 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
2568 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
2569 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
2570 of true as last argument to build_outer_var_ref.
2572 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
2574 * config/i386/i386.md (*movqi_internal): Calculate mode
2575 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
2576 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
2577 (*k<logic><mode>): Calculate mode attribute depending on
2578 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
2579 (*andqi_1): Calculate mode attribute of alternative 3 depending
2580 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
2581 (kandn<mode>): Calculate mode attribute of alternative 2 depending
2582 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
2583 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
2584 iterator. Calculate mode attribute of alternative 1 depending
2585 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
2586 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
2587 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
2589 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2592 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
2593 * tree-vrp.c (extract_range_basic): Handle case for
2594 CFN_BUILT_IN_STRLEN.
2596 2016-11-23 Jeff Law <law@redhat.com>
2598 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
2600 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
2601 in boolean context warning.
2603 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
2605 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2608 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
2609 (arm_fp16_type_node): ...This, make visibile.
2610 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
2612 (arm_init_simd_builtin_types): Likewise.
2613 (arm_init_fp16_builtins): Likewise.
2614 * config/arm/arm.c (arm_excess_precision): New.
2615 (arm_floatn_mode): Likewise.
2616 (TARGET_C_EXCESS_PRECISION): Likewise.
2617 (TARGET_FLOATN_MODE): Likewise.
2618 (arm_promoted_type): Only promote arm_fp16_type_node.
2619 * config/arm/arm.h (arm_fp16_type_node): Declare.
2621 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2623 * config/arm/arm.c (arm_convert_to_type): Delete.
2624 (TARGET_CONVERT_TO_TYPE): Delete.
2625 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
2626 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
2627 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
2628 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
2629 are in fast math mode, and have no single step hardware instruction.
2630 (extendhfdf2): Only expand through SFmode if we don't have a
2631 single-step hardware instruction.
2632 * config/arm/vfp.md (*truncdfhf2): New.
2633 (extendhfdf2): Likewise.
2635 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2637 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
2640 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2642 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
2643 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
2644 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
2645 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
2646 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
2647 * doc/tm.texi: Regenerate.
2648 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
2650 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2652 * toplev.c (init_excess_precision): Delete most logic.
2653 * tree.c (excess_precision_type): Rewrite to use
2654 TARGET_EXCESS_PRECISION.
2655 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
2656 more generic fashion.
2657 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
2658 __STDC_WANT_IEC_60559_TYPES_EXT__.
2660 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2662 * common.opt (fpermitted-flt-eval-methods): New.
2663 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
2664 * flag_types.h (permitted_flt_eval_methods): New.
2666 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2668 * config/m68k/m68k.c (m68k_excess_precision): New.
2669 (TARGET_C_EXCESS_PRECISION): Define.
2671 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2673 * config/s390/s390.c (s390_excess_precision): New.
2674 (TARGET_C_EXCESS_PRECISION): Define.
2676 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2678 * config/i386/i386.c (ix86_excess_precision): New.
2679 (TARGET_C_EXCESS_PRECISION): Define.
2681 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2683 * target.def (excess_precision): New hook.
2684 * target.h (flt_eval_method): New.
2685 (excess_precision_type): Likewise.
2686 * targhooks.c (default_excess_precision): New.
2687 * targhooks.h (default_excess_precision): New.
2688 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
2689 * doc/tm.texi: Regenerate.
2691 2016-11-23 Martin Sebor <msebor@redhat.com>
2694 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
2695 set the minimum number of bytes for an unknown string to zero.
2697 2016-11-23 Martin Jambor <mjambor@suse.cz>
2698 Martin Liska <mliska@suse.cz>
2700 * hsa-builtins.def: New file.
2701 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
2702 * builtins.def: Include hsa-builtins.def.
2703 (DEF_HSA_BUILTIN): New macro.
2704 * dumpfile.h (OPTGROUP_OPENMP): Define.
2705 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
2706 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
2707 GF_OMP_FOR_GRID_GROUP_ITER.
2708 (gimple_omp_for_grid_phony): Added checking assert.
2709 (gimple_omp_for_set_grid_phony): Likewise.
2710 (gimple_omp_for_grid_intra_group): New function.
2711 (gimple_omp_for_set_grid_intra_group): Likewise.
2712 (gimple_omp_for_grid_group_iter): Likewise.
2713 (gimple_omp_for_set_grid_group_iter): Likewise.
2714 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
2715 previosuly only distribute loop was permitted.
2716 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
2717 (grid_get_kernel_launch_attributes): Support multiple HSA grid
2719 (grid_expand_omp_for_loop): Likewise and also support standalone
2720 distribute constructs. New parameter INTRA_GROUP, updated both users.
2721 (grid_expand_target_grid_body): Support standalone distribute
2723 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
2724 (pass_data_expand_omp_ssa): Likewise.
2725 (pass_data_omp_device_lower): Likewsie.
2726 (pass_data_lower_omp): Likewise.
2727 (pass_data_diagnose_omp_blocks): Likewise.
2728 (pass_data_oacc_device_lower): Likewise.
2729 (pass_data_omp_target_link): Likewise.
2730 (grid_lastprivate_predicate): New function.
2731 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
2733 (lower_omp_for): Support standalone distribute constructs.
2734 (grid_prop): New type.
2735 (grid_safe_assignment_p): Check for assignments to group_sizes, new
2737 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
2739 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
2740 optimization info messages.
2741 (grid_find_single_omp_among_assignments): Likewise.
2742 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
2743 (grid_parallel_clauses_gridifiable): New function.
2744 (grid_inner_loop_gridifiable_p): Likewise.
2745 (grid_dist_follows_simple_pattern): Likewise.
2746 (grid_gfor_follows_tiling_pattern): Likewise.
2747 (grid_call_permissible_in_distribute_p): Likewise.
2748 (grid_handle_call_in_distribute): Likewise.
2749 (grid_dist_follows_tiling_pattern): Likewise.
2750 (grid_target_follows_gridifiable_pattern): Support standalone
2751 distribute constructs.
2752 (grid_var_segment): New enum.
2753 (grid_mark_variable_segment): New function.
2754 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
2755 if a new argument says so.
2756 (grid_process_grid_body): New function.
2757 (grid_eliminate_combined_simd_part): Likewise.
2758 (grid_mark_tiling_loops): Likewise.
2759 (grid_mark_tiling_parallels_and_loops): Likewise.
2760 (grid_process_kernel_body_copy): Support standalone distribute
2762 (grid_attempt_target_gridification): New grid variable holding overall
2763 gridification state. Support standalone distribute constructs and
2765 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
2766 * hsa.h (hsa_bb): Add method method append_phi.
2767 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
2768 occurences in all files too.
2769 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
2770 (is_a_helper <hsa_insn_br *>::test): New function.
2771 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
2772 branch instructions.
2773 (hsa_insn_signal): Make a direct descendant of
2774 hsa_insn_basic. Add memorder constructor parameter and
2775 m_memory_order and m_signalop member variables.
2776 (hsa_insn_queue): Changed constructor parameters to common form.
2777 Added m_segment and m_memory_order member variables.
2778 (hsa_summary_t): Add private member function
2779 process_gpu_implementation_attributes.
2780 (hsa_function_summary): Rename m_binded_function to
2782 (hsa_insn_basic_p): Remove typedef.
2783 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
2784 (hsa_op_reg_p): Remove typedef.
2785 (hsa_function_representation): Change hsa_op_reg_p into plain
2787 (hsa_insn_phi): Removed new and delete operators.
2788 (hsa_insn_br): Likewise.
2789 (hsa_insn_cbr): Likewise.
2790 (hsa_insn_sbr): Likewise.
2791 (hsa_insn_cmp): Likewise.
2792 (hsa_insn_mem): Likewise.
2793 (hsa_insn_atomic): Likewise.
2794 (hsa_insn_signal): Likewise.
2795 (hsa_insn_seg): Likewise.
2796 (hsa_insn_call): Likewise.
2797 (hsa_insn_arg_block): Likewise.
2798 (hsa_insn_comment): Likewise.
2799 (hsa_insn_srctype): Likewise.
2800 (hsa_insn_packed): Likewise.
2801 (hsa_insn_cvt): Likewise.
2802 (hsa_insn_alloca): Likewise.
2803 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
2804 (process_gpu_implementation_attributes): New function.
2805 (link_functions): Move some functionality into it. Adjust after
2806 renaming m_binded_functions to m_bound_functions.
2807 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
2808 to the list of instructions with no output registers.
2809 (get_in_type): Return this if it is a register of
2811 (hsa_get_declaration_name): Moved to...
2812 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
2813 temporary string on an obstack instead from ggc.
2814 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
2815 down to two overloads.
2816 (hsa_allocp_operand_address): Removed.
2817 (hsa_allocp_operand_immed): Likewise.
2818 (hsa_allocp_operand_reg): Likewise.
2819 (hsa_allocp_operand_code_list): Likewise.
2820 (hsa_allocp_operand_operand_list): Likewise.
2821 (hsa_allocp_inst_basic): Likewise.
2822 (hsa_allocp_inst_phi): Likewise.
2823 (hsa_allocp_inst_mem): Likewise.
2824 (hsa_allocp_inst_atomic): Likewise.
2825 (hsa_allocp_inst_signal): Likewise.
2826 (hsa_allocp_inst_seg): Likewise.
2827 (hsa_allocp_inst_cmp): Likewise.
2828 (hsa_allocp_inst_br): Likewise.
2829 (hsa_allocp_inst_sbr): Likewise.
2830 (hsa_allocp_inst_call): Likewise.
2831 (hsa_allocp_inst_arg_block): Likewise.
2832 (hsa_allocp_inst_comment): Likewise.
2833 (hsa_allocp_inst_queue): Likewise.
2834 (hsa_allocp_inst_srctype): Likewise.
2835 (hsa_allocp_inst_packed): Likewise.
2836 (hsa_allocp_inst_cvt): Likewise.
2837 (hsa_allocp_inst_alloca): Likewise.
2838 (hsa_allocp_bb): Likewise.
2840 (hsa_init_data_for_cfun): Initialize obstack.
2841 (hsa_deinit_data_for_cfun): Release memory of the obstack.
2842 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
2843 (hsa_op_reg::operator new): Likewise.
2844 (hsa_op_address::operator new): Likewise.
2845 (hsa_op_code_list::operator new): Likewise.
2846 (hsa_op_operand_list::operator new): Likewise.
2847 (hsa_insn_basic::operator new): Likewise.
2848 (hsa_insn_phi::operator new): Likewise.
2849 (hsa_insn_br::operator new): Likewise.
2850 (hsa_insn_sbr::operator new): Likewise.
2851 (hsa_insn_cmp::operator new): Likewise.
2852 (hsa_insn_mem::operator new): Likewise.
2853 (hsa_insn_atomic::operator new): Likewise.
2854 (hsa_insn_signal::operator new): Likewise.
2855 (hsa_insn_seg::operator new): Likewise.
2856 (hsa_insn_call::operator new): Likewise.
2857 (hsa_insn_arg_block::operator new): Likewise.
2858 (hsa_insn_comment::operator new): Likewise.
2859 (hsa_insn_srctype::operator new): Likewise.
2860 (hsa_insn_packed::operator new): Likewise.
2861 (hsa_insn_cvt::operator new): Likewise.
2862 (hsa_insn_alloca::operator new): Likewise.
2863 (hsa_init_new_bb): Likewise.
2864 (hsa_bb::append_phi): New function.
2865 (gen_hsa_phi_from_gimple_phi): Use it.
2866 (get_symbol_for_decl): Fix dinstinguishing between
2867 global and local functions. Put local variables into a segment
2868 according to their attribute or static flag, if there is one.
2869 (hsa_insn_br::hsa_insn_br): New.
2870 (hsa_insn_br::operator new): Likewise.
2871 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
2872 (query_hsa_grid_nodim): New function.
2873 (multiply_grid_dim_characteristics): Likewise.
2874 (gen_get_num_threads): Likewise.
2875 (gen_get_num_teams): Reimplemented.
2876 (gen_get_team_num): Likewise.
2877 (gen_hsa_insns_for_known_library_call): Updated calls to the above
2879 (get_memory_order_name): Removed.
2880 (get_memory_order): Likewise.
2881 (hsa_memorder_from_tree): New function.
2882 (gen_hsa_ternary_atomic_for_builtin): Renamed to
2883 gen_hsa_atomic_for_builtin, can also create signals.
2884 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
2885 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
2886 (hsa_insn_atomic): Fix function comment.
2887 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
2888 ancestor constructor and initialization of new member variables.
2889 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
2891 (hsa_get_host_function): Handle functions with no bound CPU
2892 implementation. Fix binded to bound.
2893 (get_brig_function_name): Likewise.
2894 (HSA_SORRY_ATV): Remove semicolon after macro.
2895 (HSA_SORRY_AT): Likewise.
2896 (omp_simple_builtin::generate): Add missing semicolons.
2897 (hsa_insn_phi::operator new): Removed.
2898 (hsa_insn_br::operator new): Likewise.
2899 (hsa_insn_cbr::operator new): Likewise.
2900 (hsa_insn_sbr::operator new): Likewise.
2901 (hsa_insn_cmp::operator new): Likewise.
2902 (hsa_insn_mem::operator new): Likewise.
2903 (hsa_insn_atomic::operator new): Likewise.
2904 (hsa_insn_signal::operator new): Likewise.
2905 (hsa_insn_seg::operator new): Likewise.
2906 (hsa_insn_call::operator new): Likewise.
2907 (hsa_insn_arg_block::operator new): Likewise.
2908 (hsa_insn_comment::operator new): Likewise.
2909 (hsa_insn_srctype::operator new): Likewise.
2910 (hsa_insn_packed::operator new): Likewise.
2911 (hsa_insn_cvt::operator new): Likewise.
2912 (hsa_insn_alloca::operator new): Likewise.
2913 (get_symbol_for_decl): Accept CONST_DECLs, put them to
2915 (gen_hsa_addr): Also process CONST_DECLs.
2916 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
2918 (gen_hsa_unary_operation): Make sure the function does
2919 not use bittype source type for firstbit and lastbit operations.
2920 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
2922 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
2924 (emit_branch_insn): Renamed to emit_cond_branch_insn.
2925 Emit the width stored in the class.
2926 (emit_generic_branch_insn): New function.
2927 (emit_insn): Call emit_generic_branch_insn.
2928 (emit_signal_insn): Remove obsolete comment. Update
2929 member variable name, pick a type according to profile.
2930 (emit_alloca_insn): Remove obsolete comment.
2931 (emit_atomic_insn): Likewise.
2932 (emit_queue_insn): Get segment and memory order from the IR object.
2933 (hsa_brig_section): Make allocate_new_chunk, chunks
2934 and cur_chunk provate, add a default NULL parameter to add method.
2935 (hsa_brig_section::add): Added a new parameter, store pointer to
2936 output data there if it is non-NULL.
2937 (emit_function_directives): Use this new parameter instead of
2938 calculating the pointer itself, fix function comment.
2939 (hsa_brig_emit_function): Add forgotten endian conversion.
2940 (hsa_output_kernels): Remove unnecessary building of
2941 kernel_dependencies_vector_type.
2942 (emit_immediate_operand): Declare.
2943 (emit_directive_variable): Also emit initializers of CONST_DECLs.
2944 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
2945 (verify_function_arguments): Properly detect variadic
2947 * hsa-dump.c (hsa_width_specifier_name): New function.
2948 (dump_hsa_insn_1): Dump generic branch instructions, update signal
2949 member variable name. Special dumping for queue objects.
2950 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
2951 m_binded_functions to m_bound_functions. Copy externally visible flag
2953 (ipa_hsa_write_summary): Likewise.
2954 (ipa_hsa_read_section): Likewise.
2956 2016-11-23 Richard Biener <rguenther@suse.de>
2958 PR tree-optimization/78396
2959 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
2960 vectorize try vectorizing an if-converted body using BB vectorization.
2962 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
2963 Alan Hayward <alan.hayward@arm.com>
2964 David Sherwood <david.sherwood@arm.com>
2966 * rtlanal.c (subreg_get_info): Use more local variables.
2967 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
2968 occupies at least one register. Assume that full hard registers
2969 have consistent endianness. Share previously-duplicated if block.
2970 Rework the main handling so that it operates on independently-
2971 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
2972 to check lowpart offsets, without trying to find an equivalent
2973 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
2974 as a final register-endianness correction.
2976 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
2982 * combine.c (make_compound_operation_int): Do not convert a subreg of
2983 a non-constant logical shift right to a zero_extract. Handle the case
2984 where some zero bits have been shifted into the range covered by that
2987 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
2988 Alan Hayward <alan.hayward@arm.com>
2989 David Sherwood <david.sherwood@arm.com>
2991 * rtl.h (subreg_size_offset_from_lsb): Declare.
2992 (subreg_offset_from_lsb): New function.
2993 (subreg_size_lowpart_offset): Declare.
2994 (subreg_lowpart_offset): Turn into an inline function.
2995 (subreg_size_highpart_offset): Declare.
2996 (subreg_highpart_offset): Turn into an inline function.
2997 * emit-rtl.c (subreg_size_lowpart_offset): New function.
2998 (subreg_size_highpart_offset): Likewise
2999 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
3001 2016-11-23 Richard Biener <rguenther@suse.de>
3003 PR tree-optimization/78482
3004 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
3005 (remove_forwarder_block_with_phi): When merging with a loop
3006 header creates a new latch reset number of iteration information
3009 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
3011 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
3012 (*ashrsi3_extend0): ...this. Accept constant integers.
3013 (*ashrsi3_extend2): Rename to...
3014 (*ashrsi3_extend1): ...this.
3015 (*ashrsi3_extend2): New pattern.
3016 (*lshrsi3_extend1): Accept constant integers.
3017 (*lshrsi3_extend2): Fix condition on operand 2.
3019 2016-11-23 Martin Liska <mliska@suse.cz>
3021 * config/i386/i386.c: Initialize function pointer to NULL.
3023 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3025 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3026 for A == C1 ? A : C2 to below.
3027 * match.pd: Move from above to here:
3028 (cond (eq (convert1? x) c1) (convert2? x) c2)
3029 -> (cond (eq x c1) c1 c2).
3031 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3033 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3034 for A cmp C1 ? A : C2 to below, also simplify remaining code.
3035 * match.pd: Move and extend simplification from above to here:
3036 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3037 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
3038 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
3040 2016-11-23 Martin Liska <mliska@suse.cz>
3041 Martin Jambor <mjambor@suse.cz>
3043 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
3045 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
3048 * opts.c (finish_options): Set -fsyntax-only if running self tests.
3050 2016-11-23 Richard Biener <rguenther@suse.de>
3053 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
3054 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
3056 2016-11-23 Richard Biener <rguenther@suse.de>
3059 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
3062 2016-11-23 Richard Biener <rguenther@suse.de>
3063 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
3065 PR tree-optimization/78154
3066 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
3067 returns it's argument and the argument is nonnull.
3068 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
3069 ATT_RETNONNULL_NOTHROW_LEAF.
3070 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
3071 ATTR_RETNONNULL_NOTHROW_LEAF.
3072 (BUILT_IN_STPCPY): Likewise.
3073 (BUILT_IN_STPNCPY): Likewise.
3074 (BUILT_IN_MEMPCPY_CHK): Likewise.
3075 (BUILT_IN_STPCPY_CHK): Likewise.
3076 (BUILT_IN_STPNCPY_CHK): Likewise.
3077 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
3078 (BUILT_IN_STRNCAT): Likewise.
3079 (BUILT_IN_STRNCPY): Likewise.
3080 (BUILT_IN_MEMSET_CHK): Likewise.
3081 (BUILT_IN_STRCAT_CHK): Likewise.
3082 (BUILT_IN_STRCPY_CHK): Likewise.
3083 (BUILT_IN_STRNCAT_CHK): Likewise.
3084 (BUILT_IN_STRNCPY_CHK): Likewise.
3086 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3088 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
3089 * fold-const.h (tree_expr_nonzero_p) : Declare.
3090 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
3092 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
3094 * system.h (HAVE_DESIGNATED_INITIALIZERS,
3095 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
3096 "defined" in macros.
3097 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
3098 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
3099 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
3101 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
3104 * config/avr/constraints.md (Csp): Widen range to [-11..6].
3105 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
3106 of RCALLs in prologue to 3.
3108 2016-11-22 Michael Collison <michael.collison@arm.com>
3110 * config/aarch64/aarch64-protos.h
3111 (aarch64_and_split_imm1, aarch64_and_split_imm2)
3112 (aarch64_and_bitmask_imm): New prototypes
3113 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
3114 New overloaded function to create bit mask covering the
3115 lowest to highest bits set.
3116 (aarch64_and_split_imm2): New overloaded functions to create bit
3117 mask of zeros between first and last bit set.
3118 (aarch64_and_bitmask_imm): New function to determine if a integer
3119 is a valid two instruction "and" operation.
3120 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
3121 allowing wider range of constants with "and" operations.
3122 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
3123 "and" operator from matching restricted constant range used for
3124 ior and xor operators.
3125 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
3126 for constants in "and" operantions.
3127 (UsP constraint): New DImode constraint for constants
3128 in "and" operations.
3129 * config/aarch64/iterators.md (lconst2): New mode iterator.
3130 (LOGICAL2): New code iterator.
3131 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
3133 (aarch64_logical_and_operand): New predicate allowing extended
3134 constants for "and" operations.
3136 2016-11-22 Walter Lee <walt@tilera.com>
3138 * config/tilegx/tilegx.md (trap): New pattern.
3139 * config/tilepro/tilepro.md (trap): Likewise.
3141 2016-11-22 Walter Lee <walt@tilera.com>
3143 * config/tilegx/tilegx.md (*zero_extract): Use
3144 define_insn_and_split instead of define_insn; Handle pos + size >
3146 (*sign_extract): Likewise.
3148 2016-11-22 Marek Polacek <polacek@redhat.com>
3150 PR tree-optimization/78455
3151 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
3153 2016-11-22 Ian Lance Taylor <iant@golang.org>
3157 * godump.c (go_format_type): Always pass alignment as 1 when
3158 calling go_append_padding at end of struct/union.
3160 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3163 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
3164 _mm512_setzero_hi): Removed.
3165 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
3166 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
3167 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
3168 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
3169 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
3170 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
3171 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
3172 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
3173 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
3174 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
3175 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
3176 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
3177 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
3178 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
3179 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
3180 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
3181 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
3182 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
3183 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
3184 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
3185 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
3186 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
3187 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
3188 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
3189 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
3190 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
3191 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
3192 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
3193 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
3194 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
3195 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
3196 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
3197 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
3198 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
3199 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
3200 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
3201 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
3202 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
3203 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
3204 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
3205 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
3206 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
3207 _mm512_setzero_qi or _mm512_setzero_hi.
3208 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
3209 _mm512_maskz_dbsad_epu8): Formatting fixes.
3210 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
3211 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
3212 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
3213 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
3214 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
3215 _mm512_setzero_qi or _mm512_setzero_hi.
3217 2016-11-22 Nathan Sidwell <nathan@acm.org>
3219 * gcc-ar.c (main): Fix indentation.
3220 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
3221 * ggc-page.c (move_ptes_to_front): Fix formatting.
3222 * hsa-dump.c (dump_has_cfun): Fix indentation.
3223 * sel-sched-ir.h: Remove trailing blank lines.
3225 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3226 Alexander Monakov <amonakov@ispras.ru>
3228 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
3229 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
3230 (omp_clause_code_name): Add _simt_ name.
3231 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
3232 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
3233 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
3234 (scan_omp_simd): New function.
3235 (scan_omp_1_stmt): Use it in target regions if needed.
3236 (omp_max_vf): Don't max with omp_max_simt_vf.
3237 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
3238 OMP_CLAUSE__SIMT_ is present.
3239 (lower_rec_input_clauses): Compute maybe_simt from presence of
3241 (lower_lastprivate_clauses): Likewise.
3242 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
3243 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
3244 * internal-fn.def (GOMP_USE_SIMT): New internal function.
3245 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
3247 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
3249 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
3250 (expand_GOMP_SIMT_VF): New.
3251 (expand_GOMP_SIMT_LAST_LANE): New.
3252 (expand_GOMP_SIMT_ORDERED_PRED): New.
3253 (expand_GOMP_SIMT_VOTE_ANY): New.
3254 (expand_GOMP_SIMT_XCHG_BFLY): New.
3255 (expand_GOMP_SIMT_XCHG_IDX): New.
3256 * internal-fn.def (GOMP_SIMT_LANE): New.
3257 (GOMP_SIMT_VF): New.
3258 (GOMP_SIMT_LAST_LANE): New.
3259 (GOMP_SIMT_ORDERED_PRED): New.
3260 (GOMP_SIMT_VOTE_ANY): New.
3261 (GOMP_SIMT_XCHG_BFLY): New.
3262 (GOMP_SIMT_XCHG_IDX): New.
3263 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
3264 (create_omp_child_function): ...here. Set "omp target entrypoint"
3265 or "omp declare target" attribute based on is_gimple_omp_offloaded.
3266 (omp_max_simt_vf): New. Use it...
3267 (omp_max_vf): ...here.
3268 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
3269 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
3270 (lower_omp_ordered): Likewise, for "ordered" lowering.
3271 (expand_omp_simd): Add SIMT transforms.
3272 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
3273 (execute_omp_device_lower): New.
3274 (pass_data_omp_device_lower): New.
3275 (pass_omp_device_lower): New pass.
3276 (make_pass_omp_device_lower): New.
3277 * passes.def (pass_omp_device_lower): Position new pass.
3278 * tree-pass.h (PROP_gimple_lomp_dev): Define.
3279 (make_pass_omp_device_lower): Declare.
3281 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3284 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
3285 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
3287 (_mm_maskz_load_epi64): Likewise.
3288 (_mm_setzero_hi): Removed.
3289 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
3291 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
3292 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
3293 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
3294 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
3295 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
3296 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
3297 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
3298 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
3299 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3300 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
3301 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
3303 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
3304 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
3305 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
3306 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
3307 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
3308 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
3309 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
3310 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
3311 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
3312 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
3313 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
3314 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3315 instead of _mm_setzero_hi.
3316 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
3317 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
3318 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
3319 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
3320 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
3321 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
3322 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
3323 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
3324 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
3325 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
3326 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
3327 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
3328 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
3329 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
3330 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
3331 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
3332 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
3333 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
3334 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
3335 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
3336 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
3337 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
3338 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
3339 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
3340 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3341 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
3343 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3344 instead of _mm_setzero_hi.
3345 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
3346 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
3347 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
3348 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3349 _mm_setzero_si128 instead of _mm_setzero_di.
3350 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
3351 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
3352 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
3353 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
3354 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
3355 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
3356 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
3357 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
3358 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
3359 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
3360 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
3361 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
3362 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
3363 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
3364 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
3365 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
3366 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
3367 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
3368 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
3369 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
3370 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
3371 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
3372 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
3373 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
3374 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
3375 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
3376 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
3377 _mm512_maskz_insertf32x8): Formatting fixes.
3378 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3379 _mm_setzero_si128 instead of _mm_setzero_di.
3380 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
3381 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
3382 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
3383 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
3384 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
3385 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
3386 _mm_setzero_si128 instead of _mm_setzero_di.
3387 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
3389 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
3390 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
3391 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
3392 _mm_setzero_si128 instead of _mm_setzero_hi.
3393 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
3394 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
3395 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
3396 instead of _mm_setzero_di.
3397 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
3398 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
3400 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
3401 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
3403 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
3405 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
3406 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
3407 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
3409 2016-11-22 Carl Love <cel@us.ibm.com>
3411 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
3412 equal and vector compare not equal. The vector compares take two
3413 arguments of type vector bool char, vector bool short, vector bool int,
3414 vector bool long long with the same return type.
3415 * doc/extend.texi: Update built-in documentation file for the new
3418 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
3420 * Makefile.in ($(lang_checks_parallelized)): Fix detection
3423 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3425 * config.gcc: Allow new rmprofile value for configure option
3426 --with-multilib-list.
3427 * config/arm/t-rmprofile: New file.
3428 * doc/install.texi (--with-multilib-list): Document new rmprofile value
3431 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3434 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
3435 register operand in alternatives 4,5,6.
3437 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3440 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
3441 in save register mask if it is needed.
3443 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3445 PR tree-optimization/78436
3446 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
3447 (shift_bytes_in_array, shift_bytes_in_array_right,
3448 merged_store_group::apply_stores): Formatting fixes.
3449 (clear_bit_region): Likewise. Use memset.
3450 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
3451 instead of EXPR and inerted instead of inserted. Use memset instead
3452 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
3456 * expmed.c (expand_divmod): Use wide_int for computation of
3457 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
3458 Use size <= HOST_BITS_PER_WIDE_INT instead of
3459 HOST_BITS_PER_WIDE_INT >= size.
3461 PR tree-optimization/78445
3462 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
3463 any_complicated_phi, version loop even if flag_tree_loop_if_convert
3464 is 1. Formatting fix.
3466 2016-11-22 Martin Liska <mliska@suse.cz>
3469 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
3470 (sem_function::get_hash): Use the new field.
3471 (sem_function::parse): Remove an argument from ctor.
3472 (sem_variable::parse): Likewise.
3473 (sem_variable::get_hash): Use the new field.
3474 (sem_item_optimizer::read_section): Use new ctor and set hash.
3475 * ipa-icf.h: _hash is removed from sem_item::sem_item,
3476 sem_variable::sem_variable, sem_function::sem_function.
3478 2016-11-21 Jeff Law <law@redhat.com>
3481 * config/cris/cris.md: Don't call copy_to_mode_reg unless
3482 can_create_pseudo_p is true.
3484 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3487 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
3488 *rotldi3_insert_7): New define_insns.
3490 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3492 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
3493 so that DImode can be allocated to FP/vector registers in more
3494 cases, and we can avoid direct move operations. If the register
3495 needs reloading, prefer GPRs over FP/vector registers. In the
3496 case of FPR vs. Altivec registers, prefer FPR registers unless we
3497 have the ISA 3.0 reg+offset scalar instructions.
3498 (movdi_internal64): Likewise.
3500 2016-11-21 Jakub Jelinek <jakub@redhat.com>
3503 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
3504 for tmp simd array if DECL_NAME (parm) is NULL.
3506 2016-11-20 Jeff Law <law@redhat.com>
3509 * config/m68k/predicates.md (swap_peephole_relational_operator): New
3511 * config/m68k/m68k.md (relational tests against 65535/65536): New
3514 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3516 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
3518 2016-11-21 Martin Sebor <msebor@redhat.com>
3520 * doc/invoke.texi (-fprintf-return-value): Document that option
3521 is enabled by default.
3523 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3525 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
3526 for-loop declaration of loop variable.
3527 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
3528 * config/avr/avr.c (avr_popcount_each_byte)
3529 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
3530 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
3531 (avr_expand_epilogue, avr_function_arg_advance)
3532 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
3533 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
3534 (avr_adjust_reg_alloc_order, output_reload_in_const)
3535 (avr_conditional_register_usage, avr_find_unused_d_reg)
3536 (avr_map_decompose, avr_fold_builtin): Same.
3538 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3540 * config/avr/avr.c (avr_popcount): Remove static function.
3541 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
3543 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
3545 * arm.opt (mapcs-float): Delete option.
3546 * arm.c (arm_option_override): Remove hunk relating to
3548 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
3550 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
3552 * tree-tailcall.c (process_assignment): Simplify the check for
3553 a valid copy, allowing the source to be a local variable as
3554 well as an SSA name.
3555 (find_tail_calls): Allow copies between local variables to follow
3556 the call. Allow the result to be stored in any local variable,
3557 even if it's an aggregate.
3558 (eliminate_tail_call): Check whether the result is an SSA name
3559 before updating its SSA_NAME_DEF_STMT.
3561 2016-11-21 David Malcolm <dmalcolm@redhat.com>
3563 PR preprocessor/78324
3564 * input.c (get_substring_ranges_for_loc): Fail gracefully if
3565 -ftrack-macro-expansion has a value other than 2.
3567 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3569 PR rtl-optimization/78400
3570 * shrink-wrap.c (try_shrink_wrapping_separate): Call
3571 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
3572 and df_update_exit_block_uses.
3574 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3577 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
3578 new default-enabled warning..
3579 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
3580 (BT_PTR_CONST_STRING): Updated.
3581 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
3582 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
3583 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
3584 (strftime): Update builtin function.
3585 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
3586 * tree.h (const_tm_ptr_type_node): New type node.
3587 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
3588 const_tm_ptr_type_node.
3590 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3592 PR tree-optimization/78413
3593 * tree-if-conv.c (versionable_outer_loop_p): Require that both
3594 inner and outer loop latches have single predecessors.
3596 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3599 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
3600 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
3602 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3604 * rtl.h: Adjust prototype.
3605 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
3606 (dead_or_set_regno_p): Likewise.
3608 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3610 * rtl.h: Adjust prototype.
3611 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
3613 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3615 * function.c (contains): Change argument type to rtx_insn *.
3616 (prologue_contains): Likewise.
3617 (epilogue_contains): Likewise.
3618 (prologue_epilogue_contains): Likewise.
3619 * function.h: Adjust prototype.
3621 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3623 * optabs.c (emit_libcall_block): Change argument type to
3625 * optabs.h: Adjust prototype.
3627 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3629 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
3630 (fixup_reorder_chain): Adjust.
3631 * cfgrtl.h: Adjust prototype.
3633 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3635 * rtl.h: Adjust prototype.
3636 * rtlanal.c (replace_label_in_insn): Change argument type to
3639 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3641 * config/v850/v850.c (expand_prologue): Adjust.
3642 (expand_epilogue): Likewise.
3643 * expr.c (init_expr_target): Likewise.
3644 * genrecog.c (print_subroutine): Always make the argument type
3646 * recog.h: Adjust prototype.
3648 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3650 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
3651 up variables to make some rtx_insn *.
3652 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
3653 * config/arc/arc.c: Likewise.
3654 * config/arm/arm.c: Likewise.
3655 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
3656 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
3658 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
3660 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3662 * config/arm/arm.c (legitimize_pic_address): Change to use
3663 rtx_insn * as the type of variables.
3664 (arm_pic_static_addr): Likewise.
3665 (arm_emit_movpair): Likewise.
3666 * config/c6x/c6x.c (reorg_split_calls): Likewise.
3667 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
3668 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
3669 * config/frv/frv.md: Likewise.
3670 * config/i386/i386-protos.h: Likewise.
3671 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
3672 (ix86_split_fp_branch): Likewise.
3673 (predict_jump): Likewise.
3674 * config/ia64/ia64.c: Likewise.
3675 * config/mcore/mcore.c: Likewise.
3676 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
3677 * config/s390/s390.c: Likewise.
3678 * config/s390/s390.md: Likewise.
3679 * config/spu/spu.md: Likewise.
3680 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
3681 * lower-subreg.c (resolve_simple_move): Likewise.
3683 2016-11-20 Jeff Law <law@redhat.com>
3686 * reload.h (struct target_reload): Make x_double_reg_address_ok
3688 * reload.c (find_reloads_address): Check if double_reg_address_ok
3689 is true for the mode of the memory reference.
3690 * reload1.c (init_reload): Initialize double_reg_address_ok for
3693 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
3696 * tree-ssa-uninit.c: Define new global max_phi_args.
3697 (compute_uninit_opnds_pos): Use max_phi_args.
3698 (prune_uninit_phi_opnds): Same.
3699 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
3700 missing NUM_PREDS in function comment.
3701 (can_one_predicate_be_invalidated_p): New.
3702 (can_chain_union_be_invalidated_p): New.
3703 (flatten_out_predicate_chains): New.
3704 (uninit_ops_invalidate_phi_use): New.
3705 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
3707 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
3709 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
3710 * match.pd (A /[ex] B CMP C): New simplifications.
3712 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
3714 * match.pd (0 / X, X / X, X % X): New simplifications.
3716 2016-11-19 Jakub Jelinek <jakub@redhat.com>
3718 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
3719 when checking if callee's isa flags are subset of caller's isa flags.
3720 Fix comment wording.
3722 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
3723 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
3724 instead and using = 0 instead of &= 0.
3726 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
3727 ix86_add_new_builtins): Formatting fixes.
3728 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
3729 (ix86_get_builtin): Likewise.
3731 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
3732 don't initialize it, don't use it for the case where it isn't
3733 provable %{z} nor using the same argument, instead move merge
3734 argument into a new pseudo and use that as target. Formatting fixes.
3736 2016-11-19 Jeff Law <law@redhat.com>
3739 * config/m68k/m68k.md (bsetdreg): New pattern.
3740 (bchgdreg, bclrdreg): Likewise.
3742 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
3745 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
3746 instead of force_reg.
3747 (sh_expand_setmem): Likewise.
3749 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
3751 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
3753 2016-11-18 Walter Lee <walt@tilera.com>
3755 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
3756 end-of-bundle marker for consecutive barriers.
3758 2016-11-18 Walter Lee <walt@tilera.com>
3760 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
3762 2016-11-18 Jakub Jelinek <jakub@redhat.com>
3765 * multiple_target.c (get_attr_len): Start with argnum and increment
3766 argnum on every arg. Use strchr in a loop instead of counting commas
3768 (get_attr_str): Increment argnum for every comma in the string.
3769 (separate_attrs): Use for instead of while loop, simplify.
3770 (expand_target_clones): Rename defenition argument to definition.
3771 Free attrs and attr_str even when diagnosing errors. Temporarily
3772 change input_location around targetm.target_option.valid_attribute_p
3773 calls. Don't emit warning or errors if that function fails.
3775 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
3778 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
3779 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
3780 abbrev_opt_base_type_end only by increasing die_abbrev, before
3782 (optimize_abbrev_table): Don't change abbrev numbers of
3783 base types and CU or optimize implicit consts in them if
3784 calc_base_type_die_sizes has been called during build_abbrev_table.
3785 (calc_base_type_die_sizes): If abbrev_opt_start, set
3786 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
3788 2016-11-18 Jeff Law <law@redhat.com>
3791 * config/m68k/m68k.c (moveq feeding equality comparison): New
3793 * config/m68k/predicates.md (addq_subq_operand): New predicate.
3794 (equality_comparison_operator): Likewise.
3796 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
3798 * rtlanal.c (load_extend_op): Move to...
3799 * rtl.h: ...here and make inline.
3801 2016-11-18 Terry Guo <terry.guo@arm.com>
3802 Thomas Preud'homme <thomas.preudhomme@arm.com>
3804 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
3805 * config/arm/arm-opts.h: Include arm-flags.h.
3806 (struct arm_arch_core_flag): Define.
3807 (arm_arch_core_flags): Define.
3808 * config/arm/arm-protos.h: Include arm-flags.h
3809 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
3810 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
3811 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
3812 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
3813 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
3814 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
3815 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
3816 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
3817 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
3818 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
3819 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
3820 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
3821 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
3822 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
3823 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
3824 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
3825 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
3826 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
3827 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
3828 ARM_FSET_CPU_SUBSET): Move to ...
3829 * config/arm/arm-flags.h: This new file.
3830 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
3831 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
3832 (TARGET_MODE_SPECS): Define.
3833 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
3835 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
3837 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
3838 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
3839 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
3840 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
3841 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
3842 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
3843 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
3844 missing and make value unsigned.
3845 (arm_feature_set): Use unsigned entries instead of unsigned long.
3847 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
3849 Re-apply after PR bootstrap/77359 is fixed:
3850 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3852 * explow.c (get_dynamic_stack_size): Take known alignment of stack
3853 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
3856 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
3859 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
3860 variables in functions calling alloca. Also update the ASCII
3862 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
3863 (STACK_DYNAMIC_OFFSET): Likewise.
3864 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
3865 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
3868 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
3869 Alan Hayward <alan.hayward@arm.com>
3870 David Sherwood <david.sherwood@arm.com>
3872 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
3873 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
3874 (add_const_value_attribute): Likewise.
3875 * explow.c (plus_constant): Likewise.
3876 * expmed.c (expand_mult, make_tree): Likewise.
3877 * expr.c (convert_modes): Likewise.
3878 * loop-doloop.c (doloop_optimize): Likewise.
3879 * postreload.c (reload_cse_simplify_set): Likewise.
3880 * simplify-rtx.c (simplify_const_unary_operation): Likewise
3881 (simplify_binary_operation_1, simplify_const_binary_operation):
3883 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
3884 * wide-int.h: Update documentation to recommend rtx_mode_t
3885 instead of std::make_pair.
3887 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
3888 Alan Hayward <alan.hayward@arm.com>
3889 David Sherwood <david.sherwood@arm.com>
3891 * tree.h (SET_DECL_MODE): New macro.
3892 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
3893 (expand_gimple_basic_block): Likewise.
3894 * function.c (split_complex_args): Likeise.
3895 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3896 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
3897 * stor-layout.c (layout_decl, relayout_decl): Likewise.
3898 (finish_bitfield_representative): Likewise.
3899 * tree.c (make_node_stat): Likewise.
3900 * tree-inline.c (remap_ssa_name): Likewise.
3901 (tree_function_versioning): Likewise.
3902 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
3903 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
3904 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3905 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
3906 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
3907 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
3908 * varasm.c (make_debug_expr_from_rtl): Likewise.
3910 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
3912 PR rtl-optimization/71785
3913 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
3914 (duplicate_computed_gotos): New function.
3915 (pass_duplicate_computed_gotos::execute): Rewrite.
3917 2016-11-17 Jeff Law <law@redhat.com>
3920 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
3921 barrier prior to deallocating the stack.
3923 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
3925 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
3926 to make better use of cmem loads in the case where a single bit is
3928 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
3930 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
3932 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
3934 (isa_names_table): Handle new features.
3936 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
3937 Andrew Senkevich <andrew.senkevich@intel.com>
3939 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
3940 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
3941 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
3942 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
3943 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
3944 * config/i386/avx5124fmapsintrin.h: New file.
3945 * config/i386/avx5124vnniwintrin.h: Ditto.
3946 * config/i386/constraints.md (h): New constraint.
3947 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
3948 * config/i386/driver-i386.c (host_detect_local_cpu):
3949 Detect avx5124fmaps, avx5124vnniw.
3950 * config/i386/i386-builtin-types.def: Add types
3951 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
3952 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
3953 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
3954 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
3955 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
3956 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
3957 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
3958 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
3959 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
3960 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
3961 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
3962 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
3963 __builtin_ia32_vp4dpwssds_mask): New.
3964 * config/i386/i386-c.c (ix86_target_macros_internal):
3965 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
3966 * config/i386/i386-modes.def: Fixed comment typos, added new
3967 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
3968 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
3970 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
3971 (ix86_option_override_internal): Handle new options.
3972 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
3974 (ix86_expand_builtin): Handle new builtins.
3975 (ix86_additional_allocno_class_p): New.
3976 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
3977 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
3978 (reg_class): Add MOD4_SSE_REGS.
3979 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
3980 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
3981 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
3982 avx5124vnniwintrin.h.
3983 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
3984 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
3985 (define_mode_iterator IMOD4): New.
3986 (define_mode_attr imod4_narrow): Ditto.
3987 (define_insn "mov<mode>"): Ditto.
3988 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
3989 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
3990 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
3991 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
3992 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
3993 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
3994 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
3995 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
3996 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
3997 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
3998 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
3999 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
4000 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
4001 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
4002 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
4003 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
4004 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
4005 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
4006 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
4007 * genmodes.c (mode_size_inline): Extend return type.
4008 * machmode.h (mode_size, mode_base_align): Extend type.
4010 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
4013 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
4014 the appropriate checks for SFmode/DFmode load/stores in GPR
4016 (fusion_addis_mem_combo_store): Likewise.
4017 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
4018 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
4019 d-form instructions for traditional Altivec registers.
4020 (emit_fusion_p9_load): Likewise.
4021 (emit_fusion_p9_store): Likewise.
4022 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
4023 early clobber from scratch register. Do not match if the register
4024 being stored is the scratch register.
4025 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
4026 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
4027 instructions for traditional Altivec registers.
4028 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4029 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4030 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4032 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
4035 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
4036 being live in the function and lr needing to be saved. Distinguish
4037 between already saved pushable registers and registers to push.
4038 Check for LR being an available pushable register.
4040 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4042 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
4043 string input is a string constant.
4044 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
4045 via cmpstrnsi even if neither string is constant.
4047 2016-11-17 Jakub Jelinek <jakub@redhat.com>
4050 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
4051 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
4052 instead, return false if it is NULL, or doesn't fit into uhwi, or
4053 is larger or equal to targetm.max_anchor_offset.
4055 2016-11-17 Pip Cet <pipcet@gmail.com>
4056 Eric Botcazou <ebotcazou@adacore.com>
4058 PR rtl-optimization/78355
4059 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
4060 needs to deal with unaligned accesses.
4061 * doc/tm.texi: Regenerate.
4062 * lra-constraints.c (simplify_operand_subreg): Only invoke
4063 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
4065 2016-11-17 David Malcolm <dmalcolm@redhat.com>
4067 * input.c (selftest::test_lexer_string_locations_long_line): New
4069 (selftest::test_lexer_string_locations_raw_string_multiline): New
4071 (selftest::input_c_tests): Call the new functions, via
4072 for_each_line_table_case.
4074 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4076 * config/aarch64/aarch64.md (mov<mode>): Call
4077 aarch64_split_dimode_const_store on DImode constant stores.
4078 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
4080 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
4083 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4084 Richard Biener <rguenther@suse.de>
4086 PR tree-optimization/77848
4087 * tree-if-conv.c (tree_if_conversion): Always version loops unless
4088 the user specified -ftree-loop-if-convert.
4090 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
4093 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
4094 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
4095 *thumb2_strd_base_neg): Recognize insn regardless of
4096 current_tune->prefer_ldrd_strd.
4097 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
4100 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
4102 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
4105 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
4107 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
4109 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
4110 * config/arc/arc-cpus.def (quarkse_em): Add.
4111 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
4112 * config/arc/arc-opts.h (FPX_QK): Define.
4113 * config/arc/arc-tables.opt: Regenerate.
4114 * config/arc/arc.c (gen_compare_reg): Change.
4115 (arc_register_move_cost): Avoid Dy,Dx moves.
4116 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
4117 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
4118 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
4120 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
4121 (fix_truncsfsi2_fpu): Rename.
4122 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
4123 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
4124 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
4125 * config/arc/t-multilib: Regenerate.
4127 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
4129 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
4131 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
4132 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
4133 (avr_rtx_costs_1, extra_constraint_Q): Same.
4134 (avr_address_cost): Use SUBREG_P if possible.
4136 2016-11-17 Richard Biener <rguenther@suse.de>
4139 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
4140 non-local goto into CFG.
4142 2016-11-17 Richard Biener <rguenther@suse.de>
4144 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
4145 backward compatibility.
4146 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
4147 * tree-if-conv.c (pass_if_conversion::gate): Do not test
4148 flag_tree_loop_if_convert_stores.
4149 (pass_if_conversion::execute): Likewise.
4151 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4153 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
4154 const_double code before calling aarch64_float_const_zero_rtx_p.
4156 2016-11-17 Richard Biener <rguenther@suse.de>
4158 PR tree-optimization/78306
4159 * ipa-inline-analysis.c (initialize_inline_failed): Do not
4160 inhibit inlining if function calls cilk_spawn.
4161 (can_inline_edge_p): Likewise.
4163 2016-11-17 Richard Biener <rguenther@suse.de>
4166 * fold-const.c (negate_expr_p): Fix multiplication case.
4168 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
4171 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
4173 (TARGET_INIT_LIBFUNCS): Delete definition and...
4174 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
4177 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
4179 * config/netbsd-stdint.h: New.
4180 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
4181 (x86_64-*-netbsd*): Likewise.
4183 2016-11-16 Andrew PInski <apinski@cavium.com>
4185 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
4186 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
4187 flag_aarch64_verbose_cost instead of checking for details dump.
4188 (aarch64_rtx_costs_wrapper): Likewise.
4190 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4192 PR rtl-optimization/78378
4193 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
4194 inner only if pos is 0. Fix up formatting.
4196 2016-11-17 Alan Modra <amodra@gmail.com>
4198 PR rtl-optimization/78325
4199 PR rtl-optimization/70890
4200 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
4203 2016-11-16 Jason Merrill <jason@redhat.com>
4205 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
4207 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4208 Richard Biener <rguenther@suse.de>
4210 PR tree-optimization/77848
4211 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
4212 an outer loop, only save basic block aux information for the inner
4214 (versionable_outer_loop_p): New function.
4215 (tree_if_conversion): Version the outer loop instead of the inner
4216 one if the pattern will be recognized for outer-loop
4219 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
4221 * gcc/bb-reorder.c: Remove 'toplev.h' include.
4222 (pass_partition_blocks::gate): No longer check
4223 user_defined_section_attribute, instead check the function decl
4224 for a section attribute.
4225 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
4226 set user_defined_section_attribute.
4227 * gcc/final.c (rest_of_handle_final): Likewise.
4228 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
4229 * gcc/toplev.h: Remove declaration of
4230 user_defined_section_attribute.
4232 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4234 * config/mips/mips.md (casesi_internal_mips16_<mode>):
4235 Explicitly switch between JR and JRC for the table jump. Adjust
4238 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4240 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
4241 `insn_count' to 11 rather than 16.
4243 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4245 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
4246 `ltu' rather than `leu' operation in the RTL pattern
4248 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4250 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
4251 missing <d> instruction prefixes throughout. Correct
4254 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4256 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
4257 rather than R_MIPS_JALR relocation in microMIPS code. Do not
4258 cancel short delay slots in PIC call relaxation.
4260 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
4262 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
4263 general register with general register or ARM constant into SP
4266 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4269 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
4270 that loop->header == body_bb if broken_loop.
4272 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
4274 * tree-ssa-math-opts.c (bswap_replace): Remove test
4275 of SLOW_UNALIGNED_ACCESS.
4277 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
4279 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
4280 is selected. Pass -mgomp to offload compiler in OpenMP case.
4281 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
4282 declaration from nvptx.c.
4283 (nvptx_gen_shuffle): Declare.
4284 (nvptx_output_set_softstack): Declare.
4285 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
4286 (need_softstack_decl): New variable.
4287 (need_unisimt_decl): New variable.
4288 (diagnose_openacc_conflict): New. Use it...
4289 (nvptx_option_override): ...here. Handle TARGET_GOMP.
4290 (nvptx_encode_section_info): Handle "shared" attribute.
4291 (write_as_kernel): Restrict to OpenACC target regions.
4292 (init_softstack_frame): New.
4293 (nvptx_init_unisimt_predicate): New.
4294 (write_omp_entry): New. Use it...
4295 (nvptx_declare_function_name): ...here to emit OpenMP target region
4296 entrypoints. Handle TARGET_SOFT_STACK. Call
4297 nvptx_init_unisimt_predicate.
4298 (nvptx_output_set_softstack): New.
4299 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
4300 (nvptx_gen_shuffle): Export.
4301 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
4303 (nvptx_print_operand): Fix handling of instruction predicates.
4304 (nvptx_get_unisimt_master): New helper function.
4305 (nvptx_get_unisimt_predicate): Ditto.
4306 (nvptx_call_insn_is_syscall_p): Ditto.
4307 (nvptx_unisimt_handle_set): Ditto.
4308 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
4309 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
4310 (nvptx_handle_shared_attribute): New. Use it...
4311 (nvptx_attribute_table): ... here (new entry).
4312 (nvptx_record_offload_symbol): Handle NULL attributes.
4313 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
4314 (nvptx_simt_vf): New.
4315 (TARGET_SIMT_VF): Define.
4316 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
4317 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
4318 -muniform-simt option is active.
4319 (STACK_SIZE_MODE): Define.
4320 (FIXED_REGISTERS): Adjust.
4321 (SOFTSTACK_SLOT_REGNUM): New.
4322 (SOFTSTACK_PREV_REGNUM): New.
4323 (REGISTER_NAMES): Adjust.
4324 (struct machine_function): New fields.
4325 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
4326 (UNSPEC_VOTE_BALLOT): Ditto.
4327 (UNSPEC_LANEID): Ditto.
4328 (UNSPECV_NOUNROLL): Ditto.
4329 (atomic): New attribute.
4330 (predicable): New attribute. Generate predicated forms via
4332 (br_true): Mark as not predicable.
4334 (br_true_uni): Ditto.
4335 (br_false_uni): Ditto.
4337 (trap_if_true): Ditto.
4338 (trap_if_false): Ditto.
4339 (nvptx_fork): Ditto.
4340 (nvptx_forked): Ditto.
4341 (nvptx_joining): Ditto.
4342 (nvptx_join): Ditto.
4343 (nvptx_barsync): Ditto.
4344 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
4345 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
4346 (allocate_stack_<mode>): Remove unused pattern.
4347 (set_softstack_insn): New pattern.
4348 (restore_stack_block): Handle for TARGET_SOFT_STACK.
4349 (nvptx_vote_ballot): New pattern.
4350 (omp_simt_lane): Ditto.
4351 (omp_simt_last_lane): Ditto.
4352 (omp_simt_ordered): Ditto.
4353 (omp_simt_vote_any): Ditto.
4354 (omp_simt_xchg_bfly): Ditto.
4355 (omp_simt_xchg_idx): Ditto.
4356 (nvptx_nounroll): Ditto.
4357 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
4358 (atomic_exchange<mode>): Ditto.
4359 (atomic_fetch_add<mode>): Ditto.
4360 (atomic_fetch_addsf): Ditto.
4361 (atomic_fetch_<logic><mode>): Ditto.
4362 * config/nvptx/nvptx.opt (msoft-stack): New option.
4363 (muniform-simt): Ditto.
4365 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
4366 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
4367 * doc/invoke.texi (msoft-stack): Document.
4368 (muniform-simt): Document
4370 * doc/tm.texi: Regenerate.
4371 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
4372 * target.def: Define it.
4373 * target-insns.def (omp_simt_lane): New.
4374 (omp_simt_last_lane): New.
4375 (omp_simt_ordered): New.
4376 (omp_simt_vote_any): New.
4377 (omp_simt_xchg_bfly): New.
4378 (omp_simt_xchg_idx): New.
4380 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4382 * config/mips/mips-protos.h (mips_set_text_contents_type): New
4384 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
4385 (ASM_OUTPUT_CASE_END): Likewise.
4386 * config/mips/mips.c (mips_set_text_contents_type): New function.
4387 (mips16_emit_constants): Record the pool's initial label number
4388 with the `consttable' insn. Emit a `consttable_end' insn at the end.
4389 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
4390 for `consttable' insns.
4391 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
4392 for `consttable_end' insns.
4393 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
4394 (consttable): Add operand.
4395 (consttable_end): New insn.
4397 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
4399 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
4400 * tree-if-conv.c (tree_if_conversion): Make public.
4401 * * tree-if-conv.h: New file.
4402 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
4403 dynamic alias checks for epilogues.
4404 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
4405 * tree-vect-loop.c: include tree-if-conv.h.
4406 (new_loop_vec_info): Add zeroing orig_loop_info field.
4407 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
4408 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
4409 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
4410 using passed argument.
4411 (vect_transform_loop): Check if created epilogue should be returned
4412 for further vectorization with less vf. If-convert epilogue if
4413 required. Print vectorization success for epilogue.
4414 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
4415 if it is required, pass loop_vinfo produced during vectorization of
4416 loop body to vect_analyze_loop.
4417 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4419 (LOOP_VINFO_ORIG_LOOP_INFO): New.
4420 (LOOP_VINFO_EPILOGUE_P): New.
4421 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
4422 (vect_do_peeling): Change prototype to return epilogue.
4423 (vect_analyze_loop): Add argument of loop_vec_info type.
4424 (vect_transform_loop): Return created loop.
4426 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
4428 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
4429 component as used also if LR_REGNO is a live input to the bb.
4430 * df-scan.c (df_get_entry_block_def_set): Return immediately after
4431 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
4432 (df_get_exit_block_use_set): Ditto.
4433 * df.h (df_scan_flags): New enum.
4434 * shrink-wrap.c (try_shrink_wrapping_separate): Set
4435 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
4436 df_update_entry_block_defs and df_update_exit_block_uses
4437 at the start; clear the flag and call those functions at the end.
4439 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4440 Alan Hayward <alan.hayward@arm.com>
4441 David Sherwood <david.sherwood@arm.com>
4443 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
4444 nb_iterations to the number of latch iterations rather than the
4445 number of loop iterations.
4447 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4448 Alan Hayward <alan.hayward@arm.com>
4449 David Sherwood <david.sherwood@arm.com>
4451 * combine.c (maybe_swap_commutative_operands): New function.
4452 (combine_simplify_rtx): Use it.
4453 (change_zero_ext): Likewise.
4454 (make_compound_operation_int): New function, split out of...
4455 (make_compound_operation): ...here. Use
4456 maybe_swap_commutative_operands for both.
4458 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
4460 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
4461 (neon-vfpv3): New FPU, currently an alias for 'neon'.
4462 * arm/arm-tables.opt: Regenerated.
4463 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
4465 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
4466 and 'neon' are aliases for specific implementations.
4468 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4469 Alan Hayward <alan.hayward@arm.com>
4470 David Sherwood <david.sherwood@arm.com>
4472 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
4473 and use it in the final call to gen_rtx_fmt_ee.
4474 (expand_vec_cond_expr): Update accordingly.
4475 (expand_vec_cmp_expr): Likewise.
4477 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4478 Alan Hayward <alan.hayward@arm.com>
4479 David Sherwood <david.sherwood@arm.com>
4481 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
4483 2016-11-16 Richard Biener <rguenther@suse.de>
4486 * gimplify.c (gimplify_function_tree): Do not instrument
4487 GNU extern inline functions.
4489 2016-11-16 Martin Liska <mliska@suse.cz>
4492 * gimplify.c (gimplify_switch_expr): Always save previous
4493 gimplify_ctxp->live_switch_vars.
4495 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
4497 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
4498 zero_extract operations to allow a movb to occur.
4499 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
4500 * testsuite/gcc.target/arc/movb-2.c: Likewise.
4501 * testsuite/gcc.target/arc/movb-5.c: Likewise.
4502 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
4505 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4506 Alan Hayward <alan.hayward@arm.com>
4507 David Sherwood <david.sherwood@arm.com>
4509 * expr.c (emit_group_load_1): Tighten check for whether an
4510 access involves only one operand of a CONCAT. Use extract_bit_field
4511 for constants if the bit range does span the whole operand.
4513 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4514 Alan Hayward <alan.hayward@arm.com>
4515 David Sherwood <david.sherwood@arm.com>
4517 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
4519 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4520 Alan Hayward <alan.hayward@arm.com>
4521 David Sherwood <david.sherwood@arm.com>
4523 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
4524 all three iteration counts with an any_* test. Use a single update
4525 for each count. Fix the calculation of nb_iterations_estimate.
4527 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4529 * config/pdp11/pdp11.c: Include dbxout.h.
4531 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4533 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
4535 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4538 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
4539 proper ranges for an SBFX instruction.
4540 (extzv_t2): Likewise for UBFX.
4542 2016-11-16 Richard Biener <rguenther@suse.de>
4544 PR tree-optimization/78348
4545 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
4546 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
4547 (classify_partition): Set PKIND_MEMCPY if dependence analysis
4548 revealed no dependency, PKIND_MEMMOVE otherwise.
4550 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4553 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
4554 it points to non-NULL tree, use it instead of ubsan_create_data.
4555 (instrument_si_overflow): Handle vector signed integer overflow
4557 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
4558 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
4559 vector IFN_UBSAN_CHECK_*.
4560 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
4561 pass it through to ubsan_build_overflow_builtin.
4562 (expand_neg_overflow, expand_mul_overflow): Likewise.
4563 (expand_vector_ubsan_overflow): New function.
4564 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
4565 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
4566 (expand_arith_overflow): Adjust expand_*_overflow callers.
4568 2016-11-16 Matthias Klose <doko@ubuntu.com>
4570 * doc/install.texi: Remove references to java/libjava.
4572 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
4574 * tree-ssa-coalesce.c (register_default_def): Remove
4575 register_ssa_partition.
4576 (create_outofssa_var_map): Likewise.
4577 * tree-ssa-live.c (register_ssa_partition_check): Remove.
4578 * tree-ssa-live.h (register_ssa_partition): Likewise.
4580 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
4582 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
4583 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
4584 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
4585 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
4586 rtx when all sub-rtx are also permanent.
4587 (attr_eq): Simplify.
4588 (attr_copy_rtx): Remove.
4589 (make_canonical, get_attr_value): Use attr_equal_p.
4590 (copy_boolean): Rehash NOT.
4591 (simplify_test_exp_in_temp,
4592 optimize_attrs): Remove call to attr_copy_rtx.
4593 (attr_alt_intersection, attr_alt_union,
4594 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
4595 (make_automaton_attrs): Use attr_eq.
4597 2016-11-15 Matthias Klose <doko@ubuntu.com>
4599 * doc/install.texi: Remove references to java/libjava.
4600 * doc/sourcebuild.texi: Likewise.
4601 * doc/invoke.texi: Likewise.
4602 * doc/standards.texi: Likewise.
4604 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4605 Alan Hayward <alan.hayward@arm.com>
4606 David Sherwood <david.sherwood@arm.com>
4608 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
4610 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4611 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4612 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4613 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4614 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4615 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4616 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4618 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4619 Alan Hayward <alan.hayward@arm.com>
4620 David Sherwood <david.sherwood@arm.com>
4622 * dce.c (check_argument_store): Pass the size instead of
4623 the memory reference.
4624 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
4626 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4627 Alan Hayward <alan.hayward@arm.com>
4628 David Sherwood <david.sherwood@arm.com>
4630 * alias.c (canon_rtx): Use simplify_gen_binary.
4632 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4633 Alan Hayward <alan.hayward@arm.com>
4634 David Sherwood <david.sherwood@arm.com>
4636 * rtl.h (load_extend_op): Declare.
4637 * rtlanal.c (load_extend_op): New function.
4638 (nonzero_bits1): Use it.
4639 (num_sign_bit_copies1): Likewise.
4640 * cse.c (cse_insn): Likewise.
4641 * fold-const.c (fold_single_bit_test): Likewise.
4642 (fold_unary_loc): Likewise.
4643 * fwprop.c (free_load_extend): Likewise.
4644 * postreload.c (reload_cse_simplify_set): Likewise.
4645 (reload_cse_simplify_operands): Likewise.
4646 * combine.c (try_combine): Likewise.
4647 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
4648 subreg_lowpart_p checks.
4650 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4651 Alan Hayward <alan.hayward@arm.com>
4652 David Sherwood <david.sherwood@arm.com>
4654 * combine.c (simplify_shift_const_1): Use the number of bits
4655 in the inner mode to determine the range of the shift.
4656 When handling shifts of vectors, skip any rules that apply
4659 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4660 Alan Hayward <alan.hayward@arm.com>
4661 David Sherwood <david.sherwood@arm.com>
4663 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
4666 2016-11-15 Matthias Klose <doko@ubuntu.com>
4668 * doc/install.texi: Remove references to gcj/libjava.
4669 * doc/invoke.texi: Likewise.
4671 2016-11-15 Jeff Law <law@redhat.com>
4673 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
4674 parameter. Callers changed.
4675 (check-subpath_and_update_thread_path): Extracted from
4676 fsm_find_control_statement_thread_paths.
4677 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
4678 (handle_phi, handle_assignment): Allow any constant node, not
4681 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
4683 * config/arc/arc-arch.h: New file.
4684 * config/arc/arc-arches.def: Likewise.
4685 * config/arc/arc-cpus.def: Likewise.
4686 * config/arc/arc-options.def: Likewise.
4687 * config/arc/t-multilib: Likewise.
4688 * config/arc/genmultilib.awk: Likewise.
4689 * config/arc/genoptions.awk: Likewise.
4690 * config/arc/arc-tables.opt: Likewise.
4691 * config/arc/driver-arc.c: Likewise.
4692 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
4693 * common/config/arc/arc-common.c (arc_handle_option): Trace
4695 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
4696 options; check for supported cpu against arc-cpus.def file.
4697 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
4698 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
4699 * config/arc/arc-c.def: Add emacs local variables.
4700 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
4701 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
4702 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
4703 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
4704 (DEFAULT_arc_fpu_build): Define.
4705 (DEFAULT_arc_mpy_option): Define.
4706 * config/arc/arc-protos.h (arc_init): Delete.
4707 * config/arc/arc.c (arc_cpu_name): New variable.
4708 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
4709 (arc_arc700, arc_arc600, arc_arc601): New variable.
4710 (arc_init): Add static; remove selection of default tune value,
4711 cleanup obsolete error messages.
4712 (arc_override_options): Make use of .def files for selecting the
4713 right cpu and option configurations.
4714 * config/arc/arc.h (stdbool.h): Include.
4715 (TARGET_CPU_DEFAULT): Define.
4716 (CPP_SPEC): Remove mcpu=NPS400 handling.
4717 (arc_cpu_to_as): Declare.
4718 (EXTRA_SPEC_FUNCTIONS): Define.
4719 (OPTION_DEFAULT_SPECS): Likewise.
4720 (ASM_DEFAULT): Remove.
4721 (ASM_SPEC): Use arc_cpu_to_as.
4722 (DRIVER_SELF_SPECS): Remove deprecated options.
4723 (arc_base_cpu): Declare.
4724 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
4725 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
4727 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
4728 * config/arc/arc.md (attr_cpu): Remove.
4729 * config/arc/arc.opt (mno-mpy): Deprecate.
4730 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
4731 (mcpu=ARCHS): Remove.
4732 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
4734 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
4735 (arc_fpu): Use new defines.
4736 (mpy-option): Change to use numeric or string like inputs.
4737 * config/arc/t-arc (driver-arc.o): New target.
4738 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
4739 * config/arc/t-arc-newlib: Delete.
4740 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
4741 * doc/invoke.texi (ARC): Update arc options.
4743 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
4745 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
4746 insn at the beginning of the constant pool.
4747 (mips_insert_insn_pseudos): New function.
4748 (mips_machine_reorg2): Call it.
4749 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
4750 UNSPEC_INSN_PSEUDO enum values.
4751 (insn_pseudo, consttable): New insns.
4753 2016-11-15 Michael Matz <matz@suse.de>
4755 PR missed-optimization/77881
4756 * combine.c (simplify_comparison): Remove useless subregs
4757 also inside the loop, not just after it.
4758 (make_compound_operation): Recognize some subregs as being
4761 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4762 Alan Hayward <alan.hayward@arm.com>
4763 David Sherwood <david.sherwood@arm.com>
4765 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
4768 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4770 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
4771 for using xxinsertw and vinsert{b,h} on ISA 3.0.
4773 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
4774 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
4775 vinsert{b,h} on ISA 3.0.
4777 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
4779 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
4780 and cmpnop in two steps: first the ones not accessed in original gimple
4781 expression in a endian independent way and then the ones not accessed
4782 in the final result in an endian-specific way.
4783 (bswap_replace): Stop doing big endian adjustment.
4785 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
4787 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
4788 (*ashl<mode>3_doubleword): Ditto.
4790 2016-11-14 Martin Liska <mliska@suse.cz>
4792 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
4794 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
4795 Richard Biener <rguenther@suse.de>
4797 * doc/invoke.texi (fgimple): Document.
4798 * dumpfile.h (TDF_GIMPLE): Add.
4799 * dumpfile.c (dump_options): Add gimple.
4800 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
4802 (dump_gimple_label): Likewise.
4803 (dump_gimple_phi): Likewise.
4804 (dump_gimple_bb_header): Likewise.
4805 (dump_phi_nodes): Likewise.
4806 (pp_cfg_jump): Likewise. Pass in dump flags.
4807 (dump_implicit_edges): Adjust.
4808 * passes.c (pass_init_dump_file): Do not dump function header
4810 * tree-cfg.c (dump_function_to_file): Dump function return type
4811 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
4813 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
4814 (dump_generic_node): Likewise.
4815 * function.h (struct function): Add pass_startwith member.
4816 * passes.c (execute_one_pass): Implement startwith.
4817 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
4818 and assign proper version for parsed ssa names.
4819 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
4820 * internal-fn.c (expand_PHI): New function.
4821 * internal-fn.h (expand_PHI): Declared here.
4822 * internal-fn.def: New defination for PHI.
4823 * tree-cfg.c (lower_phi_internal_fn): New function.
4824 (build_gimple_cfg): Call it.
4825 (verify_gimple_call): Condition for passing label as arg in internal
4827 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
4828 present PHIs with arguments.
4830 2016-11-14 Martin Liska <mliska@suse.cz>
4833 * common.opt: Add prefer-atomic as a new enum value for
4835 * coretypes.h: Likewise.
4836 * doc/invoke.texi: Document the new option value.
4837 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
4838 * tree-profile.c (tree_profiling): Select default value
4839 of -fprofile-update when 'prefer-atomic' is selected.
4841 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4843 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
4844 (cortex_a57_alu_shift): ...here.
4846 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4848 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
4850 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4851 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4852 (<optab>si3_insn_uxtw): Likewise.
4853 (<optab><mode>3_insn): Likewise.
4854 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
4855 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
4856 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
4857 (<optab><mode>): Likewise.
4858 (insv<mode>): Likewise.
4859 (andim_ashift<mode>_bfiz): Likewise.
4860 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
4861 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
4862 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
4863 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
4864 (exynos_m1_alu_p): Likewise.
4865 * config/arm/types.md: Add bfx.
4866 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
4868 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4870 * config/aarch64/aarch64.c (cortexa57_vector_cost):
4871 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
4873 2016-11-14 Richard Biener <rguenther@suse.de>
4875 PR tree-optimization/78312
4876 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
4877 flow-sensitive info.
4879 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
4882 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
4883 * config/avr/avr.opt (-mabsdata): New option.
4884 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
4885 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
4886 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
4887 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
4888 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
4889 spec depending on AVR_ISA_LDS.
4890 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
4892 2016-11-13 Jakub Jelinek <jakub@redhat.com>
4894 * match.pd: Don't try to compare addresses of variables with
4897 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
4899 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
4900 (propagate_vr_accross_jump_function): Handle unary expressions.
4901 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
4902 (load_from_param_1): New.
4903 (load_from_unmodified_param): Factor common part into load_from_param_1.
4904 (load_from_param): New.
4905 (compute_complex_assign_jump_func): Handle unary expressions.
4906 (update_jump_functions_after_inlining): Likewise.
4907 (ipa_write_jump_function): Likewise.
4908 (ipa_read_jump_function): Likewise.
4910 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4913 * doc/invoke.texi: Document Wrestrict.
4914 * pretty-print.c (pp_format): Add case for "Z" specifier.
4915 (test_pp_format): Test "Z" specifier.
4917 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
4919 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
4920 original function needs a static chain.
4922 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
4925 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
4928 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4931 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
4932 return early if !optional_tbtab.
4934 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
4936 PR rtl-optimization/59461
4937 * doc/rtl.texi (paradoxical subregs): Add missing word.
4938 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
4939 in modes with precision larger than that of last_set_mode.
4940 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
4941 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
4942 REGs to paradoxical SUBREGs.
4943 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
4944 larger than a word before invoking LOAD_EXTEND_OP on it.
4946 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4949 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
4950 element order for little endian ordering.
4952 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
4953 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
4956 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
4959 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
4960 when calculating operand 2.
4961 (rotate to rotatex zext splitter): Ditto.
4963 2016-11-11 Jeff Law <law@redhat.com>
4965 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
4967 (stmt_uses_name_in_undefined_way): New function, extracted from
4968 find_implicit_erroneous_behavior and extended for div/mod case.
4969 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
4970 find_explicit_erroneous_behavior and extended for div/mod case.
4971 (find_implicit_erroneous_behavior): Use new helper function.
4972 (find_explicit_erroneous_behavior): Use new helper function.
4974 2016-11-11 Richard Biener <rguenther@suse.de>
4976 PR tree-optimization/71575
4977 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
4980 2016-11-11 Richard Biener <rguenther@suse.de>
4983 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
4984 about uninitialized destination arg of BIT_INSERT_EXPR.
4986 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
4989 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
4990 terminology. Expand to remove ambiguity.
4992 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4994 PR rtl-optimization/78232
4995 * combine.c (try_combine): Add a big comment about why reusing i2dest
4997 (change_zero_ext): Do not call simplify_gen_binary, do the
4998 simplifications manually.
5000 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5002 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
5003 enable HImode and QImode to go in vector registers by default if
5004 the -mvsx-small-integer option is enabled.
5005 (rs6000_secondary_reload_simple_move): Likewise.
5006 (rs6000_preferred_reload_class): Don't force integer constants to
5007 be loaded into vector registers that we can easily make into
5008 memory (or being created in the GPRs and moved over with direct move).
5009 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
5010 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
5011 vector extraction on ISA 3.0 when the scalar integer can be
5012 allocated in vector registers. Generate the VEC_SELECT directy,
5013 and don't use UNSPEC's to avoid having the scalar type in a vector
5014 register. Make the expander target registers, and let the
5015 combiner fold in results storing to memory, if the machine
5017 (vsx_extract_<mode>_di): Likewise.
5018 (vsx_extract_<mode>_p9): Likewise.
5019 (vsx_extract_<mode>_di_p9): Likewise.
5020 (vsx_extract_<mode>_store_p9): Likewise.
5021 (vsx_extract_si): Likewise.
5022 (vsx_extract_<mode>_p8): Likewise.
5023 (p9_lxsi<wd>zx): Delete, no longer used.
5024 (p9_stxsi<wd>x): Likewise.
5025 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
5026 integers in vector registers for ISA 3.0.
5027 (QHI): Update comment.
5028 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
5029 vector extract instructions in sign/zero extend.
5030 (zero_extendhi<mode>): Likewise.
5031 (extendqi<mode>): Likewise.
5032 (extendhi<mode>2): Likewise.
5033 (HImode splitter for load/sign extend in vector register): Likewise.
5034 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
5035 optimizing floating point conversions to/from small data types and
5036 rewrite it to support QImode/HImode being allowed in vector
5037 registers on ISA 3.0.
5038 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5039 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
5040 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5041 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
5042 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5043 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
5044 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5045 VSPLITISW on ISA 2.07.
5046 (movhi_internal): Combine movhi_internal and movqi_internal into
5047 one mov<mode>_internal with an iterator. Add support for QImode
5048 and HImode being allowed in vector registers. Make large number
5049 of attributes and constraints easier to read.
5050 (movqi_internal): Likewise.
5051 (mov<mode>_internal): Likewise.
5052 (movdi_internal64): Fix constraint to allow loading -16..15 with
5053 VSPLITISW on ISA 2.07.
5054 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
5057 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
5059 PR rtl-optimization/78241
5060 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
5061 but emit initial peel copy if niter expr is not reliable.
5063 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5065 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
5066 (maybe_record_trace_start): If the CFI is different on the new and
5067 old paths, print out both to the dump file before ICEing.
5069 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
5071 * target.def (additional_allocno_class_p): New.
5072 * hooks.h (hook_bool_reg_class_t_false): New prototype.
5073 * hooks.c (hook_bool_reg_class_t_false): New.
5074 * ira.c (setup_allocno_and_important_classes): Use the new hook.
5075 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
5076 * doc/tm.texi: Update.
5078 2016-11-10 Jason Merrill <jason@redhat.com>
5080 * gengtype.c (new_structure): Append to structures list.
5081 (find_structure): Likewise.
5083 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
5085 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
5086 this_dir is 2. Check for this_dir non-zero before dir != this_dir
5089 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5091 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
5092 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
5094 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
5095 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
5096 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
5097 teams distribute parallel for simd even to distribute and teams
5098 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
5099 OMP_CLAUSE_DEPEND_SINK case.
5100 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
5101 (omp_no_lastprivate): Removed.
5102 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
5103 (gimplify_omp_for): Likewise.
5104 (computable_teams_clause): Fail for automatic vars from current
5105 function not yet seen in bind expr.
5106 * langhooks.c (lhd_omp_scalar_p): New function.
5107 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
5108 * varpool.c (varpool_node::get_create): Set node->offloading
5109 even for DECL_EXTERNAL decls.
5110 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
5111 (LANG_HOOKS_OMP_SCALAR_P): Define.
5112 (LANG_HOOKS_DECLS): Use it.
5114 2016-11-10 Martin Liska <mliska@suse.cz>
5117 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
5118 only when SWITCH_BODY is a BIND_EXPR.
5120 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
5123 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
5124 on the context only when it has no DIE yet.
5126 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
5128 * arm.h (target_cpus): Delete.
5129 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
5130 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
5131 (all_architectures): Likewise.
5132 (arm_option_override): Adjust use of CPU enums.
5133 (arm_sched_reorder): Likewise.
5134 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
5135 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
5136 * arm/genopt.sh (processor_type): Prefix enumeration entries with
5138 * arm-tables.opt: Regenerated.
5140 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
5142 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
5144 * config/aarch64/aarch64-tune.md: Regenerated.
5145 * config/arm/arm-cores.def (falkor): New core.
5146 * config/arm/arm-tables.opt: Regenerated.
5147 * config/arm/arm-tune.md: Regenerated.
5148 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
5149 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
5150 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
5151 (ARM Options/-mtune): Likewise.
5153 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5156 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5158 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
5159 (propagate_vr_accross_jump_function): Likewise.
5160 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5161 (load_from_param_1): New.
5162 (load_from_unmodified_param): Factor common part into load_from_param_1.
5163 (load_from_param): New.
5164 (compute_complex_assign_jump_func): Handle unary expressions.
5165 (ipa_write_jump_function): Likewise.
5166 (ipa_read_jump_function): Likewise.
5168 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
5170 * simplify-rtx.c (simplify_binary_operation_1): Simplify
5171 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
5172 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
5175 2016-11-09 David Malcolm <dmalcolm@redhat.com>
5177 * print-rtl-function.c: Include varasm.h.
5178 (print_any_param_name): New function.
5179 (print_param): New function.
5180 (print_rtx_function): Call print_param for each argument.
5181 * print-rtl.c (rtx_writer::finish_directive): New function.
5182 * print-rtl.h (rtx_writer::finish_directive): New decl.
5184 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
5187 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
5188 operand 0 as earlyclobber.
5189 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
5191 2016-11-09 Martin Liska <mliska@suse.cz>
5193 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
5195 2016-11-09 Jakub Jelinek <jakub@redhat.com>
5198 * builtins.c (expand_builtin_memcmp): Formatting fix.
5200 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
5201 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
5202 or of them, renumber other enumerators.
5203 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
5204 * doc/invoke.texi: Document -fsanitize=shift-base and
5205 -fsanitize-shift-exponent, document -fsanitize=shift as
5206 having those 2 suboptions.
5208 2016-11-09 Richard Biener <rguenther@suse.de>
5210 * fold-const.c (tree_swap_operands_p): Remove unused arg.
5211 * fold-const.c (tree_swap_operands_p): Likewise.
5212 (fold_binary_loc): Adjust.
5213 (fold_ternary_loc): Likewise.
5214 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
5215 * gimple-fold.c (fold_stmt_1): Likewise.
5216 * gimple-match-head.c (gimple_resimplify2): Likewise.
5217 (gimple_resimplify3): Likewise.
5218 (gimple_simplify): Likewise.
5219 * tree-ssa-dom.c (record_equality): Likewise.
5220 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
5221 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5222 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
5224 2016-11-09 Richard Biener <rguenther@suse.de>
5226 * tree-ssa-dom.c (canonicalize_comparison): Remove.
5227 (optimize_stmt): Remove redundant pre-propagation canonicalization
5228 of comparison operand order.
5230 2016-11-09 Martin Liska <mliska@suse.cz>
5232 * fold-const-call.c (fold_const_call): Fix the folding.
5234 2016-11-09 Richard Biener <rguenther@suse.de>
5236 * common.opt (flag_evaluation_order): Remove.
5237 * expr.c (expand_operands): Remove code guarded by
5238 flag_evaluation_order.
5239 * fold-const.c (reorder_operands_p): Remove, it always returns
5241 (negate_expr_p): Remove calls to reorder_operands_p.
5242 (fold_negate_expr): Likewise.
5243 (tree_swap_operands_p): Likewise.
5244 (fold_binary_loc): Likewise.
5246 2016-11-09 Andreas Schwab <schwab@suse.de>
5249 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
5250 insns operating on a register.
5252 2016-11-09 Richard Biener <rguenther@suse.de>
5254 PR tree-optimization/78007
5255 * tree-vect-stmts.c (vectorizable_bswap): New function.
5256 (vectorizable_call): Call vectorizable_bswap for
5257 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
5259 2016-11-09 Richard Biener <rguenther@suse.de>
5261 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5262 Look at the DR_BASE_ADDRESS object for forcing alignment.
5264 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5266 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
5267 (propagate_vr_accross_jump_function): Likewise.
5268 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5269 (load_from_param_1): New.
5270 (load_from_unmodified_param): Factor common part into load_from_param_1.
5271 (load_from_param): New.
5272 (compute_complex_assign_jump_func): Handle unary expressions.
5273 (ipa_write_jump_function): Likewise.
5274 (ipa_read_jump_function): Likewise.
5276 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5279 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
5280 Also fold constant passed as argument while computing value range.
5281 (propagate_constants_accross_call): Pass param type.
5282 * ipa-prop.c: export ipa_get_callee_param_type.
5283 * ipa-prop.h: export ipa_get_callee_param_type.
5285 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
5287 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
5288 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
5290 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
5292 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
5293 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
5294 ASAN_STACK_MAGIC_MIDDLE.
5295 (asan_global_struct): Increase the size of fields.
5296 (asan_add_global): Add new field constructor.
5297 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
5298 __asan_version_mismatch_check_v8.
5300 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
5302 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
5305 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
5308 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
5309 Handle ASHIFT and LSHIFTRT.
5310 (dimode_scalar_chain::compute_convert_gain): Ditto.
5311 (dimode_scalar_chain::convert_insn): Ditto.
5313 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5315 * gimple-ssa-store-merging.c: Include selftest.h
5316 (verify_array_eq): New function.
5317 (verify_shift_bytes_in_array): Likewise.
5318 (verify_shift_bytes_in_array_right): Likewise.
5319 (verify_clear_bit_region): Likewise.
5320 (verify_clear_bit_region_be): Likewise.
5321 (store_merging_c_tests): Likewise.
5322 * selftest.h (store_merging_c_tests): Declare prototype.
5323 * selftest-run-tests.c (selftest::run_tests): Run
5324 store_merging_c_tests.
5326 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5328 * config/arm/arm.opt (mold-rtx-costs): Delete.
5329 (mnew-generic-costs): Delete.
5330 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
5331 * config/arm/arm.c (arm_rtx_costs_1): Delete.
5332 (arm_size_rtx_costs): Likewise.
5333 (arm_slowmul_rtx_costs): Likewise.
5334 (arm_fastmul_rtx_costs): Likewise.
5335 (arm_xscale_rtx_costs): Likewise.
5336 (arm_9e_rtx_costs): Likewise.
5337 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
5338 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
5339 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
5340 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
5341 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
5342 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
5343 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
5344 arm_cortex_m7_tune):
5345 Delete rtx_costs field.
5346 (arm_new_rtx_costs): Rename to...
5347 (arm_rtx_costs_internal): ... This.
5348 (arm_rtx_costs): Remove old way of doing rtx costs.
5350 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5352 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
5353 (arm_fastmul_tune): Likewise.
5354 (arm_strongarm_tune): Likewise.
5355 (arm_xscale_tune): Likewise.
5356 (arm_9e_tune): Likewise.
5357 (arm_marvell_pj4_tune): Likewise.
5358 (arm_v6t2_tune): Likewise.
5359 (arm_v6m_tune): Likewise.
5360 (arm_fa726te_tune): Likewise.
5362 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5364 PR tree-optimization/78234
5365 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
5368 2016-11-08 Martin Liska <mliska@suse.cz>
5371 * dbgcnt.def: Add new debug counter asan_use_after_scope.
5372 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
5373 with a value expr. Do not add artificial variables to
5374 live_switch_vars. Use the debug counter.
5375 (gimplify_target_expr): Use the debug counter.
5376 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
5377 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
5378 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
5380 2016-11-08 Richard Biener <rguenther@suse.de>
5382 * tree-vect-stmts.c (get_group_load_store_type): If the
5383 access is aligned do not trigger peeling for gaps.
5384 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
5385 force alignment of vars with DECL_USER_ALIGN.
5387 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
5389 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
5391 2016-11-08 Richard Biener <rguenther@suse.de>
5393 PR tree-optimization/78205
5394 * tree-vect-stmts.c (vectorizable_load): Move check whether
5395 we may run into gaps when BB vectorizing SLP permutations ...
5396 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
5397 here where we can do a more precise check.
5399 2016-11-08 Richard Biener <rguenther@suse.de>
5401 PR tree-optimization/78224
5402 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
5403 Split the fallthru edge in case its successor may have PHIs.
5404 Do not free dominance info.
5406 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5409 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5410 EH info even for bzhi and pdep/pext.
5412 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
5414 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
5415 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
5417 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5419 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
5421 * config/rs6000/vector.md (div<mode>3): Ditto.
5423 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
5425 * configure.ac (.hidden): Change to conftest_s string. Provide string
5427 (gcc_cv_ld_hidden): Yes for AIX.
5428 * configure: Regenerate.
5430 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
5432 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
5433 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
5434 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
5435 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5436 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
5437 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
5439 (rs6000_xcoff_visibility): New.
5440 (rs6000_xcoff_declare_function_name): Add visibility support.
5441 (rs6000_xcoff_asm_globalize_decl_name): New.
5442 (rs6000_xcoff_asm_output_aligned_decl_common): New.
5443 (rs6000_asm_weaken_decl): New.
5444 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
5445 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
5448 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
5451 * incpath.c (remove_dup): Also silently ignore EPERM.
5453 2016-11-07 Martin Jambor <mjambor@suse.cz>
5455 * tree.c (verify_type_variant): Use pointer comparison to check that
5456 TYPE_SIZE_UNIT match.
5458 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5461 * dse.c (dse_step5): Call scan_reads even if just
5462 insn_info->frame_read. Improve and fix dump file messages.
5465 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
5466 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
5468 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5471 * match.pd: Add following two patterns:
5472 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
5473 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
5475 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
5477 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
5478 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
5479 * rtl.h (duplicate_reg_notes): Declare.
5480 * rtlanal.c (duplicate_reg_note): New function.
5482 PR rtl-optimization/77309
5483 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
5484 don't assume an equality comparison for plain COMPARE.
5485 (simplify_comparison): Pass a more accurate code to
5486 make_compound_operation.
5488 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
5490 * target.def (compute_pressure_classes): New target hook.
5491 * doc/tm.texi.in: Document it.
5492 * doc/tm.texi: Regenerate.
5493 * ira.c (setup_pressure_classes): Call target hook if defined.
5495 2016-11-07 David Malcolm <dmalcolm@redhat.com>
5497 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
5499 (rtx_writer::print_rtx): In compact mode, omit trailing operands
5500 that have the default values.
5501 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
5503 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
5504 label string from expected dump.
5505 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
5508 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5511 * alias.c (nonoverlapping_memrefs_p): If one decl is
5512 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
5514 2016-11-07 Richard Biener <rguenther@suse.de>
5517 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5520 2016-11-07 Richard Biener <rguenther@suse.de>
5522 PR tree-optimization/78218
5523 * gimple-ssa-store-merging.c
5524 (pass_store_merging::terminate_all_aliasing_chains):
5525 Drop unused argument, fix alias check to also consider uses.
5526 (pass_store_merging::execute): Adjust.
5528 2016-11-07 Richard Biener <rguenther@suse.de>
5530 PR tree-optimization/78228
5531 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
5534 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5537 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
5538 aarch64_simd_shift_imm_<mode> predicate for operand 1.
5539 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
5540 to restrict them to an appropriate range and add FAIL check if the
5541 region they specify is out of range. Delete useless constraint
5543 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
5544 2 and 3 to restrict their range and add pattern predicate.
5546 2016-11-07 Martin Liska <mliska@suse.cz>
5548 * asan.c (enum asan_check_flags): Move the enum to header file.
5549 (asan_init_shadow_ptr_types): Make type creation more generic.
5550 (shadow_mem_size): New function.
5551 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
5552 Rewritten stack unpoisoning code.
5553 (build_shadow_mem_access): Add new argument return_address.
5554 (instrument_derefs): Instrument local variables if use after scope
5555 sanitization is enabled.
5556 (asan_store_shadow_bytes): New function.
5557 (asan_expand_mark_ifn): Likewise.
5558 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
5559 * asan.h (enum asan_mark_flags): Moved here from asan.c
5560 (asan_protect_stack_decl): Protect all declaration that need
5562 (asan_sanitize_use_after_scope): New function.
5563 (asan_no_sanitize_address_p): Likewise.
5564 * cfgexpand.c (partition_stack_vars): Consider
5565 asan_sanitize_use_after_scope in condition.
5566 (expand_stack_vars): Likewise.
5567 * common.opt (-fsanitize-address-use-after-scope): New option.
5568 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
5569 Explain the parameter.
5570 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
5571 * gimplify.c (build_asan_poison_call_expr): New function.
5572 (asan_poison_variable): Likewise.
5573 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
5574 variables that have address taken.
5575 (gimplify_decl_expr): Likewise.
5576 (gimplify_target_expr): Likewise for C++ temporaries.
5577 (sort_by_decl_uid): New function.
5578 (gimplify_expr): Unpoison all variables for a label we can jump
5579 from outside of a scope.
5580 (gimplify_switch_expr): Unpoison variables defined in the switch
5582 (gimplify_function_tree): Clear asan_poisoned_variables.
5583 (asan_poison_variables): New function.
5584 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
5585 * internal-fn.c (expand_ASAN_MARK): New function.
5586 * internal-fn.def (ASAN_MARK): Declare.
5587 * opts.c (finish_options): Handle -fstack-reuse if
5588 -fsanitize-address-use-after-scope is enabled.
5589 (common_handle_option): Enable address sanitization if
5590 -fsanitize-address-use-after-scope is enabled.
5591 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
5593 * params.h: Likewise.
5594 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
5595 * sanitizer.def: Define __asan_poison_stack_memory and
5596 __asan_unpoison_stack_memory functions.
5597 * asan.c (asan_mark_poison_p): New function.
5598 (transform_statements): Handle asan_mark_poison_p calls.
5599 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
5601 2016-11-07 Tamar Christina <tamar.christina@arm.com>
5604 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
5606 2016-11-07 Martin Liska <mliska@suse.cz>
5608 * tree-profile.c (gimple_gen_time_profiler): Set proper type
5609 to time_profiler_counter_ptr.
5611 2016-11-07 Richard Biener <rguenther@suse.de>
5613 PR tree-optimization/37150
5614 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
5616 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
5617 (vect_analyze_slp_cost_1): Account for the real number of
5618 permutations emitted and for dead loads.
5619 (vect_transform_slp_perm_load): Add n_perms parameter counting
5620 the number of emitted permutations.
5621 * tree-vect-stmts.c (vectorizable_load): Adjust.
5623 2016-11-07 Richard Biener <rguenther@suse.de>
5625 PR tree-optimization/78189
5626 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
5627 alignment computation.
5629 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
5631 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
5633 2016-11-05 Martin Sebor <msebor@redhat.com>
5635 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
5638 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
5642 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
5644 2016-11-04 Jakub Jelinek <jakub@redhat.com>
5647 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
5648 doesn't have rtl set.
5650 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5652 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
5653 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
5654 rs6000_gimple_fold_builtin.
5655 (rs6000_gimple_fold_builtin): New function. Add handling for
5656 early expansion of vector addition builtins.
5658 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
5660 * expr.h (copy_blkmode_from_reg): Delete.
5661 * expr.c (copy_blkmode_from_reg): Make static.
5663 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
5665 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
5666 * combine.c (LOAD_EXTEND_OP): Delete.
5667 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
5668 * cse.c (LOAD_EXTEND_OP): Delete.
5669 * fold-const.c (LOAD_EXTEND_OP): Likewise.
5670 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
5671 * postreload.c (LOAD_EXTEND_OP): Delete.
5672 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
5673 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
5674 (find_reloads): Likewise.
5675 * reload1.c (eliminate_regs_1): Likewise.
5676 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
5677 (num_sign_bit_copies1): Likewise.
5679 2016-11-04 David Malcolm <dmalcolm@redhat.com>
5681 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
5682 (selftest::ix86_test_dumping_hard_regs): New function.
5683 (selftest::ix86_run_selftests): New function.
5684 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
5685 selftest::ix86_run_selftests.
5686 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
5687 * doc/tm.texi: Regenerate
5688 * selftest-rtl.h: New file.
5689 * rtl-tests.c: Include "selftest-rtl.h".
5690 (selftest::assert_rtl_dump_eq): Make non-static.
5691 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
5692 (selftest::test_dumping_regs): Update comment.
5693 * selftest-run-tests.c: Include "target.h".
5694 (selftest::run_tests): If non-NULL, call
5695 targetm.run_target_selftests.
5696 * target.def (run_target_selftests): New hook.
5698 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5700 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
5701 representative core for this architecture.
5702 * config/arm/arm-cores.def (cortex-m33): Define new processor.
5703 * config/arm/arm-tables.opt: Regenerate.
5704 * config/arm/arm-tune.md: Likewise.
5705 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
5706 valid -mcpu options.
5707 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
5709 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5711 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
5712 representative core for this architecture.
5713 * config/arm/arm-cores.def (cortex-m23): Define new processor.
5714 * config/arm/arm-tables.opt: Regenerate.
5715 * config/arm/arm-tune.md: Likewise.
5716 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
5717 this tuning parameters apply to in the comment.
5718 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
5719 valid -mcpu options.
5720 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
5722 2016-11-04 Bin Cheng <bin.cheng@arm.com>
5724 * fold-const.c (fold_cond_expr_with_comparison): Remove call
5725 to pedantic_non_lvalue_loc. Remove useless code for lvalue
5726 where cond_expr can't be a lvalue.
5728 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
5730 * config/arc/arc.c (arc_process_double_reg_moves): Use
5732 * config/arc/arc.md (movsi_insn): Disable unsupported move
5733 instructions for ARCv2 cores.
5734 (movdi): Use prepare_move_operands.
5735 (movsf, movdf): Use move_dest_operand predicate.
5736 * config/arc/constraints.md (Chs): Enable when barrel shifter is
5738 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
5739 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
5741 (dexcl_3op_peep2_insn_nores): Likewise.
5742 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
5743 (LINK_COMMAND_SPEC): Remove.
5745 2016-11-04 Richard Biener <rguenther@suse.de>
5748 * loop-invariant.c (find_exits): Record entering inner
5749 loops as possibly exiting to handle infinite sub-loops.
5750 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
5751 (fill_always_executed_in_1): Honor infinite child loops.
5753 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5756 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
5757 has already been adjusted for endianness, so don't adjust it any
5761 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
5762 ICmode unless we have standard PowerPC floating point.
5763 * config/rs6000/rs6000.md (FP iterator): Likewise.
5764 (FMOVE128 iterator): Likewise.
5766 2016-11-03 Jakub Jelinek <jakub@redhat.com>
5767 Alexandre Oliva <aoliva@redhat.com>
5768 Jason Merrill <jason@redhat.com>
5772 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
5774 * langhooks.c (lhd_type_dwarf_attribute): New function.
5775 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
5776 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
5777 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
5778 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
5779 (check_qualified_type, check_aligned_type): Call it.
5780 * dwarf2out.c (modified_type_die): Don't use type_main_variant
5781 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
5782 check_base_type and check_lang_type.
5783 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
5784 return early. For pointer-to-data-member add DW_AT_use_location
5786 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
5788 (gen_type_die_with_usage): Don't use type_main_variant
5789 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
5790 check_base_type and check_lang_type. Formatting fixes. Call
5791 get_debug_type langhook.
5793 2016-11-03 Jason Merrill <jason@redhat.com>
5795 * tree.c (check_lang_type): New.
5796 (check_qualified_type): Use it.
5797 (check_aligned_type): Use it.
5798 * tree.h: Declare it.
5800 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
5802 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
5803 (arm*-freebsd*): Likewise.
5804 (arm*-*-netbsdelf*): Likewise.
5805 (arm*-*-linux*): Likewise.
5806 (arm*-*-uclinux*eabi*): Likewise.
5807 (arm*-*-phoenix*): Likewise.
5808 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
5809 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
5810 specified. Default to arm6 if target_cpu_cname is not set.
5811 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
5812 default cpu has been correctly configured.
5813 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
5814 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
5815 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
5816 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
5817 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
5818 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
5819 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
5821 2016-11-03 Jiong Wang <jiong.wang@arm.com>
5823 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
5824 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
5825 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
5826 (output_cfa_loc): Support DW_CFA_val_expression.
5827 (output_cfa_loc_raw): Likewise.
5828 (output_cfi): Likewise.
5829 (output_cfi_directive): Likewise.
5830 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
5831 (dw_cfi_oprnd2_desc): Likewise.
5832 (mem_loc_descriptor): Recognize new pattern generated for value
5835 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
5837 PR rtl-optimization/78186
5838 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
5839 well, when converting to IOR.
5841 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
5843 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
5844 (vec_interleave_highv8qi): Likewise.
5846 2016-11-03 Martin Liska <mliska@suse.cz>
5848 * profile.c (instrument_values): Fix coding style.
5849 (branch_prob): Use renamed function.
5850 * tree-profile.c (init_ic_make_global_vars): Likewise.
5851 (gimple_init_edge_profiler): Rename to
5852 gimple_init_gcov_profiler.
5853 tree_time_profiler_counter variable declaration.
5854 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
5856 * value-prof.h: Remove an argument.
5858 2016-11-03 Richard Biener <rguenther@suse.de>
5860 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
5861 symtab_node::get_create.
5863 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5865 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
5866 Move comments into more natural position.
5868 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
5870 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
5871 (PTRDIFF_TYPE): Define as int.
5873 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5875 * ccmp.c (expand_ccmp_expr_1): Adjust.
5876 (expand_ccmp_expr): Likewise.
5877 (expand_ccmp_next): Likewise.
5878 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
5879 (aarch64_gen_ccmp_first): Likewise.
5880 * doc/tm.texi: Regenerate.
5881 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
5882 (gen_ccmp_next): Likewise.
5884 2016-11-03 Bin Cheng <bin.cheng@arm.com>
5886 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
5887 (vect_is_simple_reduction): Swap cond_reduction by inversion.
5889 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
5891 * config/i386/i386.c (ix86_init_libfuncs): New. Call
5892 darwin_rename_builtins here.
5893 (ix86_expand_divmod_libfunc): New.
5894 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
5895 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
5897 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5898 Nathan Sidwell <nathan@acm.org>
5900 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
5902 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
5904 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
5906 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
5907 to format MODE_INT and MODE_PARTIAL_INT literals.
5909 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
5912 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
5913 NULL if TARGET_SPE_ABI.
5915 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5917 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
5918 clear padding bits even when they're less than a byte.
5920 2016-11-02 Richard Biener <rguenther@suse.de>
5922 * gimple-ssa-store-merging.c: Include gimplify-me.h.
5923 (imm_store_chain_info::output_merged_stores): Force base_addr
5924 to be proper GIMPLE for a MEM_REF address.
5925 (pass_store_merging::execute): Restrict negative bitpos
5926 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
5927 check. Take into account non-NULL_TREE offset if the base
5928 is already addressable.
5930 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
5932 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
5934 (aarch64_be_crypto_sha1hv4si): New pattern.
5936 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
5938 * config/aarch64/aarch64.md (add<mode>3): Remove
5939 redundant code. Don't split frame based additions.
5941 2016-11-02 Richard Biener <rguenther@suse.de>
5943 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
5944 redundant val and dest members.
5945 (store_immediate_info::store_immediate_info): Adjust.
5946 (merged_store_group::merged_store_group): Adjust.
5947 (merged_store_group::apply_stores): Likewise.
5948 (struct imm_store_chain_info): Add base_addr field.
5949 (imm_store_chain_info::imm_store_chain_info): New constructor.
5950 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
5951 (imm_store_chain_info::output_merged_store): Likewise. Use
5952 addr_base which is already the address.
5953 (imm_store_chain_info::output_merged_stores): Likewise.
5954 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
5955 imm_store_chain_info instead of base. Fix alias check.
5956 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
5957 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
5958 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
5959 use the address of the base and adjust for other changes.
5961 2016-11-02 Martin Liska <mliska@suse.cz>
5963 * fold-const-call.c (host_size_t_cst_p): Test whether
5964 t is convertible to size_t.
5966 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5968 PR tree-optimization/78170
5969 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
5970 introduced by native_encode_expr on little-endian as well.
5972 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5974 PR tree-optimization/78162
5975 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
5978 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5980 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
5982 (aarch64_next_callee_save): Likewise.
5983 (aarch64_pushwb_single_reg): Likewise.
5984 (aarch64_gen_storewb_pair): Likewise.
5985 (aarch64_push_regs): Likewise.
5986 (aarch64_gen_loadwb_pair): Likewise.
5987 (aarch64_pop_regs): Likewise.
5988 (aarch64_gen_store_pair): Likewise.
5989 (aarch64_gen_load_pair): Likewise.
5990 (aarch64_save_callee_saves): Likewise.
5991 (aarch64_restore_callee_saves): Likewise.
5993 2016-11-02 Richard Biener <rguenther@suse.de>
5995 PR tree-optimization/78035
5996 PR tree-optimization/77964
5997 * gimple-pretty-print.c (pp_points_to_solution): Print
5998 vars_contains_interposable.
5999 * tree-ssa-alias.c: Include varasm.h.
6000 (ptrs_compare_unequal): Check vars_contains_interposable and
6001 decl_binds_to_current_def_p.
6002 (dump_points_to_solution): Dump vars_contains_interposable.
6003 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
6005 * tree-ssa-structalias.c: Include varasm.h.
6006 (set_uids_in_ptset): Record whether vars contains a
6007 not decl_binds_to_current_def_p variable in vars_contains_interposable.
6008 (ipa_escaped_pt): Update initializer.
6010 2016-11-02 Richard Biener <rguenther@suse.de>
6012 PR tree-optimization/78047
6013 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
6014 fake field at offset zero conservatively regarding to may_have_pointers.
6016 2016-11-02 Richard Biener <rguenther@suse.de>
6018 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
6019 infer_value_range on stmt ops and update value-ranges.
6020 Dump visited stmts and blocks.
6021 (evrp_dom_walker::push_value_range): Dump changes.
6022 (evrp_dom_walker::pop_value_range): Likewise.
6023 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
6025 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6027 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
6029 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
6031 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6033 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
6034 and adjust for that.
6035 * cfgrtl.h (delete_insn_chain): Adjust prototype.
6037 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6039 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
6041 (transcode_memory_rtx): Likewise.
6042 (move_to_acc): Likewise.
6043 (move_from_acc): Likewise.
6044 (move_acc_to_reg): Likewise.
6045 (move_to_x): Likewise.
6046 (move_to_hl): Likewise.
6047 (move_to_de): Likewise.
6048 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
6049 (rs6000_emit_savres_rtx): Likewise.
6050 (rs6000_emit_prologue): Likewise.
6051 * reorg.c (update_reg_unused_notes): Likewise.
6052 * rtl.h (remove_note): Adjust prototype.
6053 * rtlanal.c (remove_note): Make argument type rtx_insn *.
6055 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6057 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
6058 variables so some can be rtx_insn *.
6059 (alpha_emit_xfloating_libcall): Likewise.
6060 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
6061 (mips_legitimize_tls_address): Likewise.
6062 * optabs.c (expand_binop): Likewise.
6063 * reload1.c (gen_reload): Likewise.
6065 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6067 * reorg.c (relax_delay_slots): Split up the trial variable.
6069 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6071 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
6072 of variables rtx_insn *.
6073 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
6074 (legitimize_tls_address): Likewise.
6075 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6076 (bfin_gen_bundles): Likewise.
6077 * config/c6x/c6x.c (reorg_split_calls): Likewise.
6078 (c6x_reorg): Likewise.
6079 * config/frv/frv.c (frv_reorder_packet): Likewise.
6080 * config/i386/i386.c (ix86_split_idivmod): Likewise.
6081 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
6082 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
6083 * config/mn10300/mn10300.c: Likewise.
6084 * config/rl78/rl78.c: Likewise.
6085 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
6086 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
6087 (sh_expand_cmpnstr): Likewise.
6088 (sh_expand_strlen): Likewise.
6089 (sh_expand_setmem): Likewise.
6090 * config/sh/sh.md: Likewise.
6091 * emit-rtl.c (emit_pattern_before): Likewise.
6092 * except.c: Likewise.
6093 * final.c: Likewise.
6096 2016-11-01 Jason Merrill <jason@redhat.com>
6098 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
6099 a COND_EXPR with constant condition.
6101 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6103 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
6104 and its initialization.
6106 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6108 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
6111 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6113 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
6114 argument, don't call add_linkage_name if it is true.
6115 (gen_variable_die): For C++ inline static data members, consider the
6116 initial call when old_die is NULL to be declaration and call
6117 add_name_and_src_coords_attributes in that case with true as
6118 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
6119 (gen_member_die): For C++ inline static data members, emit a
6120 definition DIE right away in DW_TAG_compile_unit context.
6122 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
6125 * config/pa/pa.md: Add new shift/add patterns to handle
6126 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
6128 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
6130 * config/xtensa/xtensa-protos.h
6131 (xtensa_use_return_instruction_p): New prototype.
6132 * config/xtensa/xtensa.c (xtensa_current_frame_size,
6133 xtensa_callee_save_size): Remove.
6134 (struct machine_function): Add new fields: current_frame_size,
6135 callee_save_size, frame_laid_out and epilogue_done.
6136 (compute_frame_size, xtensa_expand_prologue,
6137 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
6138 cfun->machine->callee_save_size and xtensa_current_frame_size
6139 with cfun->machine->current_frame_size.
6140 (compute_frame_size): Update cfun->machine->frame_laid_out and
6141 don't update frame layout after reload completion.
6142 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
6143 instead of zeroing xtensa_current_frame_size.
6144 (xtensa_use_return_instruction_p): New function.
6145 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
6147 (INITIAL_ELIMINATION_OFFSET): Use return value of
6148 compute_frame_size instead of xtensa_current_frame_size value.
6149 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
6150 function xtensa_use_return_instruction_p instead of inline code.
6152 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6154 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
6155 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
6156 * dwarf2out.c (rnglist_idx): New variable.
6157 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
6158 (DEBUG_RNGLISTS_SECTION): Define.
6159 (ranges_base_label): New variable.
6160 (size_of_die) <case dw_val_class_range_list>: If using
6161 DW_FORM_rnglistx, count size of uleb128 of range list index.
6162 (value_format) <case dw_val_class_range_list>: For
6163 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
6164 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
6165 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
6166 (add_ranges_num): Remove useless prototype. Don't multiply
6167 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
6168 for new fields added to dw_ranges struct.
6169 (add_ranges): Add maybe_new_sec argument and pass it
6170 through to add_ranges_num.
6171 (note_rnglist_head): New function.
6172 (add_ranges_by_labels): Pass true as maybe_new_sec to
6173 add_ranges_num, call note_rnglist_head on the head of the list.
6174 (output_ranges): Add function comment. Switch to
6175 .debug_ranges section here and emit .Ldebug_ranges0 label.
6176 (index_rnglists, output_rnglists): New functions.
6177 (gen_subprogram_die): Formatting fixes.
6178 (add_high_low_attributes): Don't divide offsets
6179 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
6180 first list element or when pointing into the middle of
6181 a list. Pass true as second argument to add_ranges on the
6182 first block fragment after cold/hot section switch.
6183 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
6184 section instead of .debug_ranges. Initialize
6185 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
6186 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
6187 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
6188 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
6189 Call output_rnglists for -gdwarf-5.
6190 (dwarf2out_c_finalize): Clear rnglist_idx.
6192 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
6194 * combine.c (simplify_compare_const): Add gcc_fallthrough.
6196 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
6197 Tamar Christina <tamar.christina@arm.com>
6199 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
6200 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
6201 (vmaxnmq_f32): Likewise.
6202 (vminnm_f32): Likewise.
6203 (vminnmq_f32): Likewise.
6204 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
6206 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
6209 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
6211 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
6212 binary floating point types supported by the hardware except for
6214 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
6215 vector instruction for optimizing extracting a SImode from a
6216 V4SImode vector and converting it to floating point.
6217 (vsx_xvcvuxwdp_df): Likewise.
6218 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
6219 registers to be any VSX register. Move stores to the end of the
6221 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
6222 to optimize extracting a SImode from a V4SImode vector and
6223 converting it to a binary floating point type supported by the
6224 hardware. Use the vector converts instead of extracting the
6225 element, sign extending it, and then converting it to double.
6226 Other floating point types than double first convert to double,
6227 then the double is converted to that type.
6228 (vsx_extract_si_<uns>float_<mode>): Likewise.
6230 2016-10-31 Andrew Pinski <apinski@cavium.com>
6232 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
6233 Rewrite handling of part num to handle the case where
6234 multiple implementers share the same part num.
6236 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6237 Jakub Jelinek <jakub@redhat.com>
6239 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
6240 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
6242 2016-10-31 Jakub Jelinek <jakub@redhat.com>
6244 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
6245 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
6246 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
6247 (is_cu_die, is_unit_die): Likewise.
6248 (should_move_die_to_comdat, break_out_comdat_types): Adjust
6249 comments for DWARF5 DW_UT_type units.
6250 (output_compilation_unit_header): Add UT argument, output
6251 start of DWARF5 .debug_info section header.
6252 (output_comp_unit): Add dwo_id argument. Adjust
6253 output_compilation_unit_header caller, for DW_UT_split_compile
6254 emit dwo_id field, otherwise padding1. Emit padding2 field.
6255 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
6256 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
6257 (output_skeleton_debug_sections): Add dwo_id argument, for
6258 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
6259 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
6260 DW_UT_type or DW_UT_split_type units rather than .debug_types.
6261 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
6262 DW_TAG_compile_unit for skeleton unit die. Don't add
6263 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
6264 address to output_comp_unit and output_skeleton_debug_sections.
6266 * dwarf2out.c (debug_line_str_section): New variable.
6267 (debug_line_str_hash): Likewise.
6268 (DEBUG_LINE_STR_SECTION): Define.
6269 (set_indirect_string): Handle DW_FORM_line_strp like
6271 (find_string_form): Fix up formatting.
6272 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
6274 (output_die): Handle DW_FORM_line_strp.
6275 (DWARF5_USE_DEBUG_LINE_STR): Define.
6276 (output_line_string): New function.
6277 (output_file_names): Add -gdwarf-5 support.
6278 (output_line_info): Likewise.
6279 (init_sections_and_labels): Initialize debug_line_str_section.
6280 (output_indirect_string): Change 2nd argument from void *
6281 to enum dwarf_form form, compare with form rather than
6283 (output_indirect_strings): Pass DW_FORM_strp to
6284 output_indirect_string traversion.
6285 (dwarf2out_finish): Output .debug_line_str strings.
6286 (dwarf2out_c_finalize): Clear debug_line_str_section and
6287 debug_line_str_hash.
6289 2016-10-31 Tom Tromey <tom@tromey.com>
6292 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
6293 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
6294 DW_OP_GNU_push_tls_address case.
6295 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
6297 2016-10-31 Jakub Jelinek <jakub@redhat.com>
6299 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
6300 for frame_offset_rel bit.
6301 (struct array_descr_info): Add rank field.
6302 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
6303 and placeholder_seen fields.
6304 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
6305 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
6306 DW_OP_pick 1 into DW_OP_over.
6307 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
6308 gen_variant_part): Clear placeholder_{arg,seen}.
6309 (loc_list_from_tree_1): Drop const from context argument.
6310 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
6311 (loc_list_for_address_of_addr_expr_of_indirect_ref,
6312 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
6314 (add_scalar_info): Drop const from context argument. Handle
6315 context->placeholder_arg.
6316 (add_bound_info): Drop const from context argument.
6317 (gen_descr_array_type_die): Drop const from ctx variable.
6318 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
6319 attribute and use a single DW_TAG_generic_subrange instead of
6320 7 DW_TAG_subrange_type for assumed rank arrays.
6322 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
6323 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
6324 from bool to 1-bit uchar bitfield. Add num_assigned and
6325 offset_emitted bitfields.
6326 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
6327 for dw_val_class_lineptr and dw_val_class_macptr. Handle
6328 dw_val_class_loclistsptr.
6329 (new_addr_loc_descr): Fix up formatting.
6330 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
6331 (add_AT_low_high_pc): Fix up formatting.
6332 (add_AT_loclistsptr): New function.
6333 (AT_lbl): Allow dw_val_class_loclistsptr.
6334 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
6335 Handle dw_val_class_loclistsptr.
6336 (loc_list_idx): New variable.
6337 (output_loclists_offsets, assign_location_list_indexes): New
6339 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
6340 add size_of_uleb128 of the index. Drop never used
6341 dwarf_split_debug_info AT_index handling. Handle
6342 dw_val_class_loclistsptr.
6343 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
6344 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
6345 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
6346 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
6347 DW_FORM_loclistx indexes.
6348 (output_attr_index_or_value): Fix up formatting. Don't handle
6349 dw_val_class_loc_list here.
6350 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
6351 For dw_val_class_loc_list call output_loc_list_offset rather than
6352 output_attr_index_or_value.
6353 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
6354 or .debug_loclists.dwo section name for debug_loc_section.
6355 (resolve_addr_in_expr): Formatting fix.
6356 (index_location_lists): Likewise.
6357 (dwarf2out_finish): If there are any location lists, for
6358 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
6359 index_location_lists only if have_location_lists. Call
6360 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
6361 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
6362 -gsplit-dwarf also emit offset table.
6364 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
6365 (size_of_die, value_format, output_die): Use
6366 DW_FORM_data16 for 128-bit dw_val_class_const_double or
6367 dw_val_class_wide_int.
6369 * dwarf2out.c (dwarf_op): Renamed to ...
6370 (dwarf_OP): ... this.
6371 (convert_descriptor_to_mode, scompare_loc_descriptor,
6372 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6373 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
6375 (dwarf_AT, dwarf_TAG): New functions.
6376 (check_die): Disallow DW_AT_call_all_calls next to
6377 DW_AT_GNU_all_call_sites.
6378 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
6379 and attributes instead of the corresponding GNU tag and attributes.
6380 (gen_subprogram_die): Likewise. Emit call site information even
6381 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
6382 DW_AT_defaulted in comment.
6383 (resolve_addr): Handle DW_AT_call_origin attribute on
6384 DW_TAG_call_site DIE like DW_AT_abstract_origin on
6385 DW_TAG_GNU_call_site DIE.
6387 * dwarf2out.c (dwarf_op): New function.
6388 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
6389 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
6390 (output_loc_operands, output_loc_operands_raw): Likewise.
6391 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
6392 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
6393 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
6394 if dwarf_version < 5.
6395 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
6397 (scompare_loc_descriptor, ucompare_loc_descriptor,
6398 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6399 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
6400 optimize_location_into_implicit_ptr): Likewise. Only punt for
6401 !dwarf_strict if dwarf_version < 5.
6402 (string_cst_pool_decl): Adjust comment.
6403 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
6405 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
6406 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6407 (struct dw_val_node): Add val_file_implicit field.
6408 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
6409 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
6410 output_die): Handle dw_val_class_const_implicit,
6411 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6412 (abbrev_die_table): Change into va_gc vec.
6413 (abbrev_die_table_allocated, abbrev_die_table_in_use,
6414 ABBREV_DIE_TABLE_INCREMENT): Remove.
6415 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
6416 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
6418 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
6419 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
6421 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
6423 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
6425 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
6427 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
6428 unit. Call optimize_abbrev_table.
6429 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
6430 abbrev_die_table being a va_gc vec.
6432 PR tree-optimization/77860
6433 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
6434 also integral complex and vector constants.
6436 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
6437 optimize_macinfo_range, save_macinfo_strings): Replace
6438 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
6439 (output_macinfo): Likewise. Emit .debug_macro* rather than
6440 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
6441 (init_sections_and_labels): Use .debug_macro* labels rather than
6442 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
6443 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
6444 or DW_AT_GNU_macros for -gdwarf-5.
6446 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
6448 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
6450 2016-09-11 Le-Chun Wu <lcwu@google.com>
6451 Mark Wielaard <mjw@redhat.com>
6453 * common.opt (Wshadow=global): New option. Default for -Wshadow.
6454 (Wshadow=local): New option.
6455 (Wshadow-local): Hidden alias for -Wshadow=local.
6456 (Wshadow=compatible-local): New option.
6457 (Wshadow-compatible-local): Hidden alias for
6458 -Wshadow=compatible-local.
6459 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
6460 Wshadow=compatible-local.
6462 2016-10-31 Bin Cheng <bin.cheng@arm.com>
6464 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
6465 Check slp defs for COND_EXPR by swapping/inverting operands if the
6466 new parameter SWAP indicates so.
6467 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
6468 is isomorphic to the first stmt via swapping/inverting. Store swap
6469 information in the new parameter SWAP.
6470 (vect_build_slp_tree): New local array SWAP and pass it to function
6471 vect_build_slp_tree_1. Cleanup result handling code for function
6472 call to vect_get_and_check_slp_defs. Skip operand swapping if the
6473 order of operands has been fixed as indicated by SWAP[i].
6475 2016-10-31 Bin Cheng <bin.cheng@arm.com>
6477 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
6478 unnecessary data dependence check after visited store stmt.
6480 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6482 PR tree-optimization/71915
6483 PR tree-optimization/71490
6484 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
6486 (find_basis_for_base_expr): Require stride types to match when
6488 (alloc_cand_and_find_basis): Record the stride type.
6489 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
6490 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
6491 the expressions having those types.
6492 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
6493 (create_mul_ssa_cand): Likewise.
6494 (create_mul_imm_cand): Likewise.
6495 (create_add_ssa_cand): Likewise.
6496 (create_add_imm_cand): Likewise.
6497 (legal_cast_p_1): Change interface to accept types rather than the
6498 expressions having those types.
6499 (legal_cast_p): Pass types to legal_cast_p_1.
6500 (slsr_process_cast): Pass stride type to
6501 alloc_cand_and_find_basis.
6502 (slsr_process_copy): Likewise.
6503 (dump_candidate): Display stride type when a cast exists.
6504 (create_add_on_incoming_edge): Introduce a cast when necessary for
6506 (analyze_increments): Change the code checking for invalid casts
6507 to rely on the stride type, and update the documentation and
6508 example. Change the code checking for pointer multiplies to rely
6510 (insert_initializers): Introduce a cast when necessary for the
6511 stride type. Use the stride type for the type of the initializer.
6513 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6515 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
6517 2016-10-29 Jakub Jelinek <jakub@redhat.com>
6519 PR rtl-optimization/77919
6520 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
6521 into memory if both modes are complex and their inner modes have the
6522 same precision. If the two modes are different complex modes, convert
6523 each part separately and generate a new CONCAT.
6525 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
6527 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
6529 2016-10-29 Jakub Jelinek <jakub@redhat.com>
6532 * gimple-ssa-store-merging.c
6533 (imm_store_chain_info::output_merged_store): Use build_aligned_type
6534 instead of SET_TYPE_ALIGN on shared integral type.
6536 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
6538 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
6539 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
6542 2016-10-28 Jeff Law <law@redhat.com>
6544 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
6545 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
6547 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6549 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
6551 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6553 * target.def (min_arithmetic_precision): New hook.
6554 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
6555 * doc/tm.texi: Regenerate.
6556 * internal-fn.c (expand_arith_overflow): Adjust handling of target
6557 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
6558 * targhooks.c (default_min_arithmetic_precision): New function.
6559 * targhooks.h (default_min_arithmetic_precision): Declare.
6560 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
6561 (sparc_min_arithmetic_precision): New function.
6563 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
6566 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
6567 Swap commutative operands in new RTL if needed. Handle zero_ext
6569 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
6572 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6573 Kugan Vivekanandarajah <kuganv@linaro.org>
6574 Jim Wilson <jim.wilson@linaro.org>
6576 PR tree-optimization/43721
6577 * target.def: New hook expand_divmod_libfunc.
6578 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
6579 * doc/tm.texi: Regenerate.
6580 * internal-fn.def: Add new entry for DIVMOD ifn.
6581 * internal-fn.c (expand_DIVMOD): New.
6582 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
6584 (widen_mul_stats): Add new field divmod_calls_inserted.
6585 (target_supports_divmod_p): New.
6586 (divmod_candidate_p): Likewise.
6587 (convert_to_divmod): Likewise.
6588 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
6589 renumber_gimple_stmt_uids at beginning of function. Call
6590 convert_to_divmod and record stats for divmod.
6591 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
6592 TARGET_EXPAND_DIVMOD_LIBFUNC.
6593 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
6596 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6597 Segher Boessenkool <segher@kernel.crashing.org>
6599 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
6600 swapping the arms of the branch.
6601 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
6602 sequence for the generic signed-signed-signed case.
6604 2016-10-28 Jeff Law <law@redhat.com>
6606 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
6608 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
6610 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
6612 PR rtl-optimization/78029
6613 * function.c (prologue_contains, epilogue_contains): New functions.
6614 (record_prologue_seq, record_epilogue_seq): New functions.
6615 * function.h (prologue_contains, epilogue_contains,
6616 record_prologue_seq, record_epilogue_seq): New declarations.
6617 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
6618 mixing prologue and epilogue insns.
6619 (init_deps): Initialize the new fields in struct deps_desc.
6620 * sched-int.h (struct deps_desc): New fields last_prologue,
6621 last_epilogue, and last_logue_was_epilogue.
6622 * shrink-wrap.c (emit_common_heads_for_components): Record all
6623 emitted prologue and epilogue insns.
6624 (emit_common_tails_for_components): Ditto.
6625 (insert_prologue_epilogue_for_components): Ditto.
6627 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6630 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
6631 * common.opt (fstore-merging): New Optimization option.
6632 * opts.c (default_options_table): Add entry for
6633 OPT_ftree_store_merging.
6634 * fold-const.h (can_native_encode_type_p): Declare prototype.
6635 * fold-const.c (can_native_encode_type_p): Define.
6636 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
6637 (PARAM_MAX_STORES_TO_MERGE): Likewise.
6638 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
6639 * passes.def: Insert pass_tree_store_merging.
6640 * tree-pass.h (make_pass_store_merging): Declare extern
6642 * gimple-ssa-store-merging.c: New file.
6643 * doc/invoke.texi (Optimization Options): Document
6645 (--param documentation): Document store-merging-allow-unaligned
6646 and max-stores-to-merge.
6648 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
6651 * gimplify.c (gimplify_init_constructor): Move emit of constructor
6652 assignment to earlier in the if/else logic.
6654 2016-10-28 Richard Biener <rguenther@suse.de>
6658 * fold-const.c (make_bit_field_ref): Only adjust alias set
6659 when the original alias set was zero.
6661 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6663 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
6664 (s390_adjust_loops): New function.
6665 (s390_reorg): Invoke s390_adjust_loops.
6666 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
6667 ("osc_break"): New insn definition.
6669 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6671 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
6672 * config.gcc: Support alternate archXX cpu levels with
6673 --with-arch= and --with-tune=.
6674 * config/s390/linux.h: Translate new archXX cpu levels to the
6675 original names when calling GAS.
6676 * config/s390/tpf.h: Likewise.
6677 * doc/invoke.texi: Document the alternate cpu level names.
6679 2016-10-28 Jakub Jelinek <jakub@redhat.com>
6681 PR rtl-optimization/77919
6682 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
6683 MEM if mode1 is not a complex mode.
6685 PR rtl-optimization/78132
6686 * ree.c (combine_reaching_defs): Give up if copy_needed and
6687 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
6689 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
6691 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
6693 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
6695 * config/rs6000/constraints.md (wH constraint): Add new
6696 constraints for allowing 32-bit integers (and eventually 8/16-bit
6697 integers) into the vector registers.
6698 (wI constraint): Likewise.
6699 (wJ constraint): Likewise.
6700 (wK constraint): Likewise.
6701 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
6702 -mvsx-small-integer as a default option for ISA 2.07
6704 (POWERPC_MASKS): Likewise.
6705 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
6706 switch to turn off small integer support in vector registers.
6707 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
6708 test for -mupper-regs-di, since it is already done with the
6709 reg_add[mode].scalar_in_vsx_p. Add support for the switch
6710 -mvsx-small-integer.
6711 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
6713 (rs6000_setup_reg_addr_masks): Likewise.
6714 (rs6000_init_hard_regno_mode_ok): Likewise.
6715 (rs6000_option_override_internal): Add consistency checks for
6716 -mvsx-small-integer.
6717 (rs6000_secondary_reload_simple_move): SImode is a simple move if
6718 -mvsx-small-integer.
6719 (rs6000_secondary_reload): Use std::swap.
6720 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
6721 VSX_REGS for small integers in vector registers, since there is no
6722 D-FORM address mode for such types.
6723 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
6724 (rs6000_opt_masks): Add -mvsx-small-integer.
6725 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
6727 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
6728 extracts can be done on ISA 2.07.
6729 (vsx_extract_<mode>): Add support for small integers in vsx
6731 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
6732 longer support V4SImode in this pattern.
6733 (vsx_extract_si): New insn to support extraction of SImode in ISA
6734 2.07 using either xxextractuw or vspltw.
6735 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
6736 longer support V4SImode in this pattern.
6737 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
6738 wJ, and wK constraints.
6739 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
6740 storing SDmode with VSX instructions.
6741 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
6742 GPR load and before the FPR and VSX loads. Remove ??, ! from the
6743 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
6744 small integers in vector registers.
6745 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
6746 load and before the FPR and VSX loads. Remove ??, ! from the
6747 constraints. Add VEXTSW2D support for small integers in vector
6749 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
6750 integers in vector registers.
6751 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
6752 move instead of using an UNSPEC.
6753 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
6754 integers in vector registers.
6755 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
6756 move instead of using an UNSPEC.
6757 (movsi_internal1): Add support for -mvsx-small-integer. Align
6758 columns so that it is more readable.
6759 (SImode splitter for ISA 3.0 constants): Add splitter for
6760 -128..127 constants that can easily be constructed on ISA 3.0.
6761 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
6764 2016-10-27 Jakub Jelinek <jakub@redhat.com>
6767 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
6770 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
6772 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
6773 PIC_OFFSET_TABLE_REGNUM twice.
6775 2016-10-27 Bin Cheng <bin.cheng@arm.com>
6777 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
6778 support for constant operand for OP.
6780 2016-10-27 Jakub Jelinek <jakub@redhat.com>
6782 * dwarf2out.c (gen_member_die): Only reparent_child instead of
6783 splice_child_die if child doesn't have DW_AT_specification attribute.
6785 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
6787 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
6788 (TARGET_HAVE_LDREXBH): Likewise.
6789 (TARGET_HAVE_LDACQ): Likewise.
6791 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
6793 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
6794 logic to to decide whether to copy over old value to register for new
6796 * config/arm/sync.md: Add comments explaning why mode and code
6797 attribute are not defined in iterators.md
6798 (thumb1_atomic_op_str): New code attribute.
6799 (thumb1_atomic_newop_str): Likewise.
6800 (thumb1_atomic_fetch_op_str): Likewise.
6801 (thumb1_atomic_fetch_newop_str): Likewise.
6802 (thumb1_atomic_fetch_oldop_str): Likewise.
6803 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
6804 mirror the more restrictive constraints of the Thumb-1 insns after
6805 split compared to Thumb-2 counterpart insns.
6806 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
6807 in sync with non atomic version.
6808 (atomic_nand<mode>): Likewise.
6809 (atomic_fetch_<sync_optab><mode>): Likewise.
6810 (atomic_fetch_nand<mode>): Likewise.
6811 (atomic_<sync_optab>_fetch<mode>): Likewise.
6812 (atomic_nand_fetch<mode>): Likewise.
6813 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
6814 in sync with atomic version.
6815 (thumb1_subsi3_insn): Likewise.
6816 (thumb1_andsi3_insn): Likewise.
6817 (thumb1_iorsi3_insn): Likewise.
6818 (thumb1_xorsi3_insn): Likewise.
6820 2016-10-27 Nick Clifton <nickc@redhat.com>
6822 * plugin.c (register_plugin_info): Produce an error message if the
6823 plugin is not found in the hash table.
6825 2016-10-27 Bin Cheng <bin.cheng@arm.com>
6827 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
6830 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
6833 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
6834 define builtin functions from the bdesc_spe_predicates or
6835 bdesc_spe_evsel arrays if the builtin mask is not compatible with
6836 the current compiler configuration.
6837 (paired_init_builtins): Modify loop to not define define builtin
6838 functions from the bdesc_paried_preds array if the builtin mask is
6839 not compatible with the current compiler configuration.
6840 (altivec_init_builtins): Modify loops to not define the
6841 __builtin_altivec_stxvl function nor the builtin functions from
6842 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
6843 builtin mask is not compatible with the current compiler
6846 2016-10-26 Jeff Law <law@redhat.com>
6848 * config/sh/sh.c (output_branch): Add missing fallthru comments.
6849 (gen_shl_and): Likewise.
6850 * config/sh/sh.md (movsicc): Add missing fallthru comments.
6852 * config/mips/mips.c (mips16_constant_cost): Add missing
6854 (mips16_build_call_stub): Increase buffer size. Adjust
6857 2016-10-26 David Malcolm <dmalcolm@redhat.com>
6859 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
6860 INSN_UIDs for all insns in compact mode.
6861 (rtx_writer::print_rtx): Likewise.
6862 * print-rtl.h (rtx_writer::flag_compact): Update comment.
6863 * rtl-tests.c (selftest::test_dumping_insns): Update expected
6864 output to include INSN_UID.
6865 (selftest::test_uncond_jump): Likewise.
6867 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
6869 * haifa-sched.c (call_used_regs_num): Rename to...
6870 (call_saved_regs_num): ...this.
6871 (fixed_regs_num): New variable.
6872 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
6874 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
6876 2016-10-26 David Malcolm <dmalcolm@redhat.com>
6878 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
6880 * print-rtl.c (outfile): Delete global.
6881 (sawclose): Likewise.
6883 (in_call_function_usage): Likewise.
6884 (flag_compact): Likewise.
6885 (flag_simple): Likewise.
6886 (rtx_writer::rtx_writer): New ctor.
6887 (print_rtx_operand_code_0): Convert to...
6888 (rtx_writer::print_rtx_operand_code_0): ...this.
6889 (print_rtx_operand_code_e): Convert to...
6890 (rtx_writer::print_rtx_operand_code_e): ...this.
6891 (print_rtx_operand_codes_E_and_V): Convert to...
6892 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
6893 (print_rtx_operand_code_i): Convert to...
6894 (rtx_writer::print_rtx_operand_code_i): ...this.
6895 (print_rtx_operand_code_r): Convert to...
6896 (rtx_writer::print_rtx_operand_code_r): ...this.
6897 (print_rtx_operand_code_u): Convert to...
6898 (rtx_writer::print_rtx_operand_code_u): ...this.
6899 (print_rtx_operand): Convert to...
6900 (rtx_writer::print_rtx_operand): ...this.
6901 (print_rtx): Convert to...
6902 (rtx_writer::print_rtx): ...this.
6903 (print_inline_rtx): Rewrite in terms of class rtx_writer.
6904 (debug_rtx): Likewise.
6905 (print_rtl): Convert to...
6906 (rtx_writer::print_rtl): ...this.
6907 (print_rtl): Reimplement in terms of class rtx_writer.
6908 (print_rtl_single): Rewrite in terms of class rtx_writer.
6909 (print_rtl_single_with_indent): Convert to..
6910 (rtx_writer::print_rtl_single_with_indent): ...this.
6911 (print_simple_rtl): Rewrite in terms of class rtx_writer.
6912 * print-rtl.h (flag_compact): Delete decl.
6913 (class rtx_writer): New class.
6914 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
6917 2016-10-26 Jeff Law <law@redhat.com>
6919 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
6922 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
6923 (check_if_valid_sleep_operand): Add missing fallthru comment.
6924 (arc_register_move_cost): Increase buffer size.
6925 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
6927 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
6929 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
6930 comment. Add gcc_unreachable for path that should never happen.
6932 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
6935 2016-10-26 Jakub Jelinek <jakub@redhat.com>
6936 Martin Liska <mliska@suse.cz>
6939 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
6940 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
6941 on outer context if any.
6943 2016-10-26 Jakub Jelinek <jakub@redhat.com>
6945 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
6946 by increment rather than double it.
6947 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
6948 emit a space before args[4].
6949 (END): Don't emit a space before with_arg.
6951 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
6953 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
6954 Baseline only alternatives to (i) hold store atomic success value in a
6955 return register rather than a scratch register, (ii) use a low register
6956 for it and to (iii) ensure the cbranchsi insn generated by the split
6957 respect the constraints of Thumb-1 cbranchsi4_insn and
6959 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
6960 constraints must match those in atomic_compare_and_swap.
6961 (cbranchsi4_scratch): Likewise.
6963 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
6965 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
6966 variable. Add the new parameter to the insn generator. Set that
6967 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
6968 return value from the negation of that parameter for Thumb-1, keeping
6969 the logic unchanged otherwise except for using bdst as the destination
6970 register of the compare_and_swap insn.
6971 (arm_split_compare_and_swap): Add explanation about how is the value
6972 returned to the function comment. Rename scratch variable to
6973 neg_bval. Adapt initialization of variables holding operands to the
6974 new operand numbers. Use return register to hold result of store
6975 exclusive for Thumb-1, scratch register otherwise. Construct the
6976 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
6977 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
6978 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
6979 for strongly ordered compare_and_swap.
6980 * config/arm/predicates.md (cc_register_operand): New predicate.
6981 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
6982 match_operand with the new predicate to accept either the CC flag or a
6983 destination register for the boolean return value, restricting it to
6984 CC flag only via constraint. Adapt operand numbers accordingly.
6986 2016-10-26 Jeff Law <law@redhat.com>
6988 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
6990 * config/frv/frv.c (comparison_string): Do not fall through after
6993 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
6995 (expand_one_builtin): Add missing break.
6997 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
6998 (m32c_legitimate_address_p): Likewise.
7000 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
7002 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
7004 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
7007 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
7010 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
7012 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
7014 (rl78_asm_ctor_dtor): Increase buffer size.
7016 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
7018 (xstormy16_asm_output_constructor): Likewise.
7020 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
7023 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
7024 comment to silence warning.
7026 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
7027 (spu_legitimate_address_p): Fix logic error and add missing fallthru
7030 2016-10-26 Michael Matz <matz@suse.de>
7032 PR tree-optimization/78060
7033 PR tree-optimization/78061
7034 PR tree-optimization/78088
7035 * tree-ssa-loop-split.c (easy_exit_values): New function.
7036 (tree_ssa_split_loops): Use it.
7037 (compute_new_first_bound): Change order of operations,
7038 fix invalid use of types.
7040 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
7042 gen-pass-instances.awk is sensitive to the order in which
7043 passes are added; passes that appear later have to be added first.
7047 * config/avr/avr-passes.def: Swap order of directives for
7048 gen-pass-instances.awk.
7050 2016-10-25 Jeff Law <law@redhat.com>
7052 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
7053 (vax_notice_update_cc): Likewise.
7055 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7057 * config.gcc (sparc*-*-solaris2*): Adjust.
7058 (sparc64-*-linux*): Likewise.
7059 * config/sparc/default-64.h: Rename to...
7060 * config/sparc/default64.h: ...this.
7061 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
7063 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
7064 * config/sparc/sparc.h: Minor tweaks.
7065 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
7066 TARGET_ARCH32 throughout. Minor various tweaks throughout.
7068 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7070 * input.c (fcache::file_patch): Add comment about lifetime.
7071 (selftest::cpp_reader_ptr): New class.
7072 (selftest::lexer_test): Convert m_parser from cpp_reader *
7073 to a cpp_reader_ptr, and move m_tempfile to after it.
7074 (selftest::lexer_test::lexer_test): Update for above reordering.
7075 (lexer_test::~lexer_test): Move cleanup of m_parser to
7076 cpp_reader_ptr's dtor.
7078 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7080 * toplev.c (toplev::main): Remove call to
7081 location_adhoc_data_fini.
7083 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7085 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
7086 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
7088 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7090 * ggc-tests.c (forcibly_ggc_collect): Rename to...
7091 (selftest::forcibly_ggc_collect): ...this, and remove "static".
7092 (test_basic_struct): Update for above renaming.
7093 (test_length): Likewise.
7094 (test_union): Likewise.
7095 (test_finalization): Likewise.
7096 (test_deletable_global): Likewise.
7097 (test_inheritance): Likewise.
7098 (test_chain_next): Likewise.
7099 (test_user_struct): Likewise.
7100 (test_tree_marking): Likewise.
7101 * selftest-run-tests.c (selftest::run_tests): Call
7102 selftest::forcibly_ggc_collect at the end of the selftests.
7103 * selftest.h (selftest::forcibly_ggc_collect): New decl.
7105 2016-10-25 Jakub Jelinek <jakub@redhat.com>
7108 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
7109 * optabs.c (expand_vec_cond_expr): For comparison codes
7110 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
7111 (expand_vec_cmp_expr): For comparison codes
7112 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
7113 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
7114 Add enum tree_code argument.
7115 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
7117 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
7118 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
7120 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
7121 NE_EXPR, attempt to use vcondeq_optab as fallback.
7122 * tree-vect-generic.c (expand_vector_comparison,
7123 expand_vector_divmod, expand_vector_condition): Adjust
7124 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
7125 * tree-vect-stmts.c (vectorizable_condition,
7126 vectorizable_comparison): Likewise.
7127 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
7128 check_bool_pattern, search_type_for_mask_1): Likewise.
7129 * expr.c (do_store_flag): Likewise.
7130 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
7131 @code{vcondeq@var{m}@var{n}}): Document.
7132 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
7135 2016-10-25 Jeff Law <law@redhat.com>
7137 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
7139 (v850_output_aligned_bss): Add missing break.
7141 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
7143 2016-10-25 Martin Liska <mliska@suse.cz>
7146 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
7147 statements as they can also contain possibly a freeing call.
7149 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
7150 Martin Liska <mliska@suse.cz>
7153 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
7154 * ipa-icf.c (sem_function::get_hash): Add target optimization
7157 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
7160 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
7161 Remove partial overlap check for shift by 1.
7162 (ashldi3_neon): Likewise.
7164 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
7166 * config/arm/constraints.md (Q constraint): Document its use for
7168 (Pf constraint): New constraint for relaxed, consume or relaxed memory
7170 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
7171 alternatives to allow any register when memory model matches Pf and
7172 thus lda is used, but only low registers otherwise. Use unpredicated
7173 output template for Thumb-1 targets.
7174 (atomic_store<mode>): Likewise for stl.
7175 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
7176 whose output template does not have predication.
7177 (arm_load_acquire_exclusive<mode>): Likewise.
7178 (arm_load_exclusivesi): Likewise.
7179 (arm_load_acquire_exclusivesi): Likewise.
7180 (arm_store_release_exclusive<mode>): Likewise.
7181 (arm_store_exclusive<mode>): Use unpredicated output template for
7184 2016-10-25 Jakub Jelinek <jakub@redhat.com>
7186 * internal-fn.def (LAUNDER): New internal function.
7187 * internal-fn.c (expand_LAUNDER): New function.
7189 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
7190 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
7192 New avr target pass to work around performance loss by PR fix.
7196 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
7197 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
7198 * config/avr/predicates.md (extend_operator): New.
7199 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
7200 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
7201 (make_avr_pass_casesi): New prototypes.
7202 * config/avr/avr.c (print-rtl.h): Include it.
7203 (pass_data avr_pass_data_casesi): Data for new pass.
7204 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
7205 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
7206 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
7207 (avr_optimize_casesi): New functions.
7209 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
7210 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
7214 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
7216 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7218 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
7219 DW_AT_rvalue_reference attributes.
7221 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
7223 * doc/invoke.text (Wint-in-bool-context): Update documentation.
7224 * value-prof.c (stringop_block_profile): Fix a warning.
7226 2016-10-24 Martin Sebor <msebor@redhat.com>
7229 * builtins.c (string_length): New function.
7230 (c_strlen): Use string_length. Correctly handle wide strings.
7231 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
7233 (target_int_max): Call target_max_value.
7234 (format_result::knownrange): New data member.
7235 (fmtresult::fmtresult): Define default constructor.
7236 (format_integer): Use it and set format_result::knownrange.
7237 Handle global constants.
7238 (format_floating_max): Add third argument.
7239 (format_floating): Recompute maximum value for %a for each argument.
7240 (get_string_length): Use fmtresult default ctor.
7241 (format_string): Set format_result::knownrange.
7242 (format_directive): Check format_result::knownrange.
7243 (add_bytes): Same. Correct caret placement in diagnostics.
7244 (pass_sprintf_length::compute_format_length): Set
7245 format_result::knownrange.
7246 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
7248 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7250 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
7251 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
7253 2016-10-24 Ximin Luo <infinity0@pwned.gg>
7256 * dwarf2out.c (file_table_relative_p): Remove.
7257 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
7258 also for absolute paths.
7259 * doc/tm.texi: Update.
7260 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
7261 * target.def (force_at_comp_dir): Remove hook.
7262 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
7264 2016-10-24 Richard Biener <rguenther@suse.de>
7266 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
7267 backedges when identifying the single predecessor to take
7268 conditional info from. Use SCEV to get at ranges for loop IVs.
7269 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
7270 avoid false warning.
7272 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
7275 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
7276 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
7277 (avr_address_tiny_absdata_p): New static function.
7278 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
7279 it to determine validity of constant addresses.
7280 (avr_attribute_table) [absdata]: New variable attribute...
7281 (avr_handle_absdata_attribute): ...and handler.
7282 (avr_decl_absdata_p): New static function.
7283 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
7284 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
7285 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
7287 2016-10-24 Richard Biener <rguenther@suse.de>
7289 PR tree-optimization/78076
7290 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
7291 also on the loop tree root.
7293 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7295 * config/i386/i386.c (ix86_fold_builtin): Handle
7296 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
7297 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
7298 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
7299 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
7301 2016-10-24 Martin Liska <mliska@suse.cz>
7304 * opts.c (finish_options): Skip conditionally.
7306 2016-10-23 Martin Sebor <msebor@redhat.com>
7309 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
7310 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
7312 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7314 * config/sparc/sparc.md (cpu_feature): Minor tweak.
7315 (enabled): Likewise.
7316 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
7317 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
7318 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
7319 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
7320 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
7321 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
7323 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7325 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
7326 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
7328 2016-10-21 Andrew Pinski <apinski@cavium.com>
7330 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
7332 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
7333 implementer_id to unsigned char.
7334 Change part_no to unsigned int.
7335 (AARCH64_BIG_LITTLE): New define.
7336 (INVALID_IMP): New define.
7337 (INVALID_CORE): New define.
7338 (cpu_data): Change the last element's implementer_id and part_no to
7340 (valid_bL_string_p): Rewrite to ..
7341 (valid_bL_core_p): this for integers instead of strings.
7342 (parse_field): New function.
7343 (contains_string_p): Rewrite to ...
7344 (contains_core_p): this for integers and only for the part_no.
7345 (host_detect_local_cpu): Rewrite handling of implementation and
7346 par num to be integers; simplifying the code.
7348 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
7350 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
7351 value range for pointers in more cases.
7353 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7355 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
7356 Add extra argument to allow emitting the move immediate.
7357 Use add/sub with positive immediate.
7358 (aarch64_add_constant): Add inline function.
7359 (aarch64_add_sp): Likewise.
7360 (aarch64_sub_sp): Likewise.
7361 (aarch64_expand_prologue): Call aarch64_sub_sp.
7362 (aarch64_expand_epilogue): Call aarch64_add_sp.
7363 Decide when to leave out move.
7364 (aarch64_output_mi_thunk): Call aarch64_add_constant.
7366 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7368 * config/aarch64/aarch64.c (aarch64_layout_frame):
7369 Align FP callee-saves.
7371 2016-10-21 Jakub Jelinek <jakub@redhat.com>
7373 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
7374 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
7376 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
7377 _rdseed64_step): Likewise.
7378 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
7381 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
7382 and tree-ssanames.h.
7383 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
7384 with INTEGER_CST argument.
7385 (ix86_gimple_fold_builtin): New function.
7386 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7388 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
7389 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
7390 (ranges_table_allocated, ranges_table_in_use,
7391 ranges_by_label_allocated, ranges_by_label_in_use,
7392 RANGES_TABLE_INCREMENT): Removed.
7393 (add_ranges_num): Use vec_safe_push into ranges_table.
7394 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
7395 (output_ranges): Adjust for ranges_table and ranges_by_label
7396 conversion from arrays to vec.
7397 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
7398 conversion from arrays to vec.
7399 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
7400 ranges_table_in_use, ranges_by_label_allocated and
7401 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
7403 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
7404 if needed. Re-add origin_die variable and its initialization.
7406 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
7407 even for -fstack-reuse=none, or for volatile vars etc.
7409 2016-10-21 David Malcolm <dmalcolm@redhat.com>
7411 * print-rtl-function.c (flag_compact): Move extern decl to...
7412 * print-rtl.h (flag_compact): ...here.
7413 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
7414 (ASSERT_RTL_DUMP_EQ): New macro.
7415 (selftest::test_dumping_regs): New function.
7416 (selftest::test_dumping_insns): New function.
7417 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
7419 (selftest::rtl_tests_c_tests): Call the new test functions.
7421 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7423 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
7424 (outgoing_edges_match): Likewise.
7425 (try_crossjump_to_edge): Likewise.
7426 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7427 (rtl_tidy_fallthru_edge): Likewise.
7428 * rtl.h (tablejump_p): Adjust prototype.
7429 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
7431 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7433 * rtl.h (label_ref_label): New function.
7434 (set_label_ref_label): New function.
7435 (LABEL_REF_LABEL): Delete.
7436 * alias.c (rtx_equal_for_memref_p): Adjust.
7437 * cfgbuild.c (make_edges): Likewise.
7438 (purge_dead_tablejump_edges): Likewise.
7439 * cfgexpand.c (convert_debug_memory_address): Likewise.
7440 * cfgrtl.c (patch_jump_insn): Likewise.
7441 * combine.c (distribute_notes): Likewise.
7442 * cse.c (hash_rtx_cb): Likewise.
7443 (exp_equiv_p): Likewise.
7444 (fold_rtx): Likewise.
7445 (check_for_label_ref): Likewise.
7446 * cselib.c (rtx_equal_for_cselib_1): Likewise.
7447 (cselib_hash_rtx): Likewise.
7448 * emit-rtl.c (mark_label_nuses): Likewise.
7449 * explow.c (convert_memory_address_addr_space_1): Likewise.
7450 * final.c (output_asm_label): Likewise.
7451 (output_addr_const): Likewise.
7452 * gcse.c (add_label_notes): Likewise.
7453 * genconfig.c (walk_insn_part): Likewise.
7454 * genrecog.c (validate_pattern): Likewise.
7455 * ifcvt.c (cond_exec_get_condition): Likewise.
7456 (noce_emit_store_flag): Likewise.
7457 (noce_get_alt_condition): Likewise.
7458 (noce_get_condition): Likewise.
7459 * jump.c (maybe_propagate_label_ref): Likewise.
7460 (mark_jump_label_1): Likewise.
7461 (redirect_exp_1): Likewise.
7462 (rtx_renumbered_equal_p): Likewise.
7463 * lra-constraints.c (operands_match_p): Likewise.
7464 * print-rtl.c (print_value): Likewise.
7465 * reload.c (find_reloads): Likewise.
7466 * reload1.c (set_label_offsets): Likewise.
7467 * reorg.c (get_branch_condition): Likewise.
7468 * rtl-tests.c (test_uncond_jump): Likewise.
7469 * rtl.c (rtx_equal_p_cb): Likewise.
7470 (rtx_equal_p): Likewise.
7471 * rtlanal.c (reg_mentioned_p): Likewise.
7472 (rtx_referenced_p): Likewise.
7473 (get_condition): Likewise.
7474 * varasm.c (const_hash_1): Likewise.
7475 (compare_constant): Likewise.
7476 (const_rtx_hash_1): Likewise.
7477 (output_constant_pool_1): Likewise.
7479 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7482 * reload.c (find_valid_class_1): Allow regclass if atleast one
7483 regno in regclass is ok. Compute and use rclass size based on
7484 actually available regnos for mode in rclass.
7486 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
7488 * config/sparc/sparc-modes.def (CCV): New.
7490 * config/sparc/predicates.md (v_comparison_operator): New.
7491 (icc_comparison_operator): Add support for CCV/CCXV.
7492 (xcc_comparison_operator): Likewise.
7493 * config/sparc/sparc.c (output_cbranch): Likewise.
7494 (sparc_print_operand): Likewise.
7495 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
7496 (uaddvdi4): New expander.
7497 (addvdi4): Likewise.
7498 (uaddvdi4_sp32): New instruction.
7499 (addvdi4_sp32): Likewise.
7500 (uaddvsi4): New expander.
7501 (addvsi4): Likewise.
7502 (cmp_ccc_plus_sltu_set): New instruction.
7503 (cmp_ccv_plus): Likewise.
7504 (cmp_ccxv_plus): Likewise.
7505 (cmp_ccv_plus_set): Likewise.
7506 (cmp_ccxv_plus_set): Likewise.
7507 (cmp_ccv_plus_sltu_set): Likewise.
7508 (uaddvdi4): New expander.
7509 (subvdi4): Likewise.
7510 (usubdi4_sp32): New instruction.
7511 (subvdi4_sp32): Likewise.
7512 (usubvsi4): New expander.
7513 (subvsi4): Likewise.
7514 (cmpsi_minus_sltu_set): New instruction.
7515 (cmp_ccv_minus): Likewise.
7516 (cmp_ccxv_minus): Likewise.
7517 (cmp_ccv_minus_set): Likewise.
7518 (cmp_ccxv_minus_set): Likewise.
7519 (cmp_ccv_minus_sltu_set): Likewise.
7520 (unegvdi3): New expander.
7521 (negvdi3): Likewise.
7522 (unegdi3_sp32): New instruction.
7523 (negvdi3_sp32): Likewise.
7524 (unegvsi3): New expander.
7525 (negvsi3): Likewise.
7526 (cmp_ccc_neg_sltu_set): New instruction.
7527 (cmp_ccv_neg): Likewise.
7528 (cmp_ccxv_neg): Likewise.
7529 (cmp_ccv_neg_set): Likewise.
7530 (cmp_ccxv_neg_set): Likewise.
7531 (cmp_ccv_neg_sltu_set): Likewise.
7533 * tree-ssa-loop-split.c: Remove trailing spaces.
7534 * match.pd: Likewise.
7536 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7538 PR rtl-optimization/78038
7539 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
7540 be deduced to set REG through the RTL structure.
7541 (make_defs_and_copies_lists): Return false on a failing get_defs call.
7543 2016-10-21 Richard Biener <rguenther@suse.de>
7545 PR tree-optimization/78051
7546 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
7547 and mark replaced if folding did something.
7549 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
7551 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
7552 and "protected" in visibility types.
7553 (rs6000_xcoff_declare_function_name): Fix formatting.
7554 (rs6000_xcoff_declare_object_name): Fix formatting.
7556 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
7558 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
7559 and IX86_BUILTIN_HUGE_VALQ here ...
7560 (ix86_expand_builtin): ... not here.
7562 2016-10-20 Jakub Jelinek <jakub@redhat.com>
7564 * doc/gty.texi (for_user): Use @item next to @findex.
7566 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
7569 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
7570 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
7571 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
7572 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
7573 __builtin_ia32_lzcnt_u16.
7574 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
7575 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
7576 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
7577 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
7578 (bmi_tzcnt_<mode>): New expander.
7579 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
7580 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
7581 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
7582 (lzcnt_<mode>): New expander.
7583 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
7584 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
7585 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
7586 (UINT64_FTYPE_UINT64): New.
7587 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
7588 (__builtin_ia32_lzcnt_u16): New description.
7589 (__builtin_ia32_lzcnt_u32): Ditto.
7590 (__builtin_ia32_lzcnt_u64): Ditto.
7591 (__builtin_ctzs): Remove description.
7592 (__builtin_ia32_tzcnt_u16): New description.
7593 (__builtin_ia32_tzcnt_u32): Ditto.
7594 (__builtin_ia32_tzcnt_u64): Ditto.
7595 * config/i386/i386.c (ix86_expand_args_builtin): Handle
7596 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
7598 2016-10-20 Martin Liska <mliska@suse.cz>
7601 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
7602 comparison with STMT_UID_NOT_IN_RANGE.
7603 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
7606 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
7608 * compare-elim.c (conforming_compare): Accept UNSPECs.
7609 (find_comparison_dom_walker::before_dom_children): Deal with
7610 instructions both using and killing the flags register.
7611 (equivalent_reg_at_start): New function extracted from...
7612 (try_eliminate_compare): ...here. Use it and add support for
7613 registers and UNSPECs as second operand of the compare.
7614 * config/visium/visium-modes.def (CCV): New.
7615 * config/visium/predicates.md (visium_v_comparison_operator): New.
7616 (visium_branch_operator): Deal with CCV mode.
7617 * config/visium/visium.c (visium_select_cc_mode): Likewise.
7618 (output_cbranch): Likewise.
7619 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
7620 (uaddv<mode>4): New expander.
7621 (addv<mode>4): Likewise.
7622 (add<mode>3_insn_set_carry): New instruction.
7623 (add<mode>3_insn_set_overflow): Likewise.
7624 (addsi3_insn_set_overflow): Likewise.
7625 (usubv<mode>4): New expander.
7626 (subv<mode>4): Likewise.
7627 (sub<mode>3_insn_set_carry): New instruction.
7628 (sub<mode>3_insn_set_overflow): Likewise.
7629 (subsi3_insn_set_overflow): Likewise.
7630 (unegv<mode>3): New expander.
7631 (negv<mode>3): Likewise.
7632 (neg<mode>2_insn_set_overflow): New instruction.
7633 (addv_tst<mode>): Likewise.
7634 (subv_tst<mode>): Likewise.
7635 (negv_tst<mode>): Likewise.
7636 (cbranch<mode>4_addv_insn): New splitter and instruction.
7637 (cbranch<mode>4_subv_insn): Likewise.
7638 (cbranch<mode>4_negv_insn): Likewise.
7640 2016-10-20 Richard Biener <rguenther@suse.de>
7642 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
7643 Handle decls possibly not bound.
7644 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
7645 nothing_id for decls that might not be bound if we are interested
7647 (get_constraint_for_component_ref): Deal with that.
7649 2016-10-20 Michael Matz <matz@suse.de>
7652 * common.opt (-fsplit-loops): New flag.
7653 * passes.def (pass_loop_split): Add.
7654 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
7655 (enable_fdo_optimizations): Add loop splitting.
7656 * timevar.def (TV_LOOP_SPLIT): Add.
7657 * tree-pass.h (make_pass_loop_split): Declare.
7658 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
7659 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
7660 * tree-ssa-loop-split.c: New file.
7661 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
7662 * doc/invoke.texi (fsplit-loops): Document.
7663 * doc/passes.texi (Loop optimization): Add paragraph about loop
7666 2016-10-20 Richard Biener <rguenther@suse.de>
7668 * cgraphunit.c (analyze_functions): Set node->definition to
7669 false to signal symbol removal to debug_hooks->late_global_decl.
7670 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
7671 WPA signal symbol removal to the debuginfo machinery.
7672 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
7673 using early_finised to guard the we're called for symbol
7674 removal case look at the symtabs definition flag.
7675 (gen_variable_die): Remove redundant check.
7677 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7679 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
7681 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7683 PR tree-optimization/53979
7684 * match.pd ((a ^ b) | a -> a | b): New pattern.
7686 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
7688 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
7689 config/pa/pa64-hpux-lib.h.
7690 (PA_CRTBEGIN_HACK): Likewise.
7691 (DTOR_LIST_BEGIN): Likewise.
7693 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
7695 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
7696 register only if "in" and "out" are different registers.
7698 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
7700 * omp-low.c (pass_oacc_device_lower::gate): New method.
7701 (execute): Always call execute_oacc_device_lower.
7703 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7705 PR tree-optimization/77916
7706 PR tree-optimization/77937
7707 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
7709 (insert_initializers): Requirement of initializer for -1 should be
7710 based on pointer-typedness of the candidate basis.
7712 2016-10-19 Bin Cheng <bin.cheng@arm.com>
7714 PR tree-optimization/78005
7715 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
7716 upper (included) bound for niters of prolog loop.
7717 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
7718 Compute niters of scalar loop above which vectorized loop is
7719 preferred, as well as the upper (included) bound for the niters.
7720 (vect_do_peeling): Record niter bound for loops accordingly.
7722 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
7725 * tree-core.h (enum tree_index): Put the complex types after their
7727 * tree-streamer.c (verify_common_node_recorded): New function.
7728 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
7730 2016-10-19 Martin Liska <mliska@suse.cz>
7732 * cgraph.h (cgraph_edge::binds_to_current_def_p):
7733 Replace NULL with false as a return value.
7735 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
7737 PR tree-optimization/78024
7738 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
7739 don't clear BB_VISITED after processing.
7741 2016-10-19 Richard Biener <rguenther@suse.de>
7743 * domwalk.c (dom_walker::walk): Use RPO order.
7745 2016-10-19 Richard Biener <rguenther@suse.de>
7747 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
7749 (evrp_dom_walker::~evrp_dom_walker): Free it.
7750 (evrp_dom_walker::stmts_to_remove): Add.
7751 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
7752 whose output we fully propagate for removal. Propagate
7753 into BB destination PHI arguments.
7754 (execute_early_vrp): Remove queued stmts. Dump value ranges
7755 before stmt removal.
7757 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
7759 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
7760 * passes.def: Add two instances of pass_walloca.
7761 * tree-pass.h (make_pass_walloca): New.
7762 * gimple-ssa-warn-alloca.c: New file.
7763 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
7764 -Wvla-larger-than= options.
7766 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
7768 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
7769 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
7771 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
7773 * config/rs6000/altivec.h (vec_xl_len): New macro.
7774 (vec_xst_len): New macro.
7775 (vec_cmpnez): New macro.
7776 (vec_cntlz_lsbb): New macro.
7777 (vec_cnttz_lsbb): New macro.
7778 (vec_xlx): New macro.
7779 (vec_xrx): New macro.
7780 (vec_all_nez): New C++ predicate template.
7781 (vec_any_eqz): New C++ predicate template.
7782 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
7783 conditional compilation.
7784 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
7785 conditional compilation.
7786 (vec_all_nez): New macro.
7787 (vec_any_eqz): New macro.
7788 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
7790 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
7792 * config/rs6000/vector.md (VI): Moved this mode iterator
7793 definition from altivec.md to vector.md.
7794 (UNSPEC_NEZ_P): New value.
7795 (vector_ne_<mode>_p): New expansion for implementation of
7796 vec_all_ne and vec_any_eq built-in functions.
7797 (vector_nez_<mode>_p): New expansion for implementation of
7798 vec_all_nez and vec_any_eqz built-in functions.
7799 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
7800 and vec_any_eq built-in function.
7801 (cr6_test_for_zero): New commentary to explain this expansion.
7802 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
7803 (cr6_test_for_lt): New commentary to explain this expansion.
7804 (cr6_test_for_lt_reverse): New commentary to explain this
7806 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7807 overloaded function prototypes for vec_all_ne, vec_all_nez,
7808 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
7809 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
7811 (altivec_resolve_overloaded_builtin): Modify the handling of
7812 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
7813 the compiler is configured to support TARGET_P9_VECTOR.
7814 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
7815 to explain the special processing that is given to predicate
7816 built-ins introduced using this macro.
7817 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
7818 the special processing given to predicate built-ins introduced
7820 (BU_VSX_P): Likewise.
7821 (BU_P8V_AV_P): Likewise.
7822 (BU_P9V_AV_P): Likewise.
7823 (BU_P9V_AV_X): New macro.
7824 (BU_P9V_64BIT_AV_X): New macro.
7825 (BU_P9V_VSX_3): New macro.
7826 (BU_P9V_OVERLOAD_P): New macro.
7827 (LXVL): New BU_P9V_64BIT_VSX_2.
7828 (VEXTUBLX): New BU_P9V_AV_2.
7829 (VEXTUBRX): Likewise.
7830 (VEXTUHLX): Likewise.
7831 (VEXTUHRX): Likewise.
7832 (VEXTUWLX): Likewise.
7833 (VEXTUWRX): Likewise.
7834 (STXVL): New BU_P9V_64BIT_AV_X.
7835 (VCLZLSBB): New BU_P9V_AV_1.
7836 (VCTZLSBB): Likewise.
7837 (CMPNEB): New BU_P9V_AV_2.
7842 (VCMPNEB_P): New BU_P9V_AV_P.
7843 (VCMPNEH_P): Likewise.
7844 (VCMPNEW_P): Likewise.
7845 (VCMPNED_P): Likewise.
7846 (VCMPNEFP_P): Likewise.
7847 (VCMPNEDP_P): Likewise.
7848 (CMPNEZB): New BU_P9V_AV_2.
7849 (CMPNEZH): Likewise.
7850 (CMPNEZW): Likewise.
7851 (VCMPNEZB_P): New BU_P9V_AV_P.
7852 (VCMPNEZH_P): Likewise.
7853 (VCMPNEZW_P): Likewise.
7854 (LXVL): New BU_P9V_OVERLOAD_2.
7855 (STXVL): New BU_P9V_OVERLOAD_3.
7856 (VEXTULX): New BU_P9V_OVERLOAD_2.
7857 (VEXTURX): Likewise.
7859 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
7860 (VCMPNE_P): Likewise.
7861 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
7862 (VCTZLSBB): Likewise.
7863 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
7864 comment to explain mode used for scratch register.
7865 (altivec_expand_stxvl_builtin): New function.
7866 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
7867 (altivec_init_builtins): Add initialized variable
7868 void_ftype_v16qi_pvoid_long and use this type to define the
7869 built-in function __builtin_altivec_stxvl.
7870 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
7871 (UNSPEC_STXVL): New value.
7872 (UNSPEC_VCLZLSBB): New value.
7873 (UNSPEC_VCTZLSBB): New value.
7874 (UNSPEC_VEXTUBLX): New value.
7875 (UNSPEC_VEXTUHLX): New value.
7876 (UNSPEC_VEXTUWLX): New value.
7877 (UNSPEC_VEXTUBRX): New value.
7878 (UNSPEC_VEXTUHRX): New value.
7879 (UNSPEC_VEXTUWRX): New value.
7880 (UNSPEC_VCMPNEB): New value.
7881 (UNSPEC_VCMPNEZB): New value.
7882 (UNSPEC_VCMPNEH): New value.
7883 (UNSPEC_VCMPNEZH): New value.
7884 (UNSPEC_VCMPNEW): New value.
7885 (UNSPEC_VCMPNEZW): New value.
7886 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
7887 vector of integer modes.
7888 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
7889 vector of float or double modes.
7890 (*vector_nez_<mode>_p): New insn for vector test all not equal or
7892 (lxvl): New expand for load VSX vector with length.
7893 (*lxvl): New insn for load VSX vector with length.
7894 (stxvl): New expand for store VSX vector with length.
7895 (*stxvl): New insn for store VSX vector with length.
7896 (vcmpneb): New insn for vector of byte compare not equal.
7897 (vcmpnezb): New insn for vector of byte compare not equal or zero.
7898 (vcmpneh): New insn for vector of half word compare not equal.
7899 (vcmpnezh): New insn for vector of half word compare not equal or
7901 (vcmpnew): New insn for vector of word compare not equal.
7902 (vcmpne<VSs>): New insn for vector of float or double compare not
7904 (vcmpnezw): New insn for vector of word compare not equal or zero.
7905 (vclzlsbb): New insn for vector count leading zero
7906 least-significant bits byte.
7907 (vctzlsbb): New insn for vector count trailing zero least
7908 signficant bits byte.
7909 (vextublx): New insn for vector extract unsigned byte left
7911 (vextubrx): New insn for vector extract unsigned byte right
7913 (vextuhlx): New insn for vector extract unsigned half word left
7915 (vextuhrx): New insn for vector extract unsigned half word right
7917 (vextuwlx): New insn for vector extract unsigned word left
7919 (vextuwrx): New insn for vector extract unsigned word right
7921 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
7922 clarify intent of this constant.
7923 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
7924 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
7925 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
7926 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
7927 and vec_xrx functions.
7929 2016-10-18 Andrew Pinski <apinski@cavium.com>
7932 * predict.c (is_exit_with_zero_arg): New function.
7933 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
7936 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
7939 * config/i386/i386.c (legitimize_tls_address)
7940 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
7941 convert dest to Pmode if different than Pmode.
7943 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7945 PR tree-optimization/77916
7946 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
7947 stopgap fix, as pointers with -1 increment are still broken.
7949 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
7951 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
7952 mapping class decoration from here...
7953 (rs6000_xcoff_encode_section): ...to here.
7955 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
7956 if shrink-wrapping and optimizing for speed.
7958 2016-10-18 Richard Biener <rguenther@suse.de>
7960 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
7961 not visited but non-executable predecessors. Return taken edge.
7962 Simplify conditions and refactor propagation vs. folding step.
7964 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
7966 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
7967 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
7968 (rs6000_get_separate_components): Assert we do not have those
7969 strategies selected.
7971 2016-10-18 Richard Biener <rguenther@suse.de>
7973 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
7974 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
7976 (substitute_and_fold_dom_walker): Adjust constructor.
7977 (substitute_and_fold_dom_walker::before_dom_children): Remove
7978 do_dce flag and handling (always true).
7979 (substitute_and_fold): Likewise.
7980 * tree-vrp.c (vrp_finalize): Adjust.
7981 (execute_early_vrp): Remove final BB_VISITED clearing.
7982 * tree-ssa-ccp.c (ccp_finalize): Adjust.
7983 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7984 * ira.c (ira): Call clear_bb_flags.
7986 2016-10-18 Richard Biener <rguenther@suse.de>
7988 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
7989 get at the operand to look at with TREE_OPERAND for generic
7992 2016-10-18 David Malcolm <dmalcolm@redhat.com>
7994 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
7996 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
7997 (write_test_expr): Use rtx_reader_ptr for calls to
7999 (write_attr_value): Likewise.
8000 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
8001 call to print_md_ptr_loc.
8002 (write_one_condition): Likewise for calls to print_c_condition.
8003 * genconstants.c: Include "statistics.h" and "vec.h".
8004 (main): Update for conversion to member functions.
8005 * genemit.c (emit_c_code): Use rtx_reader_ptr for
8006 call to print_md_ptr_loc.
8007 * genenums.c: Include "statistics.h" and "vec.h".
8008 (main): Update for conversion of traverse_enum_types to a method.
8009 * genmddeps.c: Include "statistics.h" and "vec.h".
8010 * genoutput.c (process_template): Use rtx_reader_ptr for call to
8012 * genpreds.c (write_predicate_subfunction): Likewise.
8013 (write_predicate_expr): Likewise for calls to print_c_condition.
8014 * genrecog.c (print_test): Likewise.
8015 * gensupport.c (process_rtx): Likewise for calls to
8016 copy_md_ptr_loc and join_c_conditions.
8017 (alter_test_for_insn): Likewise for call to join_c_conditions.
8018 (process_substs_on_one_elem): Likewise.
8019 (gen_mnemonic_setattr): Update for move of string_obstack to a
8020 field of rtx_reader.
8021 (mnemonic_htab_callback): Likewise. Fix formatting.
8022 (gen_mnemonic_attr): Likewise.
8023 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
8024 to print_c_condition.
8025 * read-md.c: Include "statistics.h" and "vec.h".
8026 (string_obstack): Convert this global to field "m_string_obstack"
8027 of class rtx_reader.
8028 (ptr_locs): Likewise, as "m_ptr_locs".
8029 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
8030 (joined_conditions): Likewise, as "m_joined_conditions".
8031 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
8032 (md_constants): Likewise, as "m_md_constants".
8033 (enum_types): Likewise, as "m_enum_types".
8034 (set_md_ptr_loc): Convert to...
8035 (rtx_reader::set_md_ptr_loc): ...member function.
8036 (get_md_ptr_loc): Convert to...
8037 (rtx_reader::get_md_ptr_loc): ...member function.
8038 (copy_md_ptr_loc): Convert to...
8039 (rtx_reader::copy_md_ptr_loc): ...member function.
8040 (fprint_md_ptr_loc): Convert to...
8041 (rtx_reader::fprint_md_ptr_loc): ...member function.
8042 (print_md_ptr_loc): Convert to...
8043 (rtx_reader::print_md_ptr_loc): ...member function.
8044 (join_c_conditions): Convert to...
8045 (rtx_reader::join_c_conditions): ...member function.
8046 (fprint_c_condition): Convert to...
8047 (rtx_reader::fprint_c_condition): ...member function.
8048 (print_c_condition): Convert to...
8049 (rtx_reader::print_c_condition): ...member function.
8050 (read_name): Convert to...
8051 (rtx_reader::read_name): ...member function.
8052 (read_escape): Convert to...
8053 (rtx_reader::read_escape): ...member function.
8054 (read_quoted_string): Convert to...
8055 (rtx_reader::read_quoted_string): ...member function.
8056 (read_braced_string): Convert to...
8057 (rtx_reader::read_braced_string): ...member function.
8058 (read_string): Convert to...
8059 (rtx_reader::read_string): ...member function.
8060 (read_skip_construct): Convert to...
8061 (rtx_reader::read_skip_construct): ...member function.
8062 (handle_constants): Convert to...
8063 (rtx_reader::handle_constants): ...member function.
8064 (traverse_md_constants): Convert to...
8065 (rtx_reader::traverse_md_constants): ...member function.
8066 (handle_enum): Convert to...
8067 (rtx_reader::handle_enum): ...member function.
8068 (lookup_enum_type): Convert to...
8069 (rtx_reader::lookup_enum_type): ...member function.
8070 (traverse_enum_types): Convert to...
8071 (rtx_reader::traverse_enum_types): ...member function.
8072 (rtx_reader::rtx_reader): Move initializations
8073 of various former global data from rtx_reader::read_md_files to
8074 here, as fields, along with the call to unlock_std_streams.
8075 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
8077 (rtx_reader::read_md_files): Move initializations of various
8078 global data from here to the ctor.
8079 * read-md.h (read_name): Convert to...
8080 (rtx_reader::read_name): ...member function.
8081 (rtx_reader::read_escape): New method decl.
8082 (read_quoted_string): Convert to...
8083 (rtx_reader::read_quoted_string): ...member function.
8084 (rtx_reader::read_braced_string): New method decl.
8085 (read_string): Convert to...
8086 (rtx_reader::read_string): ...member function.
8087 (rtx_reader::read_skip_construct): New method decl.
8088 (rtx_reader::set_md_ptr_loc): New method decl.
8089 (rtx_reader::get_md_ptr_loc): New method decl.
8090 (copy_md_ptr_loc): Convert to...
8091 (rtx_reader::copy_md_ptr_loc): ...member function.
8092 (fprint_md_ptr_loc): Convert to...
8093 (rtx_reader::fprint_md_ptr_loc): ...member function.
8094 (print_md_ptr_loc): Convert to...
8095 (rtx_reader::print_md_ptr_loc): ...member function.
8096 (rtx_reader::lookup_enum_type): New method decl.
8097 (rtx_reader::traverse_enum_types): New method decl.
8098 (rtx_reader::handle_constants): New method decl.
8099 (traverse_md_constants): Convert to...
8100 (rtx_reader::traverse_md_constants): ...member function.
8101 (rtx_reader::handle_enum): New method decl.
8102 (rtx_reader::join_c_conditions): New method decl.
8103 (fprint_c_condition): Convert to...
8104 (rtx_reader::fprint_c_condition): ...member function.
8105 (print_c_condition): Convert to...
8106 (rtx_reader::print_c_condition): ...member function.
8107 (rtx_reader::apply_iterator_to_string): New method decl.
8108 (rtx_reader::copy_rtx_for_iterators): New method decl.
8109 (rtx_reader::read_conditions): New method decl.
8110 (rtx_reader::record_potential_iterator_use): New method decl.
8111 (rtx_reader::read_mapping): New method decl.
8112 (rtx_reader::read_rtx): New method decl.
8113 (rtx_reader::read_rtx_code): New method decl.
8114 (rtx_reader::read_rtx_operand): New method decl.
8115 (rtx_reader::read_nested_rtx): New method decl.
8116 (rtx_reader::read_rtx_variadic): New method decl.
8117 (rtx_reader::get_string_obstack): New method.
8118 (rtx_reader::get_md_constants): New method.
8119 (string_obstack): Convert global variable decl to...
8120 (rtx_reader::m_string_obstack): ...this new field.
8121 (rtx_reader::m_ptr_locs): New field.
8122 (rtx_reader::m_ptr_loc_obstack): New field.
8123 (rtx_reader::m_joined_conditions): New field.
8124 (rtx_reader::m_joined_conditions_obstack): New field.
8125 (rtx_reader::m_md_constants): New field.
8126 (rtx_reader::m_enum_types): New field.
8127 * read-rtl.c (apply_iterator_to_string): Convert to...
8128 (rtx_reader::apply_iterator_to_string): ...member function.
8129 (copy_rtx_for_iterators): Convert to...
8130 (rtx_reader::copy_rtx_for_iterators): ...member function.
8131 (add_condition_to_string): Use rtx_reader_ptr for
8132 calls join_c_conditions.
8133 (apply_iterators): Use rtx_reader_ptr for calls to
8134 join_c_conditions and copy_rtx_for_iterators.
8135 (read_conditions): Convert to...
8136 (rtx_reader::read_conditions): ...member function.
8137 (record_potential_iterator_use): Convert to...
8138 (rtx_reader::record_potential_iterator_use): ...member function.
8139 (read_mapping): Convert to...
8140 (rtx_reader::read_mapping): ...member function.
8141 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
8142 (read_rtx): Convert to...
8143 (rtx_reader::read_rtx): ...member function.
8144 (read_rtx_code): Convert to...
8145 (rtx_reader::read_rtx_code): ...member function.
8146 (read_rtx_operand): Convert to...
8147 (rtx_reader::read_rtx_operand): ...member function. Update for move
8148 of string_obstack to a field.
8149 (read_nested_rtx): Convert to..
8150 (rtx_reader::read_nested_rtx): ...member function.
8151 (read_rtx_variadic): Convert to..
8152 (rtx_reader::read_rtx_variadic): ...member function.
8154 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8156 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
8158 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8160 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
8161 for pointer type too.
8162 (ipcp_update_vr): set_ptr_nonnull for pointer.
8164 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8166 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
8167 pt_solution_singleton_p.
8168 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
8169 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
8170 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
8171 pointer nonnull computed by VRP.
8172 Also Conservatively set pt.null to 1.
8173 (pt_solution_reset): Conservatively set pt.null to 1.
8174 (pt_solution_singleton_or_null_p): Renamed from
8175 pt_solution_singleton_p.
8176 * tree-ssanames.h (set_ptr_nonnull): Declare.
8177 (get_ptr_nonnull): Likewise.
8178 * tree-ssanames.c (set_ptr_nonnull): New.
8179 (get_ptr_nonnull): Likewise.
8180 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
8181 (evrp_dom_walker::before_dom_children): Likewise.
8183 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8185 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8186 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8187 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8188 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8189 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
8190 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8191 (rs6000_option_override_internal): Clear it if ABI_AIX.
8192 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8193 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
8195 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8197 * gimple-ssa-strength-reduction.c (record_increment): Remove
8200 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8202 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
8203 that the result is non-zero if it is true.
8204 (maybe_expand_shift): New wrapper around expand_shift_1.
8205 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
8207 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8209 PR tree-optimization/77916
8210 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
8211 Don't allow a MINUS_EXPR for pointer arithmetic for either known
8213 (record_increment): Increments of -1 for unknown strides just use
8214 a multiply initializer like other negative values.
8215 (analyze_increments): Remove stopgap solution for -1 increment
8216 applied to pointer arithmetic.
8218 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
8220 * dominance.c (dom_info::dom_info): Add new constructor for region
8221 which is vector of basic blocks.
8222 (dom_init): New method to initialize members common for both
8224 (dom_info::dom_info): Invoke dom_init for partial initialization.
8225 (dom_info::get_idom): Add check to corner cases on basic blocks which
8227 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
8228 to detect unreachable bbs.
8229 (dom_info::calc_idoms): Likewise.
8230 (compute_dom_fast_query_in_region): New function.
8231 (calculate_dominance_info_for_region): Likewise.
8232 (free_dominance_info_for_region): Likewise.
8233 * dominance.h: Add prototypes for introduced region-based functions
8234 * tree-if-conv.c (build_region): New function.
8235 (if_convertible_loop_p_1): Invoke local version of post-dominators
8236 calculation before basic block predication with subsequent freeing
8237 post-dominator info.
8238 (tree_if_conversion): Remove free of post-dominator info
8239 (pass_if_conversion::execute): Delete detection of infinite loops
8240 and fake edges to exit block since post-dominator calculation is
8241 performed per if-converted loop only.
8243 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
8246 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8247 register explicitly.
8248 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
8249 optimizing for size.
8251 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8253 * config/aarch64/aarch64.c: Delete inclusion of
8254 cortex-a57-fma-steering.h.
8255 (aarch64_override_options): Delete call
8256 to aarch64_register_fma_steering.
8257 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
8258 * config/aarch64/cortex-a57-fma-steering.h: Delete.
8259 * config/aarch64/aarch64-passes.def: New file.
8260 * config/aarch64/cortex-a57-fma-steering.c
8261 (aarch64_register_fma_steering): Delete definition.
8262 (make_pass_fma_steering): Remove static qualifier.
8263 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
8264 (cortex-a57-fma-steering.o): Remove dependency on
8265 cortex-a57-fma-steering.h.
8267 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8269 * explow.c (validize_mem): Do not modify the argument in-place.
8271 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
8273 * tree-streamer.c (record_common_node): Explicitly list expected
8276 2016-10-17 Richard Biener <rguenther@suse.de>
8278 PR tree-optimization/77988
8279 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
8281 2016-10-17 Marek Polacek <polacek@redhat.com>
8283 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
8285 2016-10-17 Richard Biener <rguenther@suse.de>
8287 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
8290 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8292 PR tree-optimization/71636
8293 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
8295 2016-10-17 Richard Biener <rguenther@suse.de>
8297 * gimplify.c (gimplify_function_tree): Do not move the outer
8300 2016-10-17 Jakub Jelinek <jakub@redhat.com>
8302 * langhooks.h (struct lang_hooks_for_decls): Remove
8303 function_decl_explicit_p, function_decl_deleted_p and
8304 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
8305 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
8306 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8307 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
8308 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
8309 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
8310 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8311 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
8312 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
8313 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
8314 * langhooks.c (lhd_decl_dwarf_attribute): New function.
8315 * dwarf2out.c (gen_subprogram_die): Use
8316 lang_hooks.decls.decl_dwarf_attribute instead of
8317 lang_hooks.decls.function_decl_*.
8319 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8323 * common.opt (-ftrampolines): New option.
8324 * doc/invoke.texi (Code Gen Options): Document it.
8325 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
8326 * doc/tm.texi: Regenerate.
8327 * builtins.def: Add init_descriptor and adjust_descriptor.
8328 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
8329 on platforms with descriptors.
8330 (expand_builtin_init_descriptor): New function.
8331 (expand_builtin_adjust_descriptor): Likewise.
8332 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
8333 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
8334 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
8335 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
8336 Set STATIC_CHAIN_REG_P on the static chain register, if any.
8337 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
8338 (expand_call): Likewise. Move around call to prepare_call_address
8339 and pass all flags to it.
8340 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
8341 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
8342 (gimple_call_set_by_descriptor): New setter.
8343 (gimple_call_by_descriptor_p): New getter.
8344 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
8345 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
8346 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
8347 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8348 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
8349 * rtl.h (STATIC_CHAIN_REG_P): New macro.
8350 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
8351 * target.def (custom_function_descriptors): New POD hook.
8352 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
8353 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
8354 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
8355 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
8356 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
8357 (build_common_builtin_nodes): Initialize init_descriptor and
8359 * tree-nested.c: Include target.h.
8360 (struct nesting_info): Add 'any_descr_created' field.
8361 (get_descriptor_type): New function.
8362 (lookup_element_for_decl): New function extracted from...
8363 (create_field_for_decl): Likewise.
8364 (lookup_tramp_for_decl): ...here. Adjust.
8365 (lookup_descr_for_decl): New function.
8366 (convert_tramp_reference_op): Deal with descriptors.
8367 (build_init_call_stmt): New function extracted from...
8368 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
8369 * defaults.h (FUNCTION_ALIGNMENT): Define.
8370 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
8371 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8372 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8373 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
8374 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8376 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8378 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
8379 constants in CONST_VECTORs.
8381 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8383 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
8384 register as destination of bmask.
8385 (vector_init_bshuffle): Likewise.
8386 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
8387 (bmaskdi_vis): Enable only in 64-bit mode.
8389 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8391 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
8392 make LR a separately shrink-wrapped component unless savres_strategy
8393 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
8394 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
8395 wrapping when not both {SAVE,REST}_INLINE_GPRS.
8397 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8399 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
8400 and keep looping on failure.
8402 2016-10-14 David Malcolm <dmalcolm@redhat.com>
8404 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
8406 (print_rtx_function): Update example in comment for...
8407 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
8408 non-virtual pseudos with a '%' sigil followed by the regno, offset
8409 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
8410 pseudo is dumped as "%0".
8412 2016-10-14 Jakub Jelinek <jakub@redhat.com>
8415 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
8418 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
8420 * config/sparc/sparc-passes.def: New file.
8421 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
8422 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
8423 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
8425 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8427 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
8428 loop peel to loops with exit test at the beginning.
8430 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8432 PR rtl-optimization/68212
8433 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
8434 frequency when computing scale factor for peeled copies.
8435 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
8436 values for switch/peel blocks/edges.
8438 2016-10-14 Pedro Alves <palves@redhat.com>
8440 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
8442 2016-10-14 Catherine Moore <clm@codesourcery.com>
8444 * config/mips/mips.c (mips_prepare_pch_save): Initialize
8445 micromips_globals to zero.
8447 2016-10-14 Richard Biener <rguenther@suse.de>
8449 PR tree-optimization/77979
8450 * tree-vrp.c (compare_name_with_value): Handle released SSA names
8451 in the equivalency sets.
8452 (compare_names): Likewise.
8454 2016-10-14 Martin Liska <mliska@suse.cz>
8456 * builtins.h(target_char_cst_p): Declare the function.
8457 * builtins.c (fold_builtin_memchr): Remove.
8458 (target_char_cst_p): Move the function from gimple-fold.c.
8459 (fold_builtin_3): Do not call the function.
8460 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
8461 (gimple_fold_builtin): Call the function.
8462 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
8464 2016-10-14 Martin Liska <mliska@suse.cz>
8466 * builtins.c (fold_builtin_strcmp): Remove function.
8467 (fold_builtin_strncmp): Likewise.
8468 (fold_builtin_2): Remove call of the function.
8469 (fold_builtin_3): Likewise.
8470 * fold-const-call.c (fold_const_call): Add constant folding
8471 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
8472 * fold-const-call.h (build_cmp_result): Declare the function.
8473 * gimple-fold.c (gimple_load_first_char): New function.
8474 (gimple_fold_builtin_string_compare): Likewise.
8475 (gimple_fold_builtin): Call the function.
8477 2016-10-14 Nathan Sidwell <nathan@acm.org>
8479 * gcov-io.c (gcov_open): Deconstify 'mode'.
8481 2016-10-14 Martin Liska <mliska@suse.cz>
8483 * fold-const.c (c_getstr): Support of properly \0-terminated
8484 string constants. New argument is added.
8485 * fold-const.h: New argument is added.
8487 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8489 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
8491 (aarch64_print_hint_for_core): Likewise.
8492 (aarch64_print_hint_for_arch): Likewise.
8493 (aarch64_validate_march): Use it. Fix indentation in type signature.
8494 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
8495 (aarch64_validate_mtune): Likewise.
8496 (aarch64_handle_attr_arch): Likewise.
8497 (aarch64_handle_attr_cpu): Likewise.
8498 (aarch64_handle_attr_tune): Likewise.
8500 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8502 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
8505 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
8507 * config/m68k/m68k.c (m68k_option_override): Check
8508 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
8509 instead of stack_limit_rtx.
8511 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8513 * dwarf2out.c (gen_member_die): Handle inline static data member
8516 2016-10-13 Nathan Sidwell <nathan@acm.org>
8518 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
8519 gcov_var.mode. Remove unnecessary fstat.
8521 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
8524 * function.c (thread_prologue_and_epilogue_insns): Call all
8525 make_*logue_seq in the same order as traditional. Call them
8526 all a second time if shrink_wrapped_separate.
8528 2016-10-13 Marek Polacek <polacek@redhat.com>
8530 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8531 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
8534 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8536 PR tree-optimization/77937
8537 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
8538 to infinite when we have a pointer with an increment of -1.
8540 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8542 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
8544 * memmodel.h: This file.
8545 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
8546 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
8547 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
8548 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
8549 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
8550 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
8551 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
8552 compare-elim.c, config/aarch64/aarch64-builtins.c,
8553 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
8554 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
8555 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
8556 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
8557 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
8558 config/darwin.c, config/epiphany/epiphany.c,
8559 config/epiphany/mode-switch-use.c,
8560 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
8561 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
8562 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
8563 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8564 config/m68k/m68k.c, config/mcore/mcore.c,
8565 config/microblaze/microblaze.c, config/mmix/mmix.c,
8566 config/mn10300/mn10300.c, config/moxie/moxie.c,
8567 config/msp430/msp430.c, config/nds32/nds32-cost.c,
8568 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
8569 config/nds32/nds32-memory-manipulation.c,
8570 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
8571 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
8572 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
8573 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
8574 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
8575 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
8576 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8577 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8578 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
8579 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
8580 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
8581 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
8582 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
8583 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
8584 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
8585 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
8586 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
8587 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
8588 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
8589 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
8590 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
8591 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
8592 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
8593 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
8594 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
8595 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
8596 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
8597 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
8598 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
8599 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
8600 var-tracking.c, varasm.c: Include memmodel.h.
8601 * genattrtab.c (write_header): Include memmodel.h in generated file.
8602 * genautomata.c (main): Likewise.
8603 * gengtype.c (open_base_files): Likewise.
8604 * genopinit.c (main): Likewise.
8605 * genconditions.c (write_header): Include memmodel.h earlier in
8607 * genemit.c (main): Likewise.
8608 * genoutput.c (output_prologue): Likewise.
8609 * genpeep.c (main): Likewise.
8610 * genpreds.c (write_insn_preds_c): Likewise.
8611 * genrecog.c (write_header): Likewise.
8612 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
8614 2016-10-13 David Malcolm <dmalcolm@redhat.com>
8616 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
8617 for new "compact" param of print_rtx_function. Check for "cinsn"
8619 * print-rtl-function.c (flag_compact): New decl.
8620 (print_rtx_function): Add param "compact" and use it to set
8621 flag_compact, adding a description of the effect to the leading
8622 comment, and updating the example output.
8623 * print-rtl.c (flag_compact): New variable.
8624 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
8626 (print_rtx_operand_code_i): When printing source locations, wrap
8627 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
8628 (print_rtx_operand_code_r): Don't print regnos for hard regs and
8629 virtuals in compact mode.
8630 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
8631 apart from in LABEL_REFs.
8632 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
8633 Don't print basic block ids in compact mode.
8634 (print_rtx): In compact mode, prefix the code of insns with "c",
8635 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
8636 * print-rtl.h (print_rtx_function): Add "compact" param.
8638 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
8640 * arm.h (TARGET_VFP): Delete.
8641 (TARGET_VFPD32): Remove references to TARGET_VFP.
8642 (TARGET_VFP3, TARGET_VFP5): Likewise.
8643 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
8644 (TARGET_NEON_FP16): Likewise.
8645 (TARGET_FMA): Likewise.
8646 (TARGET_CRYPTO): Likewise.
8647 (TARGET_NEON): Likewise.
8648 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8649 (FUNCTION_ARG_REGNO_P): Likewise.
8650 * arm.c (arm_option_check_internal): Likewise.
8651 (arm_option_override): Likewise.
8652 (use_return_insn): Likewise.
8653 (arm_function_value_regno_p): Likewise.
8654 (arm_apply_result_size): Likewise.
8655 (use_vfp_abi): Likewise.
8656 (arm_legitimate_address_outer_p): Likewise.
8657 (thumb2_legitimate_address_p): Likewise.
8658 (arm_legitimate_index_p): Likewise.
8659 (thumb2_legitimate_index_p): Likewise.
8660 (arm_legitimate_address): Likewise.
8661 (arm_get_vfp_saved_size): Likewise.
8662 (arm_emit_vfp_multi_reg_pop): Likewise.
8663 (arm_get_frame_offsets): Likewise.
8664 (arm_save_coproc_regs): Likewise.
8665 (arm_hard_regno_mode_ok): Likewise.
8666 (arm_expand_epilogue_apcs_frame): Likewise.
8667 (arm_expand_epilogue): Likewise.
8668 (arm_file_start): Likewise.
8669 (arm_conditional_register_usage): Likewise.
8670 (arm_validize_comparison): Use vfp_compare_operand directly.
8671 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
8672 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
8674 (arm_atomic_assign_expand_fenv): Likewise.
8675 * arm.md (divsf3): Likewise.
8676 (arm_negsi2): Likewise.
8678 (arm_movdi): Likewise.
8679 (arm_movt): Likewise.
8680 (cbranchsf4): Change predicate to vfp_compare_operand.
8681 (cbranchdf4): Change predicate to vfp_compare_operand.
8682 (cstorehf4): Change predicate to vfp_compare_operand.
8683 (cstoresf4): Change predicate to vfp_compare_operand.
8684 (cstoredf4): Change predicate to vfp_compare_operand.
8685 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
8686 (movhi_insn_arch4, movhi_bytes): Likewise.
8687 * constraints.md (Dt): Likewise.
8689 * iterators.md (SDF): Likewise.
8690 * predicates.md (arm_float_compare_operand): Delete.
8691 (const_double_vcvt_power_of_two_reciprocal): Remove references to
8693 (const_double_vcvt_power_of_two): Likewise.
8694 * thumb2.md thumb2_movsi_insn): Likewise.
8695 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
8696 (movhf_vfp): Likewise.
8697 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
8698 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
8699 (movsf_vfp, thumb2_movsf_vfp): Likewise.
8700 (movdf_vfp, thumb2_movdf_vfp): Likewise.
8701 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
8702 (subsf3_vfp, divsf3_vfp): Likewise.
8703 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
8704 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
8705 (mulsf3negsfsubsf_vfp): Likewise.
8706 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
8707 (floatunssisf2, sqrtsf2_vfp): Likewise.
8708 (movcc_vfp): Likewise.
8709 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
8710 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
8711 (push_multi_vfp): Likewise.
8712 (set_fpscr, get_fpscr): Likewise.
8713 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
8715 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
8717 * arm.h (TARGET_VFP): Unconditionally define to 1.
8718 (arm_fpu_desc): Remove 'model' field.
8719 (TARGET_FPU_MODEL): Delete.
8720 * arm.c (all_fpus): Don't initialize the model field.
8721 (arm_can_inline_p): Don't check the FPU model.
8722 * arm-fpus.def: Remove redundant model field from all FPU
8725 2016-10-13 Richard Biener <rguenther@suse.de>
8728 * genmatch.c (struct capture): Add value_match member.
8729 (commutate): Preserve value_match.
8730 (lower_opt_convert): Likewise.
8731 (lower_cond): Likewise.
8732 (replace_id): Likewise.
8733 (struct dt_operand): Add value_match member.
8734 (decision_tree::cmp_node): Compare it.
8735 (decision_tree::insert_operand): Honor it when finding and
8736 when appending a DT_MATCH.
8737 (dt_operand::gen_match_op): Generate a type check after
8738 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
8739 (parser::get_internal_capture_id): New helper.
8740 (parser::finish_match_operand): New function lowering @@<id>.
8741 (parser::parse_capture): Parse @@<id> as value-match.
8742 (parser::parse_expr): Use get_internal_capture_id.
8743 (parser::parse_simplify): Call finish_match_operand.
8744 (walk_captures): New helper.
8745 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
8747 ((X /[ex] A) * A -> X): Likewise.
8748 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
8749 convert[12] and value-matching.
8750 ((A | B) & (A | C) -> A | (B & C)): Likewise.
8751 ((X | Y) | Y -> X | Y): Likewise.
8752 ((X ^ Y) ^ Y -> X): Likewise.
8753 (A - (A & B) -> ~B & A): Likewise.
8754 ((T)(P + A) - (T)P -> (T) A): Likewise.
8755 ((T)P - (T)(P + A) -> -(T) A): Likewise.
8756 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
8757 * doc/match-and-simplify.texi: Amend capture section.
8759 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
8761 * config/arc/arc.md (umul_600): Remove predicated variant.
8762 (umul64_600): Likewise.
8764 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
8766 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
8768 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8770 * tree-vect-loop.c (loop_niters_no_overflow): New func.
8771 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
8772 no-overflow information to vect_do_peeling_for_loop_bound and
8773 vect_gen_vector_loop_niters.
8775 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8777 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
8780 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8782 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
8783 adjust_vec automatically.
8784 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
8785 param exit_bb to guard_to.
8786 (slpeel_checking_verify_cfg_after_peeling):
8787 (set_prologue_iterations):
8788 (create_lcssa_for_virtual_phi): New func which is factored out from
8789 slpeel_tree_peel_loop_to_edge.
8790 (slpeel_tree_peel_loop_to_edge):
8791 (iv_phi_p): New func.
8792 (vect_can_advance_ivs_p): Call iv_phi_p.
8793 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
8794 new gimple stmts in basic block.
8795 (vect_gen_niters_for_prolog_loop): Rename to...
8796 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
8797 adjust implementation.
8798 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
8799 sizetype if necessary.
8800 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
8801 it to external function.
8802 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
8803 (vect_gen_vector_loop_niters_mult_vf): New.
8804 (slpeel_update_phi_nodes_for_loops): New.
8805 (slpeel_update_phi_nodes_for_guard1): Reimplement.
8806 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
8807 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
8808 * tree-vect-loop.c (vect_build_loop_niters): Move to file
8809 tree-vect-loop-manip.c
8810 (vect_generate_tmps_on_preheader): Delete.
8811 (vect_transform_loop): Rename vectorization_factor to vf. Call
8812 vect_do_peeling instead of vect_do_peeling-* functions.
8813 * tree-vectorizer.h (vect_do_peeling): New decl.
8814 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
8815 (vect_do_peeling_for_loop_bound): Delete.
8816 (vect_do_peeling_for_alignment): Delete.
8818 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8820 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
8821 duplicated loop after its preheader and after the original loop.
8823 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8825 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
8826 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
8828 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8830 * tree-vect-loop.c (vectorizable_live_operation): Support handling
8831 for live variable outside loop but not in lcssa form.
8833 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8835 * cfg.c (reset_original_copy_tables): New func.
8836 * cfg.h (reset_original_copy_tables): New decl.
8838 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8841 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
8843 * varasm.c (default_binds_local_p_3): Formatting fix.
8845 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8847 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
8849 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
8850 Remove useless code.
8852 2016-10-13 Martin Liska <mliska@suse.cz>
8854 PR tree-optimization/77943
8855 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
8856 a different EH landing pads.
8858 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8861 * hooks.h (hook_tree_void_null): Declare.
8862 * hooks.c (hook_tree_void_null): New function.
8863 * langhooks.c (lhd_return_null_tree_v): Remove.
8864 * langhooks-def.h (lhd_return_null_tree_v): Remove.
8865 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
8866 set y to const0_rtx.
8867 * function.c (stack_protect_epilogue): Likewise.
8868 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
8869 if TARGET_THREAD_SSP_OFFSET is defined.
8870 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8871 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8872 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8873 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8874 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8875 (ix86_stack_protect_guard): New function.
8877 2016-10-13 Richard Biener <rguenther@suse.de>
8879 * dwarf2out.c (tree_add_const_value_attribute): Do not try
8880 rtl_for_decl_init during early phase.
8881 (gen_variable_die): Do not create locations during early phase.
8882 (gen_label_die): Likewise.
8883 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
8886 2016-10-12 Richard Biener <rguenther@suse.de>
8888 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
8889 try_add_new_range and made to eturn new range.
8890 (evrp_dom_walker::before_dom_children): Push op1 value range before
8891 pushing op0 value range.
8893 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8895 PR tree-optimization/77937
8896 * gimple-ssa-strength-reduction.c (analyze_increments): Use
8897 POINTER_TYPE_P on the candidate type to determine whether
8898 candidates in this chain require pointer arithmetic.
8900 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
8902 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
8903 correction if the type is smaller than a word.
8904 (visium_select_cc_mode): Add ... fall through ... comment.
8906 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8908 * config/rs6000/rs6000.c (machine_function): Add new fields
8909 gpr_is_wrapped_separately and lr_is_wrapped_separately.
8910 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
8911 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
8912 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
8913 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
8914 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
8915 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
8916 (rs6000_get_separate_components): New function.
8917 (rs6000_components_for_bb): New function.
8918 (rs6000_disqualify_components): New function.
8919 (rs6000_emit_prologue_components): New function.
8920 (rs6000_emit_epilogue_components): New function.
8921 (rs6000_set_handled_components): New function.
8922 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
8923 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
8924 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
8925 (rs6000_emit_epilogue): Don't emit GPR restores if
8926 gpr_is_wrapped_separately for that register. Don't make a
8927 REG_CFA_RESTORE note for registers we did not restore, either.
8929 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8931 * function.c (thread_prologue_and_epilogue_insns): Call
8932 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
8933 if it has possibly changed. Compute the split_prologue_seq and
8934 epilogue_seq later, too.
8935 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
8936 (dump_components): New function.
8937 (struct sw): New struct.
8939 (init_separate_shrink_wrap): New function.
8940 (fini_separate_shrink_wrap): New function.
8941 (place_prologue_for_one_component): New function.
8942 (spread_components): New function.
8943 (disqualify_problematic_components): New function.
8944 (emit_common_heads_for_components): New function.
8945 (emit_common_tails_for_components): New function.
8946 (insert_prologue_epilogue_for_components): New function.
8947 (try_shrink_wrapping_separate): New function.
8948 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
8950 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8952 * regrename.c (build_def_use): Invalidate chains that have a
8953 REG_CFA_RESTORE on some instruction.
8955 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8957 * dce.c (delete_unmarked_insns): Don't delete instructions with
8958 a REG_CFA_RESTORE note.
8960 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8962 * common.opt (-fshrink-wrap-separate): New flag.
8963 * doc/invoke.texi: Document it.
8964 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
8965 * doc/tm.texi: Regenerate.
8966 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
8967 * target.def (shrink_wrap): New hook vector.
8968 (get_separate_components, components_for_bb, disqualify_components,
8969 emit_prologue_components, emit_epilogue_components,
8970 set_handled_components): New hooks.
8972 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8974 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
8975 vector return by reference only if -Wpsabi.
8976 (rs6000_pass_by_reference): Similarly, for argument passing.
8978 2016-10-12 David Malcolm <dmalcolm@redhat.com>
8980 * function-tests.c: Include "print-rtl.h".
8981 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
8982 function, and verify what is dumped.
8983 * print-rtl-function.c (print_edge): New function.
8984 (begin_any_block): New function.
8985 (end_any_block): New function.
8986 (can_have_basic_block_p): New function.
8987 (print_rtx_function): Track the basic blocks of insns in the
8988 chain, wrapping those that are within blocks within "(block)"
8989 directives. Remove the "(cfg)" directive.
8991 2016-10-12 David Malcolm <dmalcolm@redhat.com>
8993 * selftest.c (selftest::read_file): New function.
8994 (selftest::test_read_file): New function.
8995 (selftest::selftest_c_tests): Call test_read_file.
8996 * selftest.h (selftest::read_file): New decl.
8998 2016-10-12 Richard Biener <rguenther@suse.de>
9001 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
9004 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
9006 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
9008 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
9009 dwarf2out_assembly_start.
9011 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
9013 * Makefile.in (SELFTEST_FLAGS): New variable.
9014 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
9016 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
9019 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
9021 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
9022 dumped in RTL dumps.
9024 2016-10-12 Martin Liska <mliska@suse.cz>
9026 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
9027 (gimple_fold_builtin_memory_op): Use the function.
9028 (gimple_fold_builtin_strchr): Likewise.
9029 (gimple_fold_builtin_strcat): Likewise.
9030 (gimple_build): Likewise.
9032 2016-10-12 Nathan Sidwell <nathan@acm.org>
9034 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
9036 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9038 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
9039 equivalent 32-bit constant (modulo 2**32) when that yields
9040 smaller instructions.
9041 (size_of_int_loc_descriptor): Update accordingly.
9043 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9045 * dwarf2out.c (dwarf2out_early_global_decl): For nested
9046 functions, call dwarf2out_decl on the parent function first.
9048 2016-10-12 Richard Biener <rguenther@suse.de>
9050 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
9053 2016-10-12 Richard Biener <rguenther@suse.de>
9055 * tree-ssa-propagate.c
9056 (substitute_and_fold_dom_walker::before_dom_children): Do not
9057 ignore ASSERT_EXPRs but only preserve them.
9058 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
9059 that have been propagated into.
9060 (vrp_finalize): Enable DCE for substitute_and_fold.
9062 2016-10-12 Richard Biener <rguenther@suse.de>
9064 PR tree-optimization/77920
9065 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
9066 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
9067 (simplify_abs_using_ranges): Likewise.
9068 (simplify_conversion_using_ranges): Likewise.
9069 (simplify_stmt_using_ranges): Adjust.
9071 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9073 PR tree-optimization/77929
9074 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
9075 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
9077 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9080 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
9081 needs a base register for arg 1.
9083 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9085 * common.opt (Wimplicit-fallthrough) Turn into alias to
9086 -Wimplicit-fallthrough=3. Remove EnabledBy.
9087 (Wimplicit-fallthrough=): New option.
9088 * gimplify.c (warn_implicit_fallthrough_r): Use
9089 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
9090 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
9091 to -Wimplicit-fallthrough=3.
9092 (-Wimplicit-fallthrough=): Document.
9094 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9096 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
9097 and GEU in DImode if TARGET_SUBXC.
9098 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
9099 (seqdi<W:mode>_zero_subxc): Delete.
9100 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
9101 (neg_seqdi<W:mode>_zero_vis3): Delete.
9102 (plus_seqdi<W:mode>_zero): Likewise.
9103 (minus_seqdi<W:mode>_zero): Likewise.
9104 (plus_plus_sltu<W:mode>): Accept only register.
9105 (addx<W:mode>): Likewise.
9106 (plus_sltu<W:mode>_vis3): Likewise.
9107 (plus_plus_sltu<W:mode>_vis3): Likewise.
9108 (neg_sgeu<W:mode>_vis3): Delete.
9109 (minus_sgeu<W:mode>_vis3): Likewise.
9110 (addxc<W:mode>): Accept only registers.
9111 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
9112 (minus_neg_sltu<W:mode>_subxc): Accept only register.
9113 (neg_plus_sltu<W:mode>_subxc): Likewise.
9114 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
9115 (minus_minus_sltu<W:mode>_subxc): Accept only register.
9116 (sgeu<W:mode>_insn_subxc): Delete.
9117 (plus_sgeu<W:mode>_subxc): Likewise.
9118 (subxc<W:mode>): Accept only register.
9119 (scc splitter): Split always GEU again.
9121 2016-10-11 Jeff Law <law@redhat.com>
9123 PR tree-optimization/77424
9124 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
9125 dead conditionals. Assert that all e->aux fields are NULL.
9127 2016-10-11 David Malcolm <dmalcolm@redhat.com>
9129 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
9130 operand-printing "switch" statement into...
9131 (print_rtx_operand_code_0): ...this new function, ...
9132 (print_rtx_operand_code_e): ...this new function, ...
9133 (print_rtx_operand_codes_E_and_V): ...this new function, ...
9134 (print_rtx_operand_code_i): ...this new function, ...
9135 (print_rtx_operand_code_r): ...this new function, ...
9136 (print_rtx_operand_code_u): ...this new function, ...
9137 (print_rtx_operand): ...and this new function.
9139 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
9141 * config/alpha/alpha-passes.def: New file.
9142 * config/alpha/t-alpha: New file.
9143 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
9144 (make_pass_handle_trap_shadows): New prototype.
9145 (make_pass_align_insns): Ditto.
9146 * config/alpha/alpha.c (alpha_option_override): Don't register
9148 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
9150 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9153 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
9154 distinct __ibm128 IBM extended double type if long doubles are
9155 128-bits and the default format for long double is IEEE 128-bit.
9157 2016-10-11 Richard Biener <rguenther@suse.de>
9159 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
9160 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
9161 (verify_die): New function.
9162 (dwarf2out_finish): Call it.
9163 (output_line_info): Handle case of -gsplit-dwarf without
9164 DWARF2_ASM_LINE_DEBUG_INFO.
9166 2016-10-11 Richard Biener <rguenther@suse.de>
9169 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
9170 sub-chains of BLOCK_VARS and gimple_bind_vars.
9172 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9174 * config/i386/znver1.md : Fix imov/imovx load type reservations.
9176 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9178 * config/sparc/sparc.opt (msubxc): New option.
9179 * doc/invoke.texi (SPARC options): Document it and tidy up.
9180 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
9181 * doc/tm.texi: Regenerate.
9182 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
9184 (CCX_NOOV): Rename into...
9188 * config/sparc/predicates.m (fcc_register_operand): Simplify.
9189 (fcc0_register_operand): Likewise.
9190 (icc_register_operand): New.
9191 (icc_or_fcc_register_operand): Simplify.
9192 (nz_comparison_operator): New.
9193 (c_comparison_operator): Likewise.
9194 (noov_compare_operator): Rename into...
9195 (icc_comparison_operator): ...this. Use above predicates.
9196 (noov_compare64_operator): Rename into...
9197 (v9_comparison_operator): ...this and tidy up.
9198 (fcc_comparison_operator): New.
9199 (icc_or_fcc_comparison_operator): Likewise.
9200 (v9_register_compare_operator): Rename info...
9201 (v9_register_comparison_operator): ...this.
9202 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9203 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
9205 (sparc_fixed_condition_code_regs): New function.
9206 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
9207 renaming and add support for CCC/CCXC.
9208 (output_cbranch): Likewise.
9209 (sparc_print_operand): Likewise.
9210 (gen_v9_scc): Remove obsolete assertion.
9211 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
9212 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
9213 (output_cbcond): Remove bogus handling of CC modes.
9214 (sparc_register_move_cost): Return 100 for NO_REGS.
9215 * config/sparc/sparc.md (W): New mode iterator.
9216 (length): Adjust for noov_compare64_operator renaming.
9217 (cmpsi_sne): New instruction.
9218 (cmpdi_sne): Likewise.
9219 (seqdi_special): Delete.
9220 (seqdi_special): Likewise.
9221 (snesi<P:mode>_special): Likewise.
9222 (snedi_special): Likewise.
9223 (snedi_special_vis3): Likewise.
9224 (snesi patterns): Use W iterator.
9225 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
9226 (sltu patterns): Likewise.
9227 (sgeu patterns): Likewise.
9228 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
9229 (normal_branch): Use icc_comparison_operator predicate.
9230 (inverted_branch): Likewise.
9231 (cbcond_sp32): Use comparison_operator predicate.
9232 (cbcond_sp64): Likewise.
9233 (normal_int_branch_sp64): Adjust for renaming
9234 (inverted_int_branch_sp64): Likewise.
9235 (mov<I:mode>_cc_reg_sp64): Likewise.
9236 (movsf_cc_reg_sp6): Likewise.
9237 (movdf_cc_reg_sp64): Likewise.
9238 (movtf_cc_reg_hq_sp64): Likewise.
9239 (movtf_cc_reg_sp64): Likewise.
9240 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
9241 (movsf_cc_v9): Likewise.
9242 (movdf_cc_v9): Likewise.
9243 (movtf_cc_hq_v9): Likewise.
9244 (movtf_cc_v9): Likewise.
9245 (adddi3): Call gen_adddi3_sp32.
9246 (adddi3_insn_sp32): Rename to...
9247 (adddi3_sp32): ...this. Accept only register_operand as operand #1
9248 and use CCCmode for the carry.
9249 (addx_extend_sp32): Use CCCmode for the carry.
9250 (addx_extend_sp64): Delete.
9251 (adddi3_extend_sp32): Use CCCmode for the carry.
9252 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
9253 (subdi3): Call gen_subdi3_sp32.
9254 (subdi3_insn_sp32): Rename to...
9255 (subdi3_sp32): ...this and use CCmode for the carry.
9256 (subx_extend_sp32): Use CCCmode for the carry.
9257 (subx_extend_sp64): Delete.
9258 (subdi3_extend_sp32): Use CCmode for the carry.
9259 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
9260 (negdi3): Call gen_negdi3_sp32.
9261 (negdi3_sp32): Use CCCmode for the carry.
9262 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
9263 (cmp_nz_ashift_1): Use CCNZ mode.
9264 (cmp_nz_set_ashift_1): Likewise.
9265 (ctrapsi4): Use comparison_operator predicate.
9266 (ctrapdi4): Likewise.
9267 (trapsi_insn): Use icc_comparison_operator predicate.
9268 (trapdi_insn): Likewise.
9269 (edge8 patterns): Use CCNZmode.
9270 (edge16 patterns): Likewise.
9271 (edge32 patterns): Likewise.
9273 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9275 * config/visium/visium-modes.def (CC_NOOV): Rename into...
9277 (CC_BTST): Rename into...
9279 * config/visium/predicates.md (real_add_operand): New.
9280 (visium_btst_operator): Rename into...
9281 (visium_equality_comparison_operator): ...this.
9282 (visium_noov_operator): Rename into...
9283 (visium_nz_comparison_operator): ...this.
9284 (visium_c_comparison_operator): New.
9285 (visium_branch_operator): Adjust and deal with all CC modes.
9286 * config/visium/visium.c (visium_adjust_cost): Adjust.
9287 (visium_split_double_add): Use the *_set_carry patterns.
9288 (visium_select_cc_mode): Add support for CCC mode and adjust.
9289 (output_cbranch): Adjust and use the carry-based operators for
9290 floating-point comparisons.
9291 * config/visium/visium.md (flags_subst_arith): Adjust.
9292 (addsi3_insn_set_carry): New instruction.
9293 (subsi3_insn_set_carry): Likewise.
9294 (negsi2_insn_set_carry): Likewise.
9296 (cmp<mode>_sne): Likewise.
9297 (cbranch<mode>4): Use ordered_comparison_operator.
9298 (cbranch<mode>4_insn): Likewise.
9299 (cbranchsi4_btst_insn): Adjust.
9301 2016-10-11 Tom de Vries <tom@codesourcery.com>
9304 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
9307 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9309 * tree.h (build_complex_type): Add second parameter with default.
9310 * tree.c (build_complex_type): Add NAMED second parameter and adjust
9311 recursive call. Create a TYPE_DECL only if NAMED is true.
9312 (build_common_tree_nodes): Pass true in calls to build_complex_type.
9314 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
9316 New avr-passes.def to register AVR specific passes.
9318 * config/avr/avr-passes.def: New file.
9319 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
9320 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
9321 (make_avr_pass_recompute_note): New proto.
9322 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
9323 (avr_pass_recompute_notes): Use anonymous namespace.
9324 (avr_register_passes): Remove function...
9325 (avr_option_override): ...and its call.
9327 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
9329 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
9330 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
9331 PTF_AVOID_BRANCHLIKELY_SPEED for others.
9332 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
9334 * config/mips/mips.c (mips_option_override): Enable the branch
9335 likely depending on the tune flags and optimization level.
9336 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
9337 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
9338 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
9339 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
9341 2016-10-11 Richard Biener <rguenther@suse.de>
9343 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
9344 (output_function): Properly stream the whole block tree.
9345 * lto-streamer-in.c (input_function): Likewise.
9347 2016-10-11 Marek Polacek <polacek@redhat.com>
9349 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
9351 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9353 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
9354 (evrp_dom_walker::before_dom_children): Infer and push new value
9355 ranges for x in y < x.
9357 2016-10-10 Joseph Myers <joseph@codesourcery.com>
9360 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
9361 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
9362 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9363 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9364 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
9365 (IA64_NO_LIBGCC_TFMODE): Likewise.
9367 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9369 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
9372 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
9374 * config.gcc: Add aarch64-*-freebsd* support.
9375 * config.host: Likewise.
9376 * config/aarch64/aarch64-freebsd.h: New file.
9377 * config/aarch64/t-aarch64-freebsd: Ditto.
9379 2016-10-10 Jeff Law <law@redhat.com>
9381 PR tree-optimization/71947
9382 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
9383 B with A within a single statement.
9385 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9387 PR tree-optimization/77824
9388 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
9389 zero cost for copies.
9390 (find_candidates_dom_walker::before_dom_children): Replace
9391 MODIFY_EXPR with SSA_NAME.
9392 (replace_mult_candidate): Likewise.
9393 (replace_profitable_candidates): Likewise.
9395 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9397 * config/s390/s390.h: Wrap more macros args in brackets and fix
9399 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
9401 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
9403 2016-10-10 Andreas Schwab <schwab@suse.de>
9406 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
9407 pseudo is not DImode.
9409 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
9411 * common/config/arc/arc-common.c (arc_option_optimization_table):
9412 Remove compact casesi option.
9413 * config/arc/arc.c (arc_override_options): Use compact casesi
9414 option only for pre-ARCv2 cores.
9415 * doc/invoke.texi (mcompact-casesi): Update text.
9417 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9419 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
9420 Add macro to say we can efficiently handle overlapping unaligned
9422 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
9423 poor code for processors older than p8.
9425 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
9427 * gen-pass-instances.awk: Remove GNUism.
9429 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9431 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
9432 NULL of (*ipcp_transformations)][node->uid].
9434 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
9436 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
9437 (MALLOC_ABI_ALIGNMENT): Define.
9439 2016-10-09 Jakub Jelinek <jakub@redhat.com>
9441 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
9442 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
9443 VAR_OR_FUNCTION_DECL_P macros.
9444 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
9445 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
9446 chkp_find_bounds_1): Likewise.
9447 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
9448 * hsa-gen.c (get_symbol_for_decl): Likewise.
9449 * cgraphunit.c (check_global_declaration, analyze_functions,
9450 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
9452 * gimple-fold.c (can_refer_decl_in_current_unit_p,
9453 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
9455 * tree.c (set_decl_section_name, copy_node_stat,
9456 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
9457 merge_dllimport_decl_attributes, handle_dll_attribute,
9458 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
9459 verify_type): Likewise.
9460 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
9461 find_explicit_erroneous_behavior): Likewise.
9462 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
9463 * ipa.c (process_references): Likewise.
9464 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
9465 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
9466 notice_global_symbol, assemble_variable, mark_decl_referenced,
9467 build_constant_desc, output_constant_def_contents, do_assemble_alias,
9468 make_decl_one_only, default_section_type_flags,
9469 categorize_decl_for_section, default_encode_section_info): Likewise.
9470 * trans-mem.c (requires_barrier): Likewise.
9471 * gimple-expr.c (mark_addressable): Likewise.
9472 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
9473 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
9474 expand_debug_expr): Likewise.
9475 * tree-dump.c (dequeue_and_dump): Likewise.
9476 * ubsan.c (instrument_bool_enum_load): Likewise.
9477 * tree-pretty-print.c (print_declaration): Likewise.
9478 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9479 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
9480 * asan.c (asan_protect_global, instrument_derefs): Likewise.
9481 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
9482 pass_build_ssa::execute): Likewise.
9483 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
9484 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
9486 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
9488 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
9489 can_be_nonlocal, remap_decls, copy_debug_stmt,
9490 initialize_inlined_parameters, add_local_variables,
9491 reset_debug_binding, replace_locals_op): Likewise.
9492 * dse.c (can_escape): Likewise.
9493 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
9495 * tree-diagnostic.c (default_tree_printer): Likewise.
9496 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
9497 unpack_ts_decl_with_vis_value_fields,
9498 lto_input_ts_decl_common_tree_pointers): Likewise.
9499 * builtins.c (builtin_save_expr, fold_builtin_expect,
9500 readonly_data_expr): Likewise.
9501 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
9502 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
9504 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
9505 * gimplify.c (force_constant_size, gimplify_bind_expr,
9506 gimplify_decl_expr, gimplify_var_or_parm_decl,
9507 gimplify_compound_lval, gimplify_init_constructor,
9508 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
9509 gimplify_type_sizes): Likewise.
9510 * cgraphbuild.c (record_reference, record_type_list, mark_address,
9511 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
9512 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
9513 remove_unused_locals): Likewise.
9514 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
9515 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
9516 * function.c (instantiate_expr, instantiate_decls_1,
9517 setjmp_vars_warning, add_local_decl): Likewise.
9518 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
9520 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
9521 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
9522 optimize_va_list_gpr_fpr_size): Likewise.
9523 * tree-nrv.c (pass_nrv::execute): Likewise.
9524 * tsan.c (instrument_expr): Likewise.
9525 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
9526 * vtable-verify.c (verify_bb_vtables): Likewise.
9527 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
9528 get_ref_base_and_extent): Likewise.
9529 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
9531 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
9532 analyze_all_variable_accesses): Likewise.
9533 * tree-nested.c (get_nonlocal_debug_decl,
9534 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
9535 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
9536 get_local_debug_decl, convert_local_omp_clauses,
9537 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
9539 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
9540 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
9541 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
9542 dbxout_symbol, dbxout_common_check): Likewise.
9543 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
9544 string_constant): Likewise.
9545 * hsa.c (hsa_get_declaration_name): Likewise.
9546 * passes.c (rest_of_decl_compilation): Likewise.
9547 * tree-ssanames.c (make_ssa_name_fn): Likewise.
9548 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
9549 pack_ts_decl_with_vis_value_fields,
9550 write_ts_decl_common_tree_pointers): Likewise.
9551 * stor-layout.c (place_field): Likewise.
9552 * symtab.c (symtab_node::maybe_create_reference,
9553 symtab_node::verify_base, symtab_node::make_decl_local,
9554 symtab_node::copy_visibility_from,
9555 symtab_node::can_increase_alignment_p): Likewise.
9556 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
9557 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
9558 fortran_common, add_location_or_const_value_attribute,
9559 add_scalar_info, add_linkage_name, set_block_abstract_flags,
9560 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
9561 optimize_one_addr_into_implicit_ptr,
9562 optimize_location_into_implicit_ptr): Likewise.
9563 * gimple-low.c (record_vars_into): Likewise.
9564 * ipa-visibility.c (update_vtable_references): Likewise.
9565 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
9567 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
9568 DFS::DFS_write_tree_body, write_symbol): Likewise.
9569 * langhooks.c (lhd_warn_unused_global_decl,
9570 lhd_set_decl_assembler_name): Likewise.
9571 * attribs.c (decl_attributes): Likewise.
9572 * except.c (output_ttype): Likewise.
9573 * varpool.c (varpool_node::get_create, ctor_for_folding,
9574 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
9575 * fold-const.c (fold_unary_loc): Likewise.
9576 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
9577 ipa_find_agg_cst_from_init): Likewise.
9578 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
9579 expand_omp_target, lower_omp_regimplify_p,
9580 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
9581 find_link_var_op): Likewise.
9582 * tree-chrec.c (chrec_contains_symbols): Likewise.
9583 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
9584 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
9585 execute_fixup_cfg): Likewise.
9587 PR tree-optimization/77901
9588 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
9589 if ranges[i].exp is SSA_NAME when looking for >= and only when
9590 ranges[i].exp is NULL or SSA_NAME when looking for the other
9593 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9595 * ipa-cp.c (ipcp_alignment_lattice): Remove.
9596 (ipcp_param_lattices): Remove field alignment.
9597 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
9598 (set_all_contains_variable): Remove call to
9599 ipcp_alignment_lattice::set_to_bottom.
9600 (initialize_node_lattices): Likewise.
9601 (propagate_alignment_accross_jump_function): Remove.
9602 (propagate_constants_accross_call): Remove call to
9603 propagate_alignment_accross_jump_function.
9604 (ipcp_store_alignment_results): Remove.
9605 (ipcp_driver): Remove call to ipcp_store_alignment_results.
9606 (propagate_bits_accross_jump_function): Handle ancestor jump function.
9607 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
9608 pretty-printing of alignment jump function.
9609 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
9610 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
9611 alignments and remove computing ipa_alignment jump function.
9612 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
9613 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
9614 (ipa_read_jump_function): Remove reading of ipa_alignment.
9615 (write_ipcp_transformation_info): Remove streaming for alignment
9616 propagation summary.
9617 (read_ipcp_transformation_info): Remove reading of alignment
9618 propagation summary.
9619 (ipcp_update_alignments): Remove.
9620 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
9622 (ipcp_transform_function): Remove call to ipcp_update_alignments()
9623 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
9624 * ipa-prop.h (ipa_alignment): Remove.
9625 (ipa_jump_func): Remove field alignment.
9626 (ipcp_transformation_summary): Remove field alignments.
9627 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
9628 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
9629 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
9631 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
9633 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
9635 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
9637 (visium_expand_fp_cstore): Likewise.
9639 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9641 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
9642 * diagnostic.c (warning_at_rich_loc_n): New function.
9643 (diagnostic_n_impl_richloc): Likewise.
9644 (diagnostic_n_impl): Move most of the function to
9645 diagnostic_n_impl_richloc and call it.
9647 2016-10-08 Jakub Jelinek <jakub@redhat.com>
9649 * gen-pass-instances.awk: Rewritten.
9650 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
9651 $(PASSES_EXTRA) after passes.def to the script.
9652 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
9653 * config/i386/i386-passes.def: New file.
9654 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
9655 make_pass_stv): Declare.
9656 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
9658 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
9660 (pass_stv::clone, pass_stv::set_pass_param): New methods.
9661 (pass_stv::timode_p): New non-static data member.
9662 (ix86_option_override): Don't register passes here.
9664 * doc/invoke.texi: Document accepting Else, fallthrough.
9666 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
9669 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
9670 FALLTHRU comment styles.
9672 2016-10-07 Andrew Pinski <apinski@cavium.com>
9674 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
9675 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
9676 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
9678 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
9680 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
9682 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
9683 (AARCH64_ARCH): Likewise.
9684 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
9686 (AARCH64_CORE): Likewise.
9687 (AARCH64_ARCH): Likewise.
9688 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
9689 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
9690 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
9691 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
9692 (AARCH64_ARCH): Likewise.
9693 (AARCH64_CORE): Likewise.
9694 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
9695 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
9696 (AARCH64_CORE): Likewise.
9697 (AARCH64_ARCH): Likewise.
9699 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9701 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
9702 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
9703 floating point type infrastructre, and -mfloat128 that enables the
9704 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
9705 if -mfloat128-type. Define __ibm128 to be long double by default.
9706 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
9707 the IEEE 128-bit floating point type infrastructure should
9708 automatically be enabled.
9709 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
9710 instead of -mfloat128 to enable KFmode.
9711 (rs6000_option_override_internal): Split the option -mfloat128
9712 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
9713 systems, automatically set -mfloat128-type, but don't enable it on
9714 other operating systems. Move setting the long double size and
9715 IEEE quad support before the IEEE 128-bit floating point changes.
9716 (rs6000_init_builtins): Do not create a unique type for __ibm128
9717 if long double is IBM extended double, instead rely on __ibm128
9718 being defined as 'long double'. If -mfloat128-type and not
9719 -mfloat128, create the KFmode type with an undocumented __ieee128
9721 (rs6000_init_libfuncs): Use -mfloat128-type instead of
9722 -mfloat128 for tests about the types, but keep tests for
9723 -mfloat128 to enable the keyword support.
9724 (rs6000_complex_function_value): Likewise.
9725 (rs6000_scalar_mode_supported_p): Likewise.
9726 (rs6000_floatn_mode): Likewise.
9727 (rs6000_c_mode_for_suffix): Likewise.
9728 (rs6000_opt_masks): Add -mfloat128-type.
9729 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
9730 -mfloat128-type being split from -mfloat128. Add
9731 -mfloat128-hardware, which was missing.
9732 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
9733 -mfloat128 and -mfloat128-type:
9734 (-mfloat128-type): Likewise.
9735 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
9736 that 64-bit Linux systems with enable -mfloat128-type by default
9738 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
9739 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
9740 -mfloat128-type instead of -mfloat128.
9741 (FLOAT128_2REG_P): Likewise.
9742 (MASK_FLOAT128_TYPE): Likewise.
9743 (ALTIVEC_ARG_MAX_RETURN): Likewise.
9744 (RS6000_BTM_FLOAT128): Likewise.
9745 (TARGET_FLOAT128): Poison old identifiers.
9746 (OPTION_MASK_FLOAT128): Likewise.
9747 (MASK_FLOAT128): Likewise.
9748 * config/rs6000/rs6000.md (FP): Likewise.
9749 (FLOAT128): Likewise.
9750 (fix_trunc<mode>di2): Likewise.
9751 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
9752 (floatdi<mode>2): Likewise.
9753 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
9754 (neg<mode>2, FLOAT128 iterator): Likewise.
9755 (abs<mode>2, FLOAT128 iterator): Likewise.
9756 (ieee_128bit_negative_zero): Likewise.
9757 (ieee_128bit_vsx_neg<mode>2): Likewise.
9758 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
9759 (ieee_128bit_vsx_abs<mode>2): Likewise.
9760 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9761 (ieee_128bit_vsx_nabs<mode>2): Likewise.
9762 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9763 (extendiftf2): Likewise.
9764 (extendifkf2): Likewise.
9765 (extendtfkf2): Likewise.
9766 (trunciftf2): Likewise.
9767 (truncifkf2): Likewise.
9768 (trunckftf2): Likewise.
9769 (trunctfif2): Likewise.
9770 (extendkftf2): Likewise.
9771 (trunctfkf2): Likewise.
9773 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9775 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
9776 before merging in bytes to pass down to real_from_target.
9778 2016-10-07 Richard Biener <rguenther@suse.de>
9780 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
9782 (substitute_and_fold_dom_walker::before_dom_children):
9783 Substitute and fold before pass specific folding to avoid
9784 feeding that with SSA names that will be later released.
9785 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
9786 introduced by folding and visited by evaluate_stmt called during
9788 (likely_value): Likewise.
9789 (evaluate_stmt): Likewise.
9790 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
9791 (simplify_div_or_mod_using_ranges): Likewise.
9792 (simplify_min_or_max_using_ranges): Likewise.
9793 (simplify_abs_using_ranges): Likewise.
9794 (simplify_conversion_using_ranges): Likewise.
9795 (simplify_float_conversion_using_ranges): Likewise.
9796 (simplify_stmt_using_ranges): Likewise.
9798 2016-10-07 Marek Polacek <polacek@redhat.com>
9800 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
9801 FALLTHROUGH_LABEL_P here...
9802 (warn_implicit_fallthrough_r): ...not here.
9804 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
9806 PR tree-optimization/77880
9807 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
9810 2016-10-07 Marek Polacek <polacek@redhat.com>
9813 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
9815 2016-10-07 Richard Biener <rguenther@suse.de>
9817 * bitmap.h: Document constraints on bitmap modification while
9820 2016-10-07 Richard Biener <rguenther@suse.de>
9822 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
9823 * bitmap.h (bmp_iter_set): When advancing to the next element
9824 check that we didn't remove the current one.
9825 (bmp_iter_and): Likewise.
9826 (bmp_iter_and_compl): Likewise.
9827 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
9828 we currently iterate on but keep a one-level queue.
9829 * sched-deps.c (remove_from_deps): Do not clear current bit
9830 but keep a one-level queue.
9832 2016-10-07 Jakub Jelinek <jakub@redhat.com>
9834 PR tree-optimization/77664
9835 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
9836 for the other ranges.
9837 (optimize_range_tests_diff): Fix up formatting.
9838 (optimize_range_tests_var_bound): New function.
9839 (optimize_range_tests): Use it.
9841 2016-10-07 Martin Liska <mliska@suse.cz>
9843 * coverage.c (build_gcov_exit_decl): Fix priority what
9844 should be really 99.
9846 2016-10-07 Richard Biener <rguenther@suse.de>
9848 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
9849 vars in gimple_bind_vars but not in BLOCK_VARS.
9851 2016-10-07 Richard Biener <rguenther@suse.de>
9853 PR tree-optimization/77879
9854 * tree-ssa-structalias.c (handle_const_call): Properly handle
9856 (handle_pure_call): Likewise.
9858 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9860 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
9861 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
9864 2016-10-06 Andrew Pinski <apinski@cavium.com>
9866 * config/aarch64/aarch64-cores.def: Add a comment before each
9869 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
9871 PR tree-optimization/77862
9872 * tree-vrp.c (add_equivalence): Use get_value_range so that
9873 num_vr_values is checked before accessing vr_values.
9875 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
9877 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
9880 2016-10-05 Jeff Law <law@redhat.com>
9882 PR tree-optimization/71661
9883 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
9884 removal of a forwarder exposes a new natural loop.
9886 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
9888 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
9889 Introduce ssesuffix variable.
9890 (<mask_codefor><code><mode>3<mask_name>): Ditto.
9891 (*<code><mode>3): Ditto.
9893 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
9895 * postreload.c (reload_cse_simplify): Skip also USE when detecting
9898 2016-10-06 Richard Biener <rguenther@suse.de>
9900 PR tree-optimization/77855
9901 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
9902 instead of removing the current item while iterating over the set
9905 2016-10-06 James Clarke <jrtc27@jrtc27.com>
9906 Eric Botcazou <ebotcazou@adacore.com>
9909 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
9910 (classify_registers): Don't set it
9911 (function_arg_slotno): Don't initialize and test it. Tidy up.
9913 2016-10-06 Richard Biener <rguenther@suse.de>
9915 PR tree-optimization/77839
9916 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
9919 2016-10-06 Martin Liska <mliska@suse.cz>
9921 * gcc.c: Set -fprofile-update=atomic when profiling is
9922 enabled and -pthread is set. Warn when one combines
9923 -pthread and -fprofile-update=single for an app using
9926 2016-10-06 Martin Liska <mliska@suse.cz>
9929 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
9930 * gimple-ssa-strength-reduction.c (slsr_process_cast):
9931 Initialize a pointer to NULL.
9932 (slsr_process_copy): Likewise.
9933 * input.c (location_get_source_line): Likewise.
9934 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9936 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
9938 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
9939 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
9940 (ix86_handle_option): Deleted handle of OPT_mpcommit.
9941 * config.gcc: Deleted pcommitintrin.h
9942 * config/i386/pcommitintrin.h: Deleted file.
9943 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
9944 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
9946 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
9948 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
9949 (PTA_PCOMMIT): Deleted define.
9950 (ix86_option_override_internal): Deleted handle of option.
9951 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
9952 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
9953 __builtin_ia32_pcommit): Deleted.
9954 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
9955 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
9956 (pcommit): Deleted instruction.
9957 * config/i386/i386.opt: Mention -mpcommit deprecation.
9958 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
9960 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
9963 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
9964 Remove wrong assert.
9965 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
9966 Use <round_constraint> as operand 1 constraint.
9968 2016-10-05 Jakub Jelinek <jakub@redhat.com>
9971 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
9972 (ubsan_instrument_float_cast): And not here.
9975 * ubsan.c (ubsan_ids): New GTY(()) array.
9976 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
9977 instead of static local counters.
9979 2016-10-05 Martin Sebor <msebor@redhat.com>
9982 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
9983 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
9984 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
9985 (default_printf_pointer_format): Define function.
9986 * targhooks.c (linux_printf_pointer_format): Define new function.
9987 * targhooks.h (linux_printf_pointer_format): Declare.
9988 (gnu_libc_printf_pointer_format): Remove declaration.
9990 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9992 * fold-const.c (native_encode_real): Fix logic for selecting offset
9993 to write to when BYTES_BIG_ENDIAN.
9995 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
9997 * builtins.c (fold_builtin_strchr): Remove function.
9998 (fold_builtin_strrchr): Likewise.
9999 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
10000 * gimple-fold.c (target_char_cst_p): New function.
10001 (gimple_fold_builtin_strchr) Add more foldings.
10002 (gimple_fold_builtin): Add index, strrchr, rindex cases.
10004 2016-10-05 Richard Biener <rguenther@suse.de>
10006 PR middle-end/77863
10007 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
10008 capture ids in c-exprs.
10010 2016-10-05 Richard Biener <rguenther@suse.de>
10012 PR middle-end/77826
10013 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
10014 with types_match for GIMPLE code gen to handle type mismatched
10015 constants properly.
10016 (dt_operand::gen): Adjust.
10017 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
10020 2016-10-05 Richard Biener <rguenther@suse.de>
10022 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
10024 2016-10-05 Richard Biener <rguenther@suse.de>
10026 PR middle-end/77842
10027 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
10029 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
10031 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
10032 version check to protect only DW_TAG_imported_module generation.
10034 2016-10-05 Richard Biener <rguenther@suse.de>
10036 PR middle-end/55152
10037 * match.pd (min(a,-a) -> -abs(a)): New pattern.
10039 2016-10-04 Ian Lance Taylor <iant@golang.org>
10041 * explow.c (allocate_dynamic_stack_space): Call
10042 do_pending_stack_adjust before handling flag_split_stack.
10044 2016-10-04 David Malcolm <dmalcolm@redhat.com>
10046 * genattrtab.c (make_internal_attr): Supply dummy column number to
10047 file_location ctor.
10049 * genoutput.c (init_insn_for_nothing): Likewise.
10050 * gensupport.c (add_define_attr): Likewise.
10051 * read-md.c (message_at_1): Print column number.
10052 (fatal_with_file_and_line): Likewise.
10053 (rtx_reader::read_char): Track column numbers.
10054 (rtx_reader::unread_char): Likewise.
10055 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
10056 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
10057 (rtx_reader::handle_file): Initialize m_read_md_colno.
10058 (rtx_reader::get_current_location): Supply column number to
10059 file_location ctor.
10060 * read-md.h (struct file_location): Add field "colno".
10061 (file_location::file_location): Likewise.
10062 (rtx_reader::get_colno): New accessor.
10063 (rtx_reader::m_read_md_colno): New field.
10064 (rtx_reader::m_last_line_colno): New field.
10066 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10068 * doc/extend.texi (Java Exceptions): Remove.
10069 (java_interface): Remove.
10071 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
10073 PR tree-optimization/77808
10074 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
10075 and addr are different before copying points-to information.
10077 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
10079 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
10080 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
10081 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
10082 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
10084 2016-10-04 Richard Biener <rguenther@suse.de>
10086 PR tree-optimization/77399
10087 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
10088 verify the target can convert.
10090 2016-10-04 Richard Biener <rguenther@suse.de>
10092 PR middle-end/77833
10093 * explow.c (plus_constant): Verify the mode of the constant
10094 pool offset before calling plus_constant.
10096 2016-10-04 Richard Biener <rguenther@suse.de>
10098 PR middle-end/77407
10099 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
10100 type support, mark with :C.
10101 (X / -X -> -1): Mark with :C.
10103 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10105 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
10106 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
10107 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
10108 * doc/tm.texi: Regenerated.
10109 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
10110 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
10111 * config/darwin.h (JCR_SECTION_NAME): Remove.
10112 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
10113 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
10114 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
10115 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
10116 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
10117 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
10119 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10121 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
10122 between "because" and "param" in dump message in call to fprintf.
10124 2016-10-03 Jeff Law <law@redhat.com>
10126 PR tree-optimization/71550
10127 PR tree-optimization/71403
10128 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
10129 (profitable_jump_thread_path): Also return boolean indicating if
10130 the realized path will create an irreducible loop.
10131 Remove loop depth tests from 71403.
10132 (fsm_find_control_statement_thread_paths): Remove loop depth tests
10133 from 71403. If threading will create an irreducible loop, then
10134 throw away loop iteration and related information.
10136 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
10138 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
10139 -Woverloaded-virtual checks for warning options.
10140 * configure: Regenerate.
10142 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10144 PR preprocessor/77699
10145 * input.c (maybe_grow): Don't allocate one byte extra headroom.
10146 (get_next_line): Return false on error.
10147 (read_next_line): Removed, use get_next_line instead.
10148 (read_line_num): Don't copy the line.
10149 (location_get_source_line): Don't use static data.
10150 (selftest::test_reading_source_line): Add more test cases.
10152 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10155 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10157 * ifcvt.c (noce_try_avoid_const_materialization): New function.
10158 (noce_process_if_block): Use it.
10160 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10162 * doc/invoke.texi: Update -Wint-in-bool-context.
10164 2016-10-02 Jakub Jelinek <jakub@redhat.com>
10166 * dwarf2out.c (output_fde, output_call_frame_info,
10167 dwarf2out_do_cfi_startproc, set_indirect_string,
10168 gen_internal_sym, output_die, output_line_info): Use
10169 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
10170 ASM_GENERATE_INTERNAL_LABEL output.
10172 2016-10-01 Richard Biener <rguenther@suse.de>
10174 PR middle-end/77798
10175 * genmatch.c (get_operand_type): Add operand position arg
10176 and handle COND_EXPR comparison operand with fixed boolean_type_node.
10177 (expr::gen_transform): Adjust.
10178 (dt_simplify::gen_1): Likewise.
10180 2016-10-01 Jakub Jelinek <jakub@redhat.com>
10182 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
10183 comments. Simplify asserts, remove unnecessary conditions.
10185 (*<code><mode>3): Likewise.
10187 2016-09-30 Jakub Jelinek <jakub@redhat.com>
10189 * doc/invoke.texi (-Wregister): Document.
10191 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
10193 * configure.ac: Split CHECKING_P into CHECKING_P and
10194 ENABLE_EXTRA_CHECKING.
10195 * configure: Regenerated.
10196 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
10197 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
10199 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
10202 * gcc.c (process_command): For @filename handling, output
10203 the correct name if the file does not exist.
10205 2016-09-30 Marek Polacek <polacek@redhat.com>
10207 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
10208 * config/alpha/predicates.md: Likewise.
10210 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10212 * ifcvt.c (noce_try_avoid_const_materialization): New function.
10213 (noce_process_if_block): Use it.
10215 2016-09-30 Martin Liska <mliska@suse.cz>
10217 * doc/invoke.texi: Document asan-use-after-return that
10218 it's disabled by default in runtime.
10220 2016-09-30 Richard Biener <rguenther@suse.de>
10222 * tree-vrp.c (intersect_ranges): If we failed to handle
10223 the intersection choose a constant singleton range if available.
10225 2016-09-30 Richard Biener <rguenther@suse.de>
10227 PR tree-optimization/77399
10228 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
10229 float <-> int conversions.
10231 2016-09-30 Alan Modra <amodra@gmail.com>
10233 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
10235 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
10237 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
10238 ext_level before calling CPUID with 0x80000008.
10239 Simplify xgetbv checks.
10241 2016-09-29 David Malcolm <dmalcolm@redhat.com>
10243 * Makefile.in (OBJS): Add print-rtl-function.o.
10244 * print-rtl-function.c: New file.
10245 * print-rtl.h (print_rtx_function): New decl.
10247 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
10250 * config/i386/cpuid.h (__get_cpuid_count): New.
10251 (__get_cpuid): Rename __level to __leaf.
10253 2016-09-29 Marek Polacek <polacek@redhat.com>
10255 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
10257 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
10260 * builtins.c (expand_builtin_memcmp): Don't swap args unless
10261 result is only being compared with zero.
10263 2016-09-29 Marek Polacek <polacek@redhat.com>
10265 * dwarf2out.c (loc_descriptor): Add fall through comment.
10266 (add_const_value_attribute): Likewise.
10268 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
10270 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
10271 with "v6t2". Move "arch" attribute above "pool_range".
10272 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
10274 (*thumb2_movhi_vfp): Likewise.
10275 (*arm_movhi_fp16): Likewise.
10276 (*thumb2_movhi_fp16): Likewise.
10277 (*arm_movsi_vfp): Remove "arch" attribute.
10278 (*thumb2_movsi_vfp): Likewise.
10280 2016-09-29 Martin Liska <mliska@suse.cz>
10282 * doc/extend.texi: Remove limitation of Objective C for
10283 __attribute__((constructor)) and __attribute__((destructor)).
10285 2016-09-29 Richard Biener <rguenther@suse.de>
10287 PR tree-optimization/77768
10288 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10289 Handle stores to readonly memory when removing redundant stores.
10291 2016-09-29 Richard Biener <rguenther@suse.de>
10293 PR middle-end/77407
10294 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
10295 X / -X -> -1 simplifications.
10297 2016-09-29 Richard Biener <rguenther@suse.de>
10299 PR middle-end/55152
10300 * match.pd: Add max(a,-a) -> abs(a) pattern.
10301 * tree-ssa-phiopt.c (minmax_replacement): Disable for
10302 HONOR_SIGNED_ZEROS types.
10304 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
10306 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
10307 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
10309 2016-09-29 Richard Biener <rguenther@suse.de>
10311 * tree-vrp.c (set_defs_to_varying): New helper avoiding
10312 writing to vr_const_varying.
10313 (vrp_initialize): Call it.
10314 (vrp_visit_stmt): Likewise.
10315 (evrp_dom_walker::before_dom_children): Likewise.
10317 2016-09-29 Richard Biener <rguenther@suse.de>
10319 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
10320 constructors with vector elements.
10322 2016-09-29 Richard Biener <rguenther@suse.de>
10324 PR tree-optimization/77768
10325 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
10326 with stores to a place we know has a constant value.
10328 2016-09-29 Alan Modra <amodra@gmail.com>
10330 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
10331 * doc/invoke.texi: Document it.
10332 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
10333 (rs6000_passes_float): Comment.
10334 (rs6000_passes_long_double): New static var.
10335 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
10336 (init_cumulative_args): Set up to emit fp .gnu_attribute for
10337 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
10338 to include fp values returned in vectors.
10339 Set rs6000_passes_long_double.
10340 (rs6000_function_arg_advance_1): Likewise for function args.
10341 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
10342 and SPE. Emit long double tag value too.
10343 (rs6000_opt_vars): Add gnu-attr.
10344 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
10345 * configure: Regenerate.
10346 * config.in: Regenerate.
10348 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10350 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
10352 (format_floating, format_string, format_directive,
10353 get_destination_size, pass_sprintf_length::handle_gimple_call):
10356 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10358 * gimple-ssa-sprintf.c: Fix comment formatting.
10359 (format_integer): Use is_gimple_assign.
10360 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
10361 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
10362 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
10363 (pass_sprintf_length::execute): Use is_gimple_call.
10365 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10367 * gimple-fold.c (gimple_fold_builtin): After failing to fold
10368 strchr, also try the generic folding.
10370 2016-09-28 Martin Sebor <msebor@redhat.com>
10373 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
10376 2016-09-28 Martin Sebor <msebor@redhat.com>
10378 PR middle-end/77683
10379 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
10380 length modifier is not expected.
10381 (format_floating): Ignore l length modifier and fail gracefuly
10382 when it isn't one of the other expected ones.
10384 2016-09-28 Martin Sebor <msebor@redhat.com>
10387 * varasm.c (assemble_addr_to_section): Increase local buffer size.
10389 2016-09-27 Richard Biener <rguenther@suse.de>
10391 * dwarf2out.c (cu_die_list): New global.
10392 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
10393 main_comp_unit_die to cu_die_list if we created it.
10394 Move break_out_includes ...
10395 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
10398 2016-09-28 Richard Biener <rguenther@suse.de>
10400 * dwarf2out.c (struct die_struct): Add removed flag.
10401 (lookup_type_die): If the DIE is marked as removed, clear
10402 TYPE_SYMTAB_DIE and return NULL.
10403 (lookup_decl_die): If the DIE is marked as removed, remove it
10404 from the hash and return NULL.
10405 (mark_removed): New helper.
10406 (prune_unused_types_prune): Call it for removed DIEs.
10407 (gen_subprogram_die): Move the premark_used_types call to after
10408 DIEs for the functions scopes are generated.
10409 (process_scope_var): Do not re-create pruned types or type decls.
10410 Make sure to also re-parent type decls.
10411 (dwarf2out_finish): Move unused type pruning and debug_types
10413 (dwarf2out_early_finish): ... here.
10415 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10417 * config/arc/arc-c.c: New file.
10418 * config/arc/arc-c.def: Likewise.
10419 * config/arc/t-arc: Likewise.
10420 * config.gcc: Include arc-c.o as c and cpp object.
10421 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
10422 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
10423 arc_cpu_cpp_builtins.
10425 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10427 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
10428 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
10430 2016-09-28 Nathan Sidwell <nathan@acm.org>
10432 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
10435 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10437 PR tree-optimization/61056
10438 * gimple-fold.c (gimple_fold_builtin_strchr):
10439 New function to optimize strchr (s, 0) to strlen.
10440 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
10442 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
10444 PR tree-optimization/77724
10445 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
10446 Add tree_fits_shwi_p check.
10448 2016-09-27 Jakub Jelinek <jakub@redhat.com>
10450 * auto-inc-dec.c (try_merge): Remove break after return.
10451 * cselib.c (autoinc_split): Likewise.
10452 * explow.c (promote_mode): Likewise.
10453 * fixed-value.c (fixed_arithmetic): Likewise.
10454 * hsa.c (hsa_internal_fn::get_arity): Likewise.
10455 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
10456 * trans-mem.c (get_attrs_for): Likewise.
10457 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
10458 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
10459 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
10460 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
10461 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
10462 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
10463 * config/cris/cris.c (cris_op_str): Likewise.
10464 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
10465 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
10467 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
10469 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
10470 IFN_GOACC_REDUCTION_CODES): New.
10471 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
10472 ifn_goacc_reduction_kind): Use them.
10473 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
10474 of internal functions, when applicable.
10476 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
10478 * config/mips/constraints.md (d): Fix documentation.
10479 * doc/md.texi (Machine Constraints): Update accordingly.
10481 2016-09-27 Richard Biener <rguenther@suse.de>
10483 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
10484 cur_line_info_table initialization ...
10485 (dwarf2out_assembly_start): ... here.
10487 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
10489 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
10490 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
10491 (*thumb2_movhi_vfp): Likewise.
10492 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
10493 template. Expand predicable attribute to mark VMOV.F16 as not
10494 predicable. Add "arch" attribute.
10495 (*thumb2_movhi_fp16): Likewise.
10496 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
10497 (*thumb2_movsi_vfp): Add "arch" attribute.
10499 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
10501 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
10504 2016-09-27 Marek Polacek <polacek@redhat.com>
10506 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
10509 * config/c6x/c6x.h: Adjust fall through comment.
10510 * config/sh/sh.c (final_prescan_insn): Likewise.
10511 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
10512 (visium_expand_fp_cstore): Likewise.
10514 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10516 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
10517 expected by -Wimplicit-fallthrough.
10518 (thumb1_size_rtx_costs): Likewise.
10519 (thumb2_reorg): Likewise.
10520 (tls_mentioned_p): Add "Fall through" comment.
10521 (thumb2_reorg): Likewise.
10522 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
10523 comment form expected by -Wimplicit-fallthrough.
10525 2016-09-27 Martin Liska <mliska@suse.cz>
10527 PR gcov-profile/46266
10528 * input.h (RESERVED_LOCATION_P): New macro.
10529 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
10530 instread of comparison with UNKNOWN_LOCATION.
10532 2016-09-27 Richard Biener <rguenther@suse.de>
10534 PR tree-optimization/77745
10535 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10536 When removing redundant stores make sure to check compatibility
10537 of the TBAA state for downstream accesses.
10538 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
10539 value-numbering virtual operands for store matches.
10541 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
10544 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
10545 movrt patterns. Match them before anything else in the SET case.
10547 2016-09-27 Martin Liska <mliska@suse.cz>
10549 PR gcov-profile/7970
10550 PR gcov-profile/16855
10551 PR gcov-profile/44779
10552 * coverage.c (build_gcov_exit_decl): New function.
10553 (coverage_obj_init): Call the function and generate __gcov_exit
10555 * doc/gcov.texi: Document when __gcov_exit function is called.
10557 2016-09-27 Marek Polacek <polacek@redhat.com>
10560 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
10561 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
10562 -Wno-error instead of -Wno-implicit-fallthrough.
10564 2016-09-27 Martin Liska <mliska@suse.cz>
10567 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
10569 2016-09-27 Jakub Jelinek <jakub@redhat.com>
10571 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
10572 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
10573 comments. Remove break after return.
10574 (ix86_fp_compare_code_to_integer, has_dispatch,
10575 ix86_simd_clone_usable): Remove break after return.
10577 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
10579 PR rlt-optimization/77714
10580 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
10583 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
10586 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
10587 extract_range_from_unary_expr to convert value_range.
10588 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
10589 (extract_range_from_unary_expr): This.
10590 * tree-vrp.h (extract_range_from_unary_expr): Declare.
10592 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
10594 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
10596 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10598 * config/i386/i386.c (ix86_print_operand)
10599 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
10600 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
10601 (epilogue_renumber): Likewise.
10603 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
10605 PR middle-end/77719
10606 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
10607 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
10609 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
10611 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
10612 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
10613 is_mm_seq_cst, is_mm_sync): Move to ...
10614 * memmodel.h: This. New file.
10615 * builtins.c: Include memmodel.h.
10616 * optabs.c: Likewise.
10617 * tsan.c: Likewise.
10618 * config/aarch64/aarch64.c: Likewise.
10619 * config/alpha/alpha.c: Likewise.
10620 * config/arm/arm.c: Likewise.
10621 * config/i386/i386.c: Likewise.
10622 * config/ia64/ia64.c: Likewise.
10623 * config/mips/mips.c: Likewise.
10624 * config/rs6000/rs6000.c: Likewise.
10625 * config/sparc/sparc.c: Likewise.
10626 * genconditions.c: Include memmodel.h in generated file.
10627 * genemit.c: Likewise.
10628 * genoutput.c: Likewise.
10629 * genpeep.c: Likewise.
10630 * genpreds.c: Likewise.
10631 * genrecog.c: Likewise.
10633 2016-09-26 David Malcolm <dmalcolm@redhat.com>
10635 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
10636 "c" instead when parsing characters. Move operand parsing into...
10637 (read_rtx_operand): ...this new function, renaming "i" to "idx",
10638 and tightening the scope of various locals.
10640 2016-09-26 Liu Hao <lh_mouse@126.com>
10642 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
10644 2016-09-26 Marek Polacek <polacek@redhat.com>
10646 * system.h: Use __has_attribute to check whether the fallthrough
10647 attribute is supported.
10649 2016-09-26 Marek Polacek <polacek@redhat.com>
10651 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
10652 gimple_call_internal_p.
10653 * ipa-split.c (find_return_bb): Likewise.
10654 (execute_split_functions): Likewise.
10655 * omp-low.c (dump_oacc_loop_part): Likewise.
10656 (oacc_loop_xform_head_tail): Likewise.
10657 * predict.c (predict_loops): Likewise.
10658 * sanopt.c (pass_sanopt::execute): Likewise.
10659 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
10660 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
10661 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
10662 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
10663 (expand_ifn_va_arg): Likewise.
10664 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
10665 (optimize_mask_stores): Likewise.
10666 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
10667 (vect_transform_stmt): Likewise.
10668 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
10669 * tsan.c (instrument_memory_accesses): Likewise.
10671 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10672 Alexander Monakov <amonakov@ispras.ru>
10674 * regrename.c (rename_chains): Check
10675 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
10676 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
10677 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10679 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10681 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
10682 (s390_sched_score): Likewise.
10684 2016-09-26 Martin Liska <mliska@suse.cz>
10686 * doc/gcov.texi: Update program output of gcov tool.
10688 2016-09-26 Martin Liska <mliska@suse.cz>
10690 PR gcov-profile/23332
10691 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
10692 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
10693 * value-prof.c (dump_histogram_value): Do not handle
10694 HIST_TYPE_CONST_DELTA.
10695 (stream_in_histogram_value): Likewise.
10696 (gimple_find_values_to_profile): Likewise.
10697 * value-prof.h (enum hist_type): Likewise.
10699 2016-09-26 Martin Liska <mliska@suse.cz>
10701 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
10702 from default sanitize recover values.
10703 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
10704 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
10705 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
10707 * opts.c (finish_options): Do a generic loop over options
10708 that can be recovered.
10709 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
10711 (common_handle_option): Likewise.
10712 * opts.h: Declare can_recover to sanitizer_opts_s.
10714 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
10716 * target.def(elf_flags_numeric): Change documentation to present tense.
10717 * doc/tm.texi: Regenerate.
10719 2016-09-26 Marek Polacek <polacek@redhat.com>
10722 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
10723 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
10724 -Wno-switch-fallthrough.
10725 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
10726 (expand_builtin): Likewise.
10727 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
10728 * convert.c (convert_to_real_1): Likewise.
10729 (convert_to_integer_1): Likewise.
10730 * final.c (output_alternate_entry_point): Likewise.
10731 * genattrtab.c (make_canonical): Likewise.
10732 (write_test_expr): Likewise.
10733 * genpreds.c (validate_exp): Likewise.
10734 * gimple-ssa-strength-reduction.c
10735 (find_candidates_dom_walker::before_dom_children): Likewise.
10736 * godump.c (go_format_type): Likewise.
10737 * reload1.c (elimination_effects): Likewise.
10738 * resource.c (mark_referenced_resources): Likewise.
10739 (mark_set_resources): Likewise.
10740 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
10741 * varasm.c (output_addressed_constants): Likewise.
10743 2016-09-26 Marek Polacek <polacek@redhat.com>
10746 * common.opt (Wimplicit-fallthrough): New option.
10747 * doc/extend.texi: Document statement attributes and the fallthrough
10749 * doc/invoke.texi: Document -Wimplicit-fallthrough.
10750 * gimple.h (gimple_call_internal_p): New function.
10751 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
10752 (struct label_entry): New struct.
10753 (find_label_entry): New function.
10754 (case_label_p): New function.
10755 (collect_fallthrough_labels): New function.
10756 (last_stmt_in_scope): New function.
10757 (should_warn_for_implicit_fallthrough): New function.
10758 (warn_implicit_fallthrough_r): New function.
10759 (maybe_warn_implicit_fallthrough): New function.
10760 (expand_FALLTHROUGH_r): New function.
10761 (expand_FALLTHROUGH): New function.
10762 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
10763 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
10764 (gimplify_label_expr): New function.
10765 (gimplify_case_label_expr): Set location.
10766 (gimplify_expr): Call gimplify_label_expr.
10767 * internal-fn.c (expand_FALLTHROUGH): New function.
10768 * internal-fn.def (FALLTHROUGH): New internal function.
10769 * langhooks.c (lang_GNU_OBJC): New function.
10770 * langhooks.h (lang_GNU_OBJC): Declare.
10771 * system.h (gcc_fallthrough): Define.
10772 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
10773 * tree.h (FALLTHROUGH_LABEL_P): Define.
10775 2016-09-26 Richard Biener <rguenther@suse.de>
10777 * dwarf2out.c (stripattributes): Remove unused function.
10778 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
10779 Push dwarf_split_debug_info handling into init_sections_and_labels.
10780 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
10781 (DEBUG_MACRO_SECTION_FLAGS): Remove.
10782 (debug_macinfo_section_name): New global.
10783 (output_macinfo): Use debug_macinfo_section_name.
10784 (init_sections_and_labels): Split out section and label generation
10785 from dwarf2out_init. Set debug_macinfo_section_name.
10786 (dwarf2out_init): Move text section label generation and emission
10788 (dwarf2out_assembly_start): ... here.
10789 (dwarf2out_finish): Call init_sections_and_labels before DWARF
10792 2016-09-26 Richard Biener <rguenther@suse.de>
10795 * cgraphunit.c (analyze_functions): Before early removing
10796 global vars calls the late_global_decl debug handler mark
10797 the variable as readonly.
10799 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
10802 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
10803 (sh_rtx_costs): Handle SET of movt and movrt patterns.
10804 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
10805 declare new overloads.
10806 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
10809 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10811 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
10812 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
10814 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
10816 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
10817 * configure: Regenerate.
10819 2016-09-24 Marek Polacek <polacek@redhat.com>
10822 * doc/invoke.texi: Document -Wbool-operation.
10824 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10826 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
10827 * config/rs6000/rs6000.c (expand_block_compare): New function used by
10828 cmpmemsi pattern to do builtin expansion of memcmp ().
10829 (compute_current_alignment): Add helper function for
10830 expand_block_compare used to compute alignment as the compare proceeds.
10831 (select_block_compare_mode): Used by expand_block_compare to select
10832 the mode used for reading the next chunk of bytes in the compare.
10833 (do_load_for_compare): Used by expand_block_compare to emit the load
10834 insns for the compare.
10835 (rs6000_emit_dot_insn): Moved this function to avoid a forward
10836 reference from expand_block_compare ().
10837 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
10838 prototype for this function.
10839 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
10840 target option for controlling how much code inline expansion of
10841 memcmp() will be allowed to generate.
10843 2016-09-23 Jakub Jelinek <jakub@redhat.com>
10845 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
10846 hook_bool_mode_false, hook_bool_mode_true,
10847 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
10848 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
10849 hook_bool_const_rtx_insn_const_rtx_insn_true,
10850 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
10851 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
10852 hook_bool_const_tree_hwi_hwi_const_tree_false,
10853 hook_bool_const_tree_hwi_hwi_const_tree_true,
10854 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
10855 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
10856 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
10857 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
10858 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
10859 hook_bool_const_tree_true, hook_bool_tree_tree_false,
10860 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
10861 hook_bool_rtx_insn_true, hook_bool_rtx_false,
10862 hook_bool_uintp_uintp_false,
10863 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
10864 hook_rtx_tree_int_null, hook_uint_mode_0,
10865 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
10866 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
10867 hook_constcharptr_const_rtx_insn_null,
10868 hook_constcharptr_const_tree_const_tree_null,
10869 hook_constcharptr_int_const_tree_null,
10870 hook_constcharptr_int_const_tree_const_tree_null,
10871 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
10872 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
10873 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
10875 * vec.h (vNULL): Extend comment to say = vNULL initialization
10876 isn't needed for static vars.
10878 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
10879 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
10880 = vNULL initialization of file scope vec.
10881 * passes.c (pass_tab, enabled_pass_uid_range_tab,
10882 disabled_pass_uid_range_tab): Likewise.
10883 * haifa-sched.c (sched_luids, h_i_d): Likewise.
10884 * tree-chkp-opt.c (check_infos): Likewise.
10885 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
10887 * vec.h (vnull::operator vec): Add constexpr keyword for
10890 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
10892 PR tree-optimization/77654
10893 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
10894 to duplicate_ssa_name_ptr_info.
10896 2016-09-23 David Malcolm <dmalcolm@redhat.com>
10898 PR preprocessor/77672
10899 * input.c (selftest::test_lexer_string_locations_simple): Update
10900 test to expect location information of the terminator character
10901 at the location of the final closing quote.
10902 (selftest::test_lexer_string_locations_hex): Likewise.
10903 (selftest::test_lexer_string_locations_oct): Likewise.
10904 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
10905 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
10906 (selftest::test_lexer_string_locations_ucn4): Likewise.
10907 (selftest::test_lexer_string_locations_ucn8): Likewise.
10908 (selftest::test_lexer_string_locations_u8): Likewise.
10909 (selftest::test_lexer_string_locations_utf8_source): Likewise.
10910 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
10911 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
10912 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
10913 (selftest::test_lexer_string_locations_macro): Likewise.
10914 (selftest::test_lexer_string_locations_long_line): Likewise.
10916 2016-09-23 Richard Biener <rguenther@suse.de>
10918 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
10919 virtual definition to virtual use if the call devirtualizes
10920 to a const or pure function.
10921 (visit_use): Also visit calls we can devirtualize to a
10922 const or pure function.
10924 2016-09-23 Richard Biener <rguenther@suse.de>
10926 PR tree-optimization/77697
10927 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
10928 signal error if we have sth ternary or unhandled.
10930 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10932 * config/arm/arm_neon.h (vabd_f16): New.
10966 (vcvt_f16_s16): New.
10967 (vcvt_f16_u16): New.
10968 (vcvt_s16_f16): New.
10969 (vcvt_u16_f16): New.
10970 (vcvtq_f16_s16): New.
10971 (vcvtq_f16_u16): New.
10972 (vcvtq_s16_f16): New.
10973 (vcvtq_u16_f16): New.
10974 (vcvta_s16_f16): New.
10975 (vcvta_u16_f16): New.
10976 (vcvtaq_s16_f16): New.
10977 (vcvtaq_u16_f16): New.
10978 (vcvtm_s16_f16): New.
10979 (vcvtm_u16_f16): New.
10980 (vcvtmq_s16_f16): New.
10981 (vcvtmq_u16_f16): New.
10982 (vcvtn_s16_f16): New.
10983 (vcvtn_u16_f16): New.
10984 (vcvtnq_s16_f16): New.
10985 (vcvtnq_u16_f16): New.
10986 (vcvtp_s16_f16): New.
10987 (vcvtp_u16_f16): New.
10988 (vcvtpq_s16_f16): New.
10989 (vcvtpq_u16_f16): New.
10990 (vcvt_n_f16_s16): New.
10991 (vcvt_n_f16_u16): New.
10992 (vcvtq_n_f16_s16): New.
10993 (vcvtq_n_f16_u16): New.
10994 (vcvt_n_s16_f16): New.
10995 (vcvt_n_u16_f16): New.
10996 (vcvtq_n_s16_f16): New.
10997 (vcvtq_n_u16_f16): New.
11005 (vmaxnmq_f16): New.
11009 (vminnmq_f16): New.
11011 (vmul_lane_f16): New.
11014 (vmulq_lane_f16): New.
11015 (vmulq_n_f16): New.
11022 (vrecpeq_f16): New.
11035 (vrsqrte_f16): New.
11036 (vrsqrteq_f16): New.
11038 (vrecpsq_f16): New.
11039 (vrsqrts_f16): New.
11040 (vrsqrtsq_f16): New.
11044 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11046 * config.gcc (extra_headers): Add arm_fp16.h
11047 * config/arm/arm_fp16.h: New.
11048 * config/arm/arm_neon.h: Include "arm_fp16.h".
11050 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11052 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
11054 (vmulf): New (v8hf, v4hf variants).
11055 (vfma): New (v8hf, v4hf variants).
11056 (vfms): New (v8hf, v4hf variants).
11057 (vsub): New (v8hf, v4hf variants).
11058 (vcage): New (v8hf, v4hf variants).
11059 (vcagt): New (v8hf, v4hf variants).
11060 (vcale): New (v8hf, v4hf variants).
11061 (vcalt): New (v8hf, v4hf variants).
11062 (vceq): New (v8hf, v4hf variants).
11063 (vcgt): New (v8hf, v4hf variants).
11064 (vcge): New (v8hf, v4hf variants).
11065 (vcle): New (v8hf, v4hf variants).
11066 (vclt): New (v8hf, v4hf variants).
11067 (vceqz): New (v8hf, v4hf variants).
11068 (vcgez): New (v8hf, v4hf variants).
11069 (vcgtz): New (v8hf, v4hf variants).
11070 (vcltz): New (v8hf, v4hf variants).
11071 (vclez): New (v8hf, v4hf variants).
11072 (vabd): New (v8hf, v4hf variants).
11073 (vmaxf): New (v8hf, v4hf variants).
11074 (vmaxnm): New (v8hf, v4hf variants).
11075 (vminf): New (v8hf, v4hf variants).
11076 (vminnm): New (v8hf, v4hf variants).
11077 (vpmaxf): New (v4hf variant).
11078 (vpminf): New (v4hf variant).
11079 (vpadd): New (v4hf variant).
11080 (vrecps): New (v8hf, v4hf variants).
11081 (vrsqrts): New (v8hf, v4hf variants).
11082 (vabs): New (v8hf, v4hf variants).
11083 (vneg): New (v8hf, v4hf variants).
11084 (vrecpe): New (v8hf, v4hf variants).
11085 (vrnd): New (v8hf, v4hf variants).
11086 (vrnda): New (v8hf, v4hf variants).
11087 (vrndm): New (v8hf, v4hf variants).
11088 (vrndn): New (v8hf, v4hf variants).
11089 (vrndp): New (v8hf, v4hf variants).
11090 (vrndx): New (v8hf, v4hf variants).
11091 (vrsqrte): New (v8hf, v4hf variants).
11092 (vmul_lane): Add v4hf and v8hf variants.
11093 (vmul_n): Add v4hf and v8hf variants.
11094 (vext): New (v8hf, v4hf variants).
11095 (vcvts): New (v8hi, v4hi variants).
11096 (vcvts): New (v8hf, v4hf variants).
11097 (vcvtu): New (v8hi, v4hi variants).
11098 (vcvtu): New (v8hf, v4hf variants).
11099 (vcvts_n): New (v8hf, v4hf variants).
11100 (vcvtu_n): New (v8hi, v4hi variants).
11101 (vcvts_n): New (v8hi, v4hi variants).
11102 (vcvtu_n): New (v8hf, v4hf variants).
11103 (vbsl): New (v8hf, v4hf variants).
11104 (vcvtas): New (v8hf, v4hf variants).
11105 (vcvtau): New (v8hf, v4hf variants).
11106 (vcvtms): New (v8hf, v4hf variants).
11107 (vcvtmu): New (v8hf, v4hf variants).
11108 (vcvtns): New (v8hf, v4hf variants).
11109 (vcvtnu): New (v8hf, v4hf variants).
11110 (vcvtps): New (v8hf, v4hf variants).
11111 (vcvtpu): New (v8hf, v4hf variants).
11113 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11115 * config/arm/arm-builtins.c (hf_UP): New.
11117 (vfp_builtin_data): New. Update comment.
11118 (enum arm_builtins): Include "arm_vfp_builtins.def".
11119 (ARM_BUILTIN_VFP_PATTERN_START): New.
11120 (arm_init_vfp_builtins): New.
11121 (arm_init_builtins): Add arm_init_vfp_builtins.
11122 (arm_expand_vfp_builtin): New.
11123 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
11125 * config/arm/arm_vfp_builtins.def: New file.
11126 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
11127 (arm-builtins.o): Likewise.
11129 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11132 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
11133 from constant while creating value range.
11135 2016-09-23 Renlin Li <renlin.li@arm.com>
11137 * ira.c (ira): Move ira_use_lra_p initialization code to ...
11138 (ira_init_once): Here.
11140 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
11141 Jakub Jelinek <jakub@redhat.com>
11143 * hooks.h (hook_uint_uintp_false): Rename to...
11144 (hook_bool_uint_uintp_false): ... this.
11145 * hooks.c (hook_uint_uintp_false): Rename to...
11146 (hook_bool_uint_uintp_false): ... this.
11147 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
11148 instead of hook_uint_uintp_false.
11150 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11152 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
11153 (arm_init_builtins): Move body of a loop to the standalone
11154 function arm_init_neon_builtin.
11155 (arm_expand_neon_builtin_1): New. Update comment. Function body
11156 moved from arm_neon_builtin with some white-space fixes.
11157 (arm_expand_neon_builtin): Move code into the standalone function
11158 arm_expand_neon_builtin_1.
11160 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11162 * config/arm/iterators.md (VCVTHI): New.
11163 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
11164 (NEON_VAGLTE): New.
11165 (VFM_LANE_AS): New.
11167 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
11168 (V_HALF): Add V4HF. Fix white-space.
11169 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
11170 (V_s_elem): Likewise.
11171 (V_sz_elem): Fix white-space.
11172 (V_elem_ch): Likewise.
11174 (scalar_mul_constraint): Add V8HF and V4HF.
11175 (Is_float_mode): Fix white-space.
11176 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
11177 (q): Add HF. Fix white-space.
11180 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
11181 (neon_vfm_lane_as): New.
11182 * config/arm/neon.md (add<mode>3_fp16): New.
11183 (sub<mode>3_fp16): New.
11184 (mul<mode>3add<mode>_neon): New.
11185 (fma<VH:mode>4_intrinsic): New.
11186 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
11187 (fmsub<VH:mode>4_intrinsic): New.
11188 (<absneg_str><mode>2): New.
11189 (neon_v<absneg_str><mode>): New.
11190 (neon_v<fp16_rnd_str><mode>): New.
11191 (neon_vrsqrte<mode>): New.
11192 (neon_vpaddv4hf): New.
11193 (neon_vadd<mode>): New.
11194 (neon_vsub<mode>): New.
11195 (neon_vmulf<mode>): New.
11196 (neon_vfma<VH:mode>): New.
11197 (neon_vfms<VH:mode>): New.
11198 (neon_vc<cmp_op><mode>): New.
11199 (neon_vc<cmp_op><mode>_fp16insn): New
11200 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
11201 (neon_vca<cmp_op><mode>): New.
11202 (neon_vca<cmp_op><mode>_fp16insn): New.
11203 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
11204 (neon_vc<cmp_op>z<mode>): New.
11205 (neon_vabd<mode>): New.
11206 (neon_v<maxmin>f<mode>): New.
11207 (neon_vp<maxmin>fv4hf: New.
11208 (neon_<fmaxmin_op><mode>): New.
11209 (neon_vrecps<mode>): New.
11210 (neon_vrsqrts<mode>): New.
11211 (neon_vrecpe<mode>): New (VH variant).
11212 (neon_vdup_lane<mode>_internal): New.
11213 (neon_vdup_lane<mode>): New.
11214 (neon_vcvt<sup><mode>): New (VCVTHI variant).
11215 (neon_vcvt<sup><mode>): New (VH variant).
11216 (neon_vcvt<sup>_n<mode>): New (VH variant).
11217 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
11218 (neon_vcvt<vcvth_op><sup><mode>): New.
11219 (neon_vmul_lane<mode>): New.
11220 (neon_vmul_n<mode>): New.
11221 * config/arm/unspecs.md (UNSPEC_VCALE): New
11222 (UNSPEC_VCALT): New.
11223 (UNSPEC_VFMA_LANE): New.
11224 (UNSPECS_VFMS_LANE): New.
11226 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11228 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
11229 ("*extzv<mode><clobbercc_or_nocc>"):
11230 Correct a typo in a comment.
11232 ("*insv<mode>_zEC12", "*insv<mode>_z10")
11233 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
11234 ("*insv<mode>_zEC12_appendbitsleft")
11235 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
11236 ("*insv<mode>_z10_appendbitsleft"): Ditto.
11237 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
11238 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
11239 Provide pattern with operands switched.
11240 ("*pre_z10_extv<mode>"):
11241 Use new subst patterns.
11242 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
11243 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
11244 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
11245 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
11246 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
11247 ("*<risbg_n>_sidi_ior_and_lshiftrt")
11248 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
11250 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
11251 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
11252 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
11254 ("SINT"): New mode_iterator with SI, HI, QI.
11255 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
11256 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
11259 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11261 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
11262 new interface of s390_contiguous_bitmask_p.
11263 ("contiguous_bitmask_nowrap_operand"): New predicate.
11264 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
11265 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
11266 of s390_contiguous_bitmask_p.
11267 ("NxxDw"): Rename NxxDq constraint to NxxDw.
11268 ("NxxSw"): New constraint.
11269 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
11270 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
11272 (s390_contiguous_bitmask_nowrap_p): Export.
11273 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
11274 former s390_contiguous_bitmask_p.
11275 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
11276 detect contiguous bit ranges with wraparound. Change signature to
11277 return START and END position instead of POS and LENGTH.
11278 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
11279 ranges with wraparound.
11280 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
11281 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
11282 Adapt to new signature of s390_contiguous_bitmask_p.
11284 2016-09-23 Bin Cheng <bin.cheng@arm.com>
11286 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
11287 (create_intersect_range_checks): New.
11288 (vect_create_cond_for_alias_checks): Call above function.
11290 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11292 * config/arm/iterators.md (Code iterators): Fix some white-space
11296 (FCVT): Moved from vfp.md.
11297 (VCVT_HF_US_N): New.
11298 (VCVT_SI_US_N): New.
11303 (FCVTI32typename): Moved from vfp.md.
11304 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
11305 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
11306 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
11307 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
11308 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
11310 (fp16_rnd_str): New.
11311 (fp16_rnd_insn): New.
11312 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
11313 (UNSPEC_VCVT_HF_U_N): New.
11314 (UNSPEC_VCVT_SI_S_N): New.
11315 (UNSPEC_VCVT_SI_U_N): New.
11316 (UNSPEC_VCVTH_S): New.
11317 (UNSPEC_VCVTH_U): New.
11318 (UNSPEC_VCVTA_S): New.
11319 (UNSPEC_VCVTA_U): New.
11320 (UNSPEC_VCVTM_S): New.
11321 (UNSPEC_VCVTM_U): New.
11322 (UNSPEC_VCVTN_S): New.
11323 (UNSPEC_VCVTN_U): New.
11324 (UNSPEC_VCVTP_S): New.
11325 (UNSPEC_VCVTP_U): New.
11326 (UNSPEC_VCVTP_S): New.
11327 (UNSPEC_VCVTP_U): New.
11328 (UNSPEC_VRND): New.
11329 (UNSPEC_VRNDA): New.
11330 (UNSPEC_VRNDI): New.
11331 (UNSPEC_VRNDM): New.
11332 (UNSPEC_VRNDN): New.
11333 (UNSPEC_VRNDP): New.
11334 (UNSPEC_VRNDX): New.
11335 * config/arm/vfp.md (<absneg_str>hf2): New.
11336 (neon_vabshf): New.
11337 (neon_v<fp16_rnd_str>hf): New.
11338 (neon_vrndihf): New.
11343 (*mulsf3neghf_vfp): New.
11344 (*negmulhf3_vfp): New.
11345 (*mulsf3addhf_vfp): New.
11346 (*mulhf3subhf_vfp): New.
11347 (*mulhf3neghfaddhf_vfp): New.
11348 (*mulhf3neghfsubhf_vfp): New.
11350 (neon_vfmahf): New.
11351 (fmsubhf4_fp16): New.
11352 (neon_vfmshf): New.
11355 (neon_vsqrthf): New.
11356 (neon_vrsqrtshf): New.
11357 (FCVT): Move to iterators.md.
11358 (FCVTI32typename): Likewise.
11359 (neon_vcvth<sup>hf): New.
11360 (neon_vcvth<sup>si): New.
11361 (neon_vcvth<sup>_nhf_unspec): New.
11362 (neon_vcvth<sup>_nhf): New.
11363 (neon_vcvth<sup>_nsi_unspec): New.
11364 (neon_vcvth<sup>_nsi): New.
11365 (neon_vcvt<vcvth_op>h<sup>si): New.
11366 (neon_<fmaxmin_op>hf): New.
11368 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11370 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
11371 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
11372 ("*insv<mode>_zEC12_appendbitsleft")
11373 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
11374 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
11376 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11378 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
11379 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
11380 construct values without normalization.
11381 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
11382 static local lhs_ops to vNULL.
11384 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11385 Jiong Wang <jiong.wang@arm.com>
11387 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
11388 available when FP16 instructions are available.
11389 (output_move_vfp): Add support for 16-bit data moves.
11390 (arm_validize_comparison): Fix some white-space. Support HFmode
11391 by conversion to SFmode.
11392 * config/arm/arm.md (truncdfhf2): Fix a comment.
11393 (extendhfdf2): Likewise.
11395 (movsicc): Fix some white-space.
11397 (movsfcc): Fix some white-space.
11399 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
11400 instructions are available.
11401 (*thumb2_movhi_vfp): Likewise.
11402 (*arm_movhi_fp16): New.
11403 (*thumb2_movhi_fp16): New.
11404 (*movhf_vfp_fp16): New.
11405 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
11406 (*movhf_vfp): Likewise.
11407 (extendhfsf2): Enable when VFP FP16 instructions are available.
11408 (truncsfhf2): Enable when VFP FP16 instructions are available.
11410 2016-09-23 Martin Liska <mliska@suse.cz>
11412 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
11414 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11416 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
11418 (arm_evpc_neon_vtrn): Likewise.
11419 (arm_evpc_neon_vrev): Likewise.
11420 (arm_evpc_neon_vext): Likewise.
11421 * config/arm/arm_neon.h (vbsl_f16): New.
11424 (vdupq_n_f16): New.
11425 (vdup_lane_f16): New.
11426 (vdupq_lane_f16): New.
11430 (vmovq_n_f16): New.
11432 (vrev64q_f16): New.
11439 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
11440 (vdup_lane): New (v8hf, v4hf variants).
11441 (vext): New (v8hf, v4hf variants).
11442 (vbsl): New (v8hf, v4hf variants).
11443 * config/arm/iterators.md (VDQWH): New.
11445 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
11446 (Scalar_mul_8_16): Fix white-space.
11447 (Is_d_reg): Add V4HF and V8HF.
11448 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
11449 (neon_vdup_lane<mode>): New.
11450 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
11451 (*neon_vtrn<mode>_insn): Likewise.
11452 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
11453 (*neon_vzip<mode>_insn): Likewise
11454 (neon_vuzp<mode>_internal): Likewise.
11455 (*neon_vuzp<mode>_insn): Likewise
11456 * config/arm/vec-common.md (vec_perm_const<mode>): New.
11458 2016-09-23 Jiong Wang <jiong.wang@arm.com>
11459 Matthew Wahab <matthew.wahab@arm.com>
11461 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
11462 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
11463 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
11464 available. Also fix some white-space.
11465 * config/arm/vfp.md (*arm_movhi_vfp): New.
11466 (*thumb2_movhi_vfp): New.
11468 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11470 * config/arm/arm-c.c (arm_cpu_builtins): Define
11471 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
11472 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
11474 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11476 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
11477 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
11478 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
11479 arm_v8_2a_fp16_neon_hw.
11480 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
11483 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11485 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
11486 arm_fp16_alternative_ok and arm_fp16_none_ok.
11488 2016-09-23 Martin Liska <mliska@suse.cz>
11490 * ipa-icf.c (sem_variable::merge): Replace adress with address.
11492 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11494 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
11495 ("armv8.2-a"): New.
11496 ("armv8.2-a+fp16"): New.
11497 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
11498 (FL2_FP16INST): New.
11499 (FL2_FOR_ARCH8_2A): New.
11500 * config/arm/arm-tables.opt: Regenerate.
11501 * config/arm/arm.c (arm_arch8_2): New.
11502 (arm_fp16_inst): New.
11503 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
11504 for incompatible fp16-format settings.
11505 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
11506 (TARGET_NEON_FP16INST): New.
11507 (arm_arch8_2): Declare.
11508 (arm_fp16_inst): Declare.
11509 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
11510 march=armv8.2-a and march=armv8.2-a+fp16.
11511 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
11512 and armv8.2-a+fp16.
11513 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
11514 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
11516 2016-09-23 Martin Liska <mliska@suse.cz>
11518 * doc/extend.texi: Remove fused-madd from i386 target options.
11520 2016-09-23 Martin Liska <mliska@suse.cz>
11522 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11525 2016-09-23 Martin Liska <mliska@suse.cz>
11527 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11530 2016-09-23 Martin Liska <mliska@suse.cz>
11533 * config/i386/i386.c (ix86_option_override_internal): Change
11534 signature and return false when there's an error related to
11536 (release_options_strings): New function.
11537 (ix86_valid_target_attribute_tree): Call the function.
11539 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11541 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
11542 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
11543 (gen_hsa_ctor_assignment): Likewise.
11544 * print-tree.c (print_node): Likewise.
11545 * tree-dump.c (dequeue_and_dump): Likewise.
11546 * tree-sra.c (sra_modify_constructor_assign): Likewise.
11547 * expr.c (store_constructor): Likewise.
11548 * fold-const.c (operand_equal_p): Likewise.
11549 * tree-pretty-print.c (dump_generic_node): Likewise.
11550 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
11551 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
11553 2016-09-23 Richard Biener <rguenther@suse.de>
11555 * hooks.h (hook_uint_uintp_false): Declare.
11557 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11559 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
11560 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
11562 2016-09-22 Martin Sebor <msebor@redhat.com>
11565 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
11566 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
11567 (target_int_min): Correct computation.
11568 (format_integer): Use long long as the argument for the ll length
11570 (format_floating): Use target_int_max().
11571 (get_string_length): Same.
11572 (format_string): Avoid setting the bounded flag for strings
11574 (try_substitute_return_value): Avoid setting range info when
11575 the result isn't bounded.
11576 * varasm.c (assemble_name): Increase buffer size.
11578 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
11579 Terry Guo <terry.guo@arm.com>
11581 * target.def (elf_flags_numeric): New target hook.
11582 * targhooks.h (default_asm_elf_flags_numeric): New.
11583 * varasm.c (default_asm_elf_flags_numeric): New.
11584 (default_elf_asm_named_section): Use new target hook.
11585 * config/arm/arm.opt (mpure-code): New.
11586 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
11587 * config/arm/arm.c (arm_asm_init_sections): Add section
11588 attribute to default text section if -mpure-code.
11589 (arm_option_check_internal): Diagnose use of option with
11590 non supported targets and/or options.
11591 (arm_asm_elf_flags_numeric): New.
11592 (arm_function_section): New.
11593 (arm_elf_section_type_flags): New.
11594 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
11596 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
11597 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
11599 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
11601 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
11603 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11605 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
11606 * rtl.h: Adjust prototype.
11608 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11610 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
11611 (prev_active_insn): Likewise.
11612 (active_insn_p): Likewise.
11613 * rtl.h: Adjust prototypes.
11614 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
11615 * config/arc/arc.md: Likewise.
11616 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
11617 (branch_needs_nop_p): Likewise.
11618 (use_skip_p): Likewise.
11619 * config/sh/sh.c (gen_block_redirect): Likewise.
11620 (split_branches): Likewise.
11621 * reorg.c (optimize_skip): Likewise.
11622 (fill_simple_delay_slots): Likewise.
11623 (fill_slots_from_thread): Likewise.
11624 (relax_delay_slots): Likewise.
11625 * resource.c (mark_target_live_regs): Likewise.
11627 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11629 * config/cris/cris.c (cris_asm_output_case_end): Change argument
11630 type to rtx_insn *.
11631 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
11632 (prev_nonnote_nondebug_insn): Likewise.
11633 * config/cris/cris-protos.h: Adjust prototype.
11635 * jump.c (rtx_renumbered_equal_p): Adjust.
11637 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11639 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
11640 * rtl.h: Adjust prototype.
11641 * config/sh/sh.md: Adjust.
11642 * dwarf2out.c (add_var_loc_to_decl): Likewise.
11644 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11646 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
11647 (prev_nondebug_insn): Likewise.
11648 * loop-doloop.c (doloop_condition_get): Likewise.
11649 * rtl.h: Adjust prototype.
11650 * cfgloop.h: Likewise.
11652 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11654 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
11655 (prev_nonnote_insn): Likewise.
11656 * jump.c (reversed_comparison_code_parts): Likewise.
11657 (reversed_comparison): Likewise.
11658 * rtl.h: Adjust prototypes.
11659 * config/arc/arc.md: Adjust.
11660 * cse.c (find_comparison_args): Likewise.
11661 * reorg.c (redundant_insn): Change return type to rtx_insn *.
11662 (fix_reg_dead_note): Change argument type to rtx_insn *.
11663 (delete_prior_computation): Likewise.
11664 (delete_computation): Likewise.
11665 (fill_slots_from_thread): Adjust.
11666 (relax_delay_slots): Likewise.
11667 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11668 (simplify_relational_operation_1): Likewise.
11669 (simplify_ternary_operation): Likewise.
11671 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11673 * config/arc/arc-protos.h (arc_label_align): Change type of
11674 variables from rtx to rtx_insn *.
11675 * config/arc/arc.c (arc_label_align): Likewise.
11676 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
11677 * config/bfin/bfin.c (workaround_speculation): Likewise.
11678 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
11679 (find_last_same_clock): Likewise.
11680 (reorg_split_calls): Likewise.
11681 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
11682 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
11683 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
11684 (same_cmp_following_p): Likewise.
11685 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
11686 (same_cmp_following_p): Likwise.
11687 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
11688 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
11689 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
11690 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
11691 (rl78_alloc_physical_registers_cmp): Likewise.
11692 (rl78_alloc_physical_registers_umul): Likewise.
11693 (rl78_calculate_death_notes): Likewise.
11694 * config/s390/s390-protos.h (s390_label_align): Likewise.
11695 * config/s390/s390.c (s390_label_align): Likewise.
11696 * config/sh/sh.c (barrier_align): Likewise.
11697 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
11698 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
11699 (emit_cbcond_nop): Likewise.
11701 2016-09-22 Martin Liska <mliska@suse.cz>
11704 * ipa-icf.c (sem_variable::merge): Yield merge operation if
11705 alias address matters, not necessarily address of original.
11707 2016-09-22 Richard Biener <rguenther@suse.de>
11709 PR middle-end/77697
11710 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
11713 2016-09-22 Richard Biener <rguenther@suse.de>
11715 PR middle-end/77677
11716 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
11717 from constant folding results.
11718 (gimple_resimplify2): Likewise.
11719 (gimple_resimplify3): Likewise.
11721 2016-09-22 Richard Biener <rguenther@suse.de>
11723 PR middle-end/77678
11724 * expr.c (expand_expr_real_1): Guard array access against negative
11727 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11729 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
11731 (format_floating): Likewise.
11733 2016-09-22 Jakub Jelinek <jakub@redhat.com>
11736 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
11737 for all IFN_GOMP_SIMD_* internal fns, not just for
11738 IFN_GOMP_SIMD_ORDERED_*.
11740 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11743 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
11744 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
11745 instructions when you want to invert the test.
11746 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
11747 correct order for XXSEL.
11748 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
11749 for using XSCMP{EQ,GT,GE}DP.
11751 2016-09-21 David Malcolm <dmalcolm@redhat.com>
11753 * genconstants.c (main): Introduce noop_reader and convert call
11754 to read_md_files to a method call.
11755 * genenums.c (main): Likewise.
11756 * genmddeps.c (main): Likewise.
11757 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
11758 rtx_reader_ptr->get_top_level_filename ().
11759 (write_tm_preds_h): Likewise.
11760 (write_insn_preds_c): Likewise.
11761 * gensupport.c (class gen_reader): New subclass of rtx_reader.
11762 (rtx_handle_directive): Convert to...
11763 (gen_reader::handle_unknown_directive): ...this.
11764 (init_rtx_reader_args_cb): Convert return type from bool to
11765 rtx_reader *. Create a gen_reader instance, using it for the
11766 call to read_md_files. Return it if no errors occur.
11767 (init_rtx_reader_args): Convert return type from bool to
11769 * gensupport.h (init_rtx_reader_args_cb): Likewise.
11770 (init_rtx_reader_args_cb): Likewise.
11771 * read-md.c (struct file_name_list): Move to class rtx_reader.
11772 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
11773 (read_md_filename): Delete in favor of
11774 rtx_reader::m_read_md_filename.
11775 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
11776 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
11777 (base_dir): Delete in favor of rtx_reader::m_base_dir.
11778 (first_dir_md_include): Delete in favor of
11779 rtx_reader::m_first_dir_md_include.
11780 (last_dir_md_include_ptr): Delete in favor of
11781 rtx_reader::m_last_dir_md_include_ptr.
11782 (max_include_len): Delete.
11783 (rtx_reader_ptr): New.
11784 (fatal_with_file_and_line): Use get_filename and get_lineno
11785 accessors of rtx_reader_ptr.
11786 (require_char_ws): Likewise.
11787 (rtx_reader::read_char): New method, based on ::read_char.
11788 (rtx_reader::unread_char): New method, based on ::unread_char.
11789 (read_escape): Use get_filename and get_lineno accessors of
11791 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
11792 (read_string): Use get_filename and get_lineno accessors of
11794 (rtx_reader::rtx_reader): New ctor.
11795 (rtx_reader::~rtx_reader): New dtor.
11796 (handle_include): Convert from a function to...
11797 (rtx_reader::handle_include): ...this method, converting
11798 handle_directive from a callback to a virtual function.
11799 (handle_file): Likewise, converting to...
11800 (rtx_reader::handle_file): ...this method.
11801 (handle_toplevel_file): Likewise, converting to...
11802 (rtx_reader::handle_toplevel_file): ...this method.
11803 (rtx_reader::get_current_location): New method.
11804 (parse_include): Convert from a function to...
11805 (rtx_reader::add_include_path): ...this method, dropping redundant
11806 update to unused max_include_len.
11807 (read_md_files): Convert from a function to...
11808 (rtx_reader::read_md_files): ...this method, converting
11809 handle_directive from a callback to a virtual function.
11810 (noop_reader::handle_unknown_directive): New method.
11811 * read-md.h (directive_handler_t): Delete this typedef.
11812 (in_fname): Delete.
11813 (read_md_file): Delete.
11814 (read_md_lineno): Delete.
11815 (read_md_filename): Delete.
11816 (class rtx_reader): New class.
11817 (rtx_reader_ptr): New decl.
11818 (class noop_reader): New subclass of rtx_reader.
11819 (read_char): Reimplement in terms of rtx_reader::read_char.
11820 (unread_char): Reimplement in terms of rtx_reader::unread_char.
11821 (read_md_files): Delete.
11822 * read-rtl.c (read_rtx_code): Update for deletion of globals
11823 read_md_filename and read_md_lineno.
11825 2016-09-21 Jason Merrill <jason@redhat.com>
11827 * input.h (from_macro_definition_at): New.
11829 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
11831 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
11833 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11835 PR tree-optimization/77550
11836 * tree-vect-stmts.c (create_array_ref): Change parameters.
11837 (get_group_alias_ptr_type): New function.
11838 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
11840 2016-09-21 Marek Polacek <polacek@redhat.com>
11842 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
11843 Add falls through comment.
11845 2016-09-21 Richard Biener <rguenther@suse.de>
11847 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
11848 (replace_child): Likewise.
11849 (remove_child_TAG): Adjust.
11850 (move_marked_base_types): Likewise.
11851 (prune_unused_types_prune): Clear die_sib of removed children.
11853 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
11856 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
11857 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
11859 2016-09-21 Richard Biener <rguenther@suse.de>
11861 PR tree-optimization/77648
11862 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
11864 (make_transitive_closure_constraints): Adjust comment.
11865 (make_any_offset_constraints): New function.
11866 (handle_rhs_call): Make sure to first expand a pointer to all
11867 subfields before transitively closing it.
11868 (handle_const_call): Likewise. Properly expand returned
11870 (handle_pure_call): Likewise.
11872 2016-09-21 Richard Biener <rguenther@suse.de>
11873 Jakub Jelinek <jakub@redhat.com>
11875 PR tree-optimization/77621
11876 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
11877 group at non-vectorizable stmts.
11879 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11881 PR tree-optimization/72835
11882 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
11883 (make_new_ssa_for_all_defs): Likewise.
11884 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
11886 2016-09-20 Martin Sebor <msebor@redhat.com>
11888 PR middle-end/49905
11889 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
11890 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
11891 * config/linux.c (gnu_libc_printf_pointer_format): New function.
11892 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
11893 * config/sol2.c (solaris_printf_pointer_format): New function.
11894 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
11896 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
11897 * doc/tm.texi: Regenerate.
11898 * gimple-fold.h (get_range_strlen): New function.
11899 (get_maxval_strlen): Declare existing function.
11900 * gimple-fold.c (get_range_strlen): Add arguments and compute both
11901 maximum and minimum.
11902 (get_range_strlen): Define overload.
11903 (get_maxval_strlen): Adjust.
11904 * gimple-ssa-sprintf.c: New file and pass.
11905 * passes.def (pass_sprintf_length): Add new pass.
11906 * targhooks.h (default_printf_pointer_format): Declare new function.
11907 (gnu_libc_printf_pointer_format): Same.
11908 (solaris_libc_printf_pointer_format): Same.
11909 * targhooks.c (default_printf_pointer_format): Define new function.
11910 * tree-pass.h (make_pass_sprintf_length): Declare new function.
11911 * print-tree.c: Increase buffer size.
11913 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11915 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
11917 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11919 * common.opt: New option -fipa-vrp.
11920 * ipa-cp.c (ipa_get_vr_lat): New.
11921 (ipcp_vr_lattice::print): Likewise.
11922 (print_all_lattices): Call ipcp_vr_lattice::print.
11923 (ipcp_vr_lattice::meet_with): New.
11924 (ipcp_vr_lattice::meet_with_1): Likewise.
11925 (ipcp_vr_lattice::top_p): Likewise.
11926 (ipcp_vr_lattice::bottom_p): Likewsie.
11927 (ipcp_vr_lattice::set_to_bottom): Likewise.
11928 (set_all_contains_variable): Call VR set_to_bottom.
11929 (initialize_node_lattices): Init VR lattices.
11930 (propagate_vr_accross_jump_function): New.
11931 (propagate_constants_accross_call): Call
11932 propagate_vr_accross_jump_function.
11933 (ipcp_store_vr_results): New.
11934 (ipcp_driver): Handle VR.
11935 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
11936 (ipa_set_jf_unknown): Likewise.
11937 (ipa_compute_jump_functions_for_edge): Likewise.
11938 (ipa_node_params_t::duplicate): Likewise.
11939 (ipa_write_jump_function): Likewise.
11940 (ipa_read_jump_function): Likewise.
11941 (write_ipcp_transformation_info): Likewise.
11942 (read_ipcp_transformation_info): Likewise.
11943 (ipcp_update_vr): New.
11944 (ipcp_transform_function): Handle VR.
11945 * ipa-prop.h (struct ipa_vr): New.
11946 * cgraph.c: Include tree-vrp.h.
11947 * cgraphunit.c: Likewise.
11948 * ipa-utils.c: Likewise.
11950 * opts.c: Likewise.
11951 * toplev.c: Likewise.
11952 * ipa-devirt.c: Likewise.
11953 * ipa-inline-transform.c: Likewise.
11954 * ipa-inline.c: Likewise.
11955 * ipa-profile.c: Likewise.
11957 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11959 * doc/invoke.texi: Document -fdump-tree-evrp.
11960 * passes.def: Define new pass_early_vrp.
11961 * timevar.def: Define new TV_TREE_EARLY_VRP.
11962 * tree-pass.h (make_pass_early_vrp): New.
11963 * tree-ssa-propagate.c: Make replace_uses_in non static.
11964 * tree-ssa-propagate.h: Export replace_uses_in.
11965 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
11966 (extract_range_from_assert): Factor out
11967 extract_range_for_var_from_comparison_expr.
11968 (vrp_initialize_lattice): New.
11969 (vrp_initialize): Factor out vrp_initialize_lattice.
11970 (vrp_valueize): Fix it to reject complex value ranges.
11971 (vrp_free_lattice): New.
11972 (evrp_dom_walker::before_dom_children): Likewise.
11973 (evrp_dom_walker::after_dom_children): Likewise.
11974 (evrp_dom_walker::push_value_range): Likewise.
11975 (evrp_dom_walker::pop_value_range): Likewise.
11976 (execute_early_vrp): Likewise.
11977 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
11978 (make_pass_early_vrp): New.
11980 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
11982 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
11983 instead of exact_log2.
11985 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
11988 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
11989 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
11990 (ix86_add_stmt_cost): Penalize DFmode vector operations
11991 for !TARGET_VECTORIZE_DOUBLE.
11993 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
11995 * doc/invoke.texi (Warning Options): Simplify language.
11996 (Optimize Options): Complete sentence.
11998 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
12000 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
12003 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
12006 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
12007 inits on power8 and above, use the VMRGEW instruction instead of a
12010 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
12011 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
12014 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12016 * config/aarch64/arm_neon.h
12017 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
12018 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
12019 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
12021 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12023 * config/var/vax.h (ELIMINABLE_REGS): Define.
12024 (INITIAL_ELIMINATION_OFFSET): Define.
12026 2016-09-20 Jakub Jelinek <jakub@redhat.com>
12028 PR middle-end/77624
12029 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
12030 cast to void * if the cast is from some other pointer type.
12032 2016-09-20 Richard Biener <rguenther@suse.de>
12034 PR tree-optimization/77646
12035 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
12038 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12040 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
12041 attributes to all inlined functions and make them extern.
12043 2016-09-20 Richard Biener <rguenther@suse.de>
12045 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
12047 * debug.c (do_nothing_debug_hooks): Adjust.
12048 * dbxout.c (dbx_debug_hooks): Likewise.
12049 * sdbout.c (sdb_debug_hooks): Likewise.
12050 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
12051 (dwarf2out_finish): Move producer, filename and
12052 path annotation ...
12053 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
12054 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
12056 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
12059 * doc/invoke.texi: Document -Wint-in-bool-context.
12061 PR middle-end/77421
12062 * dwarf2out.c (output_loc_operands): Fix an assertion.
12064 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12066 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
12067 (CR_DECIMAL_DIG): New macro.
12069 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12071 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
12074 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
12076 PR rtl-optimization/77416
12077 * lra-remat.c (operand_to_remat): Process hard coded insn
12080 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12082 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
12083 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
12085 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
12087 * target.def (lra_p): Wordsmithing.
12088 * doc/tm.texi: Regenerate.
12090 2016-09-19 Jakub Jelinek <jakub@redhat.com>
12091 Jan Hubicka <jh@suse.cz>
12094 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
12095 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
12096 Call ultimate_alias_target just once, not up to 4 times.
12098 2016-09-19 Richard Biener <rguenther@suse.de>
12100 * dwarf2out.c (early_dwarf_finished): New global.
12101 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
12103 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
12104 if called from LTO exit early.
12105 (dwarf2out_late_global_decl): When being during the early
12106 debug phase do not add locations but only const value attributes.
12107 Adjust the way we generate early DIEs for LTO.
12109 2016-09-19 Richard Biener <rguenther@suse.de>
12111 PR middle-end/77605
12112 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
12113 proper niter to bound the loops.
12115 2016-09-19 Richard Biener <rguenther@suse.de>
12117 PR tree-optimization/77514
12118 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
12119 search for folded stmt.
12121 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
12123 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
12124 * tree-pass.h (make_pass_early_thread_jumps): Declare.
12125 * tree-ssa-threadbackward.c (fsm_find_thread_path,
12126 fsm_find_thread_path, profitable_jump_thread_path,
12127 fsm_find_control_statement_thread_paths,
12128 find_jump_threads_backwards): Add speed_p parameter.
12129 (pass_data_early_thread_jumps): New pass.
12130 (make_pass_early_thread_jumps): New function.
12132 2016-09-17 Andreas Schwab <schwab@suse.de>
12134 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
12135 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12137 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
12139 * recog.c (rest_of_handle_split_after_reload): Delete.
12140 (pass_split_after_reload::gate): New method.
12141 (pass_split_after_reload::execute): Call split_all_insns directly.
12143 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
12145 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
12146 parameters for functions taking long long arguments.
12148 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12151 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
12152 splat with truncate.
12154 2016-09-16 Jason Merrill <jason@redhat.com>
12156 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
12158 * hwint.c (exact_log2): Use pow2p_hwi.
12159 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
12160 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
12161 * builtins.c (get_object_alignment_2, get_object_alignment)
12162 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
12164 * calls.c (compute_argument_addresses, store_one_arg): Use
12166 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
12167 * combine.c (force_to_mode): Use least_bit_hwi.
12168 (contains_muldiv, find_split_point, combine_simplify_rtx)
12169 (simplify_if_then_else, simplify_set, force_to_mode)
12170 (if_then_else_cond, simplify_and_const_int_1)
12171 (simplify_compare_const): Use pow2p_hwi.
12172 * cse.c (fold_rtx): Use pow2p_hwi.
12173 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
12175 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
12176 (init_expmed_one_conv): Use pow2p_hwi.
12177 * expr.c (is_aligning_offset): Use pow2p_hwi.
12178 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
12179 (fold_binary_loc): Use pow2p_hwi.
12180 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
12181 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
12182 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
12183 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
12185 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
12186 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
12187 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
12188 * omp-low.c (oacc_loop_fixed_partitions)
12189 (oacc_loop_auto_partitions): Use least_bit_hwi.
12190 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
12191 * stor-layout.c (place_field): Use least_bit_hwi.
12192 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
12193 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
12194 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
12195 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
12196 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
12197 * tree-vect-data-refs.c (vect_analyze_group_access_1)
12198 (vect_grouped_store_supported, vect_grouped_load_supported)
12199 (vect_permute_load_chain, vect_shift_permute_load_chain)
12200 (vect_transform_grouped_load): Use pow2p_hwi.
12201 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
12202 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
12203 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
12205 * tsan.c (instrument_expr): Use least_bit_hwi.
12206 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
12208 2016-09-16 Andreas Schwab <schwab@suse.de>
12210 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
12211 OFFSET, not offset.
12212 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12214 2016-09-16 Jakub Jelinek <jakub@redhat.com>
12217 * combine.c (rest_of_handle_combine): If any edges have been purged,
12218 free dominators if available.
12220 2016-09-16 Jakub Jelinek <jakub@redhat.com>
12221 Eric Botcazou <ebotcazou@adacore.com>
12223 PR middle-end/77594
12224 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
12225 through into expand_addsub_overflow after expand_neg_overflow.
12227 2016-09-15 David Malcolm <dmalcolm@redhat.com>
12229 * diagnostic-show-locus.c
12230 (selftest::test_fixit_insert_containing_newline): New function.
12231 (selftest::test_fixit_replace_containing_newline): New function.
12232 (selftest::diagnostic_show_locus_c_tests): Call the above.
12234 2016-09-15 Bin Cheng <bin.cheng@arm.com>
12236 PR tree-optimization/77503
12237 * tree-vect-loop.c (vectorizable_reduction): Record reduction
12238 code for CONST_COND_REDUCTION at analysis stage and use it at
12240 * tree-vectorizer.h (struct _stmt_vec_info): New field.
12241 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
12242 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
12245 2016-09-15 Richard Biener <rguenther@suse.de>
12247 PR middle-end/77544
12248 * fold-const.c (split_tree): Do not split constant ~X.
12250 2016-09-15 Jakub Jelinek <jakub@redhat.com>
12252 PR rtl-optimization/77425
12253 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
12256 PR middle-end/77475
12257 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
12258 use %qs instead of %s where desirable, use argument instead of arg in
12259 the diagnostic wording, add list of supported strategies and
12261 (ix86_option_override_internal): Emit target("m...") instead of
12262 option("m...") in the diagnostic. Use %qs instead of %s in invalid
12263 -march/-mtune option diagnostic. Add list of supported arches/tunings
12264 and spellcheck hint. Remove prefix, suffix and sw variables, use
12265 main_args_p ? "..." : "..." in diagnostics to make translation
12268 2016-09-15 Richard Biener <rguenther@suse.de>
12270 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
12271 extra offset argument.
12272 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
12273 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
12274 to reflect new offset parameter.
12275 * doc/tm.texi: Regenerate.
12276 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
12277 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
12279 (darwin_asm_output_dwarf_offset): Likewise.
12280 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
12282 (darwin_asm_output_dwarf_offset): Pass offset argument through.
12283 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
12284 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12286 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
12289 * ipa-icf.c (set_alias_uids): New function.
12290 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
12291 all the merged variable's referring aliases.
12293 2016-09-15 Richard Biener <rguenther@suse.de>
12295 PR tree-optimization/77514
12296 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
12297 only forced_stmts sequence.
12299 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
12301 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
12302 * cfgexpand.c (update_alias_info_with_stack_vars): Use
12303 FOR_EACH_SSA_NAME to iterate over SSA variables.
12304 (pass_expand::execute): Likewise.
12305 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
12306 * tree-cfg.c (dump_function_to_file): Likewise.
12307 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
12308 (update_ssa): Likewise.
12309 * tree-ssa-alias.c (dump_alias_info): Likewise.
12310 * tree-ssa-ccp.c (ccp_finalize): Likewise.
12311 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
12312 (create_outofssa_var_map): Likewise.
12313 (coalesce_ssa_name): Likewise.
12314 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
12315 * tree-ssa-pre.c (compute_avail): Likewise.
12316 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
12317 (scc_vn_restore_ssa_info): Likewise.
12318 (free_scc_vn): Likwise.
12319 (run_scc_vn): Likewise.
12320 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
12321 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
12322 * tree-ssa-copy.c (fini_copy_prop): Likewise.
12323 * tree-ssa.c (verify_ssa): Likewise.
12325 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
12327 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
12328 and mips64r2 as default 32-bit and 64-bit architectures.
12329 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
12330 as default 32-bit and 64-bit architectures.
12332 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
12334 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
12337 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12339 * target.def (lra_p): Change commentary (for the manual) for the
12341 * doc/tm.texi: Regenerate.
12343 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12345 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
12346 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
12347 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
12348 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
12350 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12352 * targhooks.c (default_lra_p): Return true instead of false.
12354 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12356 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
12357 hook_bool_void_false.
12358 * config/avr/avr.c: Ditto.
12359 * config/bfin/bfin.c: Ditto.
12360 * config/c6x/c6x.c: Ditto.
12361 * config/cr16/cr16.c: Ditto.
12362 * config/cris/cris.c: Ditto.
12363 * config/epiphany/epiphany.c: Ditto.
12364 * config/fr30/fr30.c: Ditto.
12365 * config/frv/frv.c: Ditto.
12366 * config/h8300/h8300.c: Ditto.
12367 * config/ia64/ia64.c: Ditto.
12368 * config/iq2000/iq2000.c: Ditto.
12369 * config/lm32/lm32.c: Ditto.
12370 * config/m32c/m32c.c: Ditto.
12371 * config/m32r/m32r.c: Ditto.
12372 * config/m68k/m68k.c: Ditto.
12373 * config/mcore/mcore.c: Ditto.
12374 * config/microblaze/microblaze.c: Ditto.
12375 * config/mmix/mmix.c: Ditto.
12376 * config/mn10300/mn10300.c: Ditto.
12377 * config/moxie/moxie.c: Ditto.
12378 * config/msp430/msp430.c: Ditto.
12379 * config/nios2/nios2.c: Ditto.
12380 * config/nvptx/nvptx.c: Ditto.
12381 * config/pa/pa.c: Ditto.
12382 * config/pdp11/pdp11.c: Ditto.
12383 * config/rl78/rl78.c: Ditto.
12384 * config/sparc/sparc.c: Ditto.
12385 * config/spu/spu.c: Ditto.
12386 * config/stormy16/stormy16.c: Ditto.
12387 * config/tilegx/tilegx.c: Ditto.
12388 * config/tilepro/tilepro.c: Ditto.
12389 * config/v850/v850.c: Ditto.
12390 * config/vax/vax.c: Ditto.
12391 * config/visium/visium.c: Ditto.
12392 * config/xtensa/xtensa.c: Ditto.
12394 2016-09-14 Jakub Jelinek <jakub@redhat.com>
12397 * tsan.c: Include target.h.
12398 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
12399 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
12400 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
12401 BUILT_IN_ATOMIC_TEST_AND_SET entries.
12402 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
12404 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12405 Martin Liska <mliska@suse.cz>
12407 PR middle-end/77574
12408 * predict.c (force_edge_cold): Add braces to a condition.
12410 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12412 PR rtl-optimization/77289
12413 * lra-constraints.c (get_final_hard_regno): Removed.
12414 (get_hard_regno): Add new parameter final_p.
12415 (get_reg_class): Directly call lra_get_elimination_hard_regno.
12416 (operands_match_p): Adjust call to get_hard_regno.
12417 (uses_hard_regs_p): Likewise.
12418 (process_alt_operands): Likewise.
12420 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
12423 * config/msp430/msp430.c (msp430_start_function): Emit an error
12424 if a function is both weak and specifies an interrupt number.
12426 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12428 PR tree-optimization/77454
12429 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
12430 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
12433 2016-09-13 Tamar Christina <tamar.christina@arm.com>
12435 * config/aarch64/aarch64-builtins.c
12436 (aarch64_init_simd_builtins): Fix builtin type signature printing.
12438 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
12440 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
12441 SFmode and SCmode arguments by reference.
12443 2016-09-13 David Malcolm <dmalcolm@redhat.com>
12445 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
12447 (selftest::test_one_liner_fixit_insert_before): ...this, and update
12448 for renaming of add_fixit_insert to add_fixit_insert_before.
12449 (selftest::test_one_liner_fixit_insert_after): New function.
12450 (selftest::test_one_liner_fixit_validation_adhoc_locations):
12451 Update for renaming of add_fixit_insert to add_fixit_insert_before.
12452 (selftest::test_one_liner_many_fixits): Likewise.
12453 (selftest::test_diagnostic_show_locus_one_liner): Update for
12454 renaming, call new test function.
12455 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
12456 renaming of add_fixit_insert to add_fixit_insert_before.
12457 (selftest::test_fixit_consolidation): Likewise.
12458 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
12460 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
12461 (selftest::test_applying_fixits_insert_before): ...this.
12462 (selftest::test_applying_fixits_insert): Update for renaming of
12463 add_fixit_insert to add_fixit_insert_before.
12464 (selftest::test_applying_fixits_insert_after): New function.
12465 (selftest::test_applying_fixits_insert_after_at_line_end): New
12467 (selftest::test_applying_fixits_insert_after_failure): New function.
12468 (selftest::test_applying_fixits_multiple): Update for renaming of
12469 add_fixit_insert to add_fixit_insert_before.
12470 (selftest::change_line): Likewise.
12471 (selftest::test_applying_fixits_unreadable_file): Likewise.
12472 (selftest::test_applying_fixits_line_out_of_range): Likewise.
12473 (selftest::test_applying_fixits_column_validation): Likewise.
12474 (selftest::test_applying_fixits_column_validation): Likewise.
12475 (selftest::edit_context_c_tests): Update for renamed test function;
12476 call new test functions.
12478 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
12480 PR tree-optimization/77536
12481 PR rtl-optimization/68212
12482 * config/rs6000/rs6000.md (div->recip splitter): Remove
12483 optimize_insn_for_speed_p condition.
12485 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
12487 * optabs.c (prepare_cmp_insn): Update documentation comment.
12489 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12490 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12492 PR middle-end/77475
12493 * opts.h (candidates_list_and_hint): Declare.
12494 * opts-common.c (candidates_list_and_hint): New function.
12495 (cmdline_handle_error): Use it.
12497 2016-09-12 David Malcolm <dmalcolm@redhat.com>
12499 * edit-context.c (edited_line::get_len): New accessor.
12500 (edited_file::print_diff): Split out hunk-printing into...
12501 (edited_file::print_diff_hunk): New method.
12502 (edited_file::print_diff_line): New method.
12504 2016-09-12 Andrew Pinski <apinski@cavium.com>
12506 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
12508 * config/aarch64/aarch64.c (thunderx_tunings): Enable
12509 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
12510 (aarch64_operands_ok_for_ldpstp): Return false if
12511 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
12512 was SImode and the alignment is less than 8 byte.
12513 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
12515 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
12518 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
12520 2016-09-12 Marek Polacek <polacek@redhat.com>
12522 * doc/extend.texi: Use lowercase "boolean".
12523 * doc/invoke.texi: Likewise.
12524 * doc/md.texi: Likewise.
12525 * target.def: Likewise.
12526 * doc/tm.texi: Regenerated.
12528 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12530 PR middle-end/77426
12531 * expmed.c (synth_mult): Delete duplicate mode check.
12533 2016-09-10 Tom de Vries <tom@codesourcery.com>
12536 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
12538 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
12539 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
12541 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
12543 PR rtl-optimization/77289
12544 * lra-constraints.c (get_final_hard_regno): Add support for non hard
12545 register numbers. Remove support for subregs.
12546 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
12547 (get_reg_class): Delete removed get_final_hard_regno() argument.
12548 (uses_hard_regs_p): Call get_final_hard_regno().
12550 2016-09-09 Martin Sebor <msebor@redhat.com>
12554 * pretty-print.c (pp_quoted_string): New function.
12555 (pp_format): Call it for %c and %s directives.
12557 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12559 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
12560 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
12561 INITIAL_ELIMINATION_OFFSET) : Update documentation.
12562 * target.def (frame_pointer_required, can_eliminate): Likewise.
12563 * doc/tm.texi: Regenerated.
12564 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
12566 * df-scan.c (df_hard_reg_init): Likewise.
12567 * ira.c (ira_setup_eliminable_regset): Likewise.
12568 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
12569 init_elim_table): Likewise.
12570 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
12571 set_initial_elim_offsets, update_eliminables,
12572 init_elim_table): Likewise.
12573 * rtlanal.c (get_initial_register_offset): Likewise.
12574 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12575 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12576 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12577 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12578 * config/fr30/fr30.h: Fix comment.
12579 * config/frv/frv.c: Likewise.
12580 * config/frv/frv.h: Likewise.
12581 * config/ft32/ft32.h: Likewise.
12582 * config/visium/visium.h: Likewise.
12583 * config/pa/pa64-linux.h: Likewise.
12584 * config/v850/v850.h: Likewise.
12585 * config/cris/cris.c: Likewise.
12586 * config/ia64/ia64.h: Likewise.
12587 * config/moxie/moxie.h: Likewise.
12588 * config/m32r/m32r.h: Likewise.
12590 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
12593 * config.in: Regenerate.
12594 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
12596 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
12597 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
12598 static-libmpxwrappers case.
12599 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
12600 MPX_LD_AS_NEEDED_GUARD_POP.
12601 * configure: Regenerate.
12602 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
12603 defined if linker support "--push-state"/"--pop-state".
12605 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12607 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
12609 2016-09-09 Joseph Myers <joseph@codesourcery.com>
12611 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
12612 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
12613 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
12614 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
12615 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
12616 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
12617 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
12619 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
12620 width macros from TS 18661-1.
12621 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
12623 2016-09-08 Jakub Jelinek <jakub@redhat.com>
12626 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
12627 OMP_CLAUSE_SAFELEN_EXPR.
12629 2016-09-07 David Malcolm <dmalcolm@redhat.com>
12631 * Makefile.in (OBJS): Add substring-locations.o.
12632 * langhooks-def.h (class substring_loc): New forward decl.
12633 (lhd_get_substring_location): New decl.
12634 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
12635 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
12636 * langhooks.c (lhd_get_substring_location): New function.
12637 * langhooks.h (class substring_loc): New forward decl.
12638 (struct lang_hooks): Add field get_substring_location.
12639 * substring-locations.c: New file, taking definition of
12640 format_warning_va and format_warning_at_substring from
12641 c-family/c-format.c, making them non-static.
12642 * substring-locations.h (class substring_loc): Move class here
12643 from c-family/c-common.h. Add and rewrite comments.
12644 (format_warning_va): New decl.
12645 (format_warning_at_substring): New decl.
12646 (get_source_location_for_substring): Add comment.
12648 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
12650 * config/i386/i386.c: Add 'U' suffix to processor feature bits
12651 to avoid -Wnarrowing warning.
12652 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
12653 * opts.c: Likewise for SANITIZER_OPT bitmasks.
12655 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
12657 * config/aarch64/aarch64.c (aarch64_legitimize_address):
12658 Avoid use of base_offset if offset already in range.
12660 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
12662 * config/sh/sh-protos.h (struct sh_atomic_model,
12663 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
12664 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
12665 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
12666 * config/sh/sh.h (struct sh_atomic_model,
12667 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
12668 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
12669 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
12670 Guard with __cplusplus.
12672 2016-09-06 Jakub Jelinek <jakub@redhat.com>
12675 * config/i386/i386.c (ix86_expand_builtin): For builtin with
12676 unsupported or unknown ISA, use expand_call.
12678 2016-09-06 Martin Liska <mliska@suse.cz>
12680 PR gcov-profile/77378
12681 PR gcov-profile/77466
12682 * tree-profile.c (tree_profiling): Detect whether target can use
12683 -fprofile-update=atomic.
12685 2016-09-06 Richard Biener <rguenther@suse.de>
12687 PR tree-optimization/77479
12688 * tree-vrp.c (update_value_range): Extend overflow handling to
12691 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12694 * config/i386/i386.md (isa): Add x64_avx512bw.
12695 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
12696 (kmov_isa): New mode attr.
12697 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
12698 (*zero_extend<mode>si2): Likewise.
12699 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
12701 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
12703 * doc/invoke.texi (SPU Options): nops -> NOPs.
12704 (x86 Options): Ditto.
12706 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12708 PR middle-end/77475
12709 * toplev.c (process_options): Temporarily set input_location
12710 to UNKNOWN_LOCATION around targetm.target_option.override () call.
12712 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
12714 PR rtl-optimization/77452
12715 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
12716 inner-mode reference to a CONST_VECTOR constant in the constant pool.
12718 2016-09-05 Marek Polacek <polacek@redhat.com>
12721 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
12723 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12726 * gensupport.c (alter_output_for_subst_insn): Remove redundant
12727 *insn_out == '*' test. Don't copy unnecessary to yet another
12728 memory buffer, and don't leak it.
12730 PR rtl-optimization/77425
12731 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
12733 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
12735 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
12737 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12739 * common.opt (fdiagnostics-generate-patch): New option.
12740 * diagnostic.c: Include "edit-context.h".
12741 (diagnostic_initialize): Initialize context->edit_context_ptr.
12742 (diagnostic_finish): Delete context->edit_context_ptr.
12743 (diagnostic_report_diagnostic): Add fix-it hints from the
12744 diagnostic to context->edit_context_ptr, if any.
12745 * diagnostic.h (class edit_context): Add forward decl.
12746 (struct diagnostic_context): Add field "edit_context_ptr".
12747 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
12748 -fdiagnostics-generate-patch.
12749 (-fdiagnostics-generate-patch): New item.
12750 * toplev.c: Include "edit-context.h".
12751 (process_options): Set global_dc->edit_context_ptr to a new
12752 edit_context if the options need one.
12753 (toplev::main): Handle -fdiagnostics-generate-patch by using
12754 global_dc->edit_context_ptr.
12756 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12759 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
12760 map and firstprivate clauses on target construct for _Atomic
12762 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
12763 on target construct for _Atomic qualified decls.
12764 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
12766 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
12767 _Atomic qualified arguments not mentioned in uniform clause.
12769 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12771 * Makefile.in (OBJS-libcommon): Add edit-context.o.
12772 * diagnostic-color.c (color_dict): Add "diff-filename",
12773 "diff-hunk", "diff-delete", and "diff-insert".
12774 (parse_gcc_colors): Update default value of GCC_COLORS in comment
12775 to reflect above changes.
12776 * doc/invoke.texi (-fdiagnostics-color): Update description of
12777 default GCC_COLORS, and of the supported capabilities.
12778 * edit-context.c: New file.
12779 * edit-context.h: New file.
12780 * input.c (struct fcache): Add field "missing_trailing_newline".
12781 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
12783 (add_file_to_cache_tab): Likewise.
12784 (fcache::fcache): Likewise.
12785 (get_next_line): Update c->missing_trailing_newline.
12786 (location_missing_trailing_newline): New function.
12787 * input.h (location_missing_trailing_newline): New decl.
12788 * selftest-run-tests.c (selftest::run_tests): Call
12789 edit_context_c_tests.
12790 * selftest.h (edit_context_c_tests): New decl.
12792 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12793 Richard Biener <rguenth@suse.de>
12795 PR tree-optimization/77444
12796 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
12797 as steptype, remove redundant initialization.
12799 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12802 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
12803 (sanopt_optimize_walker): Optimize away
12804 __asan_before_dynamic_init (...) followed by
12805 __asan_after_dynamic_init () without intervening memory loads/stores.
12806 * ipa-pure-const.c (special_builtin_state): Handle
12807 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
12808 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
12810 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12812 * cfg.c (free_original_copy_tables): Replace second assignment of
12813 bb_copy = NULL by bb_original = NULL.
12815 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12818 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
12819 assignment added in r216794.
12821 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12823 * Makefile.in (OBJS): Add typed-splay-tree.o.
12824 * selftest-run-tests.c (selftest::run_tests): Call
12825 typed_splay_tree_c_tests.
12826 * selftest.h (typed_splay_tree_c_tests): New decl.
12827 * typed-splay-tree.c: New file.
12828 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
12829 (typed_splay_tree::max): New method.
12830 (typed_splay_tree::min): New method.
12831 (typed_splay_tree::foreach): New method.
12832 (typed_splay_tree::closure): New struct.
12833 (typed_splay_tree::inner_foreach_fn): New function.
12835 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12837 * ipa-cp.c (ipcp_store_bits_results): Change option name from
12838 -fipa-cp-bit to -fipa-bit-cp.
12840 2016-09-01 Martin Sebor <msebor@redhat.com>
12842 PR tree-optimization/71831
12843 * tree-object-size.h: Return bool instead of the size and add
12844 argument for the size.
12845 * tree-object-size.c (compute_object_offset): Update signature.
12846 (addr_object_size): Same.
12847 (compute_builtin_object_size): Return bool instead of the size
12848 and add argument for the size. Handle POINTER_PLUS_EXPR when
12849 optimization is disabled.
12850 (expr_object_size): Adjust.
12851 (plus_stmt_object_size): Adjust.
12852 (pass_object_sizes::execute): Adjust.
12853 * builtins.c (fold_builtin_object_size): Adjust.
12854 * doc/extend.texi (Object Size Checking): Update.
12855 * ubsan.c (instrument_object_size): Adjust.
12857 2016-09-01 Martin Sebor <msebor@redhat.com>
12859 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
12860 it fits the output of the formatted function regardless of its
12862 * genmodes.c (parser::parse_expr): Same.
12863 * gimplify.c (gimplify_asm_expr): Same.
12864 * passes.c (pass_manager::register_one_dump_file): Same.
12865 * print-tree.c (print_node): Same.
12867 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12869 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
12871 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12873 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
12875 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12877 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
12878 * config/rs6000/vector.md: Ditto.
12879 * config/rs6000/vsx.md: Ditto.
12881 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
12883 * ipa-inline-analysis.c (param_change_prob): Get to the base object
12884 first in all cases.
12886 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12888 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
12889 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
12890 *return_and_restore_gpregs_<mode>_r11,
12891 *return_and_restore_gpregs_<mode>_r12,
12892 *return_and_restore_gpregs_<mode>_r1,
12893 *return_and_restore_fpregs_<mode>_r11,
12894 *return_and_restore_fpregs_<mode>_r12,
12895 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
12896 directly instead of via the "l" constraint. Renumber operands.
12899 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12901 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
12902 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
12903 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
12904 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
12905 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
12906 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
12907 *call_value_nonlocal_darwin64, reload_macho_picbase,
12908 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
12909 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
12910 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
12911 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
12912 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
12913 *save_fpregs_<mode>_r1): Ditto.
12914 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
12915 *return_and_restore_gpregs_spe): Ditto.
12917 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12919 * config/rs6000/rs6000.md
12920 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
12921 the use of the link register.
12922 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
12924 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12925 Michael Meissner <meissner@linux.vnet.ibm.com>
12928 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
12929 reg+reg addressing for TImode.
12930 (rs6000_legitimate_address_p): Only allow register indirect
12931 addressing for TImode, even without TARGET_QUAD_MEMORY.
12933 2016-09-01 Richard Biener <rguenther@suse.de>
12935 PR middle-end/77436
12936 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
12937 check whether the result fits the desired result type.
12939 2016-09-01 Nathan Sidwell <nathan@acm.org>
12941 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
12943 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
12945 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
12947 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
12949 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12951 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
12952 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
12953 for comparisons of integer ZERO_EXTEND against zero.
12955 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
12957 * config/i386/i386.c (ix86_option_override_internal): Also disable the
12958 STV pass if -mstackrealign is enabled.
12960 2016-08-31 Ilya Verbin <iverbin@gmail.com>
12962 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
12965 2016-08-31 David Malcolm <dmalcolm@redhat.com>
12967 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
12968 (layout_range::intersects_line_p): New method.
12969 (test_range_contains_point_for_single_point): Rename to...
12970 (test_layout_range_for_single_point): ...this, and add testing
12971 for layout_range::intersects_line_p.
12972 (test_range_contains_point_for_single_line): Rename to...
12973 (test_layout_range_for_single_line): ...this, and add testing
12974 for layout_range::intersects_line_p.
12975 (test_range_contains_point_for_multiple_lines): Rename to...
12976 (test_layout_range_for_multiple_lines): ...this, and add testing
12977 for layout_range::intersects_line_p.
12978 (layout::layout): Populate m_fixit_hints.
12979 (layout::get_expanded_location): Handle the case of a line-span
12981 (layout::validate_fixit_hint_p): New method.
12982 (get_line_span_for_fixit_hint): New function.
12983 (layout::calculate_line_spans): Add spans for fixit-hints.
12984 (layout::should_print_annotation_line_p): New method.
12985 (layout::print_any_fixits): Drop param "richloc", instead using
12986 validated fixits in m_fixit_hints. Add "const" to hint pointers.
12987 (diagnostic_show_locus): Avoid printing blank annotation lines.
12988 (selftest::test_diagnostic_context::test_diagnostic_context):
12989 Initialize show_column and start_span.
12990 (selftest::test_diagnostic_context::start_span_cb): New static
12992 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
12993 (selftest::diagnostic_show_locus_c_tests): Update for function
12994 renamings. Call test_diagnostic_show_locus_fixit_lines.
12996 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
12998 PR tree-optimization/73714
12999 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
13001 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13003 * selftest.c: Move "namespace selftest {" to top of file,
13004 removing explicit "selftest::" qualifiers throughout.
13006 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13008 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
13010 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
13011 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
13012 Replace builtin with vector extension.
13013 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
13015 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
13016 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
13017 Replace builtin with vector extension.
13018 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
13019 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
13020 Replace builtin with vector extension.
13021 * config/i386/xmmintrin.h (__m128_u): New type.
13022 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
13023 (_mm_load_ps, _mm_store_ps): Simplify.
13025 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
13027 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
13029 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13031 * diagnostic-show-locus.c (colorizer::begin_state): Support more
13032 than 3 ranges per diagnostic by alternating between color 1 and
13034 (layout::layout): Replace use of rich_location::MAX_RANGES
13035 with richloc->get_num_locations ().
13036 (layout::calculate_line_spans): Replace use of
13037 rich_location::MAX_RANGES with m_layout_ranges.length ().
13038 (layout::print_annotation_line): Handle arbitrary numbers of
13039 ranges in caret-printing by defaulting to '^'.
13040 (selftest::test_one_liner_many_fixits): New function.
13041 (test_diagnostic_show_locus_one_liner): Call it.
13042 * diagnostic.c (diagnostic_initialize): Update for renaming
13043 of rich_location::MAX_RANGES to
13044 rich_location::STATICALLY_ALLOCATED_RANGES.
13045 * diagnostic.h (struct diagnostic_context): Likewise.
13047 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13049 * selftest.c (selftest::named_temp_file::named_temp_file): New
13051 (selftest::temp_source_file::~temp_source_file): Move to...
13052 (selftest::named_temp_file::~named_temp_file): ...here.
13053 (selftest::test_named_temp_file): New function.
13054 (selftest::selftest_c_tests): Call test_named_temp_file.
13055 * selftest.h (class named_temp_file): New class.
13056 (class temp_source_file): Convert to a subclass of named_temp_file.
13058 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
13060 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
13061 USEs of LR_REGNO in returns and sibcalls.
13062 (rs6000_output_mi_thunk): Similar.
13063 (rs6000_sibcall_aix): Similar.
13064 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
13065 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
13066 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
13067 Remove the USE of LR_REGNO from the patterns as well. Delete an
13069 (return_internal_<mode>): Delete.
13071 2016-08-30 Tamar Christina <tamar.christina@arm.com>
13073 * config/aarch64/aarch64-simd.md
13074 (aarch64_ld2<mode>_dreg_le): New.
13075 (aarch64_ld2<mode>_dreg_be): New.
13076 (aarch64_ld2<mode>_dreg): Removed.
13077 (aarch64_ld3<mode>_dreg_le): New.
13078 (aarch64_ld3<mode>_dreg_be): New.
13079 (aarch64_ld3<mode>_dreg): Removed.
13080 (aarch64_ld4<mode>_dreg_le): New.
13081 (aarch64_ld4<mode>_dreg_be): New.
13082 (aarch64_ld4<mode>_dreg): Removed.
13083 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
13085 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13087 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
13088 redundant location param.
13089 (test_one_liner_fixit_remove): Likewise.
13090 (test_one_liner_fixit_replace): Likewise.
13091 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
13092 * gcc-rich-location.c
13093 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
13094 get_range_from_loc. Drop overload taking a const char *.
13095 * gcc-rich-location.h
13096 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
13099 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13101 * config/linux.c (linux_libc_has_function): Return true on musl.
13103 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13105 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
13107 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
13109 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
13110 used for abnormal egdes.
13112 2016-08-30 Jakub Jelinek <jakub@redhat.com>
13114 PR tree-optimization/72866
13115 * tree-vect-patterns.c (search_type_for_mask): Turn into
13116 a small wrapper, move all code to ...
13117 (search_type_for_mask_1): ... this new function. Add caching
13118 and adjust recursive calls.
13121 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
13122 instead of lookup_type_die (type_main_variant (type)) even for array
13125 PR middle-end/77377
13126 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
13127 constant pool reference return x instead of c.
13129 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
13131 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
13134 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13137 (selftest::test_make_location_nonpure_range_endpoints): Fix
13140 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13142 * diagnostic-show-locus.c
13143 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
13145 (selftest::test_diagnostic_show_locus_one_liner): Call it.
13146 * input.c (get_pure_location): Move to libcpp/line-map.c.
13147 * input.h (get_pure_location): Convert decl to an inline function
13148 calling implementation in libcpp.
13150 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
13153 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
13154 template for intel asm dialect.
13155 (vec_set_hi_<mode><mask_name>): Ditto.
13157 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13159 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
13160 (selftest::fail_formatted): Likewise.
13162 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13164 * input.c (make_location): Call get_start and get_finish
13165 on the endpoints to avoid storing packed ranges or ad-hoc
13167 (selftest::test_make_location_nonpure_range_endpoints): New function.
13168 (selftest::input_c_tests): Call it.
13169 * input.h (get_start): New inline function.
13171 2016-08-29 Tom de Vries <tom@codesourcery.com>
13174 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
13177 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
13179 * Makefile.in (gcov-iov.h): Add dummy recipe.
13181 2016-08-29 Nathan Sidwell <nathan@acm.org>
13183 * config/nvptx/nvptx.c: #include tree-vrp.h.
13185 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
13188 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
13189 HIGH+LO construct during reload.
13191 2016-08-28 Tom de Vries <tom@codesourcery.com>
13194 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
13195 'sysv_abi va_list' attribute.
13196 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
13197 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
13200 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13202 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
13203 * emit-rtl.c (unshare_all_rtl_1): Adjust.
13204 (unshare_all_rtl_again): Likewise.
13205 * function.c (assign_stack_local_1): Likewise.
13206 (assign_stack_temp_for_type): Likewise.
13208 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13210 * cfgbuild.c (make_edges): Adjust.
13211 * cfgrtl.c (can_delete_label_p): Likewise.
13212 * dwarf2cfi.c (create_trace_edges): Likewise.
13213 * except.c (sjlj_emit_dispatch_table): Likewise.
13214 * function.h (struct expr_status): make x_forced_labels a vector.
13215 * jump.c (rebuild_jump_labels_1): Adjust.
13216 * reload1.c (set_initial_label_offsets): Likewise.
13217 * stmt.c (force_label_rtx): Likewise.
13218 (expand_label): Likewise.
13220 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13222 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
13224 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
13226 PR tree-optimization/71077
13227 PR tree-optimization/68542
13228 * fold-const.c (fold_relational_const): Fix folding of
13229 VECTOR_CST comparisons that have a scalar boolean result type.
13230 (selftest::test_vector_folding): New static function.
13231 (selftest::fold_const_c_tests): Call it.
13233 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
13235 * doc/extend.texi (SPU Built-in Functions): Remove stale
13236 references to material formerly at IBM and Sony.
13238 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
13241 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
13243 2016-08-26 David Malcolm <dmalcolm@redhat.com>
13245 * diagnostic-show-locus.c
13246 (selftest::test_fixit_consolidation): New function.
13247 (selftest::diagnostic_show_locus_c_tests): Call it.
13248 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
13249 constructor based on source_range.
13251 2016-08-26 David Malcolm <dmalcolm@redhat.com>
13253 * diagnostic-color.c (color_dict): Add "fixit-insert" and
13255 (parse_gcc_colors): Update description of default GCC_COLORS.
13256 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
13257 (colorizer::set_fixit_insert): New method.
13258 (colorizer::set_fixit_delete): New method.
13259 (colorizer::get_color_by_name): New method.
13260 (colorizer::STATE_FIXIT_INSERT): New constant.
13261 (colorizer::STATE_FIXIT_DELETE): New constant.
13262 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
13263 fields in favor of new field "m_stop_color". Add fields
13264 "m_fixit_insert" and "m_fixit_delete".
13265 (colorizer::colorizer): Update for above changes. Replace
13266 colorize_start calls with calls to get_color_by_name.
13267 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
13268 STATE_FIXIT_DELETE. Update for field renamings.
13269 (colorizer::finish_state): Simplify by using m_stop_color,
13270 rather than multiple identical "*_ce" fields.
13271 (colorizer::get_color_by_name): New method.
13272 (layout::print_any_fixits): Print insertions and replacements
13273 using the "fixit-insert" color, and deletions using the
13274 "fixit-delete" color.
13275 * doc/invoke.texi (-fdiagnostics-color): Update description of
13276 default GCC_COLORS, and of the supported capabilities.
13278 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
13280 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
13281 current_function_static_stack_size variable with the static
13282 stack frame size of the current function when
13283 flag_stack_usage_info is enabled.
13285 2016-08-26 Nathan Sidwell <nathan@acm.org>
13287 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
13288 assignment inside if condition.
13290 2016-08-26 Richard Biener <rguenther@suse.de>
13292 PR tree-optimization/69047
13293 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
13294 extracts similar to what FRE does.
13295 (non_rewritable_mem_ref_base): Likewise.
13297 2016-08-26 Joseph Myers <joseph@codesourcery.com>
13299 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
13300 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
13301 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13302 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13303 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
13305 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13306 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13307 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13308 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
13309 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13311 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13314 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
13315 reservation duration to 15 cycles.
13316 (cortex_a8_vfp_macs): Likewise.
13317 (cortex_a8_vfp_macd): Likewise.
13318 (cortex_a8_vfp_divs): Likewise.
13319 (cortex_a8_vfp_divd): Likewise.
13321 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13323 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
13324 (aarch_macro_fusion_pair_p): Use above to avoid early return.
13326 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13327 Martin Jambhor <mjambor@suse.cz>
13329 * common.opt: New option -fipa-bit-cp.
13330 * doc/invoke.texi: Document -fipa-bit-cp.
13331 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
13332 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
13333 * tree-ssa-ccp.h: New header file.
13334 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
13335 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
13336 Replace all occurences of tree parameter by two new params: signop, int.
13337 (bit_value_unop_1): Change to bit_value_unop and export it.
13338 Replace all occurences of tree parameter by two new params: signop,
13340 (bit_value_binop): Change call from bit_value_binop_1 to
13342 (bit_value_assume_aligned): Likewise.
13343 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
13344 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
13346 (ccp_finalize): Skip processing if val->mask == 0.
13347 * ipa-cp.c: Include tree-ssa-ccp.h
13348 (ipcp_bits_lattice): New class.
13349 (ipcp_param_lattice (bits_lattice): New member.
13350 (print_all_lattices): Call ipcp_bits_lattice::print.
13351 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
13352 (initialize_node_lattices): Likewise.
13353 (propagate_bits_accross_jump_function): New function.
13354 (propagate_constants_accross_call): Call
13355 propagate_bits_accross_jump_function.
13356 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
13357 (ipcp_store_bits_results): New function.
13358 (ipcp_driver): Call ipcp_store_bits_results.
13359 * ipa-prop.h (ipa_bits): New struct.
13360 (ipa_jump_func): Add new member bits of type ipa_bits.
13361 (ipa_param_descriptor): Change decl to decl_or_type.
13362 (ipa_get_param): Change decl to decl_or_type and assert on
13364 (ipa_get_type): New function.
13365 (ipcp_transformation_summary): New member bits.
13366 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
13367 (ipa_populate_param_decls): Likewise.
13368 (ipa_dump_param): Likewise.
13369 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
13371 (ipa_set_jf_unknown): Set ipa_bits::known to false.
13372 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
13374 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
13375 (ipa_write_jump_function): Add streaming for ipa_bits.
13376 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
13377 (write_ipcp_transformation_info): Add streaming for ipa_bits
13378 summary for ltrans.
13379 (read_ipcp_transfomration_info): Add support for reading streamed
13381 (ipcp_update_bits): New function.
13382 (ipcp_transform_function): Call ipcp_update_bits.
13384 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
13386 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
13387 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
13389 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
13391 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
13393 2016-08-25 Richard Biener <rguenther@suse.de>
13395 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
13396 Only add locations in late dwarf.
13397 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
13398 (dwarf2out_early_finish): But do it here.
13400 2016-08-24 Michael Collison <michael.collison@linaro.org>
13401 Michael Collison <michael.collison@arm.com>
13403 * config/arm/arm-modes.def: Add new condition code mode CC_V
13404 to represent the overflow bit.
13405 * config/arm/arm.c (maybe_get_arm_condition_code):
13406 Add support for CC_Vmode.
13407 (arm_gen_unlikely_cbranch): New function to generate common
13408 rtl conditional branches for overflow patterns.
13409 * config/arm/arm-protos.h: Add prototype for
13410 arm_gen_unlikely_cbranch.
13411 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
13412 addsi3_compareV_upper): New patterns to support signed
13413 builtin overflow add operations.
13414 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
13415 New patterns to support unsigned builtin add overflow operations.
13416 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
13417 builtin overflow subtract operations,
13418 (usubv<mode>4): New patterns to support unsigned builtin subtract
13419 overflow operations.
13420 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
13421 to support builtin overflow negate operations.
13423 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13426 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13428 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13429 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13432 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13434 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
13435 MULTILIB_OPTIONS should be used. Small wording fixes.
13436 * genmultilib: Memorize set of all option combinations in
13437 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
13438 found in MULTILIB_OPTIONS by checking if option set is listed in
13439 combination_space. Output new and existing error message to stderr.
13441 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13443 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
13444 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
13445 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
13446 (MULTILIB_REUSE): Remove reuse rules for option set including
13447 -mfpu=fp-armv8 and -mfpu=vfpv4
13449 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
13451 * config/arm/t-rtems: Add vfp multilib.
13453 2016-08-23 Ian Lance Taylor <iant@golang.org>
13455 * config/s390/s390.c (s390_asm_file_start): Call
13456 default_file_start.
13458 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13460 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
13461 initialization of all 0's to the 0 constant, instead of directly
13462 generating XOR. Add support for V4SImode vector initialization on
13463 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
13464 initialization. Change variables used in V4SFmode vector
13465 intialization. For V4SFmode vector splat on ISA 3.0, make sure
13466 any memory addresses are in index form. Add support for using
13467 VSPLTH/VSPLTB to initialize vector short and vector char vectors
13468 with all of the same element.
13469 (regno_or_subregno): New helper function to return a register
13470 number for either REG or SUBREG.
13471 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
13472 Use regno_or_subregno where possible.
13473 (rs6000_split_v4si_init_di_reg): New helper function to build up a
13474 DImode value from two SImode values in order to generate V4SImode
13475 vector initialization on 64-bit systems with direct move.
13476 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
13478 (rtx_is_swappable_p): V4SImode vector initialization insn is not
13480 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
13482 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
13483 attributes to initialize V8HImode and V16QImode vectors with the
13485 (VSX_SPLAT_COUNT): Likewise.
13486 (VSX_SPLAT_SUFFIX): Likewise.
13487 (UNSPEC_VSX_VEC_INIT): New unspec.
13488 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
13489 Allow SFmode values to come from Altivec registers.
13490 (vsx_init_v4si): New insn/split for V4SImode vector initialization
13491 on 64-bit systems with direct move.
13492 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
13493 vector initializations, to allow V4SImode vector initializations
13494 on 64-bit systems with direct move.
13495 (vsx_splat_v4si): Likewise.
13496 (vsx_splat_v4si_di): Likewise.
13497 (vsx_splat_v4sf): Likewise.
13498 (vsx_splat_v4sf_internal): Likewise.
13499 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
13501 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
13502 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
13503 initializing V8HImode and V16QImode vectors with the same
13505 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
13506 optimization if -maltivec=be.
13508 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
13510 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
13511 attribute for alternatives 3 and 4.
13513 2016-08-23 David Malcolm <dmalcolm@redhat.com>
13515 * selftest.c (selftest::assert_str_contains): New function.
13516 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
13517 * selftest.h (selftest::assert_str_contains): New decl.
13518 (ASSERT_STR_CONTAINS): New macro.
13520 2016-08-23 Richard Biener <rguenther@suse.de>
13522 PR tree-optimization/77286
13523 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
13525 (vect_transform_loop): Split exit edges of loop and scalar
13526 loop if required and at the appropriate time.
13528 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13530 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13531 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13533 Correct a typo in a comment.
13535 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13537 * config/s390/s390.md ("*andc_split"): New splitter for and with
13540 2016-08-23 Richard Biener <rguenther@suse.de>
13542 PR tree-optimization/27336
13543 * tree-vrp.c (infer_value_range): Handle stmts that can throw
13544 by looking for a non-EH edge.
13545 (process_assert_insertions_for): Likewise.
13547 2016-08-23 Richard Biener <rguenther@suse.de>
13549 PR middle-end/77305
13550 * statistics.c (statistics_counter_event): Robustify against
13553 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13555 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
13556 for targets amdfam10 and barcelona.
13558 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
13560 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
13561 (zero_extend<mode>di2): Ditto.
13562 (*zero_extend<mode>si2): Ditto.
13563 (*zero_extendqihi2): Ditto.
13565 2016-08-22 Joseph Myers <joseph@codesourcery.com>
13567 PR middle-end/77269
13568 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
13569 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
13571 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
13573 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
13574 identical consecutive elements.
13575 [SSA_NAME]: Print the name's def stmt on its own line. When printing
13576 the node's def stmt, avoid printing an unwanted trailing newline by
13577 replacing the call to print_gimple_stmt() with its inlined body and
13578 adjusting it to not set pp_needs_newline and to call pp_flush()
13579 instead of pp_newline_and_flush().
13581 2016-08-22 Joseph Myers <joseph@codesourcery.com>
13583 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
13584 (float32_type_node, float64_type_node, float32x_type_node)
13585 (float128x_type_node): New macros.
13586 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
13587 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
13588 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
13589 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
13590 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
13591 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
13592 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
13593 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
13594 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
13595 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
13596 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
13597 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
13598 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
13599 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
13600 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
13601 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
13602 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
13603 (copysign, fabs, huge_val, inf, nan, nans): Use it.
13604 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
13606 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
13607 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
13608 * doc/extend.texi (Other Builtins): Document these built-in
13610 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
13613 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
13615 * doc/install.texi (Binaries): www.opencsw.org now uses https.
13617 2016-08-22 Richard Biener <rguenther@suse.de>
13619 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
13621 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
13624 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
13625 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
13626 non-SSE2 athlons only, otherwise prefer SSE prefetches.
13628 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13630 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
13631 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
13632 (vrp_visit_switch_stmt): Likewise.
13633 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
13634 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
13635 (vrp_visit_stmt): Use extract_range_from_stmt.
13636 (vrp_visit_phi_node): Use extract_range_from_phi_node.
13638 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13640 * Makefile.in: Add tree-vrp.h to GTFILES.
13641 * gengtype.c (open_base_files): Add tree-vrp.h.
13642 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
13643 * builtins.c: Likewise.
13644 * fold-const.c: Likewise.
13645 * gimple-builder.c: Likewise.
13646 * gimple-laddress.c: Likewise.
13647 * hsa-gen.c: Likewise.
13648 * internal-fn.c: Likewise.
13650 * targhooks.c: Liewise,
13651 * tree-ssa-address.c: Likewise.
13652 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
13653 * tree-vrp.c (struct value_range): Move to tree-vrp.h
13654 * tree-vrp.h: New file.
13656 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13658 PR tree-optimization/61839
13659 * tree-vrp.c (two_valued_val_range_p): New.
13660 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
13661 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
13662 Also Convert VAR BINOP CST where VAR is two-valued to
13663 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
13665 2016-08-19 David Malcolm <dmalcolm@redhat.com>
13667 * diagnostic-show-locus.c
13668 (layout::annotation_line_showed_range_p): New method.
13669 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
13670 Reimplement case fixit_hint::REPLACE to cover removals, and
13671 replacements where the range of the replacement isn't one
13672 of the ranges in the rich_location.
13673 (test_one_liner_fixit_replace): Likewise.
13674 (selftest::test_one_liner_fixit_replace_non_equal_range): New
13676 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
13678 (selftest::test_diagnostic_show_locus_one_liner): Call the new
13680 * diagnostic.c (print_parseable_fixits): Remove case
13681 fixit_hint::REMOVE.
13683 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
13686 * config/i386/i386.c (ix86_option_override_internal): Remove
13687 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
13688 Enable SSE prefetch also for TARGET_PREFETCHWT1.
13689 Do not try to enable TARGET_PRFCHW ISA flag here.
13690 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
13691 Rewrite expander function body.
13692 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
13694 2016-08-19 Joseph Myers <joseph@codesourcery.com>
13697 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
13698 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
13699 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
13700 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
13701 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
13702 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
13703 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
13704 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
13705 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
13707 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
13709 (struct floatn_type_info): New structure type.
13710 (floatn_nx_types): New variable declaration.
13711 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
13712 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
13713 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
13714 * tree.c (floatn_nx_types): New variable.
13715 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
13716 corresponding complex types.
13717 * target.def (floatn_mode): New hook.
13718 * targhooks.c: Include "real.h".
13719 (default_floatn_mode): New function.
13720 * targhooks.h (default_floatn_mode): New prototype.
13721 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
13723 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
13724 effective-target and dg-add-options keywords.
13725 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
13726 Document new effective-target keywords.
13727 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
13728 * doc/tm.texi: Regenerate.
13729 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
13730 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
13731 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
13733 * real.h (struct real_format): Add field ieee_bits.
13734 * real.c (ieee_single_format, mips_single_format)
13735 (motorola_single_format, spu_single_format, ieee_double_format)
13736 (mips_double_format, motorola_double_format)
13737 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
13738 (ieee_extended_intel_128_format)
13739 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
13740 (mips_extended_format, ieee_quad_format, mips_quad_format)
13741 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
13742 (decimal_double_format, decimal_quad_format, ieee_half_format)
13743 (arm_half_format, real_internal_format: Initialize ieee_bits
13745 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
13746 float128_type_node. Set float80_type_node to float64x_type_node
13747 if appropriate and long_double_type_node not appropriate.
13748 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
13749 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
13750 Initialize ieee_bits field.
13751 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
13752 (rs6000_init_builtins): Set ieee128_float_type_node to
13753 float128_type_node.
13754 (rs6000_floatn_mode): New function.
13756 2016-08-19 Jakub Jelinek <jakub@redhat.com>
13758 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
13759 _rdseed64_step): Uglify argument names and/or local variable names
13760 in inline functions.
13761 * config/i386/rtmintrin.h (_xabort): Likewise.
13762 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
13763 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
13764 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
13765 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
13766 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
13767 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
13768 _mm_maskz_ternarylogic_epi32): Likewise.
13769 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
13770 __lwpins32, __lwpins64): Likewise.
13771 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
13772 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
13773 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
13774 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
13775 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
13776 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
13777 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
13778 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
13779 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
13780 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
13781 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
13782 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
13783 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
13784 _mm256_mask_i64gather_epi32): Likewise.
13785 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
13786 * config/i386/ia32intrin.h (__writeeflags): Likewise.
13787 * config/i386/pkuintrin.h (_wrpkru): Likewise.
13788 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
13789 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
13790 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
13791 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
13792 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
13793 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
13794 _mm512_mask_prefetch_i64scatter_ps): Likewise.
13795 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
13796 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
13797 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
13798 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
13799 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
13800 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
13801 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
13802 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
13804 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
13806 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
13807 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
13809 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
13810 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
13812 (_rdpkru_u32): Add space after function name.
13814 * config/i386/t-i386 (i386-c.o): Don't depend on
13815 i386-builtin-types.inc.
13816 (i386.o): Depend on i386-builtin-types.inc.
13818 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
13821 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
13822 Use const_vec_duplicate to check for duplicated elements.
13824 2016-08-19 Richard Biener <rguenther@suse.de>
13826 PR tree-optimization/77290
13827 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13828 Fix flag_tree_parallelize_loops check.
13830 2016-08-19 Richard Biener <rguenther@suse.de>
13832 * match.pd (x | 0 -> x): Add.
13834 2016-08-19 Richard Biener <rguenther@suse.de>
13836 PR tree-optimization/77286
13837 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
13838 Deal with virtual PHIs being out-of-order.
13840 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13842 * doc/invoke.texi (fverbose-asm): Note that source code lines
13843 are emitted, and provide an example.
13844 * final.c (asm_show_source): New function.
13845 (final_scan_insn): Call asm_show_source.
13847 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13849 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
13850 param with diagnostic_kind.
13851 (class colorizer): Similarly replace field m_diagnostic with
13853 (colorizer::colorizer): Replace diagnostic
13854 param with diagnostic_kind.
13855 (colorizer::begin_state): Update for above field change.
13856 (layout::layout): Replace diagnostic param with rich_location *
13857 and diagnostic_kind.
13858 (diagnostic_show_locus): Replace diagnostic param with richloc
13859 and diagnostic_kind.
13860 (class selftest::test_diagnostic_context): New class.
13861 (selftest::test_diagnostic_show_locus_unknown_location): New
13863 (selftest::test_one_liner_simple_caret): New function.
13864 (selftest::test_one_liner_caret_and_range): New function.
13865 (selftest::test_one_liner_multiple_carets_and_ranges): New
13867 (selftest::test_one_liner_fixit_remove): New function.
13868 (selftest::test_one_liner_fixit_replace): New function.
13869 (selftest::test_diagnostic_show_locus_one_liner): New function.
13870 (selftest::diagnostic_show_locus_c_tests): Call the new test
13872 * diagnostic.c (diagnostic_initialize): Initialize
13873 colorize_source_p, show_ruler_p and parseable_fixits_p.
13874 (default_diagnostic_finalizer): Update for change to
13875 diagnostic_show_locus.
13876 (diagnostic_append_note): Likewise.
13877 * diagnostic.h (diagnostic_show_locus): Replace
13878 const diagnostic_info * param with location * and diagnostic_t.
13880 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13882 * input.c (saved_line_table): New global.
13883 (class selftest::temp_line_table): Rename to line_table_test and
13884 move declaration to selftest.h, and drop field m_old_line_table.
13885 (selftest::temp_line_table::temp_line_table): Rename ctor to...
13886 (selftest::line_table_test::line_table_test): ...this. Add a
13887 default ctor. Store current value of line_table within
13889 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
13890 (selftest::line_table_test::~line_table_test): ...this, and
13891 restore line_table from the saved_line_table, rather than
13893 (selftest::test_accessing_ordinary_linemaps): Update for above
13895 (selftest::test_lexer): Likewise.
13896 (struct selftest::lexer_test): Likewise.
13897 (selftest::lexer_test::lexer_test): Likewise.
13898 (selftest::input_c_tests): Move the looping over test cases from
13900 (selftest::for_each_line_table_case): New function.
13901 * input.h (saved_line_table): New decl.
13902 * selftest.h (struct selftest::line_table_case): New forward decl.
13903 (class selftest::line_table_test): New class, moved here from
13904 selftest::temp_line_table in input.c, and renamed.
13905 (selftest::for_each_line_table_case): New decl.
13907 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
13910 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
13912 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
13914 PR middle-end/70895
13915 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
13916 enclosing parallel construct for reduction variables on OpenACC loop
13919 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
13921 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
13922 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
13924 (function_to_dwarf_procedure): Update comment.
13926 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13928 * input.c (diagnostics_file_cache_forcibly_evict_file): New
13930 * input.h (diagnostics_file_cache_forcibly_evict_file): New
13932 * selftest.c (selftest::temp_source_file::~temp_source_file):
13933 Evict m_filename from the diagnostic file cache.
13935 2016-08-18 Richard Biener <rguenther@suse.de>
13937 * tree-pass.h (make_pass_materialize_all_clones): Declare.
13938 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
13939 make_pass_materialize_all_clones): New simple IPA pass encapsulating
13940 clone materialization.
13941 * passes.def (all_late_ipa_passes): Start with
13942 pass_materialize_all_clones.
13943 * cgraphunit.c (symbol_table::compile): Remove call to
13944 materialize_all_clones.
13945 * tree-into-ssa.c: Include statistics.h.
13946 (update_ssa): Count number of times we do incremental/rewrite
13949 2016-08-18 Richard Biener <rguenther@suse.de>
13951 PR tree-optimization/77282
13952 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13953 When doing auto-parallelizing also prevent use of PHIs that
13954 carry dependences across loop backedges.
13956 2016-08-18 Tamar Christina <tamar.christina@arm.com>
13957 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13959 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
13961 2016-08-18 Richard Biener <rguenther@suse.de>
13963 * ssa-iterators.h (ssa_vuse_operand): New inline.
13964 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
13965 (predicate_all_scalar_phis): Use remove_phi_node to remove
13966 phi nodes predicated. Delay removing virtual PHIs.
13967 (predicate_mem_writes): Update virtual operands.
13968 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
13969 (tree_if_conversion): Do not rewrite virtual SSA form.
13970 * tree-phinodes.c (release_phi_node): Make static.
13971 * tree-phinodes.h (release_phi_node): Remove.
13973 2016-08-18 Jakub Jelinek <jakub@redhat.com>
13975 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
13976 codes that appear in bdesc_* arrays, instead include i386-builtin.def
13977 twice to define those.
13978 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
13979 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
13980 bdesc_multi_arg): Define by including i386-builtin.def the third time.
13981 * config/i386/i386-builtin.def: New file.
13983 2016-08-17 David Malcolm <dmalcolm@redhat.com>
13985 * input.c (get_source_range_for_char): Rename to...
13986 (selftest::get_source_range_for_char): ...this, and move within
13987 the #if CHECKING_P guard.
13988 (get_num_source_ranges_for_substring): Rename to...
13989 (selftest::get_num_source_ranges_for_substring): ...this, move
13990 within the #if CHECKING_P guard, and make static.
13991 (selftest::assert_num_substring_ranges): Initialize
13994 2016-08-18 Alan Modra <amodra@gmail.com>
13996 PR rtl-optimization/72771
13997 * reload.c (find_reloads): Don't assume that a subreg mem is OK
13998 when find_reloads_toplev returns address_reloaded==-1.
13999 (alternative_allows_const_pool_ref): Update comment.
14001 2015-08-17 Alan Hayward <alan.hayward@arm.com>
14003 PR tree-optimization/71752
14004 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
14005 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
14007 2016-08-17 Jakub Jelinek <jakub@redhat.com>
14009 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
14010 instead of testing ECF_NORETURN bit in gimple_call_flags.
14011 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
14012 * predict.c (tree_bb_level_predictions): Likewise.
14013 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
14015 PR middle-end/77259
14016 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
14017 turning a call into __builtin_unreachable-like noreturn call, adjust
14018 gimple_call_set_fntype.
14019 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
14020 gimple_call_fntype has void return type.
14022 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
14024 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
14025 maybe_lookup_decl, to handle nested acc loop directives.
14027 2016-08-17 Richard Biener <rguenther@suse.de>
14029 PR tree-optimization/76490
14030 * tree-vrp.c (update_value_range): Preserve overflow infinities
14031 when intersecting with ranges from get_range_info.
14032 (operand_less_p): Handle overflow infinities correctly.
14033 (value_range_constant_singleton): Use vrp_operand_equal_p
14034 to handle overflow max/min correctly.
14035 (vrp_valueize): Likewise.
14036 (union_ranges): Likewise.
14037 (intersect_ranges): Likewise.
14038 (vrp_visit_phi_node): Improve iteration limitation to only
14039 apply when we'll possibly re-visit the PHI via a changed argument
14042 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
14044 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
14045 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
14046 rather than those that should not be built.
14048 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
14051 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
14053 2016-08-17 Richard Biener <rguenther@suse.de>
14055 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
14056 (verify_vssa): New function verifying virtual SSA form.
14057 (verify_ssa): Call it.
14058 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
14059 Do not apply loop-closed SSA handling to virtuals.
14060 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
14061 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
14062 when rewriting their symbol.
14063 (prepare_def_site_for): Likewise.
14064 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
14065 operands of moved stmts.
14067 2016-08-17 Richard Biener <rguenther@suse.de>
14069 PR tree-optimization/23855
14070 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
14071 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
14072 find guards to hoist. Do not update SSA form but rewrite virtuals
14073 into loop closed SSA.
14074 (find_loop_guard): Adjust to skip already hoisted guards. Do
14075 not mark virtuals for renaming or update SSA form.
14077 2016-08-17 Martin Liska <mliska@suse.cz>
14079 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
14080 a LONG_LONG_TYPE_SIZE comparison.
14081 * gcov-io.h: Remove macro definitions.
14082 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
14083 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
14086 2016-08-16 Jakub Jelinek <jakub@redhat.com>
14088 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
14089 that builtins not mentioned in bdesc_* arrays come first, then
14090 the ones mentioned in bdesc_* arrays in the order they appear in
14091 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
14092 IX86_BUILTIN__BDESC_*_LAST enumerator.
14093 (bdesc_mpx): Fix up a comment typo.
14094 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
14095 __builtin_ia32_vpcomneu[bwdq] builtins.
14096 (BDESC_VERIFY, BDESC_VERIFYS): Define.
14097 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
14098 enum ix86_builtins ordering.
14099 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
14100 for direct bdesc_* array member access instead of searching all the
14101 arrays until an fcode match is found.
14103 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
14105 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
14106 pattern as define_insn_and_split. Split insn before reload to
14108 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
14109 <shift_insn><mode>3_1.
14110 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
14111 <rotate_insn><mode>3_1.
14113 2016-08-16 David Malcolm <dmalcolm@redhat.com>
14116 * input.c (get_source_range_for_substring): Rename to...
14117 (get_source_location_for_substring): ...this, adding param
14118 "caret_idx", and converting output param from source_range * to
14120 (get_source_range_for_char): New function.
14121 (get_num_source_ranges_for_substring): Update comment to reflect
14123 (assert_char_at_range): Update to use get_source_range_for_char
14124 rather than get_source_range_for_substring.
14125 (test_lexer_string_locations_concatenation_2): Likewise.
14126 * substring-locations.h (get_source_range_for_substring): Rename
14128 (get_source_location_for_substring): ...this, and adding param
14129 "caret_idx", and converting output param from source_range * to
14132 2016-08-16 David Malcolm <dmalcolm@redhat.com>
14134 * input.c (class selftest::temp_source_file): Move to
14136 (selftest::temp_source_file::temp_source_file): Move to
14138 (selftest::temp_source_file::~temp_source_file): Likewise.
14139 * selftest.c (selftest::temp_source_file::temp_source_file): Move
14141 (selftest::temp_source_file::~temp_source_file): Likewise.
14142 * selftest.h (class selftest::temp_source_file): Move here from
14145 2016-08-16 Jakub Jelinek <jakub@redhat.com>
14148 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
14149 inlining, add cgraph edge for the added __builtin_unreachable call.
14151 PR middle-end/67485
14152 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
14153 only cast it to SHWI for the final comparison.
14155 2016-08-16 Martin Liska <mliska@suse.cz>
14157 PR gcov-profile/36412
14158 * doc/gcov.texi: Document --hash-filenames(-x).
14159 * gcov.c (print_usage): Add the option.
14160 (process_args): Process the option, sort options alphabetically.
14161 (md5sum_to_hex): New function.
14162 (make_gcov_file_name): Do the md5sum and append it to a
14165 2016-08-16 Bin Cheng <bin.cheng@arm.com>
14167 PR tree-optimization/69848
14168 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
14169 and swtich operands to avoid additional NOT instruction.
14170 (vcond<v_cmp_mixed><mode>): Ditto.
14171 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
14173 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
14175 * doc/install.texi (*-*-solaris2*): Adjust latest change.
14177 2016-08-16 Richard Biener <rguenther@suse.de>
14179 PR tree-optimization/76783
14180 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
14181 BB visited flags at start.
14183 2016-08-16 Bin Cheng <bin.cheng@arm.com>
14185 PR tree-optimization/72817
14186 PR tree-optimization/73450
14187 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
14188 multiple_of_p for adjusted IV.base.
14190 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
14193 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
14194 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
14195 for !flag_finite_math_only or flag_signed_zeros.
14196 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
14197 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
14198 depend on flag_finite_math_only.
14199 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
14201 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
14202 (*ieee_smin<mode>3): Ditto.
14203 (*ieee_smax<mode>3): Ditto.
14204 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
14205 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
14207 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
14208 depend on flag_finite_math_only.
14209 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
14210 (*mmx_<code>v2sf3): Remove.
14211 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
14212 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
14213 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
14215 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
14217 PR rtl-optimization/73650
14218 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
14219 it is not a simple move.
14221 2016-08-15 Martin Liska <mliska@suse.cz>
14224 * gcc.c (do_spec_1): Call save_string with the right size.
14225 (save_string): Do an assert about string we copy.
14227 2016-08-15 Richard Biener <rguenther@suse.de>
14229 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
14230 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
14232 (pass_data_stv): Likewise.
14234 2016-08-15 Richard Biener <rguenther@suse.de>
14236 PR tree-optimization/73434
14237 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
14238 TBAA info on the base when forwarding a non-invariant address.
14240 2016-08-15 Jakub Jelinek <jakub@redhat.com>
14242 * dwarf2out.c (struct checksum_attributes): Add
14243 at_string_length_bit_size and at_string_length_byte_size fields.
14244 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
14245 and DW_AT_string_length_byte_size.
14246 (die_checksum_ordered): Handle at_string_length_bit_size and
14247 at_string_length_byte_size.
14248 (gen_array_type_die): For dwarf_version >= 5 emit
14249 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
14250 (adjust_string_types): For dwarf_version >= 5 remove
14251 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
14252 (resolve_addr): Likewise.
14255 * dwarf2out.c (string_types): New variable.
14256 (gen_array_type_die): Change early_dwarf handling of
14257 DW_AT_string_length, create DW_OP_call4 referencing the
14258 length var temporarily. Handle parameters that are pointers
14260 (adjust_string_types): New function.
14261 (gen_subprogram_die): Temporarily set string_types to local var,
14262 call adjust_string_types if needed.
14263 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
14265 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
14267 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
14269 * doc/install.texi (*-*-solaris2*): Fix version number and document
14270 requirement on GNU make for building libjava with the Solaris linker.
14272 2016-08-15 Martin Liska <mliska@suse.cz>
14273 Jakub Jelinek <jakub@redhat.com>
14275 PR tree-optimization/72824
14276 * tree-loop-distribution.c (const_with_all_bytes_same)
14277 <case VECTOR_CST>: Fix a typo.
14279 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
14282 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
14283 Renamed from _mm512_undefined_si512.
14284 (_mm_undefined_si512): New definition.
14286 2016-08-13 Richard Biener <rguenther@suse.de>
14288 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
14289 into PHIs and update the lattice for its def.
14291 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14294 * ubsan.c (instrument_si_overflow): Pass true instead of false
14296 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
14297 of bbs. Return TODO_cleanup_cfg if any returned true.
14299 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14301 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
14302 ISA 3.0 MTVSRDD instruction.
14303 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
14306 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
14308 PR tree-optimization/71083
14309 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
14310 bitfield access when possible.
14312 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
14314 PR middle-end/71654
14315 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
14316 sign-changing cast from a shorter unsigned type to a wider
14319 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14321 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
14322 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
14323 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
14325 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14327 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
14328 Correct costs for vec_construct.
14330 2016-08-12 Bin Cheng <bin.cheng@arm.com>
14332 PR tree-optimization/69848
14333 * tree-vectorizer.h (enum vect_def_type): New condition reduction
14334 type CONST_COND_REDUCTION.
14335 * tree-vect-loop.c (vectorizable_reduction): Support new condition
14336 reudction type CONST_COND_REDUCTION.
14338 2016-08-12 Richard Biener <rguenther@suse.de>
14340 PR tree-optimization/57326
14341 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
14342 returning an SSA name.
14343 (phi_translate_1): When fully_constant_expression returns a NAME
14344 make sure we have a leader for it.
14346 2016-08-12 Martin Liska <mliska@suse.cz>
14347 Adam Fineman <afineman@afineman.com>
14349 * gcov.c (process_file): Create .gcov file when .gcda
14352 2016-08-12 Marek Polacek <polacek@redhat.com>
14355 * alias.c (find_base_value): Adjust fall through comment.
14356 * cfgexpand.c (expand_debug_expr): Likewise.
14357 * combine.c (find_split_point): Likewise.
14358 (expand_compound_operation): Likewise. Add FALLTHRU.
14359 (make_compound_operation): Adjust fall through comment.
14360 (canon_reg_for_combine): Add FALLTHRU.
14361 (force_to_mode): Adjust fall through comment.
14362 (simplify_shift_const_1): Likewise.
14363 (simplify_comparison): Likewise.
14364 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
14366 * config/aarch64/predicates.md: Likewise.
14367 * config/i386/i386.c (function_arg_advance_32): Likewise.
14368 (ix86_gimplify_va_arg): Likewise.
14369 (print_reg): Likewise.
14370 (ix86_print_operand): Likewise.
14371 (ix86_build_const_vector): Likewise.
14372 (ix86_expand_branch): Likewise.
14373 (ix86_sched_init_global): Adjust fall through comment.
14374 (ix86_expand_args_builtin): Add FALLTHRU.
14375 (ix86_expand_builtin): Likewise.
14376 (ix86_expand_vector_init_one_var): Likewise.
14377 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
14378 (rs6000_adjust_cost): Likewise.
14379 (insn_must_be_first_in_group): Likewise.
14380 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
14381 * dbxout.c (dbxout_symbol): Adjust fall through comment.
14382 * df-scan.c (df_uses_record): Likewise.
14383 * dojump.c (do_jump): Add FALLTHRU.
14384 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
14386 (resolve_args_picking_1): Adjust fall through comment.
14387 (loc_list_from_tree_1): Likewise.
14388 * expmed.c (make_tree): Likewise.
14389 * expr.c (expand_expr_real_2): Add FALLTHRU.
14390 (expand_expr_real_1): Likewise. Adjust fall through comment.
14391 * fold-const.c (const_binop): Adjust fall through comment.
14392 (fold_truth_not_expr): Likewise.
14393 (fold_cond_expr_with_comparison): Add FALLTHRU.
14394 (fold_binary_loc): Likewise.
14395 (contains_label_1): Adjust fall through comment.
14396 (multiple_of_p): Likewise.
14397 * gcov-tool.c (process_args): Add FALLTHRU.
14398 * genattrtab.c (check_attr_test): Likewise.
14399 (write_test_expr): Likewise.
14400 * genconfig.c (walk_insn_part): Likewise.
14401 * genpreds.c (validate_exp): Adjust fall through comment.
14402 (needs_variable): Likewise.
14403 * gensupport.c (get_alternatives_number): Add FALLTHRU.
14404 (subst_dup): Likewise.
14405 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
14406 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
14407 (gimplify_scan_omp_clauses): Add FALLTHRU.
14408 (goa_stabilize_expr): Likewise.
14409 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
14411 * hsa-gen.c (get_address_from_value): Likewise.
14412 * ipa-icf.c (sem_function::hash_stmt): Likewise.
14413 * ira.c (ira_setup_alts): Add FALLTHRU.
14414 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
14416 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
14417 * opts.c (common_handle_option): Likewise.
14418 * read-rtl.c (read_rtx_code): Likewise.
14419 * real.c (round_for_format): Likewise.
14420 * recog.c (asm_operand_ok): Likewise.
14421 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
14422 * reload1.c (set_label_offsets): Likewise.
14423 (eliminate_regs_1): Likewise.
14424 (reload_reg_reaches_end_p): Likewise.
14425 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
14426 (rtx_cost): Likewise.
14427 * sched-rgn.c (is_exception_free): Likewise.
14428 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
14429 * stor-layout.c (int_mode_for_mode): Likewise.
14430 * toplev.c (print_to_asm_out_file): Likewise.
14431 (print_to_stderr): Likewise.
14432 * tree-cfg.c (gimple_verify_flow_info): Likewise.
14433 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
14434 (chrec_fold_multiply): Likewise.
14435 (evolution_function_is_invariant_rec_p): Likewise.
14436 (for_each_scev_op): Likewise.
14437 * tree-data-ref.c (siv_subscript_p): Likewise.
14438 (get_references_in_stmt): Likewise.
14439 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
14440 (substitute_in_expr): Likewise.
14441 (type_cache_hasher::equal): Likewise.
14442 (walk_type_fields): Likewise.
14443 * var-tracking.c (adjust_mems): Add FALLTHRU.
14444 (set_dv_changed): Adjust fall through comment.
14445 * varasm.c (default_function_section): Add FALLTHRU.
14447 2016-08-12 Marek Polacek <polacek@redhat.com>
14450 * tree-complex.c (expand_complex_division): Add missing break.
14452 2016-08-12 Richard Biener <rguenther@suse.de>
14454 * passes.c (execute_todo): Do not push/pop TV_TODO.
14455 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
14456 (execute_one_pass): Likewise.
14457 * common.opt (ftime-report-details): New switch.
14458 * doc/invoke.texi (ftime-report-details): Document.
14459 * timevar.h (timer::print_row): Adjust signature.
14460 (timer::all_zero): New static helper.
14461 (timer::child_map_t): New typedef.
14462 (timer::time_var_def): Add children field.
14463 * timevar.c (timer::named_items::print): Adjust.
14464 (timer::~timer): Free timevar recorded children.
14465 (timer::pop_internal): When -ftime-report-details record
14466 time spent in sub-timevars.
14467 (timer::print_row): Adjust.
14468 (timer::print): Print sub-timevar stats, use all_zero.
14469 * timevar.def (TV_TODO): Remove.
14471 2016-08-12 Richard Biener <rguenther@suse.de>
14473 PR tree-optimization/72851
14474 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
14475 worklists to use bitmaps indexed in execution order.
14476 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
14477 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
14478 (cfg_blocks): Make a bitmap.
14479 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
14481 (cfg_blocks_empty_p): Adjust.
14482 (cfg_blocks_add): Likewise.
14483 (cfg_blocks_get): Likewise.
14484 (add_ssa_edge): Likewise.
14485 (add_control_edge): Likewise.
14486 (simulate_stmt): Likewise.
14487 (process_ssa_edge_worklist): Likewise.
14488 (simulate_block): Likewise.
14489 (ssa_prop_init): Compute PRE order and stmt UIDs.
14490 (ssa_prop_fini): Adjust.
14491 (ssa_propagate): Adjust.
14493 2016-08-12 Richard Biener <rguenther@suse.de>
14495 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
14496 the currently executable edges have fixed ranges. Always
14497 go through update_value_range.
14499 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
14503 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
14504 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
14505 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
14506 (LANG_HOOKS_DECLS): Add it.
14507 * langhooks.h (struct lang_hooks_for_decls): Add
14508 function_decl_defaulted. Const_tree-ify
14509 function_decl_explicit_p and function_decl_deleted_p.
14510 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
14511 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
14512 also at strict DWARF v5.
14515 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
14516 TYPE_QUAL_CONST in reference-typed decls.
14519 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
14520 in DW_OP_pieces, just enough to handle pointers to member
14522 (gen_remaining_tmpl_value_param_die_attribute): Use a location
14523 expression on DWARFv5 if a constant value doesn't work.
14525 2016-08-11 David Malcolm <dmalcolm@redhat.com>
14527 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
14528 * selftest.c (selftest::test_assertions): New function.
14529 (selftest::selftest_c_tests): New function.
14530 * selftest.h (selftest::selftest_c_tests): New declaration.
14532 2016-08-11 Richard Biener <rguenther@suse.de>
14533 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14535 PR rtl-optimization/72855
14536 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
14538 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14541 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
14542 (vsx_store_<mode>): Likewise.
14544 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
14546 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
14547 TImode CONST_WIDE_INT store.
14548 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
14550 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
14552 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
14553 mode if unaligned SSE load and store are optimal.
14555 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
14557 PR tree-optimization/71083
14558 * tree-predcom.c (ref_at_iteration): Correctly align the
14561 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14563 * config/s390/s390-builtin-types.def: Add INT128 types.
14564 * config/s390/s390-builtins.def: Add INT128 variants for the add
14565 sub low-level builtins dealing with TImode.
14566 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
14567 via subreg when expanding a builtin.
14568 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
14569 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
14571 * config/s390/vecintrin.h: Adjust builtin names accordingly.
14572 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
14573 ("vec_addc<mode>", "vec_addc_u128"): Merge to
14574 "vacc<bhfgq>_<mode>".
14575 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
14576 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
14577 ("vec_subc<mode>", "vec_subc_u128"): Merge to
14578 "vscbi<bhfgq>_<mode>".
14579 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
14580 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
14582 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14584 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
14586 2016-08-11 Bin Cheng <bin.cheng@arm.com>
14588 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
14589 unused declaration.
14590 (vcond<v_cmp_mixed><mode>): Ditto.
14591 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
14593 2016-08-11 Bin Cheng <bin.cheng@arm.com>
14595 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
14596 variable explicitly, also assert on it before use.
14598 2016-08-11 Richard Biener <rguenther@suse.de>
14600 PR tree-optimization/72772
14601 * cfgloopmanip.c (create_preheader): Use split_edge if there
14602 is a single loop entry, avoiding degenerate PHIs.
14604 2016-08-11 Richard Biener <rguenther@suse.de>
14606 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
14607 unconditional TODO_cleanup_cfg.
14608 (pass_thread_jumps::execute): Initialize loops, perform a CFG
14609 cleanup only if we threaded a jump.
14611 2016-08-11 Alan Modra <amodra@gmail.com>
14614 * lra-constraints.c (simplify_operand_subreg): Allow subreg
14615 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
14616 slow. Emit two reloads for slow mem case, first loading in
14617 fast innermode, then converting to required mode.
14619 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
14621 * config/rs6000/altivec.h (vec_extract_exp): New macro.
14622 (vec_extract_sig): New macro.
14623 (vec_insert_exp): New macro.
14624 (vec_test_data_class): New macro.
14625 (scalar_extract_exp): New macro.
14626 (scalar_extract_sig): New macro.
14627 (scalar_insert_exp): New macro.
14628 (scalar_test_data_class): New macro.
14629 (scalar_test_neg): New macro.
14630 (scalar_cmp_exp_gt): New macro.
14631 (scalar_cmp_exp_lt): New macro.
14632 (scalar_cmp_exp_eq): New macro.
14633 (scalar_cmp_exp_unordered): New macro.
14634 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
14635 to enforce constraint that operand is a 7-bit unsigned literal.
14636 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
14637 for power9 built-ins.
14638 (BU_P9V_VSX_2): Likewise.
14639 (BU_P9V_64BIT_VSX_2): Likewise.
14640 (VSEEDP): Add scalar extract exponent support.
14641 (VSEESP): Add scalar extract signature support.
14642 (VSTDCNDP): Add scalar test negative support.
14643 (VSTDCNSP): Likewise.
14644 (VSIEDP): Add scalar insert exponent support.
14645 (VSCEDPGT): Add scalar compare exponent greater than support.
14646 (VSCEDPLT): Add scalar compare exponent less than support.
14647 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
14648 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
14649 (VSTDCDP): Add scalar test data class support.
14650 (VSTDCSP): Likewise.
14651 (VSEEDP): Add overload support for scalar extract exponent
14653 (VSESDP): Add overload support for scalar extract signature
14655 (VSTDCN): Add overload support for scalar test negative
14657 (VSTDCNDP): Add overload support for scalar test negative
14659 (VSTDCNSP): Add overload support for scalar test negative
14661 (VSIEDP): Add overload support for scalar insert exponent
14663 (VSTDC): Add overload support for scalar test data class
14665 (VSTDCDP): Add overload support for scalar test data class
14667 (VSTDCSP): Add overload support for scalar test data class
14669 (VSCEDPGT): Add overload support for scalar compare exponent
14670 greater than operation.
14671 (VSCEDPLT): Add overload support for scalar compare exponent
14672 less than operation.
14673 (VSCEDPEQ): Add overload support for scalar compare exponent
14674 test-for-equality operation.
14675 (VSCEDPUO): Add overload support for scalar compare exponent
14676 test-for-unordered operation.
14677 (VEEDP): Add vector extract exponent support.
14679 (VESDP): Add vector extract significand support.
14681 (VIEDP): Add vector insert exponent support.
14683 (VTDCDP): Add vector test data class support.
14684 (VTDCSP): Likewise.
14685 (VES): Add overload support for vector extract significand operation.
14688 (VEE): Add overload support for vector extract exponent operation.
14691 (VTDC): Add overload support for vector test data class operation.
14692 (VTDCDP): Likewise.
14693 (VTDCSP): Likewise.
14694 (VIE): Add overload support for vector insert exponent operation.
14697 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14698 overloaded binary floating point functions.
14699 (altivec_resolve_overloaded_builtin): Improve error messages to
14700 distinguish between functions not supported in the current
14701 compiler configuration and functions that were invoked with an
14702 invalid parameter combination, and include the built-in function
14703 name in both error messages.
14704 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
14706 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
14708 (rs6000_expand_binop_builtin): Add check to enforce that argument
14709 2 of the test data class operations is a 7-bit unsigned literal.
14710 (rs6000_invalid_builtin): Add code to issue an error message if a
14711 built-in function that requires the power9_vector and -m32
14712 command-line options is compiled without these options.
14713 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
14714 (UNSPEC_VSX_SXSIGDP): New value.
14715 (UNSPEC_VSX_SXSIGPDP): New value.
14716 (UNSPEC_VSX_SIEXPDP): New value.
14717 (UNSPEC_VSX_SCMPEXPDP): New value.
14718 (UNSPEC_VSX_STSTDC): New value.
14719 (UNSPEC_VSX_VXEXP): New value.
14720 (UNSPEC_VSX_VXSIG): New value.
14721 (UNSPEC_VSX_VIEXP): New value.
14722 (UNSPEC_VSX_VTSTDC): New value.
14723 (xsxexpdp): New insn for scalar extract exponent.
14724 (xsxsigdp): New insn for scalar extract significand.
14725 (xsiexpdp): New insn for scalar insert exponent.
14726 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
14727 (*xscmpexpdp): New insn for scalar compare exponents.
14728 (xststdc<Fvsx): New expansion for both single- and
14729 double-precision scalar test data class operations.
14730 (xststdcneg<Fvsx>): New expansion for both single- and
14731 double-precision scalar test for negative value operations.
14732 (*xststdc<Fvsx>): New insn for scalar test data class
14734 (xvxexp<VSs>): New insn for single- and double-precision
14735 vector extract exponent operation.
14736 (xvxsig<VSs>): New insn for single- and double-precision
14737 vector extract significand operation.
14738 (xviexp<VSs>): New insn for single- and double-precision
14739 vector insert exponent operation.
14740 (xvtstdc<VSs>): New insn for single- and double-precision
14741 vector test data class operation.
14742 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14743 built-in functions to represent the Power9 binary floating-point
14744 support instructions.
14746 2016-08-10 bin cheng <bin.cheng@arm.com>
14748 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
14750 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
14751 Renlin Li <renlin.li@arm.com>
14752 Bin Cheng <bin.cheng@arm.com>
14754 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
14755 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
14756 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
14757 (aarch64_vcond_internal<mode><mode>): Delete pattern.
14758 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
14759 (vcond<v_cmp_result><mode>): Ditto.
14760 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
14761 (vcondu<mode><mode>): Ditto.
14762 (vcond<v_cmp_mixed><mode>): New pattern.
14763 (vcondu<mode><v_cmp_mixed>): New pattern.
14764 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
14765 of aarch64_vcond_internal.
14767 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
14768 Renlin Li <renlin.li@arm.com>
14769 Bin Cheng <bin.cheng@arm.com>
14771 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
14772 (vec_cmp<mode><v_cmp_result>): New pattern.
14773 (vec_cmpu<mode><mode>): New pattern.
14774 (vcond_mask_<mode><v_cmp_result>): New pattern.
14776 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
14778 PR tree-optimization/71734
14779 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
14780 REF_LOOP, invoke ref_indep_loop_p_1.
14781 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
14782 to ref_indep_loop_p.
14783 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
14784 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
14785 is inside LOOP, do not cache dpendence value for loops with
14787 (ref_indep_loop_p_2): Delete function.
14788 (can_sm_ref_p): Pass LOOP as additional argument to
14791 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
14794 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
14795 being an offsettable address.
14797 2016-08-10 Martin Liska <mliska@suse.cz>
14799 PR gcov-profile/58306
14800 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
14801 atomic variants of profile update functions.
14803 2016-08-10 Martin Liska <mliska@suse.cz>
14805 Cherry picked (and modified) from google-4_7 branch
14806 2012-12-26 Rong Xu <xur@google.com>
14807 * common.opt (fprofile-update): Add new flag.
14808 * coretypes.h: Define enum profile_update.
14809 * doc/invoke.texi: Document -fprofile-update.
14810 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
14811 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
14812 * tree-profile.c (gimple_init_edge_profiler): Generate
14813 also atomic profiler update.
14814 (gimple_gen_edge_profiler): Likewise.
14816 2016-08-10 David Malcolm <dmalcolm@redhat.com>
14818 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
14819 stack_usage_file to NULL after fclose calls.
14821 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14824 * reload.c (push_reload): Compute subreg_in_class for
14825 subregs of constants and plus expressions. Remove special
14826 handling of SYMBOL_REFs.
14828 2016-08-10 Alan Modra <amodra@gmail.com>
14831 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
14832 SImode for TARGET_E500_DOUBLE when given SImode.
14834 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
14836 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
14837 unused variable __O.
14839 2016-08-09 Martin Liska <mliska@suse.cz>
14841 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
14842 _gcov_reset to __gcov_reset.
14843 * doc/gcov-tool.texi: Fix typo.
14845 2016-08-09 Martin Liska <mliska@suse.cz>
14847 * value-prof.c (gimple_divmod_values_to_profile): Do not
14848 instrument MOD histogram if a value is not a SSA name.
14850 2016-08-09 Martin Liska <mliska@suse.cz>
14852 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
14855 2016-08-09 Renlin Li <renlin.li@arm.com>
14857 PR middle-end/64971
14858 * calls.c (prepare_call_address): Convert funexp to Pmode when
14860 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
14861 (sibcall_value): Likewise.
14863 2016-08-09 Marek Polacek <polacek@redhat.com>
14866 * cselib.c (cselib_expand_value_rtx_1): Add return.
14867 * gengtype.c (dbgprint_count_type_at): Likewise.
14868 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
14869 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
14871 2016-08-09 Martin Jambor <mjambor@suse.cz>
14874 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
14875 if instance is a MEM_REF.
14877 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
14880 * config/i386/i386.md (*movtf_internal): Use
14881 lra_in_progress || reload_completed instead of !can_create_pseudo_p
14882 in the insn constraint.
14883 (*movxf_internal): Ditto.
14884 (*movdf_internal): Ditto.
14885 (*movsf_internal): Ditto.
14887 2016-08-09 Bin Cheng <bin.cheng@arm.com>
14889 PR tree-optimization/72772
14890 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
14893 2016-08-09 Bin Cheng <bin.cheng@arm.com>
14895 PR tree-optimization/72772
14896 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
14898 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
14899 parameter STOP and update calls. Move expand_simple_operations
14900 function call from here...
14901 (simplify_using_initial_conditions): ...to here. Delete parameter
14903 (tree_simplify_using_condition): Delete parameter STOP.
14904 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
14905 simplify_using_initial_conditions.
14907 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
14910 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
14911 Use create_tmp_var_raw instead of create_tmp_var.
14913 2016-08-09 Richard Biener <rguenther@suse.de>
14915 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
14916 Treat same SSA names related.
14918 2016-08-09 Jakub Jelinek <jakub@redhat.com>
14920 PR tree-optimization/72824
14921 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
14922 real_zerop is not negative.
14924 2016-08-09 Richard Biener <rguenther@suse.de>
14926 PR tree-optimization/71802
14927 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
14928 all merge opportunities with the predecessor.
14930 2016-08-09 Richard Biener <rguenther@suse.de>
14933 * ipa-prop.c (ipa_modify_formal_parameters): Build
14934 parameter types with natural alignment also for the
14937 2016-08-08 Andi Kleen <ak@linux.intel.com>
14939 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
14941 2016-08-08 David Malcolm <dmalcolm@redhat.com>
14944 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
14945 do-nothing langhook.
14946 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
14947 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
14948 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
14949 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
14951 2016-08-08 David Malcolm <dmalcolm@redhat.com>
14954 * input.c: Ensure that HAVE_ICONV is defined.
14956 2016-08-08 Jakub Jelinek <jakub@redhat.com>
14958 PR middle-end/72781
14959 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
14960 private vars for lastprivate and for linear iterator.
14962 PR middle-end/68762
14963 * omp-simd-clone.c: Include varasm.h.
14964 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
14965 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
14966 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
14967 update function name.
14969 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14971 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
14972 (avr_diagnose_devicespecs_error): Remove.
14973 (avr_devicespecs_file): Remove composing absolute path for specfile
14974 and its verbose info. Remove conditions to check specs-file,
14976 2016-08-08 Jakub Jelinek <jakub@redhat.com>
14978 PR rtl-optimization/72821
14979 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
14980 just return false for them.
14982 2016-08-08 Alan Modra <amodra@gmail.com>
14985 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
14986 toc refs created during reload. Update function comment.
14988 2016-08-08 Alan Modra <amodra@gmail.com>
14991 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
14992 alternatives. Put loads first, then stores, and reg/reg moves
14993 within same class later. Delete attr length.
14995 2016-08-08 Alan Modra <amodra@gmail.com>
14998 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
14999 (mem_operand_ds_form): New predicate.
15000 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
15001 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
15002 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
15003 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
15004 (extendsfdf2_fpr): Replace o constraint with wY.
15006 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
15008 * tree-ssa-threadbackward.c: Include tree-inline.h
15009 (profitable_jump_thread_path): Use estimate_num_insns to estimate
15010 size of copied block; for cold paths reduce duplication.
15011 (find_jump_threads_backwards): Remove redundant tests.
15012 (pass_thread_jumps::gate): Enable for -Os.
15014 2016-08-07 Jakub Jelinek <jakub@redhat.com>
15017 * stor-layout.c (layout_decl): Fix up formatting.
15018 (relayout_decl): Allow DECL to be FIELD_DECL.
15020 2016-08-07 Alan Modra <amodra@gmail.com>
15022 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
15024 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
15026 * data-streamer-in.c (streamer_read_wide_int): New.
15027 (streamer_read_widest_int): Renamed function.
15028 * data-streamer-out.c (streamer_write_wide_int): New
15029 (streamer_write_widest_int): Renamed function.
15030 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
15032 (input_cfg): Call renamed function.
15033 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
15035 (output_cfg): Call renamed function.
15036 * data-streamer.h: Add declarations.
15038 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15040 * tree-ssa-ccp.c (extend_mask): New param sgn.
15041 Remove ORing with wi::mask.
15042 (get_default_value): Adjust call to extend_mask to pass sign.
15043 (evaluate_stmt): Likewise.
15045 2016-08-06 Jakub Jelinek <jakub@redhat.com>
15047 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
15050 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15052 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
15053 transform if operand's type is pointer to function or method.
15055 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15057 PR tree-optimization/18046
15058 * tree-ssa-threadedge.c: Include cfganal.h.
15059 (simplify_control_statement_condition): If simplifying a
15060 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
15061 with the dominating ASSERT_EXPR before handing it off to VRP.
15062 Mention that a CASE_LABEL_EXPR may be returned.
15063 (thread_around_empty_blocks): Adjust to handle
15064 simplify_control_statement_condition() returning a
15066 (thread_through_normal_block): Likewise.
15067 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
15068 a switch statement by trying to determine which case label
15071 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
15073 PR rtl-optimization/69847
15074 * lra-constraints.c (process_invariant_for_inheritance): Save
15075 pattern instead of src.
15076 (remove_inheritance_pseudos): Use the pattern. Add assert.
15078 2016-08-05 David Malcolm <dmalcolm@redhat.com>
15080 * input.c (string_concat::string_concat): New constructor.
15081 (string_concat_db::string_concat_db): New constructor.
15082 (string_concat_db::record_string_concatenation): New method.
15083 (string_concat_db::get_string_concatenation): New method.
15084 (string_concat_db::get_key_loc): New method.
15085 (class auto_cpp_string_vec): New class.
15086 (get_substring_ranges_for_loc): New function.
15087 (get_source_range_for_substring): New function.
15088 (get_num_source_ranges_for_substring): New function.
15089 (class selftest::lexer_test_options): New class.
15090 (struct selftest::lexer_test): New struct.
15091 (class selftest::ebcdic_execution_charset): New class.
15092 (selftest::ebcdic_execution_charset::s_singleton): New variable.
15093 (selftest::lexer_test::lexer_test): New constructor.
15094 (selftest::lexer_test::~lexer_test): New destructor.
15095 (selftest::lexer_test::get_token): New method.
15096 (selftest::assert_char_at_range): New function.
15097 (ASSERT_CHAR_AT_RANGE): New macro.
15098 (selftest::assert_num_substring_ranges): New function.
15099 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
15100 (selftest::assert_has_no_substring_ranges): New function.
15101 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
15102 (selftest::test_lexer_string_locations_simple): New function.
15103 (selftest::test_lexer_string_locations_ebcdic): New function.
15104 (selftest::test_lexer_string_locations_hex): New function.
15105 (selftest::test_lexer_string_locations_oct): New function.
15106 (selftest::test_lexer_string_locations_letter_escape_1): New function.
15107 (selftest::test_lexer_string_locations_letter_escape_2): New function.
15108 (selftest::test_lexer_string_locations_ucn4): New function.
15109 (selftest::test_lexer_string_locations_ucn8): New function.
15110 (selftest::uint32_from_big_endian): New function.
15111 (selftest::test_lexer_string_locations_wide_string): New function.
15112 (selftest::uint16_from_big_endian): New function.
15113 (selftest::test_lexer_string_locations_string16): New function.
15114 (selftest::test_lexer_string_locations_string32): New function.
15115 (selftest::test_lexer_string_locations_u8): New function.
15116 (selftest::test_lexer_string_locations_utf8_source): New function.
15117 (selftest::test_lexer_string_locations_concatenation_1): New
15119 (selftest::test_lexer_string_locations_concatenation_2): New
15121 (selftest::test_lexer_string_locations_concatenation_3): New
15123 (selftest::test_lexer_string_locations_macro): New function.
15124 (selftest::test_lexer_string_locations_stringified_macro_argument):
15126 (selftest::test_lexer_string_locations_non_string): New function.
15127 (selftest::test_lexer_string_locations_long_line): New function.
15128 (selftest::test_lexer_char_constants): New function.
15129 (selftest::input_c_tests): Call the new test functions once per
15130 case within the line_table test matrix.
15131 * input.h (struct string_concat): New struct.
15132 (struct location_hash): New struct.
15133 (class string_concat_db): New class.
15134 * substring-locations.h: New header.
15136 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15138 PR tree-optimization/72810
15139 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
15140 the type of the case labels when truncating.
15142 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
15145 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
15146 (aarch64_fp16_ptr_type_node): Likewise.
15147 * config/aarch64/aarch64-simd-builtins.c
15148 (aarch64_fp16_ptr_type_node): Define.
15149 (aarch64_init_fp16_types): New, refactored out of...
15150 (aarch64_init_builtins): ...here, update to call
15151 aarch64_init_fp16_types.
15152 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
15154 (aapcs_vfp_sub_candidate): Likewise.
15156 2016-08-05 Martin Liska <mliska@suse.cz>
15157 Joshua Cranmer <Pidgeot18@gmail.com>
15159 * gcov.c (line_t::has_block): New function.
15160 (enum loop_type): New enum.
15161 (handle_cycle): New function.
15162 (unblock): Likewise.
15163 (circuit): Likewise.
15164 (get_cycles_count): Likewise.
15165 (accumulate_line_counts): Use new loop detection algorithm.
15167 2016-08-05 Martin Liska <mliska@suse.cz>
15169 * gcov.c (output_intermediate_file): Rename
15170 function_info::line_next to next_file_fn.
15171 (process_file): Likewise.
15172 (read_graph_file): Likewise.
15173 (accumulate_line_counts): Likewise.
15174 (output_lines): Likewise.
15176 2016-08-05 Richard Biener <rguenther@suse.de>
15178 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
15179 restriction on threading to a loop header.
15181 2016-08-05 Richard Biener <rguenther@suse.de>
15183 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
15184 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
15185 adjust loop info accordingly.
15187 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
15189 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
15190 before folding call to __builtin_constant_p with parameters to false.
15192 2016-08-05 Alan Modra <amodra@gmail.com>
15194 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
15195 code accidentally committed 2016-05-02 providing class when given
15198 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
15200 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
15201 the case label ranges that partially overlap with OP's value
15204 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
15207 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
15208 Cast builtin function result to __mmask16 instead of __mmask8.
15209 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
15210 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
15211 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
15213 2016-08-04 David Malcolm <dmalcolm@redhat.com>
15215 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
15216 (ASSERT_TRUE_AT): New macro.
15217 (ASSERT_FALSE): Reimplement in terms of...
15218 (ASSERT_FALSE_AT): New macro.
15219 (ASSERT_STREQ_AT): Fix typo in comment.
15221 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
15223 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
15224 labels are exhaustive, designate the label with the widest
15225 range to be the default label.
15227 2016-08-04 Andrew Pinski <apinski@cavium.com>
15229 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
15230 (thunderx_tunings): Use thunderx_vector_cost instead of
15231 generic_vector_cost.
15233 2016-08-04 Martin Liska <mliska@suse.cz>
15235 * gcov.c (main): Fix GNU coding style.
15236 (output_intermediate_file): Likewise.
15237 (process_file): Likewise.
15238 (generate_results): Likewise.
15239 (release_structures): Likewise.
15240 (create_file_names): Likewise.
15241 (find_source): Likewise.
15242 (read_graph_file): Likewise.
15243 (find_exception_blocks): Likewise.
15244 (canonicalize_name): Likewise.
15245 (make_gcov_file_name): Likewise.
15246 (mangle_name): Likewise.
15247 (accumulate_line_counts): Likewise.
15248 (output_branch_count): Likewise.
15249 (read_line): Likewise.
15251 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
15253 PR rtl-optimization/71779
15254 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
15255 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
15256 or if it was truncated.
15258 PR rtl-optimization/70903
15259 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
15261 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
15263 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
15264 accessing SSA_NAME_PTR_INFO.
15266 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
15269 * common/config/avr/avr-common.c (avr_option_optimization_table)
15270 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
15272 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
15275 * config/avr/avr.md: New pattern to work around do_store_flag
15276 generating shift instructions for bit extractions.
15278 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
15280 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
15282 (add_equivalence): Likewise.
15283 (get_value_range): Allocate value range with vrp_value_range_pool.
15284 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
15285 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
15287 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
15289 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
15290 the default for the rs6000 port.
15292 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15294 PR middle-end/71876
15295 * calls.c (special_function_p): Remove special handling of
15296 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
15297 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
15298 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
15300 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
15302 PR middle-end/72778
15303 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
15304 Don't stop on regular insns.
15306 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
15308 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
15309 size to DImode boundary.
15310 (nvptx_propagate): Likewise.
15312 2016-08-03 Alan Modra <amodra@gmail.com>
15314 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
15315 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
15316 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
15317 from -mefficient-unaligned-vector. Note that this affects fp too.
15319 2016-08-03 Alan Modra <amodra@gmail.com>
15321 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
15324 2016-08-03 Alan Modra <amodra@gmail.com>
15326 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
15327 to a reg. Localize vars.
15329 2016-08-03 Alan Modra <amodra@gmail.com>
15331 * config/rs6000/rs6000.opt: Remove negatives from help strings
15334 2016-08-03 Alan Modra <amodra@gmail.com>
15336 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
15337 Delete duplicated code.
15339 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15341 PR middle-end/72778
15342 * lra-spills.c (regno_in_use_p): New.
15343 (lra_final_code_change): Use it.
15345 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15347 PR rtl-optimization/69847
15348 * lra-int.h (struct lra-reg): Use restore_rtx instead of
15350 (lra_rtx_hash): New.
15351 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
15353 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
15354 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
15355 * lra-spills.c (lra_final_code_change): Don't delete insn when the
15356 next insn is USE with the same reg as the current insn source.
15357 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
15359 (lra_constraints_init): Call initiate_invariants.
15360 (lra_constraints_finish): Call finish_invariants.
15361 (struct invariant, invariant_t, invariant_ptr_t): New.
15362 (const_invariant_ptr_t, invariants, invariants_pool): New.
15363 (invariant_table, invariant_hash, invariant_eq_p): New.
15364 (insert_invariant, initiate_invariants, finish_invariants): New.
15365 (clear_invariants, invalid_invariant_regs): New.
15366 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
15367 instead of restore_regno.
15368 (invariant_p, process_invariant_for_inheritance): New.
15369 (inherit_in_ebb): Implement invariant inheritance.
15370 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
15371 (remove_inheritance_pseudos): Implement undoing invariant
15373 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
15374 instead of restore_regno.
15375 * lra-assigns.c (regno_live_length): New.
15376 (reload_pseudo_compare_func): Use regno_live_length.
15377 (assign_by_spills): Use restore_rtx instead of restore_regno.
15378 (lra_assign): Ditto. Initiate regno_live_length.
15380 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
15382 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
15383 __builtin_aarch64_fmindf.
15385 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15387 PR tree-optimization/34114
15388 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
15389 information for more control IVs.
15391 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15393 PR tree-optimization/34114
15394 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
15395 PLUS_EXPR case. Handle SSA_NAME case.
15397 2016-08-02 Tamar Christina <tamar.christina@arm.com>
15399 * config/aarch64/aarch64-simd-builtins.def
15400 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
15401 (__builtin_aarch64_fmaxdf): Likewise.
15402 (__builtin_aarch64_smin_nandf): Likewise.
15403 (__builtin_aarch64_smax_nandf): Likewise.
15404 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
15405 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
15406 (<fmaxmin><mode>3): ...this.
15407 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
15408 (vminnm_f64): Likewise.
15409 (vmin_f64): Likewise.
15410 (vmax_f64): Likewise.
15411 * config/aarch64/iterators.md (FMAXMIN): Merge with...
15412 (FMAXMIN_UNS): ...this.
15413 (fmaxmin): Merged with
15414 (fmaxmin_op): ...this...
15415 (maxmin_uns_op): ...in to this.
15417 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15419 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15420 Add support for vec_extract on vector float, vector int, vector
15421 short, and vector char vector types.
15422 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15423 vector float, vector int, vector short, and vector char
15424 optimizations on 64-bit ISA 2.07 systems for both constant and
15425 variable element numbers.
15426 (rs6000_split_vec_extract_var): Likewise.
15427 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
15428 Altivec registers on ISA 2.07 and above.
15429 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
15430 which never was matched due to the split occuring before register
15431 allocation (and the code would not have worked on little endian
15432 systems if it did match). Allow extracts to go to the Altivec
15433 registers if ISA 2.07 (power8). Change from using "" around the
15434 C++ code to using {}'s.
15435 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
15436 vec_extracts when the vector is in memory.
15437 (vsx_extract_v4sf_var): New insn to optimize vector float
15438 vec_extracts when the element number is variable on 64-bit ISA
15440 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
15441 for 64-bit ISA 2.07 as well as ISA 3.0.
15442 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
15443 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
15444 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
15445 optimize vector int, vector short, and vector char vec_extracts
15446 when the vector is in memory.
15447 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
15448 optimize vector int, vector short, and vector char vec_extracts
15449 when the element number is variable.
15451 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15454 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
15455 does not overlap with other symbol flags.
15457 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
15459 * config/aarch64/aarch64.h (aarch64_frame):
15460 Remove padding0 and hardfp_offset. Add locals_offset,
15461 initial_adjust, callee_adjust, callee_offset and final_adjust.
15462 * config/aarch64/aarch64.c (aarch64_layout_frame):
15463 Remove unused padding0 and hardfp_offset initializations.
15464 Choose frame layout and set frame variables accordingly.
15465 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
15466 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
15467 (aarch64_pop_regs): Likewise.
15468 (aarch64_expand_prologue): Remove all decision code, just emit
15469 prolog according to frame variables.
15470 (aarch64_expand_epilogue): Remove all decision code, just emit
15471 epilog according to frame variables.
15472 (aarch64_initial_elimination_offset): Use offset to local/arg area.
15474 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
15477 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
15478 fix_debug_reg_uses after changing source register mode to
15479 V1TImode if source register is undefined.
15481 2015-08-01 Alan Hayward <alan.hayward@arm.com>
15483 PR tree-optimization/71818
15484 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
15485 with non invariant evolutions
15487 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15490 * config/avr/avr.md (length) [branch]: Correct insn length
15491 attribute for forward branches.
15493 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15495 * doc/extend.texi (AVR Built-in Functions): Document
15496 __builtin_avr_nops.
15497 * config/avr/builtins.def (NOPS): New.
15498 * config/avr/avr.c (avr_expand_nops): New static function.
15499 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
15501 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15503 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
15504 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
15507 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
15509 * config/aarch64/aarch64.c (vulcan_tunings): Update
15510 vulcan L1 cache_line_size.
15512 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
15514 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
15515 function that takes a vector memory address, a hard register, an
15516 element number and a temporary base register, and recreates an
15517 address that points to the appropriate element within the vector.
15518 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
15519 (rs6000_split_vec_extract_var): Add support for the target of a
15520 vec_extract with variable element number being a scalar memory
15522 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
15524 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
15525 vsx_extract_<mode>_load insn with a new insn that optimizes
15526 storing either element to a memory location, using scratch
15527 registers to pick apart the vector and reconstruct the address.
15528 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
15529 (vsx_extract_<mode>_store): Rework alternatives to more correctly
15530 support Altivec registers. Add support for ISA 3.0 Altivec d-form
15532 (vsx_extract_<mode>_var): Add support for extracting a variable
15533 element number from memory.
15535 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
15537 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
15538 when testing for compares against constants of the form 0xabab.
15540 2016-07-29 Bin Cheng <bin.cheng@arm.com>
15542 PR tree-optimization/57558
15543 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
15545 (vect_loop_versioning): Support versioning with niter assumptions.
15546 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
15547 (vect_get_loop_niters): New parameter. Reimplement to support
15548 assumptions in loop niter info.
15549 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
15550 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
15551 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
15552 Support loop versioning for niters.
15553 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
15554 (vect_free_loop_info_assumptions): New function.
15555 (vectorize_loops): Free loop niter info for loops with flag
15556 LOOP_F_ASSUMPTIONS set if vectorization failed.
15557 * tree-vectorizer.h (struct _loop_vec_info): New field
15558 num_iters_assumptions.
15559 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
15560 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
15561 (LOOP_REQUIRES_VERSIONING): New macro.
15562 (vect_free_loop_info_assumptions): New decl.
15564 2016-07-29 Bin Cheng <bin.cheng@arm.com>
15566 * cfgloop.h (struct loop): New field constraints.
15567 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
15568 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
15570 * cfgloop.c (alloc_loop): Initialize new field.
15571 * cfgloopmanip.c (copy_loop_info): Copy constraints.
15572 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
15573 Adjust niter analysis wrto loop constraints.
15574 * doc/loop.texi (@node Number of iterations): Add description for loop
15577 2016-07-29 Marek Polacek <polacek@redhat.com>
15580 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
15581 (ix86_expand_round_builtin): Likewise.
15583 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
15584 Georg-Johann Lay <avr@gjlay.de>
15586 PR rtl-optimization/71976
15587 * combine.c (get_last_value): Return 0 if the argument for which
15588 the function is called has a wider mode than the recorded value.
15590 2016-07-29 Marek Polacek <polacek@redhat.com>
15593 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
15594 (altivec_expand_st_builtin): Likewise.
15596 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
15598 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
15599 introduced in r238381.
15601 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15603 PR middle-end/68217
15604 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
15605 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
15607 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
15609 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
15611 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15612 Add support for vec_extract of vector double or vector long having
15613 a variable element number on 64-bit ISA 2.07 systems or newer.
15614 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
15616 (rs6000_split_vec_extract_var): New function to split a
15617 vec_extract built-in function with variable element number.
15618 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
15620 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
15621 (UNSPEC_VSX_EXTRACT): Likewise.
15622 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
15623 direct move instructions to be generated on 64-bit ISA 2.07
15624 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
15626 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
15627 arguments for vec_extract variable element.
15628 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
15629 vec_extract with variable element on V2DFmode and V2DImode
15631 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
15632 -mupper-regs-df requirement, since it isn't needed.
15633 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
15634 do direct moves on 64-bit systems, which allows optimization of
15635 vec_extract on 64-bit ISA 2.07 systems and newer.
15637 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
15638 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
15640 * config/aarch64/aarch64.md
15641 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
15642 statement and type.
15643 (<optab>qihi2_aarch64): Likewise, and split into two.
15644 (extendqihi2_aarch64): New.
15645 (zero_extendqihi2_aarch64): New.
15646 * config/aarch64/iterators.md (ldrxt): Remove.
15647 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
15650 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
15652 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
15654 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
15656 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
15657 (aarch64_push_reg): New function to push 1 or 2 registers.
15658 (aarch64_pop_reg): New function to pop 1 or 2 registers.
15659 (aarch64_expand_prologue): Use aarch64_push_regs.
15660 (aarch64_expand_epilogue): Use aarch64_pop_regs.
15662 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
15664 PR tree-optimization/71734
15665 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
15666 attribute instead of REF_LOOP and use it.
15667 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
15668 set it for Loops having non-zero safelen attribute.
15669 (ref_indep_loop_p): Pass zero as initial value for safelen.
15671 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
15673 PR middle-end/72657
15675 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
15676 call using chkp_gimple_call_builtin_p.
15677 (chkp_copy_bounds_for_assign): Likewise.
15679 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15681 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
15682 * config/arm/arm-protos.h (struct tune_params): Likewise.
15683 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
15684 (cortex_a9_sched_adjust_cost): Likewise.
15685 (fa726te_sched_adjust_cost): Likewise.
15686 (arm_adjust_cost): Likewise.
15687 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
15688 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
15689 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
15690 * config/i386/i386.c (ix86_adjust_cost): Likewise.
15691 * config/ia64/ia64.c: Likewise.
15692 * config/m68k/m68k.c: Likewise.
15693 * config/mep/mep.c (mep_adjust_cost): Likewise.
15694 * config/microblaze/microblaze.c (microblaze_adjust_cost):
15696 * config/mips/mips.c (mips_adjust_cost): Likewise.
15697 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
15699 * config/pa/pa.c (pa_adjust_cost): Likewise.
15700 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
15701 (rs6000_debug_adjust_cost): Likewise.
15702 * config/sh/sh.c (sh_adjust_cost): Likewise.
15703 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
15704 (hypersparc_adjust_cost): Likewise.
15705 (sparc_adjust_cost): Likewise.
15706 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
15707 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
15708 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
15710 * config/visium/visium.c (visium_adjust_cost): Likewise.
15711 * doc/tm.texi: Regenerate.
15712 * haifa-sched.c (dep_cost_1): Adjust.
15713 * target.def: Merge adjust_cost and adjust_cost_2.
15715 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15717 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
15719 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15721 * store-motion.c (struct st_expr): Make pattern_regs a vector.
15722 (extract_mentioned_regs): Append to a vector instead of
15723 returning a rtx_expr_list.
15724 (st_expr_entry): Adjust.
15725 (free_st_expr_entry): Likewise.
15726 (store_ops_ok): Likewise.
15727 (store_killed_in_insn): Likewise.
15728 (find_moveable_store): Likewise.
15730 2016-07-28 Martin Liska <mliska@suse.cz>
15732 PR gcov-profile/68025
15733 * tree-profile.c (tree_profiling): Respect
15734 no_profile_instrument_function attribute.
15735 * doc/extend.texi: Document no_profile_instrument_function
15738 2016-07-28 Martin Liska <mliska@suse.cz>
15740 PR rtl-optimization/70944
15741 * combine.c (make_compound_operation):
15742 Do not allow make_compound_operation for vector mode
15744 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
15746 PR middle-end/71994
15747 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
15748 before calling get_ops.
15750 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
15752 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
15753 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
15754 (BITS_PER_UNIT_LOG): Remove.
15755 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
15756 * expr.c (expand_assignment): Likewise.
15757 * stor-layout.c (initialize_sizetypes): Likewise.
15759 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15761 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
15762 signature of rs6000_expand_vector_extract so that the element
15763 number is a RTX instead of a constant integer.
15764 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
15766 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
15767 (altivec_expand_vec_ext_builtin): Likewise.
15768 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
15769 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
15770 MFVSRLD instruction.
15772 2016-07-27 David Malcolm <dmalcolm@redhat.com>
15774 * input.c (get_pure_location): Move here from tree.c.
15775 (make_location): Likewise. Add header comment.
15776 (selftest::test_accessing_ordinary_linemaps): Verify
15777 pure_location_p, make_location, get_location_from_adhoc_loc and
15778 get_range_from_loc.
15779 * input.h (get_pure_location): Move declaration here from tree.h.
15780 (get_finish): Likewise for inline function.
15781 (make_location): Likewise for declaration.
15782 * tree.c (get_pure_location): Move to input.c.
15783 (make_location): Likewise.
15784 * tree.h (get_pure_location): Move declaration to tree.h.
15785 (get_finish): Likewise for inline function.
15786 (make_location): Likewise for declaration.
15788 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15790 PR middle-end/71078
15791 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
15793 2016-07-27 David Malcolm <dmalcolm@redhat.com>
15795 * system.h (STATIC_ASSERT): Use static_assert if building
15796 with C++11 onwards.
15798 2016-07-27 Richard Biener <rguenther@suse.de>
15800 PR tree-optimization/72517
15801 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
15802 Revert change to not compute read-read dependences.
15804 2016-07-27 Richard Biener <rguenther@suse.de>
15806 * predict.c (set_even_probabilities): Make nedges unsigned.
15808 2016-07-27 Martin Liska <mliska@suse.cz>
15810 * predict.c (set_even_probabilities): Handle unlikely edges.
15811 (combine_predictions_for_bb): Likewise.
15813 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15816 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
15817 __float128 support when we don't have hardware support, so that
15818 the IEEE built-in functions like isgreater, first call __unordkf3
15819 to make sure neither operand is a NaN, and if both operands are
15820 ordered, do the normal comparison.
15822 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
15824 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
15826 (extract_code_and_val_from_cond_with_ops): Verify that name is
15827 either cond_op0 or cond_op1.
15829 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
15831 PR tree-optimization/18046
15832 * genmodes.c (emit_mode_size_inline): Emit an assert that
15833 verifies that mode is a valid array index.
15834 (emit_mode_nuinits_inline): Likewise.
15835 (emit_mode_inner_inline): Likewise.
15836 (emit_mode_unit_size_inline): Likewise.
15837 (emit_mode_unit_precision_inline): Likewise.
15838 * tree-vrp.c: Include params.h.
15839 (find_switch_asserts): Register edge assertions for the default
15840 label which correspond to the anti-ranges of each case label.
15841 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
15842 * doc/invoke.texi: Document it.
15844 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15846 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
15847 and unnecessary call to gimple_bb.
15849 2016-07-26 Richard Biener <rguenther@suse.de>
15851 PR rtl-optimization/71984
15852 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
15855 2016-07-26 Richard Biener <rguenther@suse.de>
15857 PR middle-end/72517
15858 * expmed.c (extract_bit_field_1): Constrain the vector mode
15859 with element size matching the extraction mode size when
15860 choosing a better vector mode to do the extraction from.
15862 2016-07-26 Richard Biener <rguenther@suse.de>
15863 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15865 PR middle-end/70920
15866 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
15869 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15871 * tree-ssa-structalias.c (struct scc_info): Change types of
15872 members to auto_sbitmap and auto_vec.
15873 (scc_info::scc_info): New constructor.
15874 (scc_info::~scc_info): New destructor.
15875 (init_scc_info): Remove.
15876 (free_scc_info): Remove.
15877 (find_indirect_cycles): Adjust.
15878 (perform_var_substitution): Likewise.
15879 (free_var_substitution_info): Likewise.
15881 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15883 * tree-outof-ssa.c (struct elim_graph): Change type of members
15884 to auto_vec and auto_sbitmap.
15885 (elim_graph::elim_graph): New constructor.
15886 (delete_elim_graph): Remove.
15887 (expand_phi_nodes): Adjust.
15889 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15891 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
15892 (new_elim_graph): Adjust.
15893 (clear_elim_graph): Likewise.
15894 (delete_elim_graph): Likewise.
15895 (elim_graph_size): Likewise.
15896 (elim_graph_add_node): Likewise.
15897 (elim_graph_add_edge): Likewise.
15898 (elim_graph_remove_succ_edge): Likewise.
15899 (eliminate_name): Likewise.
15900 (eliminate_build): Likewise.
15901 (elim_forward): Likewise.
15902 (elim_unvisited_predecessor): Likewise.
15903 (elim_backward): Likewise.
15904 (elim_create): Likewise.
15905 (eliminate_phi): Likewise.
15906 (expand_phi_nodes): Likewise.
15908 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15910 * bt-load.c (compute_out): Use auto_sbitmap class.
15911 (link_btr_uses): Likewise.
15912 * cfganal.c (mark_dfs_back_edges): Likewise.
15913 (post_order_compute): Likewise.
15914 (inverted_post_order_compute): Likewise.
15915 (pre_and_rev_post_order_compute_fn): Likewise.
15916 (single_pred_before_succ_order): Likewise.
15917 * cfgexpand.c (pass_expand::execute): Likewise.
15918 * cfgloop.c (verify_loop_structure): Likewise.
15919 * cfgloopmanip.c (fix_bb_placements): Likewise.
15920 (remove_path): Likewise.
15921 (update_dominators_in_loop): Likewise.
15922 * cfgrtl.c (break_superblocks): Likewise.
15923 * ddg.c (check_sccs): Likewise.
15924 (create_ddg_all_sccs): Likewise.
15925 * df-core.c (df_worklist_dataflow): Likewise.
15926 * dse.c (dse_step3): Likewise.
15927 * except.c (eh_region_outermost): Likewise.
15928 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15929 * gcse.c (prune_expressions): Likewise.
15930 (prune_insertions_deletions): Likewise.
15931 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
15932 * graph.c (draw_cfg_nodes_no_loops): Likewise.
15933 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
15934 * lcm.c (compute_earliest): Likewise.
15935 (compute_farthest): Likewise.
15936 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
15937 (unroll_loop_runtime_iterations): Likewise.
15938 (unroll_loop_stupid): Likewise.
15939 * lower-subreg.c (decompose_multiword_subregs): Likewise.
15940 * lra-lives.c: Likewise.
15941 * lra.c (lra): Likewise.
15942 * modulo-sched.c (schedule_reg_moves): Likewise.
15943 (optimize_sc): Likewise.
15944 (get_sched_window): Likewise.
15945 (sms_schedule_by_order): Likewise.
15946 (check_nodes_order): Likewise.
15947 (order_nodes_of_sccs): Likewise.
15948 (order_nodes_in_scc): Likewise.
15949 * recog.c (split_all_insns): Likewise.
15950 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
15951 * reload1.c (reload): Likewise.
15952 * sched-rgn.c (haifa_find_rgns): Likewise.
15953 (split_edges): Likewise.
15954 (compute_trg_info): Likewise.
15955 * sel-sched.c (init_seqno): Likewise.
15956 * store-motion.c (remove_reachable_equiv_notes): Likewise.
15957 * tree-into-ssa.c (update_ssa): Likewise.
15958 * tree-ssa-live.c (live_worklist): Likewise.
15959 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
15960 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
15962 (try_peel_loop): Likewise.
15963 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
15965 * tree-ssa-pre.c (compute_antic): Likewise.
15966 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
15967 * tree-stdarg.c (reachable_at_most_once): Likewise.
15968 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
15969 * var-tracking.c (vt_find_locations): Likewise.
15971 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15973 * sbitmap.h (auto_sbitmap): New class.
15975 2016-07-26 Alan Modra <amodra@gmail.com>
15978 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
15981 2016-07-25 David Malcolm <dmalcolm@redhat.com>
15983 * input.c (selftest::temp_source_file::temp_source_file): Fix
15984 missing "%s" in fprintf.
15986 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
15988 PR middle-end/71732
15989 * cselib.c (cselib_process_insn): Invalidate argument slots for
15992 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15994 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
15995 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
15996 vmulxh_lane_f16, vmulxh_laneq_f16): New.
15998 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16000 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16001 * config/aarch64/aarch64.md (fma, fnma): Support HF.
16002 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
16004 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16006 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16007 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
16009 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
16010 (add<mode>3): Likewise.
16011 (sub<mode>3): Likewise.
16012 (mul<mode>3): Likewise.
16013 (div<mode>3): Likewise.
16014 (*div<mode>3): Likewise.
16015 (<fmaxmin><mode>3): Extend to HF.
16016 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
16017 (fabd<mode>3): Likewise.
16018 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
16019 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
16020 (aarch64_fmulx<mode>): Likewise.
16021 (aarch64_fac<optab><mode>): Likewise.
16022 (aarch64_frecps<mode>): Likewise.
16023 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
16024 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
16025 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
16026 (VSDQ_HSDI): Support HI.
16027 (fcvt_target, FCVT_TARGET): Likewise.
16028 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
16029 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
16030 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
16031 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
16032 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
16033 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
16034 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
16035 vrsqrtsh_f16): New.
16037 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16039 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
16040 * config/aarch64/aarch64-builtins.c (hi_UP): New.
16041 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16042 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
16044 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
16045 (aarch64_cm<optab><mode>): Likewise.
16046 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
16047 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
16048 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16049 (sqrt<mode>2): Likewise.
16050 (*sqrt<mode>2): Likewise.
16051 (abs<mode>2): Likewise.
16052 (<optab><mode>hf2): New pattern for HF mode.
16053 (<optab>hihf2): Likewise.
16054 * config/aarch64/arm_neon.h: Include arm_fp16.h.
16055 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
16056 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
16058 * config/aarch64/arm_fp16.h: New file.
16059 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
16060 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
16061 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
16062 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
16063 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
16064 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
16065 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
16066 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
16067 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
16068 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
16069 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
16070 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
16073 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16075 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
16076 reduc_smin_scal_): Use VDQIF_F16.
16077 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
16078 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
16080 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
16081 * config/aarch64/iterators.md (VDQIF_F16): New.
16082 (vp): Support HF modes.
16083 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
16084 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
16086 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16088 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
16089 "*aarch64_mulx_elt_from_dup<mode>".
16090 (*aarch64_mul3_elt<mode>): Update schedule type.
16091 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
16092 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
16093 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
16094 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
16095 (f, fp): Support HF modes.
16096 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
16097 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
16098 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
16099 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
16100 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
16101 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
16103 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16105 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16106 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
16108 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
16111 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16113 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16114 * config/aarch64/aarch64-simd.md
16115 (aarch64_rsqrts<mode>): Extend to HF modes.
16116 (fabd<mode>3): Likewise.
16117 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
16118 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
16119 (aarch64_<maxmin_uns>p<mode>): Likewise.
16120 (<su><maxmin><mode>3): Likewise.
16121 (<maxmin_uns><mode>3): Likewise.
16122 (<fmaxmin><mode>3): Likewise.
16123 (aarch64_faddp<mode>): Likewise.
16124 (aarch64_fmulx<mode>): Likewise.
16125 (aarch64_frecps<mode>): Likewise.
16126 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
16127 (add<mode>3): Extend to HF modes.
16128 (sub<mode>3): Likewise.
16129 (mul<mode>3): Likewise.
16130 (div<mode>3): Likewise.
16131 (*div<mode>3): Likewise.
16132 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
16134 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
16135 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
16136 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
16137 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
16138 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
16139 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
16140 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
16141 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
16142 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
16143 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
16144 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
16145 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
16146 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
16147 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
16149 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16151 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
16152 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16153 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
16154 (neg<mode>2): Likewise.
16155 (abs<mode>2): Likewise.
16156 (<frint_pattern><mode>2): Likewise.
16157 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
16158 (<optab><VDQF:mode><fcvt_target>2): Likewise.
16159 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
16160 (ftrunc<VDQF:mode>2): Likewise.
16161 (<optab><fcvt_target><VDQF:mode>2): Likewise.
16162 (sqrt<mode>2): Likewise.
16163 (*sqrt<mode>2): Likewise.
16164 (aarch64_frecpe<mode>): Likewise.
16165 (aarch64_cm<optab><mode>): Likewise.
16166 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
16168 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
16169 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
16171 * config/aarch64/arm_neon.h (vdup_n_f16): New.
16172 (vdupq_n_f16): Likewise.
16173 (vld1_dup_f16): Use vdup_n_f16.
16174 (vld1q_dup_f16): Use vdupq_n_f16.
16175 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
16176 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
16177 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
16178 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
16179 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
16180 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
16181 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
16182 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
16183 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
16184 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
16185 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
16186 vsqrt_f16, vsqrtq_f16): New.
16188 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16190 * config/aarch64/aarch64-simd.md
16191 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
16192 (aarch64_ext<mode>): Likewise.
16193 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
16194 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
16195 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
16197 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
16199 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
16200 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
16201 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
16202 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
16203 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
16204 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
16205 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
16207 (vmov_n_f16): Reimplement using vdup_n_f16.
16208 (vmovq_n_f16): Reimplement using vdupq_n_f16..
16210 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16212 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
16213 "frame_related_p". Generate CFA annotation when it's necessary.
16214 (aarch64_expand_prologue): Use aarch64_add_constant.
16215 (aarch64_expand_epilogue): Likewise.
16216 (aarch64_output_mi_thunk): Pass "false" when calling
16217 aarch64_add_constant.
16219 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16221 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
16224 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16226 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
16227 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
16228 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
16229 (aarch64_build_constant): Delete.
16231 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
16234 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
16236 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
16237 flag_toplevel_reorder.
16239 2016-07-25 Richard Biener <rguenther@suse.de>
16241 * cgraph.c (cgraph_node::verify_node): Compare against builtin
16242 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
16243 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
16244 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
16245 (streamer_get_builtin_tree): Likewise.
16246 (streamer_write_builtin): Likewise.
16247 * lto-streamer.h (LTO_builtin_decl): Remove.
16248 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
16249 (lto_input_scc): Remove LTO_builtin_decl handling.
16250 (lto_input_tree_1): Liekwise.
16251 * lto-streamer-out.c (lto_output_tree_1): Remove special
16252 handling of builtins.
16253 (DFS::DFS): Likewise.
16254 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
16255 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
16257 (streamer_write_builtin): Remove.
16259 2016-07-25 Martin Liska <mliska@suse.cz>
16261 * lto-cgraph.c (input_symtab): Don't call get_working_sets
16262 if flag_auto_profile is set to true.
16264 2016-07-25 Martin Liska <mliska@suse.cz>
16266 PR gcov-profile/71868
16267 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
16268 have a function with multiple latches, count them all.
16270 2016-07-25 Martin Liska <mliska@suse.cz>
16272 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
16274 2016-07-25 Martin Liska <mliska@suse.cz>
16276 PR tree-optimization/71987
16277 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
16278 just for SSA_NAMEs. Fix GNU coding style.
16280 2016-07-25 Martin Liska <mliska@suse.cz>
16282 PR gcov-profile/64874
16283 * gcov-io.h: Update command about file format.
16284 * gcov-iov.c (main): Adapt the numbering scheme.
16286 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
16288 PR middle-end/66726
16289 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
16290 whose result is used in PHI.
16291 (final_range_test_p): Likewise.
16292 (maybe_optimize_range_tests): Likewise.
16294 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
16296 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16297 Reformat two multi-line strings.
16299 2016-07-22 Martin Sebor <msebor@redhat.com>
16301 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
16303 2016-07-22 Martin Sebor <msebor@redhat.com>
16306 * doc/extend.texi (Compound Literals): Correct and clarify.
16307 (Cast to Union): Same.
16309 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
16311 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16312 comments to explain why certain error messages make mention of
16313 undocumented options.
16314 (rs6000_invalid_builtin): Change error messages to replace mention
16315 of undocumented options with mention of the -mcpu=power9 option
16316 that enables those undocumented options.
16317 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
16318 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
16319 definition of this macro to correct an existing error.
16320 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
16321 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
16322 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
16323 descriptions of built-in functions so that they depend on
16324 -mcpu=power9 instead of on the corresponding undocumented flags.
16325 * doc/invoke.texi (Option Summary): Remove all mention of newly
16326 undocumented flags.
16327 (IBM RS/6000 and PowerPC Options): Likewise.
16328 * doc/md.texi (Constraints for Particuliar Machines): Remove all
16329 mention of newly undocumented flags.
16331 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
16333 * ipa-cp.c (determine_versionability): Do not create constprop clones,
16334 when target_clones attribute is set.
16336 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16338 * common.opt (funsafe-loop-optimizations): Mark ignore.
16339 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
16340 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
16342 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
16343 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
16345 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16347 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16349 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16351 (number_of_iterations_exit): Warn missed loop optimization for
16352 possible infinite loops.
16354 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
16357 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
16358 when to emit a ".machine" pseudo-op.
16360 2016-07-22 Martin Liska <mliska@suse.cz>
16362 PR gcov-profile/69028
16363 PR gcov-profile/62047
16364 * coverage.c (coverage_compute_lineno_checksum): Do not
16365 calculate checksum for fns w/o xloc.file.
16366 (coverage_compute_profile_id): Likewise.
16368 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
16370 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
16371 (avr_secondary_reload): ...and implementation.
16372 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
16373 * config/avr/avr.md (reload_in<mode>): Remove insns.
16374 (adjust_len) [lpm]: Remove insn attribute value.
16375 * config/avr/predicates.md (flash_operand): Remove insn predicate.
16377 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16379 PR middle-end/71876
16380 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
16382 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
16383 * calls.c (special_function_p): Remove the special handling of the
16384 "__builtin_" prefix.
16386 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16388 PR middle-end/71876
16389 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
16390 if STMT may be an alloca call.
16391 (gimple_alloca_call_p, alloca_call_p): Return only true for the
16392 builtin alloca call.
16393 * calls.h (gimple_maybe_alloca_call_p): New function.
16394 * tree-inline.c (inline_forbidden_p_stmt): Use
16395 gimple_maybe_alloca_call_p here.
16397 2016-07-21 David Malcolm <dmalcolm@redhat.com>
16399 * spellcheck-tree.c (best_macro_match::best_macro_match):
16400 Explictly specify the template arguments when invoking the base
16401 class constructor, to help older C++ compilers.
16403 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16406 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
16407 before builtin_decl_implicit.
16409 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16411 * optabs.c (emit_condiitonal_move): Short circuit for identical
16414 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16416 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
16417 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
16418 (noce_conversion_profitable_p): New.
16419 (noce_try_store_flag_constants): Use it.
16420 (noce_try_addcc): Likewise.
16421 (noce_try_store_flag_mask): Likewise.
16422 (noce_try_cmove): Likewise.
16423 (noce_try_cmove_arith): Likewise.
16424 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
16426 (noce_convert_multiple_sets): Move cost model to here, from...
16427 (bb_ok_for_noce_convert_multiple_sets) ...here.
16428 (noce_process_if_block): Update calls for above changes.
16429 (noce_find_if_block): Record new noce_if_info parameters.
16431 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16433 * target.def (max_noce_ifcvt_seq_cost): New.
16434 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
16435 * doc/tm.texi: Regenerate.
16436 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
16437 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
16438 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
16439 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
16440 * doc/invoke.texi: Document new params.
16442 2016-07-21 Richard Biener <rguenther@suse.de>
16444 PR tree-optimization/71947
16445 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
16446 ranges have useful limit_vr information.
16448 2016-07-21 Richard Biener <rguenther@suse.de>
16450 * function-tests.c (build_trivial_generic_function): Set
16451 BLOCK_SUPERCONTEXT of DECL_INITIAL.
16452 * omp-low.c (create_omp_child_function): Likewise.
16453 (grid_expand_target_grid_body): Likewise.
16454 * cgraphunit.c (init_lowered_empty_function): Likewise.
16455 (cgraph_node::expand_thunk): Likewise.
16456 * tree-parloops.c (create_loop_fn): Likewise.
16457 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
16459 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16461 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
16464 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
16466 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
16467 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
16468 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
16469 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
16470 values for insn attribute.
16471 * config/avr/avr.c (avr_out_insert_notbit): New function.
16472 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
16473 ADJUST_LEN_INSV_NOTBIT_0/_7.
16474 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
16476 2016-07-21 Bin Cheng <bin.cheng@arm.com>
16478 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
16479 (chrec_convert_1, chrec_convert): Ditto.
16480 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
16481 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
16482 * tree-vrp.c (adjust_range_with_scev): Ditto.
16483 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
16484 (scev_var_range_cant_overflow): New function.
16485 (scev_probably_wraps_p): New parameter. Call above function.
16486 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
16488 2016-07-21 Bin Cheng <bin.cheng@arm.com>
16490 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
16491 by removing computation of may_be_zero.
16493 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16495 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
16497 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
16499 Improving concepts performance and diagnostics.
16500 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
16501 for constraint satisfaction and subsumption.
16502 * timevar.h (auto_timevar): New constructor that matches the push/pop
16503 pattern of usage in pt.c.
16505 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
16507 * hwint.h (HOST_WIDE_INT_0): New define.
16508 (HOST_WIDE_INT_0U): Ditto.
16509 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
16510 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
16511 * simplify-rtx.c: Ditto.
16512 * tree-object-size.c: Ditto.
16514 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16516 * config/s390/s390.c (s390_encode_section_info): Remove mode size
16519 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
16521 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
16522 * combine.c: Use HOST_WIDE_INT_M1U instead of
16523 ~(unsigned HOST_WIDE_INT) 0.
16524 * double-int.h: Ditto.
16526 * dwarf2asm.c:Ditto.
16528 * genmodes.c: Ditto.
16530 * read-rtl.c: Ditto.
16531 * tree-ssa-loop-ivopts.c: Ditto.
16532 * tree-ssa-loop-prefetch.c: Ditto.
16533 * tree-vect-generic.c: Ditto.
16534 * tree-vect-patterns.c: Ditto.
16537 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16539 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
16540 constant addresses outside [0,0xc0] into a register.
16541 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
16542 cases where the base address register is unused after.
16543 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
16544 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
16545 (avr_out_store_psi_reg_disp_tiny): Same.
16547 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16549 Implement attribute progmem on reduced Tiny cores by adding
16550 flash offset 0x4000 to respective symbols.
16553 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
16554 documentation how it works on reduced Tiny cores.
16555 (AVR Named Address Spaces): No support for reduced Tiny.
16556 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
16557 (avr_address_tiny_pm_p): New static function.
16558 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
16559 if the address is in progmem.
16560 (avr_assemble_integer): Same.
16561 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
16562 for symbol_ref in progmem.
16563 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
16564 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
16565 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
16567 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
16569 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
16570 * configure: Regenerate.
16571 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
16572 (USE_THIN_ARCHIVES): New variable.
16573 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
16574 this archive as a thin archive.
16576 2016-07-20 David Malcolm <dmalcolm@redhat.com>
16578 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
16579 same location as last time, don't skip if we have fix-it hints.
16580 Clarify the skipping logic by converting it from one "if" clause
16581 to repeated "if" clauses.
16582 * spellcheck-tree.c: Include "cpplib.h".
16583 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
16584 (best_macro_match::best_macro_match): New constructor.
16585 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
16586 Move here from c/c-decl.c.
16587 (class best_macro_match): Move here from c/c-decl.c, converting
16588 from a typedef to a subclass, gaining a ctor.
16590 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16592 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
16593 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
16595 (avr_addr_space_diagnose_usage): ...and implementation.
16596 (avr_addr_space_supported_p): New function.
16597 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
16598 report bad address space usage if that space is supported.
16599 (avr_insert_attributes): Same. No more complain about unsupported
16601 * config/avr/avr-c.c (tm_p.h): Include it.
16602 (avr_cpu_cpp_builtins): Only define addr-space related built-in
16603 macro if avr_addr_space_supported_p.
16605 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
16607 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
16608 flag_toplevel_reorder.
16610 2016-07-20 David Malcolm <dmalcolm@redhat.com>
16612 * gcc-rich-location.c
16613 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
16615 * gcc-rich-location.h
16616 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
16618 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16620 * target.def (addr_space): Add new diagnose_usage to hook vector.
16621 * targhooks.c (default_addr_space_diagnose_usage): Add default
16622 implementation and...
16623 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
16624 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
16625 is some address space, call targetm.addr_space.diagnose_usage.
16626 * doc/tm.texi.in (Named Address Spaces): Add anchor for
16627 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
16628 * doc/tm.texi: Regenerate.
16630 2016-07-20 Martin Liska <mliska@suse.cz>
16632 PR middle-end/71898
16633 * graphite-isl-ast-to-gimple.c (later_of_the_two):
16634 Properly handly PHI stmts.
16636 2016-07-20 Bin Cheng <bin.cheng@arm.com>
16638 PR tree-optimization/71503
16639 PR tree-optimization/71683
16640 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
16643 2016-07-20 Martin Liska <mliska@suse.cz>
16645 * doc/invoke.texi (-fipa-ra): Document when the option is
16646 disabled. Fix a typo.
16648 2016-07-20 Martin Liska <mliska@suse.cz>
16650 * Makefile.in: Include fibonacci_heap.c
16651 * fibonacci_heap.c: New file.
16652 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
16653 (fibonacci_heap::union_with): Fix deletion of the second heap.
16654 * selftest-run-tests.c (selftest::run_tests): Incorporate
16655 fibonacci heap tests.
16656 * selftest.h: Declare fibonacci_heap_c_tests.
16658 2016-07-20 Martin Liska <mliska@suse.cz>
16660 * selftest-run-tests.c (selftest::run_tests): New function.
16661 * selftest.h (sreal_c_tests): Declare.
16662 * sreal.c (sreal_verify_basics): New function.
16663 (verify_aritmetics): Likewise.
16664 (sreal_verify_arithmetics): Likewise.
16665 (verify_shifting): Likewise.
16666 (sreal_verify_shifting): Likewise.
16667 (void sreal_c_tests): Likewise.
16669 2016-07-19 Jakub Jelinek <jakub@redhat.com>
16671 PR rtl-optimization/71916
16672 * cfgrtl.c (contains_no_active_insn_p): Return false also for
16673 bb which have a single succ fake edge.
16675 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
16678 * dwarf2out.c (gen_subprogram_die): Only call
16679 gen_unspecified_parameters_die while dumping early dwarf.
16681 2016-07-19 Jakub Jelinek <jakub@redhat.com>
16683 PR middle-end/71874
16684 * gimple-fold.c (fold_builtin_memory_op): Use
16685 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
16687 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
16689 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
16690 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
16691 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
16692 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
16693 * combine.c: Ditto.
16696 * double-int.c: Ditto.
16698 * dwarf2out.c: Ditto.
16701 * fold-const.c: Ditto.
16702 * function.c: Ditto.
16704 * genmodes.c: Ditto.
16708 * loop-doloop.c: Ditto.
16709 * loop-invariant.c: Ditto.
16710 * loop-iv.c: Ditto.
16715 * rtlanal.c: Ditto.
16716 * simplify-rtx.c: Ditto.
16717 * stor-layout.c: Ditto.
16719 * tree-ssa-loop-ivopts.c: Ditto.
16720 * tree-vect-generic.c: Ditto.
16721 * tree-vect-patterns.c: Ditto.
16726 * wide-int-print.cc: Ditto.
16727 * wide-int.cc: Ditto.
16728 * wide-int.h: Ditto.
16730 2016-07-19 David Malcolm <dmalcolm@redhat.com>
16732 * selftest.c (selftest::assert_streq): Handle NULL values of
16733 val_actual and val_expected.
16735 2016-07-19 Martin Jambor <mjambor@suse.cz>
16738 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
16739 rather than cgraph_create_node to get a call graph node.
16741 2016-07-19 Richard Biener <rguenther@suse.de>
16743 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
16744 handle all tcc_constant bases and valueize SSA names.
16745 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
16746 tcc_constant bases.
16748 2016-07-19 David Malcolm <dmalcolm@redhat.com>
16750 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
16751 the flags of the exit block and bb2, not just the entry block.
16753 2016-07-19 Richard Biener <rguenther@suse.de>
16755 PR tree-optimization/71901
16756 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
16757 align member, group stuff with the bitfield.
16758 (vn_ref_op_align_unit): New inline.
16759 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
16760 record element alignment and operand 3 unchanged.
16761 (ao_ref_init_from_vn_reference): Adjust.
16762 (valueize_refs_1): Likewise.
16763 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16765 2016-07-19 Richard Biener <rguenther@suse.de>
16767 PR tree-optimization/71908
16768 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
16769 symbolic constants in a more reliable way.
16771 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
16773 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
16775 (vect_update_inits_of_drs): Likewise.
16776 (vect_create_cond_for_alias_checks): Likewise.
16777 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
16779 2016-07-19 Richard Biener <rguenther@suse.de>
16782 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
16783 with an abstract origin that is not an inlined function outer
16784 scope add a self-reference as abstract origin.
16785 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
16787 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16790 * config/rs6000/rs6000.c (rs6000_function_value): Fix
16791 unintentional System V.4 structure return breakage for structures
16792 with a single floating point element.
16794 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
16796 PR tree-optimization/71734
16797 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
16798 contains REF, use it to check safelen, assume that safelen value
16799 must be greater 1, fix style.
16800 (ref_indep_loop_p_2): Add REF_LOOP argument.
16801 (ref_indep_loop_p): Pass LOOP as additional argument to
16802 ref_indep_loop_p_2.
16804 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
16806 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
16807 allocation in the prologue.
16808 * explow.c (get_dynamic_stack_base): New function to return an address
16809 expression for the dynamic stack base.
16810 (get_dynamic_stack_size): New function to do the required dynamic stack
16811 space size calculations.
16812 (allocate_dynamic_stack_space): Use new functions.
16813 (align_dynamic_address): Move some code from
16814 allocate_dynamic_stack_space to new function.
16815 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
16817 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16819 * config/s390/s390.c (s390_encode_section_info): Always set
16820 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
16823 2016-07-18 Richard Biener <rguenther@suse.de>
16825 PR tree-optimization/71893
16826 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
16827 for sizetype cast added by array_ref_element_size.
16828 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16830 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
16832 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
16833 register parameters. Remove code to initialize argument pointer
16834 on TARGET_64BIT. Optimize call to _mcount when it can be reached
16835 using a pc-relative branch. Cleanup conditional code.
16836 * config/pa/pa.md (call_mcount): New expander.
16837 (call_mcount_nonpic): New insn.
16838 (call_mcount_pic): New insn and split.
16839 (call_mcount_pic_post_reload): New insn.
16840 (call_mcount_64bit): New insn and split.
16841 (call_mcount_64bit_post_reload): New insn.
16843 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
16845 * config/avr/predicates.md (const_m255_to_m1_operand): New.
16846 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
16847 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
16848 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
16849 (*usum_widenqihi3, *udiff_widenqihi3)
16850 (*addhi3_zero_extend.const): New combiner insns.
16851 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
16852 just 1 bit is affected.
16853 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
16854 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
16856 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
16858 * omp-low.c (lower_omp_target): Mark data clauses with
16859 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
16860 zero-length subarrays.
16862 2016-07-15 Richard Biener <rguenther@suse.de>
16864 PR tree-optimization/71881
16865 * tree-loop-distribution.c (destroy_loop): Remove blocks in
16866 reverse DOM order to make debug temp generation happy.
16868 2016-07-15 Richard Biener <rguenther@suse.de>
16870 PR tree-optimization/71887
16871 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
16872 verify it is not zero for division / modulo handling.
16873 (value_replacement): Adjust.
16875 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
16876 Julian Brown <julian@codesourcery.com>
16878 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
16879 * config/aarch64/aarch64-cost-tables.h
16880 (vulcan_extra_costs): New variable.
16881 * config/aarch64/aarch64.c
16882 (vulcan_addrcost_table): Likewise.
16883 (vulcan_regmove_cost): Likewise.
16884 (vulcan_vector_cost): Likewise.
16885 (vulcan_branch_cost): Likewise.
16886 (vulcan_tunings): Likewise.
16888 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
16890 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
16891 (output_in_order): Loop over undefined variables too. Output them
16892 via assemble_undefined_decl. Skip variables that correspond to hard
16893 registers or have value-exprs.
16894 * varpool.c (symbol_table::output_variables): Handle undefined
16895 variables together with defined ones.
16897 2016-07-15 Richard Biener <rguenther@suse.de>
16899 * tree-ssa-pre.c (get_representative_for): Make sure to return
16900 the value number of SSA names.
16901 (phi_translate_1): get_representative_for cannot return NULL.
16902 (do_pre_regular_insertion): Remove redundant call to
16903 fully_constant_expression.
16904 (do_pre_partial_partial_insertion): Likewise.
16906 2016-07-15 Bin Cheng <bin.cheng@arm.com>
16908 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
16909 (derive_simple_iv_with_niters): New function.
16910 (simple_iv): Rewrite using simple_iv_with_niters.
16911 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
16912 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16914 (number_of_iterations_exit): Rewrite using above function.
16915 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16918 2016-07-15 Richard Biener <rguenther@suse.de>
16920 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
16921 vec_construct cost.
16923 2016-07-14 Jakub Jelinek <jakub@redhat.com>
16925 PR tree-optimization/71872
16926 * tree-data-ref.c (get_references_in_stmt): Ignore references
16927 with is_gimple_constant get_base_address.
16929 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
16931 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
16932 (TARGET_HAVE_LDACQD): New macro.
16933 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
16934 than TARGET_HAVE_LDACQ.
16935 (arm_load_acquire_exclusivedi): Likewise.
16936 (arm_store_release_exclusivedi): Likewise.
16938 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
16940 PR rtl-optimization/71878
16941 * lra-constraints.c (match_reload): Pass information about other
16942 output operands. Create new unique register value if matching input
16943 operand shares same register value as output operand being considered.
16944 (curr_insn_transform): Record output operands already processed.
16946 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16949 PR tree-optimization/70923
16950 * tree-vect-patterns.c: Include mult-synthesis.h.
16951 (target_supports_mult_synth_alg): New function.
16952 (synth_lshift_by_additions): Likewise.
16953 (apply_binop_and_append_stmt): Likewise.
16954 (vect_synth_mult_by_constant): Likewise.
16955 (target_has_vecop_for_code): Likewise.
16956 (vect_recog_mult_pattern): Use above functions to synthesize vector
16957 multiplication by integer constants.
16959 2016-07-14 Alan Modra <amodra@gmail.com>
16961 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
16962 gpr alternatives. Correct '*' placement on Y,r alternative.
16963 Add '*' on operand 1 of r,r alternative.
16965 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16967 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
16968 * expmed.h: ... Here.
16970 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
16972 * gimple.h (stmt_can_terminate_bb_p): New function.
16973 * tree-cfg.c (need_fake_edge_p): Rename to ...
16974 (stmt_can_terminate_bb_p): ... this; return true if stmt can
16975 throw external; handle const and pure calls.
16976 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
16978 2016-07-14 Richard Biener <rguenther@suse.de>
16980 PR tree-optimization/71866
16981 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
16982 (do_hoist_insertion): Avoid endless recursion when we
16983 didn't insert anything because we managed to simplify
16984 things down to a constant or SSA name.
16985 (fully_constant_expression): Re-write in terms of ...
16986 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
16987 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
16988 vn_nary_build_or_lookup_1.
16989 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
16990 (vn_nary_build_or_lookup): ... this which now wraps it.
16992 2016-07-14 Alan Modra <amodra@gmail.com>
16995 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
16996 with p9_vector override before power9-dform override.
16998 2016-07-13 Andi Kleen <ak@linux.intel.com>
17000 * value-prof.c (gimple_value_profile_transformations): Don't run
17001 when auto_profile is on.
17003 2016-07-13 Andi Kleen <ak@linux.intel.com>
17005 * auto-profile.c (update_inlined_ind_target,
17006 afdo_indirect_call): Print information to dump file.
17008 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
17010 * genrecog.c (special_predicate_operand_p): New function.
17011 (predicate_name): Move function.
17012 (validate_pattern): Don't warn about missing mode for all
17013 define_special_predicate predicates.
17015 2016-07-13 Bin Cheng <bin.cheng@arm.com>
17017 * tree-vect-data-refs.c (vect_no_alias_p): New function.
17018 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
17019 resolve alias checks which are known at compilation time.
17020 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
17021 alias checks are resolved. Move dump info for too many runtime
17022 alias checks to here...
17023 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
17025 2016-07-13 Richard Biener <rguenther@suse.de>
17027 PR tree-optimization/24574
17028 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
17029 position and add shift, rotate, divison and modulo support
17031 (value_replacement): Pass in argument position to absorbing_element_p.
17033 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
17036 * ipa-inline-transform.c (inline_call): Support
17037 instrumented thunks.
17039 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17041 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
17042 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
17044 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
17045 Baseline. Make initial alternative TARGET_32BIT only.
17046 (udivsi3): Likewise.
17047 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
17048 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
17051 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17053 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
17054 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
17055 availability with TARGET_HAVE_MOVT.
17056 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
17057 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
17058 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
17060 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
17061 extra instruction if MOVW is available. Use a cost variable
17062 incremented by COSTS_N_INSNS (1) when the condition match rather than
17063 returning an arithmetic expression based on COSTS_N_INSNS. Make
17064 constant with bottom half word zero cost 2 instruction if MOVW is
17066 * config/arm/arm.md (define_attr "arch"): Add v8mb.
17067 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
17068 target is ARMv8-M Baseline.
17069 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
17070 (arm_movtas_ze): Likewise.
17071 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
17072 alternative for constants satisfying j constraint.
17073 (thumb1_movsi_insn): Likewise.
17074 (movsi splitter for K alternative): Tighten condition to not trigger
17075 if movt is available and j constraint is satisfied.
17076 (Pe immediate splitter): Likewise.
17077 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
17078 constant fitting in an halfword to use MOVW.
17079 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
17082 2016-07-13 Richard Biener <rguenther@suse.de>
17084 PR middle-end/71104
17085 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
17086 gimplifying the LHS. Make sure to gimplify a returning twice
17087 call LHS without using SSA names.
17089 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17091 * tree-data-ref.c (find_data_references_in_stmt): Remove
17092 unnecessary call to vec::release.
17093 (graphite_find_data_references_in_stmt): Likewise.
17094 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
17095 * tree-vect-stmts.c (vectorizable_condition): Likewise.
17097 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17099 * cfgexpand.c (expand_used_vars): Make the type of a local
17101 * genmatch.c (lower_for): Likewise.
17102 * haifa-sched.c (haifa_sched_init): Likewise.
17103 (add_to_speculative_block): Likewise.
17104 (create_check_block_twin): Likewise.
17105 * predict.c (handle_missing_profiles): Likewise.
17106 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
17107 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
17108 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
17110 (maybe_lower_iteration_bound): Likewise.
17111 * tree-ssa-sccvn.c (DFS): Likewise.
17112 * tree-stdarg.c (reachable_at_most_once): Likewise.
17113 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
17114 (vectorizable_store): Likewise.
17116 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17118 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
17119 (sccvn_dom_walker): make cond_stack an auto_vec.
17121 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17123 * ree.c (struct ext_state): Make type of members auto_vec.
17124 (find_and_remove_re): Adjust.
17126 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17128 * cfgexpand.c (struct stack_vars_data): Make type of fields
17130 (expand_used_vars): Adjust.
17132 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17134 * ipa.c (record_cdtor_fn): Adjust.
17135 (build_cdtor_fns): Likewise.
17136 (ipa_cdtor_merge): Make static_ctors and static_dtors local
17139 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17141 * genextract.c (struct accum_extract): Add constructor and make
17143 (gen_insn): Adjust.
17145 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17147 * tree.c (struct free_lang_data_d): Add constructor and change
17148 types of members to ones that automatically manage resources.
17149 (fld_worklist_push): Adjust.
17150 (find_decls_types): Likewise.
17151 (find_decls_types_in_eh_region): Likewise.
17152 (free_lang_data_in_cgraph): Stop manually creating and
17153 destroying members of free_lang_data_d.
17155 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
17157 PR rtl-optimization/68961
17158 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
17159 peephole variant. Use sse_reg_operand predicates.
17161 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
17163 * config/i386/predicates.md (x86_64_immediate_operand)
17164 <case CONST_INT>: Remove unneeded truncation to DImode.
17165 <case CONST>: Ditto.
17166 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
17168 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17171 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
17172 The xxperm and xxpermr instructions require that the 2nd input
17173 operand overlap with the output operand, and not the 1st.
17174 (altivec_vperm_v8hiv16qi): Likewise.
17175 (altivec_vperm_<mode>_uns_internal): Likewise.
17176 (altivec_vpermr_<mode>_internal): Likewise.
17177 (vperm_v8hiv4si): Likewise.
17178 (vperm_v16qiv8hi): Likewise.
17180 2016-07-12 Nathan Sidwell <nathan@acm.org>
17182 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
17183 when -mno-pic-data-is-text-relative is in effect, by default.
17184 * doc/invoke.texi (mpic-data-is-text-relative): Document new
17185 behavior and clarify.
17187 2016-07-12 Martin Liska <mliska@suse.cz>
17189 * params.def: Add avg-loop niter.
17190 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
17191 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
17192 * doc/invoke.texi: Document the new parameter.
17194 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17196 PR middle-end/71700
17197 * expr.c (store_constructor): Mask sign-extended bits when widening
17198 sub-word constructor element at the start of a word.
17200 2016-07-12 Martin Liska <mliska@suse.cz>
17202 * Makefile.in: Append rule for params-options.h.
17203 * params-options.h: New file.
17205 2016-07-12 Martin Liska <mliska@suse.cz>
17207 * ira-build.c (mark_loops_for_removal): Properly iterate
17210 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
17211 Richard Biener <rguenther@suse.de>
17213 PR tree-optimization/23286
17214 PR tree-optimization/70159
17215 * doc/invoke.texi: Document -fcode-hoisting.
17216 * common.opt (fcode-hoisting): New flag.
17217 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
17218 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
17219 (do_regular_insertion): Rename to ...
17220 (do_pre_regular_insertion): ... this and amend general comments
17221 on insertion strathegy.
17222 (do_partial_partial_insertion): Rename to ...
17223 (do_pre_partial_partial_insertion): ... this.
17224 (do_hoist_insertion): New function.
17225 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
17226 and call do_hoist_insertion properly.
17228 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
17229 (pass_pre::execute): Register hoist_insert stats.
17231 2016-07-12 Jakub Jelinek <jakub@redhat.com>
17233 PR middle-end/71716
17234 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
17235 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
17236 is different from mode's bitsize. Small cleanup.
17238 2016-07-12 Richard Biener <rguenther@suse.de>
17240 PR rtl-optimization/68961
17241 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
17242 to simplify to a non-constant.
17244 2016-07-11 Jakub Jelinek <jakub@redhat.com>
17246 PR middle-end/71758
17247 * omp-low.c (expand_omp_target): Gimplify device.
17249 PR tree-optimization/71823
17250 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
17251 to get vec_oprnds2 from op2.
17253 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
17255 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
17256 Hoist common subexpressions.
17257 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
17259 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
17262 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
17263 prevent generation of 'stxsiwx' on pre Power8 hardware.
17265 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17267 * input.c: Include cpplib.h.
17268 (selftest::temp_source_file): New class.
17269 (selftest::temp_source_file::temp_source_file): New ctor.
17270 (selftest::temp_source_file::~temp_source_file): New dtor.
17271 (selftest::should_have_column_data_p): New function.
17272 (selftest::test_should_have_column_data_p): New function.
17273 (selftest::temp_line_table): New class.
17274 (selftest::temp_line_table::temp_line_table): New ctor.
17275 (selftest::temp_line_table::~temp_line_table): New dtor.
17276 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
17277 it to create a temp_line_table.
17278 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
17279 locations that are known to have column data.
17280 (selftest::line_table_case): New struct.
17281 (selftest::test_reading_source_line): Move tempfile handling
17282 to class temp_source_file.
17283 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
17284 (selftest::assert_token_loc_eq): New function.
17285 (ASSERT_TOKEN_LOC_EQ): New macro.
17286 (selftest::test_lexer): New function.
17287 (selftest::boundary_locations): New array.
17288 (selftest::input_c_tests): Call test_should_have_column_data_p.
17289 Loop over a test matrix of interesting values of location and
17290 default_range_bits, calling test_lexer on each case in the matrix.
17291 Move call to test_accessing_ordinary_linemaps into the matrix.
17292 * selftest.h (ASSERT_EQ): Reimplement in terms of...
17293 (ASSERT_EQ_AT): New macro.
17295 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
17298 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
17299 Don't convert TImode in debug insn.
17301 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
17303 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
17304 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
17305 (tree_type_common::lang_flag_7): New.
17306 (tree_type_common::spare): Reduce size.
17307 * tree.h (TYPE_ALIGN_OK): Remove.
17308 (TYPE_LANG_FLAG_7): New.
17309 (get_inner_reference): Adjust header.
17310 * print-tree.c (print_node): Adjust.
17311 * expr.c (get_inner_reference): Remove parameter keep_aligning.
17312 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
17313 calls to get_inner_reference.
17314 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
17315 handling of TYPE_ALIGN_OK.
17316 * builtins.c (get_object_alignment_2): Adjust call to
17317 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
17318 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
17320 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
17321 * cfgexpand.c (expand_debug_expr): Likewise.
17322 * dbxout.c (dbxout_expand_expr): Likewise.
17323 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
17324 loc_list_from_tree, fortran_common): Likewise.
17325 * fold-const.c (optimize_bit_field_compare,
17326 decode_field_reference, fold_unary_loc, fold_comparison,
17327 split_address_to_core_and_offset): Likewise.
17328 * gimple-laddress.c (execute): Likewise.
17329 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
17330 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
17331 * hsa-gen.c (gen_hsa_addr): Likewise.
17332 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
17333 * tsan.c (instrument_expr): Likewise.
17334 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
17335 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
17336 * tree-affine.c (tree_to_aff_combination,
17337 get_inner_reference_aff): Adjust calls to get_inner_reference.
17338 * tree-data-ref.c (split_constant_offset_1,
17339 dr_analyze_innermost): Likewise.
17340 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
17341 * tree-sra.c (ipa_sra_check_caller): Likewise.
17342 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
17343 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
17344 bswap_replace): Likewise.
17345 * tree-vect-data-refs.c (vect_check_gather,
17346 vect_analyze_data_refs): Likewise.
17347 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
17348 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
17351 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17353 * Makefile.in (selftest-valgrind): New phony target.
17354 * function-tests.c (selftest::build_cfg): Delete pass instances
17355 created by the test.
17356 (selftest::convert_to_ssa): Likewise.
17357 (selftest::test_expansion_to_rtl): Likewise.
17358 * tree-cfg.c (selftest::test_linear_chain): Release dominator
17360 (selftest::test_diamond): Likewise.
17362 2016-07-11 Richard Biener <rguenther@suse.de>
17364 PR tree-optimization/71816
17365 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
17366 than replacing all of its operands.
17368 2016-07-11 Alan Modra <amodra@gmail.com>
17370 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
17371 (ctr<mode>): Add unspec.
17372 (ctr<mode>_internal*): Likewise.
17374 2016-07-08 James Bowman <james.bowman@ftdichip.com>
17376 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
17377 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
17379 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
17381 PR rtl-optimization/71621
17382 * lra-constraints.c (process_alt_operands): Check combination of
17383 reg class and mode.
17385 2016-07-08 Jason Merrill <jason@redhat.com>
17386 Richard Biener <rguenther@suse.de>
17388 P0145: Refining Expression Order for C++.
17389 * gimplify.c (initial_rhs_predicate_for): New.
17390 (gimplfy_modify_expr): Gimplify RHS before LHS.
17392 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17395 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17396 Allow standard error handling to take over when a wrong number
17397 of arguments is presented to __builtin_vec_ld () or
17398 __builtin_vec_st ().
17400 2016-07-08 Jiong Wang <jiong.wang@arm.com>
17402 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
17407 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
17408 __builtin_aarch64_fmaxv2sf.
17409 (vmaxnmq_f32): Likewise.
17410 (vmaxnmq_f64): Likewise.
17411 (vminnm_f32): Likewise.
17412 (vminnmq_f32): Likewise.
17413 (vminnmq_f64): Likewise.
17415 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
17418 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
17419 enable -mfloat128-hardware by default.
17420 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
17421 that IEEE 128-bit hardware support needs.
17422 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17423 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
17424 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
17425 floating point requires.
17426 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
17427 -mfloat128 and -mfloat128-hardware changes.
17429 2016-07-08 Alan Hayward <alan.hayward@arm.com>
17431 PR tree-optimization/71667
17432 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
17434 2016-07-08 Martin Liska <mliska@suse.cz>
17436 PR middle-end/71606
17437 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
17438 folding produces SAVE_EXPRs, thus return false for the type.
17440 2016-07-07 Martin Liska <mliska@suse.cz>
17442 * file-find.c (remove_prefix): New function.
17443 * file-find.h (remove_prefix): Declare the function.
17444 * gcc-ar.c (main): Skip a folder of the wrapper if
17445 a wrapped binary would point to the same file.
17447 2016-07-07 Jan Hubicka <jh@suse.cz>
17449 * tree-scalar-evolution.c (iv_can_overflow_p): export.
17450 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
17451 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
17453 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
17456 * ipa-inline-analysis.c (compute_inline_parameters): Set
17457 local.can_change_signature to false for intrumentation
17460 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17462 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
17463 with TARGET_HAVE_MOVT.
17464 (TARGET_HAVE_MOVT): Define.
17465 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
17466 availability with TARGET_HAVE_MOVT.
17467 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
17469 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
17471 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
17472 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
17473 * config/arm/constraints.md (define_constraint "j"): Use
17474 TARGET_HAVE_MOVT to check MOVT availability.
17476 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17478 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
17480 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17482 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
17483 (armv8-m.main): Likewise.
17484 (armv8-m.main+dsp): Likewise.
17485 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
17486 (FL_FOR_ARCH8M_MAIN): Likewise.
17487 * config/arm/arm-tables.opt: Regenerate.
17488 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
17489 armv8-m.main+dsp to BE8_LINK_SPEC.
17490 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
17491 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
17492 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
17493 Baseline and Mainline.
17494 (arm_option_override_internal): Also disable arm_restrict_it when
17495 !arm_arch_notm. Update comment for -munaligned-access to also cover
17497 (arm_file_start): Increase buffer size for printing architecture name.
17498 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
17499 and armv8-m.main+dsp.
17500 (mno-unaligned-access): Clarify that this is disabled by default for
17501 ARMv8-M Baseline architectures as well.
17503 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17505 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
17506 decide whether to prevent some libgcc routines being included for some
17507 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
17508 link between this condition and the one in
17509 libgcc/config/arm/lib1func.S.
17511 2016-07-07 Richard Biener <rguenther@suse.de>
17513 * tree-ssa-pre.c: Include alias.h.
17514 (compute_avail): If we have multiple VN_REFERENCEs with the
17515 same hashtable entry adjust that to make it a valid replacement
17516 for all of them with respect to alignment and aliasing
17517 when doing insertion.
17518 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
17519 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
17521 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
17525 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
17526 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
17529 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17531 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
17532 (adjust_mems): Adjust.
17533 (adjust_insn): Likewise.
17534 (prepare_call_arguments): Likewise.
17536 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17538 * gcse.c (struct ls_expr): Make stores field a vector.
17539 (ldst_entry): Adjust.
17540 (free_ldst_entry): Likewise.
17541 (print_ldst_list): Likewise.
17542 (compute_ld_motion_mems): Likewise.
17543 (update_ld_motion_stores): Likewise.
17545 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17547 * gcse.c (struct ls_expr): Remove loads field.
17548 (ldst_entry): Adjust.
17549 (free_ldst_entry): Likewise.
17550 (print_ldst_list): Likewise.
17551 (compute_ld_motion_mems): Likewise.
17553 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17555 * store-motion.c (struct st_expr): Make antic_stores a vector.
17556 (st_expr_entry): Adjust.
17557 (free_st_expr_entry): Likewise.
17558 (print_store_motion_mems): Likewise.
17559 (find_moveable_store): Likewise.
17560 (compute_store_table): Likewise.
17561 (remove_reachable_equiv_notes): Likewise.
17562 (replace_store_insn): Likewise.
17563 (build_store_vectors): Likewise.
17565 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17567 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
17568 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
17570 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
17572 PR tree-optimization/71518
17573 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
17574 misalign also for outer loops with negative step.
17576 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
17578 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
17579 (cortex_a53_shift): Add mov_shift.
17580 (cortex_a53_shift_reg): Add new reservation for register shifts.
17581 (cortex_a53_alu): Remove bfm.
17582 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
17583 (cortex_a53_alu_extr): Add new reservation for EXTR.
17584 (bypasses): Improve bypass modelling.
17586 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17589 * config/avr/avr.c (avr_asm_select_section): Strip off
17590 SECTION_DECLARED from flags when calling get_section.
17592 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17594 * tree-vectorizer.h (vect_memory_access_type): Add
17595 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
17596 * tree-vect-stmts.c (compare_step_with_zero): New function.
17597 (perm_mask_for_reverse): Move further up file.
17598 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
17600 (get_negative_load_store_type): New function.
17601 (get_load_store_type): Call it. Add an ncopies argument.
17602 (vectorizable_mask_load_store): Update call accordingly and
17603 remove tests for negative steps.
17604 (vectorizable_store, vectorizable_load): Likewise. Handle new
17605 memory_access_types.
17607 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17609 * tree-vectorizer.h (vect_memory_access_type): New enum.
17610 (_stmt_vec_info): Add a memory_access_type field.
17611 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
17612 (vect_model_store_cost): Take an access type instead of a boolean.
17613 (vect_model_load_cost): Likewise.
17614 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
17615 vect_model_store_cost and vect_model_load_cost.
17616 * tree-vect-stmts.c (vec_load_store_type): New enum.
17617 (vect_model_store_cost): Take an access type instead of a
17618 store_lanes_p boolean. Simplify tests.
17619 (vect_model_load_cost): Likewise, but for load_lanes_p.
17620 (get_group_load_store_type, get_load_store_type): New functions.
17621 (vectorizable_store): Use get_load_store_type. Record the access
17622 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
17623 (vectorizable_load): Likewise.
17624 (vectorizable_mask_load_store): Likewise. Replace is_store
17625 variable with vls_type.
17627 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17629 * tree-vectorizer.h (vect_grouped_load_supported): Add a
17630 single_element_p parameter.
17631 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
17632 Check the PR65518 case here rather than in vectorizable_load.
17633 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
17634 * tree-vect-stmts.c (vectorizable_load): Likewise.
17636 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17638 * tree-vectorizer.h (gather_scatter_info): New structure.
17639 (vect_check_gather_scatter): Return a bool rather than a decl.
17640 Replace return-by-pointer arguments with a single
17641 gather_scatter_info *.
17642 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
17643 (vect_analyze_data_refs): Update call accordingly.
17644 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
17645 (vectorizable_mask_load_store): Likewise. Also record the
17646 offset dt and vectype in the gather_scatter_info.
17647 (vectorizable_store): Likewise.
17648 (vectorizable_load): Likewise.
17650 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17652 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
17653 strided groups, use the cost of N scalar accesses instead
17654 of ncopies vector accesses.
17655 (vect_model_load_cost): Likewise.
17657 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17659 * tree-vect-stmts.c (vect_cost_group_size): Delete.
17660 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
17661 variable to indicate when once-per-group costs are being used.
17662 (vect_model_load_cost): Likewise. Fix comment and misindented code.
17664 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17666 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
17667 peeling-for-gaps condition.
17669 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17671 * config/s390/s390.c (s390_expand_vec_init): Force initializer
17672 element to register if it doesn't match general_operand.
17674 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
17675 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17677 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
17679 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
17680 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
17681 (SIGNBIT): New mode iterator.
17682 (Fsignbit): New mode attribute.
17683 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
17684 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
17685 when direct moves are available.
17686 (signbit<mode>2_dm): New define_insn_and_split).
17687 (signbit<mode>2_dm2): New define_insn.
17689 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17691 PR rtl-optimization/71594
17692 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
17693 into subregs of appropriate mode before trying to emit a conditional
17696 2016-07-05 Jan Hubicka <jh@suse.cz>
17698 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
17699 (simple_iv): Use it.
17701 2016-07-05 Jan Hubicka <jh@suse.cz>
17703 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
17705 2016-07-05 Jiong Wang <jiong.wang@arm.com>
17707 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
17710 2016-07-05 Jan Hubicka <jh@suse.cz>
17712 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
17715 2016-07-05 Richard Biener <rguenther@suse.de>
17717 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
17718 Handle empty else block.
17719 (is_feasible_trace): Likewise.
17720 (split_paths): Likewise.
17722 2016-07-05 Richard Biener <rguenther@suse.de>
17724 * tree-loop-distribution.c (distribute_loop): Fix issue with
17725 the cost model loop.
17727 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
17729 * config/arm/neon-testgen.ml: Delete.
17730 * config/arm/neon.ml: Delete.
17732 2016-07-04 Jakub Jelinek <jakub@redhat.com>
17735 * tree.c (attribute_value_equal): Use get_attribute_name instead of
17736 directly using TREE_PURPOSE.
17738 2016-07-04 Jiong Wang <jiong.wang@arm.com>
17740 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
17741 * config/aarch64/aarch64_neon.h: Likewise.
17742 * config/aarch64/arm_neon.h: Likewise.
17743 * config/aarch64/atomics.md: Likewise.
17744 * config/aarch64/aarch64-simd-builtins.def: Likewise.
17745 * doc/invoke.texi: Likewise.
17747 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
17749 * config/s390/s390.md: Add "z13" cpu_facility.
17750 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
17751 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
17752 condition" type instructions.
17754 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
17755 Jeff Law <law@redhat.com>
17757 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
17758 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
17760 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
17762 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
17763 permutation for TARGET_AVX512F.
17764 (ix86_expand_vec_one_operand_perm_avx512): New function.
17765 (expand_vec_perm_1): Invoke introduced function.
17766 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
17767 it may be not valid after vectorization.
17769 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17772 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
17773 typo in comment. Only force to memory if it is a weak
17774 external reference.
17776 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
17777 Jiong Wang <jiong.wang@arm.com>
17779 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
17780 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
17781 (AARCH64_FL_F16): New.
17782 (AARCH64_FL_FOR_ARCH8_2): New.
17783 (AARCH64_ISA_8_2): New.
17784 (AARCH64_ISA_F16): New.
17785 (TARGET_FP_F16INST): New.
17786 (TARGET_SIMD_F16INST): New.
17787 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
17788 ("fp"): Disabling "fp" also disables "fp16".
17789 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
17790 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
17791 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
17792 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
17794 2016-07-04 Jan Beulich <jbeulich@suse.com>
17796 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
17798 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17801 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
17802 the insns, use an insn form that does not adjust the offset on
17803 little endian systems.
17805 2016-07-01 Jan Beulich <jbeulich@suse.com>
17807 * varasm.c (get_variable_section): Validate initializer in
17808 named .bss-like sections.
17810 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
17812 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
17813 Exchange the order of the second and third operands in the vpermr
17814 instruction tmeplate.
17816 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
17819 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
17820 Disallow TDmode values.
17822 2016-07-01 Alan Modra <amodra@gmail.com>
17824 PR rtl-optimization/71709
17825 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
17826 being set, not referenced.
17828 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17830 PR tree-optimization/70729
17831 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
17832 of loop since it can be not valid after transformation.
17834 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17836 * config/arm/arm.c (thumb_reload_in_hi): Delete.
17837 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
17839 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
17841 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
17844 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
17847 * config/rs6000/constraints.md (wY constraint): New constraint to
17848 match the requirements for the LXSD and STXSD instructions.
17849 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
17850 predicate to match the requirements for the LXSD and STXSD
17852 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
17853 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
17854 to make sure that the bottom 2 bits of offset are 0, the address
17855 form is offsettable, and no updating is done in the address mode.
17856 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
17857 (movdi_internal32): Likewise
17858 (movdi_internal64): Likewise.
17860 2016-06-30 Jakub Jelinek <jakub@redhat.com>
17862 PR tree-optimization/71707
17863 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
17864 strinfo even for ADDR_EXPR ptr.
17866 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
17868 * config/rs6000/altivec.md (darn_32): Change the condition to
17869 TARGET_P9_MISC instead of TARGET_MODULO.
17870 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
17871 condition expression.
17872 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
17873 condition expression.
17874 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
17875 (DFP_TEST): New code iterator.
17876 (dfptstsfi_<code>_mode>): New define_expand.
17877 (*dfp_sgnfcnc_<mode>): New define_insn.
17878 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
17879 definition next to BU_P9_MISC_1 definition and change the MASK
17880 value to RS6000_BTM_P9_MISC.
17881 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
17882 (BU_P9_64BIT_MISC_0): Likewise.
17883 (BU_P9_DFP_MISC_0): New macro definition.
17884 (BU_P9_DFP_MISC_1): New macro definition.
17885 (BU_P9_DFP_MISC_2): New macro definition.
17886 (BU_P9_DFP_OVERLOAD_1): New macro definition.
17887 (BU_P9_DFP_OVERLOAD_2): New macro definition.
17888 (BU_P9_DFP_OVERLOAD_3): New macro definition.
17889 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
17890 (TSTSFI_LT_TD): Likewise.
17891 (TSTSFI_EQ_DD): Likewise.
17892 (TSTSFI_EQ_TD): Likewise.
17893 (TSTSFI_GT_DD): Likewise.
17894 (TSTSFI_GT_TD): Likewise.
17895 (TSTSFI_OV_DD): Likewise.
17896 (TSTSFI_OV_TD): Likewise.
17897 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
17898 (TSTSFI_LT_DD): Likewise.
17899 (TSTSFI_LT_TD): Likewise.
17900 (TSTSFI_EQ): Likewise.
17901 (TSTSFI_EQ_DD): Likewise.
17902 (TSTSFI_EQ_TD): Likewise.
17903 (TSTSFI_GT): Likewise.
17904 (TSTSFI_GT_DD): Likewise.
17905 (TSTSFI_GT_TD): Likewise.
17906 (TSTSFI_OV): Likewise.
17907 (TSTSFI_OV_DD): Likewise.
17908 (TSTSFI_OV_TD): Likewise.
17909 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17910 overloaded test significance functions.
17911 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17912 OPTION_MASK_P9_MISC into the representation of this mask.
17913 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
17915 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
17916 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
17918 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
17919 argument is a 6-bit unsigned literal value if the icode argument
17920 represents a DFP test significance built-in call.
17921 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
17922 flag used independently and in combination with the
17923 RS6000_BTM_64BIT flag.
17924 (rs6000_opt_masks): Add entry for power9-misc command-line option.
17925 (rs6000_builtin_mask_names): Add entry for power9-misc
17926 command-line option.
17927 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
17928 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
17929 RS6000_BTM_P9_MISC macros.
17930 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
17931 option and change the description of the -mpower9-vector option to
17932 enable only vector instructions, removing its erroneously claimed
17933 support for scalar instructions.
17934 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
17935 the ISA 3.0 digital floating point test significance built-in
17938 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
17940 * config/aarch64/aarch64.c (cortexa35_tunings):
17941 Enable AES fusion. Use cortexa57_branch_cost.
17942 (cortexa53_tunings): Use cortexa57_branch_cost.
17943 (cortexa72_tunings): Use cortexa57_branch_cost.
17944 Use AUTOPREFETCHER_WEAK.
17945 (cortexa73_tunings): Use cortexa57_branch_cost.
17947 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17948 James Greenhalgh <james.greenhalgh@arm.com>
17950 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
17951 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
17952 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
17953 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
17954 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
17955 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
17956 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
17957 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
17958 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
17959 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
17960 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
17961 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
17962 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
17965 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
17966 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17968 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
17970 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
17972 2016-06-30 David Malcolm <dmalcolm@redhat.com>
17975 * gcc.c (driver::build_option_suggestions): Pass "option" to
17976 add_misspelling_candidates.
17977 * opts-common.c (add_misspelling_candidates): Add "option" param;
17978 use it to avoid adding negated forms for options marked with
17980 * opts.h (add_misspelling_candidates): Add "option" param.
17982 2016-06-30 Jakub Jelinek <jakub@redhat.com>
17984 PR middle-end/71693
17985 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
17986 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
17987 first when permuting bitwise operation with rotate. Cast
17988 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
17990 2016-06-29 David Malcolm <dmalcolm@redhat.com>
17992 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
17993 for misspelled param names.
17994 * params.c: Include spellcheck.h.
17995 (find_param_fuzzy): New function.
17996 * params.h (find_param_fuzzy): New prototype.
17997 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
17998 * spellcheck.h (struct edit_distance_traits<const char *>):
18001 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
18003 * config/rs6000/predicates.md (const_0_to_7_operand): New
18004 predicate, recognize 0..7.
18005 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18006 support for doing extracts from V16QImode, V8HImode, V4SImode
18008 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
18009 vector extract support.
18010 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
18011 for ISA 3.0 vector extract.
18012 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
18013 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
18014 extracts of a constant element number from small integer vectors
18015 on 64-bit ISA 3.0 systems.
18016 (vsx_extract_<mode>_di): Likewise.
18017 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
18018 say when we can do ISA 3.0 vector extracts.
18019 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
18020 registers, using the stxsiwx instruction.
18022 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
18024 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
18025 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
18026 qdf24xx_regmove_cost, qdf24xx_tunings): New.
18027 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
18028 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
18029 * config/arm/arm.c (arm_qdf24xx_tune): New.
18031 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
18033 * config/aarch64/aarch64.c (cortexa53_tunings):
18034 Increase loop alignment to 8. Set function alignment to 16.
18035 (cortexa35_tunings): Likewise.
18036 (cortexa57_tunings): Increase loop alignment to 8.
18037 (cortexa72_tunings): Likewise.
18038 (cortexa73_tunings): Likewise.
18040 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
18042 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
18043 for arm_fp16_ok and arm_fp16_hw.
18044 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
18045 arm_fp16_alternative.
18047 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
18049 PR tree-optimization/71655
18050 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
18051 types when swapping operands.
18053 2016-06-29 Martin Liska <mliska@suse.cz>
18055 PR middle-end/71585
18056 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
18057 * ipa-inline-transform.c (inline_call): Remove unnecessary call
18058 of build_optimization_node.
18060 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
18062 PR tree-optimization/70729
18063 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
18064 independent in loops having positive safelen value.
18065 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18066 it may be not valid after vectorization.
18068 2016-06-29 Jakub Jelinek <jakub@redhat.com>
18070 PR tree-optimization/71625
18071 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
18072 is sorted by ascending list->offset. If PTR is non-NULL and there is
18073 previous strinfo, call get_stridx_plus_constant.
18074 (get_stridx): Pass exp as second argument to get_addr_stridx.
18075 (addr_stridxptr): Add missing list = list->next, so that there can be
18076 more than one entries in the list. Bump limit from 16 to 32. Ensure
18077 the list is sorted by ascending list->offset.
18078 (get_stridx_plus_constant): Adjust so that it can be also called with
18079 ADDR_EXPR instead of SSA_NAME as PTR.
18080 (handle_char_store): Pass NULL_TREE as second argument to
18083 2016-06-29 Richard Biener <rguenther@suse.de>
18085 PR rtl-optimization/68961
18086 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
18088 2016-06-29 Richard Biener <rguenther@suse.de>
18090 PR middle-end/71002
18091 * alias.c (component_uses_parent_alias_set_from): Handle
18092 type punning through union accesses by using the union alias set.
18093 * gimple.c (gimple_get_alias_set): Remove union type punning case.
18095 2016-07-29 Richard Biener <rguenther@suse.de>
18097 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
18098 precision not matching mode precision.
18100 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
18102 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
18103 pa_output_arg_descriptor.
18104 (call_val_symref_64bit_post_reload): Likewise.
18105 (call_val_powf_64bit_post_reload): Likewise.
18106 (sibcall_internal_symref_64bit): Likewise.
18107 (sibcall_value_internal_symref_64bit): Likewise.
18109 2016-06-28 Jakub Jelinek <jakub@redhat.com>
18111 PR middle-end/71626
18112 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
18113 a constant, force its SUBREG_REG into memory or register instead
18116 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18119 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
18120 * doc/invoke.texi (AVR Options): Document it.
18122 2016-06-28 Walter Lee <walt@tilera.com>
18124 * config/tilegx/linux.h: Do not include arch/icache.h
18125 (CLEAR_INSN_CACHE): Provide inlined definition directly.
18126 * config/tilepro/linux.h: Do not include arch/icache.h
18127 (CLEAR_INSN_CACHE): Provide inlined definition directly.
18129 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
18131 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
18132 for big-endian BIT_FIELD_REF.
18134 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
18136 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
18137 ('size' attribute): Add '128'.
18139 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
18140 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
18141 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
18142 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
18143 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
18144 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
18145 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
18146 *trunc<mode>df2_odd): Set size attribute to '128'.
18147 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
18148 * config/rs6000/power6.md (power6-fp): Include dfp type.
18149 * config/rs6000/power7.md (power7-fp): Likewise.
18150 * config/rs6000/power8.md (power8-fp): Likewise.
18151 * config/rs6000/power9.md: New file.
18152 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
18153 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
18154 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
18156 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
18157 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
18158 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
18159 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
18160 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
18161 dfp_dscri_<mode>): Change type attribute to dfp.
18162 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
18163 attribute to vecsimple.
18164 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
18165 and prefetch streams.
18166 (rs6000_option_override_internal): Remove temporary code setting
18167 tuning to power8. Don't set rs6000_sched_groups for power9.
18168 (last_scheduled_insn): Change to rtx_insn *.
18169 (divide_cnt, vec_load_pendulum): New variables.
18170 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
18171 (rs6000_issue_rate): Set issue rate for Power9.
18172 (is_power9_pairable_vec_type): New.
18173 (power9_sched_reorder2): New.
18174 (rs6000_sched_reorder2): Call new function for Power9 specific
18176 (insn_must_be_first_in_group): Remove Power9.
18177 (insn_must_be_last_in_group): Likewise.
18178 (force_new_group): Likewise.
18179 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
18180 Initialize divide_cnt/vec_load_pendulum.
18181 (_rs6000_sched_context, rs6000_init_sched_context,
18182 rs6000_set_sched_context): Handle context save/restore of new
18185 2016-06-28 Richard Biener <rguenther@suse.de>
18187 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
18188 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
18189 COMPONENT_REF operand.
18190 (nonoverlapping_component_refs_p): Likewise.
18191 * stor-layout.c (start_bitfield_representative): Mark
18192 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
18194 2016-06-28 Jakub Jelinek <jakub@redhat.com>
18196 * Makefile.in: Don't cat ../stage_current if it does not exist.
18198 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
18199 last argument is a bit-field.
18201 PR rtl-optimization/71673
18202 * internal-fn.c (expand_arith_overflow_result_store): Use
18203 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
18204 expand_simple_binop.
18206 PR middle-end/66867
18207 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
18208 expand_ifn_atomic_compare_exchange): New functions.
18209 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
18210 * tree.h (build_call_expr_internal_loc): Rename to ...
18211 (build_call_expr_internal_loc_array): ... this. Fix up type of
18213 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
18214 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
18215 ATOMIC_COMPARE_EXCHANGE result.
18216 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
18217 * gimple-fold.h (optimize_atomic_compare_exchange_p,
18218 fold_builtin_atomic_compare_exchange): New prototypes.
18219 * gimple-fold.c (optimize_atomic_compare_exchange_p,
18220 fold_builtin_atomic_compare_exchange): New functions..
18221 * tree-ssa.c (execute_update_addresses_taken): If
18222 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
18223 of call when finding addressable vars, and if such var becomes
18224 non-addressable, call fold_builtin_atomic_compare_exchange.
18226 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
18229 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
18230 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
18232 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
18234 * config/rs6000/rs6000.md ('type' attribute): Add
18235 veclogical,veccmpfx,vecexts,vecmove insn types.
18236 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
18237 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
18238 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
18239 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
18240 *nabs<mode>2_hw): Change type to vecmove.
18241 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
18242 *boolcc<mode>3_internal, *eqv<mode>3_internal,
18243 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
18244 *ieee_128bit_vsx_abs<mode>2_internal,
18245 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
18246 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
18247 *ieee128_mtvsrd_32bit): Change type to veclogical.
18248 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
18249 *movdi_internal32, *movdi_internal64): Update insn types.
18250 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
18251 vsx_extract_<mode>): Change type to veclogical.
18252 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
18253 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
18254 *vsx_sign_extend_si_v2di): Change type to vecexts.
18255 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
18256 type to veclogical.
18257 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
18258 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
18259 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
18260 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
18261 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
18262 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
18263 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
18264 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
18265 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
18266 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
18267 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
18268 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
18269 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
18270 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
18271 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
18272 (ppc7450-vecsimple): Add veclogical, vecmove.
18273 (ppc7450-veccmp): Add veccmpfx.
18274 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
18276 (ppc8540_vector_compare): Add veccmpfx.
18277 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
18278 * config/rs6000/cell.md (cell-fp): Add fpsimple.
18279 (cell-vecsimple): Add veclogical, vecmove.
18280 (cell-veccmp): Add veccmpfx.
18281 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
18282 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
18284 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
18285 * config/rs6000/power4.md (power4-fp): Add fpsimple.
18286 (power4-vecsimple): Add veclogical, vecmove.
18287 (power4-veccmp): Add veccmpfx.
18288 * config/rs6000/power5.md (power5-fp): Add fpsimple.
18289 * config/rs6000/power6.md (power6-fp): Add fpsimple.
18290 (power6-vecsimple): Add veclogical, vecmove.
18291 (power6-veccmp): Add veccmpfx.
18292 * config/rs6000/power7.md (power7-fp): Add fpsimple.
18293 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
18294 * config/rs6000/power8.md (power8-fp): Add fpsimple.
18295 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
18296 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
18297 * config/rs6000/titan.md (titan_fp): Add fpsimple.
18298 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
18300 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
18302 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
18305 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18306 OPTION_MASK_P9_DFORM_VECTOR.
18307 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
18308 disable -mpower9-dform-vector when using reload.
18309 (quad_address_p): Remove 'gpr_p' argument and all associated code.
18310 New 'strict' argument. Update all callers. Add strict addressing
18312 (rs6000_legitimate_offset_address_p): Remove call to
18313 virtual_stack_registers_memory_p.
18314 (rs6000_legitimize_reload_address): Add quad address support.
18315 (rs6000_legitimate_address_p): Move call to quad_address_p above
18316 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
18317 to account for new strict usage.
18318 (rs6000_output_move_128bit): Adjust quad_address_p args to account
18319 for new strict usage.
18320 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
18322 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
18329 * config/i386/i386.c (ix86_spill_class): Disable condition to
18330 always return NO_REGS.
18332 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
18334 * predict.c: Include gimple-pretty-print.h
18335 (predicted_by_loop_heuristics_p): Check also
18336 PRED_LOOP_EXIT_WITH_RECURSION
18337 (predict_loops): Find self recursive calls and use special purpose
18338 predictors for them; dump log about decisions.
18339 (pass_profile::execute): Dump info about #of iterations.
18340 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
18341 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
18343 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
18345 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
18346 output_asm_insn calls and shorten long lines. Output .CALL
18347 argument descriptor using pa_output_arg_descriptor. Add various
18348 inline $$dyncall and other optimizations.
18349 (pa_attr_length_indirect_call): Adjust ordering and lengths.
18351 2016-06-25 Jakub Jelinek <jakub@redhat.com>
18353 PR tree-optimization/71643
18354 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
18357 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
18358 leak a bitmap if dep_bb is NULL.
18360 PR tree-optimization/71631
18361 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
18362 to rewrite_expr_tree even if negate_result, move new_lhs var
18363 declaration and initialization earlier, for powi_result set afterwards
18364 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
18365 if new_lhs != lhs, and don't shadow gsi var.
18367 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18369 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
18370 Add in_loop parameter.
18371 (predict_loops): Add loop guard heuristics.
18372 * predict.def (PRED_LOOP_GUARD): New heuristics.
18374 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18376 * predict.c: Include ipa-utils.h
18377 (tree_bb_level_prediction): Predict recursive calls.
18378 (tree_estimate_probability_bb): Skip inexpensive calls for call
18380 * predict.def (PRED_RECURSIVE_CALL): New.
18382 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18384 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
18385 (BU_FLOAT128_1): Likewise.
18387 (COPYSIGNQ): Likewise.
18388 (RS6000_BUILTIN_NANQ): Likewise.
18389 (RS6000_BUILTIN_NANSQ): Likewise.
18390 (RS6000_BUILTIN_INFQ): Likewise.
18391 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
18392 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
18393 (TARGET_FOLD_BUILTIN): New #define.
18394 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
18395 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
18396 (rs6000_fold_builtin): New target hook implementation, handling
18397 folding of 128-bit NaNs and infinities.
18398 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
18399 entries are filled in to avoid problems during bootstrap
18400 self-test; define builtins for 128-bit NaNs and infinities.
18401 (rs6000_opt_mask): Add entry for float128.
18402 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
18403 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
18404 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
18405 (const_str_type_node): New #define.
18406 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
18407 to a define_expand that dispatches to either copysign<mode>3_soft
18408 or copysign<mode>3_hard.
18409 (copysign<mode>3_hard): Rename from copysign<mode>3.
18410 (copysign<mode>3_soft): New define_insn.
18411 * doc/extend.texi: Document new builtins.
18413 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18415 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
18416 PRIu64 instead of lu.
18418 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
18421 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
18422 copy the type name.
18424 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18426 PR tree-optimization/71647
18427 * omp-low.c (lower_rec_input_clauses): Convert
18428 omp_clause_aligned_alignment (c) to size_type_node for the
18429 last argument of __builtin_assume_aligned.
18431 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
18433 * configure.ac (calling ___tls_get_addr via GOT): New
18434 assembler/linker check.
18435 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
18436 assembler and linker supports calling ___tls_get_addr via GOT.
18437 Otherise, defined to 0.
18438 * config.in: Regenerated.
18439 * configure: Likewise.
18440 * config/i386/constraints.md (Yb): New constraint.
18441 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
18442 (REG_CLASS_NAMES): Likewise.
18443 (REG_CLASS_CONTENTS): Likewise.
18444 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
18445 the b constraint with the Yb constraint. Call ___tls_get_addr
18446 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
18448 (*tls_local_dynamic_base_32_gnu): Likewise.
18449 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
18450 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
18451 (*tls_local_dynamic_base_64_<mode>): Likewise.
18453 2016-06-24 Martin Liska <mliska@suse.cz>
18455 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
18456 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
18458 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
18459 argument to true if the expected number of iterations is
18462 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
18464 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
18465 assemble for 32bit target.
18466 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
18467 and $ld_ix86_gld_32_opt to link for 32bit target.
18468 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
18469 * configure: Regenerate.
18471 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18473 * config/arm/arm.c (int_log2): Delete definition and prototype.
18474 (shift_op): Use exact_log2 instead of int_log2.
18475 (vfp3_const_double_for_fract_bits): Likewise.
18477 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18479 * internal-fn.c (expand_arith_set_overflow): New function.
18480 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
18482 (expand_arith_overflow_result_store): Likewise. Handle precision
18483 smaller than mode precision.
18484 * tree-vrp.c (extract_range_basic): For imag part, handle
18485 properly signed 1-bit precision result.
18486 * doc/extend.texi (__builtin_add_overflow): Document that last
18487 argument can't be pointer to enumerated or boolean type.
18488 (__builtin_add_overflow_p): Document that last argument can't
18489 have enumerated or boolean type.
18491 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18492 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18494 * config/rs6000/predicates.md (splat_input_operand): Rework.
18495 Don't allow constants, since the insns that use this predicate
18496 don't support constants. Constants are handled by other insns
18497 that are created via combine. During and after register
18498 allocation, only allow indexed or indirect addresses, and not
18499 general addresses. Only allow modes supported by the hardware.
18500 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
18501 comment. Move check for using VSPLTIS<x> to a common location,
18502 instead of doing it in two different places.
18504 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
18506 * config/i386/driver-i386.c (host_detect_local_cpu): Set
18507 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
18508 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
18509 signature_CENTAUR_ebx.
18511 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
18515 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
18516 (as_ix86_gas_32_opt): This.
18517 (ld_ix86_tls_ldm_opt): Renamed to ...
18518 (ld_ix86_gld_32_opt): This.
18519 (R_386_TLS_LDM reloc): Updated.
18520 (R_386_GOT32X reloc): New assembler/linker check.
18521 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
18522 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
18524 * config.in: Regenerated.
18525 * configure: Likewise.
18526 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
18527 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
18528 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
18529 if ix86_force_load_from_GOT_p returns true.
18530 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
18531 ix86_force_load_from_GOT_p returns true.
18532 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
18533 the external function address via the GOT slot.
18534 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
18535 HAVE_AS_IX86_GOT32X before returning false.
18536 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
18537 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
18539 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
18541 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
18543 2016-06-23 Andi Kleen <ak@linux.intel.com>
18545 * Makefile.in: Regenerate.
18546 * doc/install.texi: Document autoprofiledbootstrap.
18548 2016-06-23 Andi Kleen <ak@linux.intel.com>
18550 * config/i386/gcc-auto-profile: New file.
18552 2016-06-23 Martin Liska <mliska@suse.cz>
18554 PR middle-end/71619
18555 * predict.c (predict_loops): Revert the hunk that was removed
18558 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
18560 * config.gcc: Add support for arm*-*-phoenix* targets.
18561 * config/arm/t-phoenix: New.
18562 * config/phoenix.h: New.
18564 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
18565 H.J. Lu <hongjiu.lu@intel.com>
18568 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
18569 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
18570 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
18571 ix86_force_load_from_GOT_p returns true.
18572 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
18573 ix86_force_load_from_GOT_p returns true.
18574 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
18575 ix86_force_load_from_GOT_p returns true.
18576 (ix86_expand_move): Load the external function address via the
18577 GOT slot if ix86_force_load_from_GOT_p returns true.
18578 * config/i386/predicates.md (x86_64_immediate_operand): Return
18579 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
18580 (x86_64_zext_immediate_operand): Ditto.
18582 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
18584 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
18586 2016-06-22 David Malcolm <dmalcolm@redhat.com>
18589 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
18590 * diagnostic.c (pedwarn_at_rich_loc): New function.
18591 * spellcheck.h (best_match::best_match): Add a
18592 "best_distance_so_far" optional parameter.
18593 (best_match::set_best_so_far): New method.
18594 (best_match::get_best_distance): New accessor.
18595 (best_match::get_best_candidate_length): New accessor.
18597 2016-06-22 Nick Clifton <nickc@redhat.com>
18599 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
18600 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
18601 modes are accepted as well.
18602 (ucompare_loc_descriptor): Likewise.
18603 (minmax_loc_descriptor): Likewise.
18604 (clz_loc_descriptor): Likewise.
18605 (popcount_loc_descriptor): Likewise.
18606 (bswap_loc_descriptor): Likewise.
18607 (rotate_loc_descriptor): Likewise.
18608 (mem_loc_descriptor): Likewise.
18609 (loc_descriptor): Likewise.
18611 2016-06-22 David Malcolm <dmalcolm@redhat.com>
18613 * common.opt (fdiagnostics-parseable-fixits): New option.
18614 * diagnostic.c: Include "selftest.h".
18615 (print_escaped_string): New function.
18616 (print_parseable_fixits): New function.
18617 (diagnostic_report_diagnostic): Call print_parseable_fixits.
18618 (selftest::assert_print_escaped_string): New function.
18619 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
18620 (selftest::test_print_escaped_string): New function.
18621 (selftest::test_print_parseable_fixits_none): New function.
18622 (selftest::test_print_parseable_fixits_insert): New function.
18623 (selftest::test_print_parseable_fixits_remove): New function.
18624 (selftest::test_print_parseable_fixits_replace): New function.
18625 (selftest::diagnostic_c_tests): New function.
18626 * diagnostic.h (struct diagnostic_context): Add field
18627 "parseable_fixits_p".
18628 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
18629 -fdiagnostics-parseable-fixits.
18630 (-fdiagnostics-parseable-fixits): New option.
18631 * opts.c (common_handle_option): Handle
18632 -fdiagnostics-parseable-fixits.
18633 * selftest-run-tests.c (selftest::run_tests): Call
18634 selftest::diagnostic_c_tests.
18635 * selftest.h (selftest::diagnostic_c_tests): New prototype.
18637 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
18639 PR tree-optimization/71488
18640 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
18641 comparison of boolean vectors.
18642 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
18643 of boolean vectors using bitwise operations.
18645 2016-06-22 Andreas Schwab <schwab@suse.de>
18647 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
18648 Remove declaration.
18650 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
18652 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
18654 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
18656 * config/i386/i386.c (print_reg): Emit an error message on attempt to
18659 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18661 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
18662 * config/arm/arm-cores.def (cortex-a73): New entry.
18663 (cortex-a73.cortex-a35): Likewise.
18664 (cortex-a73.cortex-a53): Likewise.
18665 * config/arm/arm-tables.opt: Regenerate.
18666 * config/arm/arm-tune.md: Likewise.
18667 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
18668 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
18669 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
18670 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
18671 * doc/invoke.texi (ARM Options): Document cortex-a73,
18672 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
18674 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18676 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
18677 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
18678 (cortex-a73.cortex-a35): Likewise.
18679 (cortex-a73.cortex-a53): Likewise.
18680 * config/aarch64/aarch64-tune.md: Regenerate.
18681 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
18682 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
18685 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18687 * configure.ac (gcc_cv_as_compress_debug): Remove
18688 --compress-debug-sections as extra as switch.
18689 Handle gas --compress-debug-sections=type.
18690 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
18691 Handle gld --compress-debug-sections=type.
18692 * configure: Regenerate.
18694 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
18696 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
18698 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
18700 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
18701 (do_rewrite): likewise.
18703 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18705 * common/config/mep/mep-common.c: Remove.
18706 * config.gcc: Remove mep-* support.
18707 * config/mep/constraints.md: Remove.
18708 * config/mep/default.h: Remove.
18709 * config/mep/intrinsics.h: Remove.
18710 * config/mep/intrinsics.md: Remove.
18711 * config/mep/ivc2-template.h: Remove.
18712 * config/mep/mep-c5.cpu: Remove.
18713 * config/mep/mep-core.cpu: Remove.
18714 * config/mep/mep-default.cpu: Remove.
18715 * config/mep/mep-ext-cop.cpu: Remove.
18716 * config/mep/mep-intrin.h: Remove.
18717 * config/mep/mep-ivc2.cpu: Remove.
18718 * config/mep/mep-pragma.c: Remove.
18719 * config/mep/mep-protos.h: Remove.
18720 * config/mep/mep.c: Remove.
18721 * config/mep/mep.cpu: Remove.
18722 * config/mep/mep.h: Remove.
18723 * config/mep/mep.md: Remove.
18724 * config/mep/mep.opt: Remove.
18725 * config/mep/predicates.md: Remove.
18726 * config/mep/t-mep: Remove.
18727 * doc/install.texi: Remove mep-* documentation.
18728 * doc/md.texi: Likewise.
18730 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18732 * config.gcc: Remove support for avr-rtems.
18733 * config/avr/gen-avr-mmcu-specs.c: Likewise.
18734 * config/avr/rtems.h: Remove.
18735 * config/avr/t-rtems: Remove.
18737 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18739 * config.gcc: Remove m32r-rtems support.
18740 * config/m32r/rtems.h: Remove.
18742 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18744 * config.gcc: Remove h8300-rtems support.
18745 * config/h8300/rtems.h: Remove.
18746 * config/h8300/t-rtems: Remove.
18748 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18750 * config.gcc: Remove support for knetbsd.
18751 * configure.ac: Likewise.
18752 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
18753 * config/knetbsd-gnu.h: Remove.
18754 * configure: Regenerate.
18756 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18758 * config.gcc: Remove support for openbsd 2 and 3.
18759 * config/openbsd-oldgas.h: Remove.
18761 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18763 * config.gcc: Remove interix support.
18764 * config/i386/i386-interix.h: Remove.
18765 * config/i386/interix.opt: Remove.
18766 * config/i386/t-interix: Remove.
18767 * configure: Regenerate.
18768 * configure.ac: Remove interix support.
18769 * doc/install.texi: Remove interix documentation.
18771 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
18773 * config/rs6000/rs6000.h: Add conditional preprocessing directives
18774 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
18777 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
18779 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
18780 they are both PLACEHOLDER_EXPRs.
18782 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
18784 * stor-layout.c (layout_type): Move setting complex MODE to
18785 layout_type, instead of setting it ahead of time by the caller.
18786 * tree.c (build_complex_type): Likewise.
18788 2016-06-21 Martin Liska <mliska@suse.cz>
18790 * predict.c (force_edge_cold): Replace imposisble with
18793 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
18795 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
18796 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
18798 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
18800 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
18802 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
18803 Ilya Enkovich <ilya.enkovich@intel.com>
18806 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
18807 New member function to convert V1TImode register to SUBREG
18808 TImode in debug insn.
18809 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
18810 after changing register mode to V1TImode.
18812 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
18814 * config/aarch64/aarch64-cores.def (vulcan): New core.
18815 * config/aarch64/aarch64-tune.md: Regenerate.
18816 * doc/invoke.texi: Document vulcan as an available option.
18818 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
18820 * cse.c (canon_asm_operands): New function extracted from...
18821 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
18822 either standalone or member of a PARALLEL.
18824 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
18827 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
18828 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
18829 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
18831 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
18834 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
18835 constant addresses if can_create_pseudo_p.
18837 2016-06-21 Jakub Jelinek <jakub@redhat.com>
18839 PR tree-optimization/71588
18840 * tree-ssa-strlen.c (valid_builtin_call): New function.
18841 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
18844 2016-06-20 Jakub Jelinek <jakub@redhat.com>
18846 PR middle-end/71581
18847 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
18848 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
18849 for conversion of scalar user var to complex type and use the
18850 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
18853 PR rtl-optimization/71591
18854 * toplev.c (toplev::run_self_tests): If no_backend, complain and
18855 don't run any tests.
18857 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
18860 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
18861 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
18862 space for PIC with non-v32 and the common non-PIC "jump".
18864 2016-06-20 Jakub Jelinek <jakub@redhat.com>
18867 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
18868 returned values and add UN*/LTGT/*ORDERED cases with values matching
18869 D operand modifier on vcmp for AVX.
18871 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18873 * config/aarch64/aarch64.opt
18874 (mpc-relative-literal-loads): Rename internal option name.
18875 * config/aarch64/aarch64.c
18876 (aarch64_nopcrelative_literal_loads): Rename to
18877 aarch64_pcrelative_literal_loads.
18878 (aarch64_expand_mov_immediate): Likewise.
18879 (aarch64_secondary_reload): Likewise.
18880 (aarch64_can_use_per_function_literal_pools_p): Likewise.
18881 (aarch64_override_options_after_change_1): Rename and simplify logic.
18882 (aarch64_classify_symbol): Merge large model checks into switch,
18883 remove pc-relative load check.
18885 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18887 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
18888 costs relative to the cost of a register move.
18890 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18892 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
18893 (vcvt_n_f64_u64): Likewise.
18894 (vcvt_n_s64_f64): Likewise.
18895 (vcvt_n_u64_f64): Likewise.
18896 (vcvt_f64_s64): Likewise.
18897 (vrecpe_f64): Likewise.
18898 (vcvt_f64_u64): Likewise.
18899 (vrecps_f64): Likewise.
18901 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18903 * config/aarch64/aarch64.md
18904 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
18906 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
18908 * config/aarch64/aarch64-builtins.c
18909 (aarch64_types_binop_uss_qualifiers): Delete.
18910 (TYPES_BINOP_USS): Likewise.
18911 (aarch64_types_binop_sus_qualifiers): Likewise.
18912 (TYPES_BINOP_SUS): Likewise.
18913 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
18914 (TYPES_FCVTIMM_SUS): Likewise.
18915 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
18917 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
18918 (fcvtzs): Use SHIFTIMM rather than BINOP.
18919 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
18921 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18923 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
18924 costs relative to the cost of a register move.
18926 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18928 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
18929 Allow scalar/single vector modes to be tieable.
18931 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18933 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
18935 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18937 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
18939 * tree.h (TYPE_ALIGN): Likewise.
18941 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
18944 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
18946 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
18948 * config/avr/avr.c (avr_print_operand): Fix "format not a string
18949 literal" build warnings.
18950 (avr_print_operand_address): Dito.
18952 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
18955 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
18956 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
18958 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
18960 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
18962 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
18965 * reload1.c (reload): Pass 0 to finish_spills when called because
18966 update_eliminables_and_spill returns true and remove did_spill.
18967 (finish_spills): Adjust comment and document GLOBAL parameter.
18969 2016-06-17 DJ Delorie <dj@redhat.com>
18972 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
18973 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
18974 (umulqihi3_virt): Likewise.
18975 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
18976 (umulqihi3_real): Likewise.
18978 2016-06-17 Martin Liska <mliska@suse.cz>
18980 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
18982 2016-06-17 Martin Liska <mliska@suse.cz>
18984 * predict.def: PRED_LOOP_EXIT from 92 to 85.
18986 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
18988 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
18990 (vaddq_f32): Likewise.
18991 (vmul_f32): Likewise.
18992 (vmulq_f32): Likewise.
18993 (vsub_f32): Likewise.
18994 (vsubq_f32): Likewise.
18996 2016-06-17 Bin Cheng <bin.cheng@arm.com>
18998 PR tree-optimization/71347
18999 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
19000 cost for all uses in group.
19002 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19004 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
19005 insert gimple seq if it's not empty.
19007 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19009 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
19011 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
19012 rather than OFFSET.
19013 (comp_dr_with_seg_len_pair): Ditto.
19014 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
19015 struct dr_with_seg_len_pair against DR_OFFSET.
19016 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
19017 DR_OFFSET directly.
19019 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
19021 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
19023 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
19025 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
19026 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
19027 (pa_output_millicode_call): Likewise.
19028 (pa_output_call): Likewise.
19029 (pa_output_indirect_call): Likewise.
19030 (pa_asm_output_mi_thunk): Likewise.
19032 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19034 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
19036 2016-06-16 Martin Liska <mliska@suse.cz>
19038 * predict.c (combine_predictions_for_insn): When we find a first
19039 match predictor, we should consider just predictors with
19040 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
19041 DS theory predictor.
19042 (combine_predictions_for_bb): Likewise.
19044 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19046 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
19047 with base of reference to struct.
19049 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19051 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
19053 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19056 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
19057 progmem_swtable_section.
19058 (progmem_swtable_section): Remove.
19059 (avr_asm_function_rodata_section): Remove.
19060 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
19061 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
19063 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
19065 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19066 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
19067 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
19068 signature_CENTAUR_ebx.
19069 * config/i386/i386.c (ix86_option_override_internal): Add
19070 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
19071 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
19072 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
19074 2016-06-16 Martin Liska <mliska@suse.cz>
19076 * predict.def: Add fortran loop preheader predictor.
19077 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
19078 fold IFN_BUILTIN_EXPECT with a known constant argument.
19080 2016-06-16 Martin Liska <mliska@suse.cz>
19082 * predict.def: Add 'Fortran' to display text of all
19083 PRED_FORTRAN_* predictors.
19085 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19088 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
19089 [IA64_BUILTIN_NANSQ]: Ditto.
19090 (ia64_fold_builtin): New function.
19091 (TARGET_FOLD_BUILTIN): New define.
19092 (ia64_init_builtins) Declare const_string_type node.
19093 Add __builtin_nanq and __builtin_nansq builtin functions.
19094 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
19096 2016-06-16 Nick Clifton <nickc@redhat.com>
19098 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
19099 MSP430_HWMULT_ prefix to enum values.
19100 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
19101 * config/msp430/msp430.c: Update use of enum values.
19102 * config/msp430/msp430.md: Likewise.
19103 * config/msp430/msp430.opt: Likewise.
19105 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
19107 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
19108 of comparsions in the last iteration.
19110 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
19111 Joern Rennecke <joern.rennecke@embecosm.com>
19113 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
19115 (arc_needs_pcl_p): Add GOTOFFPC.
19116 (arc_legitimate_pic_addr_p): Likewise.
19117 (arc_output_pic_addr_const): Likewise.
19118 (arc_legitimize_pic_address): Generate a pc-relative address using
19120 (arc_output_libcall): Use @pcl syntax.
19121 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
19122 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
19123 (*movsi_insn): Use @pcl syntax.
19124 (doloop_begin_i): Likewise.
19126 2016-06-16 Martin Liska <mliska@suse.cz>
19128 * predict.def: Define a new predictor.
19130 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
19132 * config/arc/arc.opt (mtp-regno): Update text.
19134 2016-06-16 Renlin Li <renlin.li@arm.com>
19136 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
19138 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19141 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
19142 (setcc + and peephole2): Likewise.
19144 PR rtl-optimization/71532
19145 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
19148 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
19150 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
19151 DImode constants with XXSPLTIB in vector registers.
19152 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
19153 vsx_extract_<mode>_internal{1,2} into a single insn that handles
19154 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
19155 extraction of the element at the top of the register as a scalar
19157 (vsx_extract_<mode>_internal1): Likewise.
19158 (vsx_extract_<mode>_internal2): Likewise.
19159 * config/rs6000/constraints.md (wi constraint): Remove a comment
19160 about DImode not being allowed in Altivec registers.
19161 (wB constraint): New constraint for constants that can be
19162 generated in Altivec registers with VSPLTISW/VUPKHSW.
19163 * config/rs6000/predicates.md (xxspltib_constant_split): Update
19165 (xxspltib_constant_nosplit): Likewise.
19166 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
19167 support for -mupper-regs-di to enable DImode to go into Altivec
19169 (POWERPC_MASKS): Likewise.
19170 (power7 cpu): Likewise.
19171 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
19172 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
19173 for DImode being allowed in Altivec registers. Update wi/wj
19174 constraints. Set scalar_in_vmx_p flag.
19175 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
19176 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
19177 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
19178 (rs6000_opt_masks): Add -mupper-regs-di.
19179 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
19180 direct move to use wi and not wj.
19181 (lfiwzx): Likewise.
19182 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
19184 (floatunssi<mode>2_lfiwzx_mem): Likewise.
19185 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
19186 any VSX register, instead of just Altivec registers, to allow
19187 either operand to be an Altivec register or both.
19188 (fixuns_trunc<mode>di2_fctiduz): Likewise.
19189 (movdi_internal32): Add support for -mupper-regs-di. Add support
19190 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
19191 the alternatives and attributes to be lined up to be easier to
19193 (movdi_internal64): Likewise.
19194 (64-bit DImode splitters): Change predicates to only split loading
19195 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
19196 load constants in ISA 3.0 or ISA 2.07 respectively.
19197 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
19198 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
19199 mention -mcpu=power9 sets these options.
19200 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
19203 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19206 * config/avr/avr.c (avr_set_current_function): Warn misspelled
19207 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
19208 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
19209 by default to warn misspelled interrupt/ signal handler.
19210 * doc/invoke.texi (AVR Options): Document it. Update description
19211 for -nodevicelib option.
19213 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19215 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
19216 up parentheses. Use GET_MODE_UNIT_BITSIZE.
19217 (aarch64_<sur>shll2_n<mode>): Likewise.
19219 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
19221 PR middle-end/71529
19222 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
19223 DECL_CONTEXT for copied arguments.
19225 2016-06-15 Alan Hayward <alan.hayward@arm.com>
19227 PR tree-optimization/71483
19228 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
19231 2016-06-15 Martin Liska <mliska@suse.cz>
19233 * predict.c (tree_predict_by_opcode): Call predict_edge_def
19234 instead of predict_edge w/o a probability.
19236 2016-06-15 Alan Hayward <alan.hayward@arm.com>
19238 PR tree-optimization/71439
19239 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
19242 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19244 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
19245 register subregs in SET_SRC.
19247 2016-06-15 Richard Biener <rguenther@suse.de>
19249 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
19250 store restrictions.
19252 2016-06-15 Richard Biener <rguenther@suse.de>
19254 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
19255 not consider dependences between accesses that belong to the
19257 (vect_analyze_data_ref_dependences): Do not analyze read-read
19258 or self-dependences.
19260 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19262 * spellcheck-tree.c: Include spellcheck-tree.h rather than
19264 (find_closest_identifier): Reimplement in terms of
19265 best_match<tree,tree>.
19266 * spellcheck-tree.h: New file.
19267 * spellcheck.c (struct edit_distance_traits<const char *>): New
19269 (find_closest_string): Reimplement in terms of
19270 best_match<const char *, const char *>.
19271 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
19272 overload to spellcheck-tree.h.
19273 (find_closest_identifier): Likewise.
19274 (struct edit_distance_traits<T>): New template.
19275 (class best_match): New class.
19277 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19279 * selftest-run-tests.c (selftest::run_tests): Call
19280 selftest::spellcheck_tree_c_tests.
19281 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
19282 * spellcheck-tree.c: Include selftest.h and stringpool.h.
19283 (selftest::test_find_closest_identifier): New function.
19284 (selftest::spellcheck_tree_c_tests): New function.
19285 * spellcheck.c (selftest::test_find_closest_string): Verify that
19286 the order of the vec does not affect the results for this case.
19287 (selftest::test_data): New array.
19288 (selftest::test_metric_conditions): New function.
19289 (selftest::spellcheck_c_tests): Add a test of case-comparison.
19290 Call selftest::test_metric_conditions.
19292 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19294 * config/rs6000/rs6000-builtin.def (commentary): Typo.
19295 (BU_P9_MISC_1): Likewise.
19296 (BU_P9_64BIT_MISC_0): Likewise.
19297 (BU_P9_MISC_0): Likewise.
19299 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19301 * gcc-rich-location.c
19302 (gcc_rich_location::add_fixit_misspelled_id): New method.
19303 * gcc-rich-location.h
19304 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
19306 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
19308 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
19309 FreeBSD 11 and above.
19311 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
19313 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
19315 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19317 * expmed.h: Close parenthesis in "at your option" in copyright
19319 * lower-subreg.h: Likewise.
19321 2016-06-14 Richard Biener <rguenther@suse.de>
19323 PR middle-end/71526
19324 * genmatch.c (expr::gen_transform): Use in_type for comparisons
19327 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19329 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
19331 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
19332 mask+shift version.
19333 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
19335 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
19336 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
19338 2016-06-14 Richard Biener <rguenther@suse.de>
19340 PR tree-optimization/71522
19341 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
19342 copying into float copying.
19344 2016-06-14 Jakub Jelinek <jakub@redhat.com>
19346 PR tree-optimization/71520
19347 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
19348 (replace_block_by): Move user labels from bb1 to bb2.
19350 2016-06-14 Richard Biener <rguenther@suse.de>
19352 PR middle-end/71310
19354 * expr.h (get_bit_range): Declare.
19355 * expr.c (get_bit_range): Export.
19356 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
19357 word_mode again to constrain the bitfield access.
19359 2016-06-14 Richard Biener <rguenther@suse.de>
19361 PR tree-optimization/71521
19362 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
19363 division int_const_binop against zero divisor.
19365 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19367 * config/i386/i386.md (signbittf2): New expander.
19368 * config/i386/sse.md (ptesttf2): New insn pattern.
19370 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19373 * input.c (selftest::test_reading_source_line): Avoid reading from
19374 __FILE__ by creating a tempfile with known content and reading
19377 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19379 * pretty-print.c (assert_pp_format_colored): Skip the test if
19381 (test_pp_format): Remove comment about GCC_COLORS.
19383 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19385 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
19386 * pretty-print.c (assert_pp_format_va): Add location param and use
19387 it with ASSERT_STREQ_AT.
19388 (assert_pp_format): Add location param and pass it to
19389 assert_pp_format_va.
19390 (assert_pp_format_colored): Likewise.
19391 (ASSERT_PP_FORMAT_1): New.
19392 (ASSERT_PP_FORMAT_2): New.
19393 (ASSERT_PP_FORMAT_3): New.
19394 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
19395 explicitly, or implicitly via the above macros.
19396 * selftest.c (selftest::pass): Use a selftest::location rather
19397 than file and line.
19398 (selftest::fail): Likewise. Print the function name.
19399 (selftest::fail_formatted): Likewise.
19400 (selftest::assert_streq): Use a selftest::location rather than
19402 * selftest.h (selftest::location): New struct.
19403 (SELFTEST_LOCATION): New macro.
19404 (selftest::pass): Accept a const location & rather than file
19406 (selftest::fail): Likewise.
19407 (selftest::fail_formatted): Likewise.
19408 (selftest::assert_streq): Likewise.
19409 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
19410 (ASSERT_FALSE): Likewise.
19411 (ASSERT_EQ): Likewise.
19412 (ASSERT_NE): Likewise.
19413 (ASSERT_STREQ): Likewise.
19414 (ASSERT_PRED1): Likewise.
19415 (ASSERT_STREQ_AT): New macro.
19417 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19419 * selftest.c (selftest::fail_formatted): New function.
19420 (selftest::assert_streq): New function.
19421 * selftest.h (selftests::fail_formatted): New decl.
19422 (selftest::assert_streq): New decl.
19423 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
19425 2016-06-13 Jeff Law <law@redhat.com>
19427 PR tree-optimization/71403
19428 * tree-ssa-threadbackward.c
19429 (convert_and_register_jump_thread_path): No longer accept reference
19430 to path. Do not pop items off the path anymore.
19431 (fsm_find_control_statement_thread_paths): Do not allow threading
19432 to a deeper loop nest. Pop the last item off the path here rather
19433 than in convert_and_register_jump_thread_path.
19435 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19436 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
19438 [AArch64] Emit division using the Newton series
19440 * config/aarch64/aarch64-protos.h
19441 (cpu_approx_modes): Add new member "division".
19442 (aarch64_emit_approx_div): Declare new function.
19443 * config/aarch64/aarch64.c
19444 (generic_approx_modes): New member "division".
19445 (exynosm1_approx_modes): Likewise.
19446 (xgene1_approx_modes): Likewise.
19447 (aarch64_emit_approx_div): Define new function.
19448 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
19449 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
19450 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
19451 * doc/invoke.texi (-mlow-precision-div): Describe new option.
19453 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19454 Wilco Dijkstra <wilco.dijkstra@arm.com>
19456 [AArch64] Emit square root using the Newton series
19458 * config/aarch64/aarch64-protos.h
19459 (aarch64_emit_approx_rsqrt): Replace with new function
19460 "aarch64_emit_approx_sqrt".
19461 (cpu_approx_modes): New member "sqrt".
19462 * config/aarch64/aarch64.c
19463 (generic_approx_modes): New member "sqrt".
19464 (exynosm1_approx_modes): Likewise.
19465 (xgene1_approx_modes): Likewise.
19466 (aarch64_emit_approx_rsqrt): Replace with new function
19467 "aarch64_emit_approx_sqrt".
19468 (aarch64_override_options_after_change_1): Handle new option.
19469 * config/aarch64/aarch64-simd.md
19470 (rsqrt<mode>2): Use new function instead.
19471 (sqrt<mode>2): New expansion and insn definitions.
19472 * config/aarch64/aarch64.md: Likewise.
19473 * config/aarch64/aarch64.opt
19474 (mlow-precision-sqrt): Add new option description.
19475 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
19477 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19479 [AArch64] Add more choices for the reciprocal square root approximation
19481 Allow a target to prefer such operation depending on the operation mode.
19483 * config/aarch64/aarch64-protos.h
19484 (AARCH64_APPROX_MODE): New macro.
19485 (AARCH64_APPROX_{NONE,ALL}): Likewise.
19486 (cpu_approx_modes): New structure.
19487 (tune_params): New member "approx_modes".
19488 * config/aarch64/aarch64-tuning-flags.def
19489 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
19490 * config/aarch64/aarch64.c
19491 (generic_approx_modes): New core "cpu_approx_modes" structure.
19492 (exynosm1_approx_modes): Likewise.
19493 (xgene1_approx_modes): Likewise.
19494 (generic_tunings): New member "approx_modes".
19495 (cortexa35_tunings): Likewise.
19496 (cortexa53_tunings): Likewise.
19497 (cortexa57_tunings): Likewise.
19498 (cortexa72_tunings): Likewise.
19499 (exynosm1_tunings): Likewise.
19500 (thunderx_tunings): Likewise.
19501 (xgene1_tunings): Likewise.
19502 (use_rsqrt_p): New argument for the mode and use new member from
19504 (aarch64_builtin_reciprocal): Devise mode from builtin.
19505 (aarch64_optab_supported_p): New argument for the mode.
19506 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
19508 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
19510 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
19511 RS6000_BTM_MODULO flag into the set of flags that are considered
19512 to be part of the common configuration.
19514 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
19516 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
19517 difference unsigned.
19518 (vec_absdb): New macro for vector absolute difference unsigned
19520 (vec_absdh): New macro for vector absolute difference unsigned
19522 (vec_absdw): New macro for vector absolute difference unsigned word.
19523 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
19524 (vadu<mode>3): New insn.
19525 (*p9_vadu<mode>3): New insn.
19526 * config/rs6000/rs6000-builtin.def (vadub): New built-in
19528 (vaduh): New built-in definition.
19529 (vaduw): New built-in definition.
19530 (vadu): New overloaded built-in definition.
19531 (vadub): New overloaded built-in definition.
19532 (vaduh): New overloaded built-in definition.
19533 (vaduw): New overloaded built-in definition.
19534 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19535 overloaded vector absolute difference unsigned functions.
19536 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
19537 the ISA 3.0 vector absolute difference unsigned built-in functions.
19539 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
19541 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
19542 update shared_lookup_references only once after changing operands.
19544 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
19546 PR middle-end/71373
19547 * tree-nested.c (convert_nonlocal_omp_clauses)
19548 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
19550 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
19551 * tree.def (CASE_LABEL_EXPR): Likewise.
19553 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
19556 * input.c (test_builtins): Fix an assertion.
19558 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19560 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
19561 (paritysi2): Ditto.
19563 (isinf<mode>2): Ditto.
19565 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19567 * ggc-tests.c (test_finalization): Only test need_finalization_p
19568 for GCC_VERSION >= 4003.
19570 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19572 * config/s390/vecintrin.h: Fix file description in comment.
19574 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19576 * config/s390/s390-builtin-types.def: Change builtin type naming
19577 scheme to match builtin-types.def.
19579 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
19581 * fold-const.c (optimize_minmax_comparison): Remove.
19582 (fold_comparison): Remove call to the above.
19583 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
19584 New transformations.
19586 2016-06-13 Alan Hayward <alan.hayward@arm.com>
19588 PR tree-optimization/71416
19589 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
19592 2016-06-13 Martin Liska <mliska@suse.cz>
19594 * predict.c (enum predictor_reason): Prefix enum with REASON_.
19595 (combine_predictions_for_insn): Likewise.
19596 (prune_predictions_for_bb): Likewise.
19597 (combine_predictions_for_bb): Likewise.
19599 2016-06-13 Richard Biener <rguenther@suse.de>
19601 PR tree-optimization/71505
19602 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
19603 assert match comment.
19605 2016-06-13 Marek Polacek <polacek@redhat.com>
19607 PR middle-end/71476
19608 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
19609 gimplify_switch_expr.
19610 (warn_switch_unreachable_r): New function.
19612 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19615 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
19618 2016-06-13 Richard Biener <rguenther@suse.de>
19620 PR middle-end/64516
19621 * fold-const.c (fold_unary_loc): Preserve alignment when
19622 folding a VIEW_CONVERT_EXPR into a MEM_REF.
19624 2016-06-13 Martin Liska <mliska@suse.cz>
19627 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
19628 w/ -fsanitize=bounds.
19630 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
19632 * config/i386/i386.c (ix86_init_builtins): Calculate
19633 FLOAT128_FTYPE_CONST_STRING function type only once.
19634 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
19635 built-in functions are available for x86-32 and x86-64 targets.
19637 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
19640 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
19641 New primitive type.
19642 (FLOAT128_FTYPE_CONST_STRING): New function type.
19643 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
19644 [IX86_BUILTIN_NANSQ]: Ditto.
19645 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
19646 (ix86_init_builtin_types): Declare const_string_type_node.
19647 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
19649 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
19650 * doc/extend.texi (x86 Built-in Functions): Document
19651 __builtin_nanq and __builtin_nansq.
19653 2016-06-11 Jiong Wang <jiong.wang@arm.com>
19656 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
19657 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
19658 length for pop patterns.
19659 (arm_attr_length_push_multi): Update comments.
19660 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
19662 (*pop_multiple_with_writeback_and_return): Likewise.
19663 (*pop_multiple_with_return): Likewise.
19665 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
19667 PR middle-end/71310
19668 * fold-const.c (optimize_bit_field_compare): Don't try to use
19669 word_mode unconditionally for reading the bit field, look at
19670 DECL_BIT_FIELD_REPRESENTATIVE instead.
19672 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
19674 PR middle-end/71478
19675 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
19676 vector integer type.
19678 2016-06-10 Jakub Jelinek <jakub@redhat.com>
19680 PR middle-end/71494
19681 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
19682 without LABEL_DECL, set *handled_ops_p to false instead of true.
19684 2016-06-10 Martin Sebor <msebor@redhat.com>
19687 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
19688 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
19689 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
19691 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
19692 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
19693 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
19694 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
19695 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
19696 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
19697 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
19698 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
19700 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19702 * config/arm/arm.h (pool_vector_label,
19703 return_used_this_function): Remove.
19705 2016-06-10 Jeff Law <law@redhat.com>
19707 PR tree-optimization/71335
19708 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
19709 zero length paths here.
19710 (convert_and_register_jump_thread_path): Remove hacks related to
19711 duplicated blocks in the jump thread path.
19712 (fsm_find_control_statement_thread_paths): Avoid putting the same
19713 block on the thread path twice, but ensure the thread path is
19714 unchanged from the caller's point of view.
19716 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
19718 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
19719 * predict.def (PRED_LOOP_BRANCH): Remove.
19721 2016-06-10 David Malcolm <dmalcolm@redhat.com>
19723 * Makefile.in (OBJS): Add ggc-tests.o.
19724 (GTFILES): Add ggc-tests.c.
19725 * ggc-tests.c: New file.
19726 * selftest-run-tests.c (selftest::run_tests): Call
19727 selftest::ggc_tests_c_tests.
19728 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
19730 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
19732 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
19734 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
19737 * varasm.c (place_block_symbol): Adjust alignment for asan protected
19738 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
19740 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
19742 * profile.c: Include cfgloop.h.
19743 (branch_prob): Compute estimated number of iterations.
19744 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
19745 recompute estimate number of iterations from profile.
19747 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19749 PR inline-asm/68843
19750 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
19751 must be grouped on top of stack. Don't force early clobber
19752 on ordinary reg outputs.
19754 2016-06-10 Richard Biener <rguenther@suse.de>
19756 * targhooks.c (default_builtin_vectorization_cost): Adjust
19757 vec_construct cost.
19759 2016-06-10 Richard Biener <rguenther@suse.de>
19761 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
19762 to fold the RHS to a constant if possible.
19764 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
19766 PR middle-end/71373
19767 * tree-nested.c (convert_nonlocal_omp_clauses)
19768 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
19769 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
19770 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
19772 * gimplify.c (gimplify_adjust_omp_clauses): Discard
19774 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
19776 * omp-low.c (scan_sharing_clauses): Don't expect
19777 OMP_CLAUSE__CACHE_.
19779 2016-06-10 Alan Hayward <alan.hayward@arm.com>
19781 PR tree-optimization/71407
19782 PR tree-optimization/71416
19783 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
19784 BIT_FIELD_REF type.
19786 2016-06-10 Richard Biener <rguenther@suse.de>
19788 PR middle-end/71477
19789 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
19791 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
19793 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
19795 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
19796 Jiong Wang <jiong.wang@arm.com>
19798 PR rtl-optimization/70751
19799 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
19800 spilled into memory.
19802 2016-06-09 Jonathan Yong <10walls@gmail.com>
19805 2015-09-21 Jonathan Yong <10walls@gmail.com>
19807 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
19808 sysroot/usr/lib/32api for additional win32 libraries,
19809 fixes failing Cygwin bootstrapping.
19811 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
19813 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
19816 2016-06-09 David Malcolm <dmalcolm@redhat.com>
19819 * pretty-print.c (pp_indent): Specify that %p is printed in a
19820 host-dependent manner.
19821 (test_pp_format): Remove the test for %p.
19823 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
19825 * config/mips/mips.c (mips_output_jump): Fix formatting.
19827 2016-06-09 Richard Biener <rguenther@suse.de>
19829 PR tree-optimization/71462
19830 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
19833 2016-06-09 Martin Liska <mliska@suse.cz>
19835 * predict.c (dump_prediction): Add new argument.
19836 (enum predictor_reason): New enum.
19837 (struct predictor_hash): New struct.
19838 (predictor_hash::hash): New function.
19839 (predictor_hash::equal): Likewise.
19840 (not_removed_prediction_p): New function.
19841 (prune_predictions_for_bb): Likewise.
19842 (combine_predictions_for_bb): Prune predictions.
19844 2016-06-09 Martin Liska <mliska@suse.cz>
19846 * predict.c (filter_predictions): New function.
19847 (remove_predictions_associated_with_edge): Use the filter
19849 (equal_edge_p): New function.
19851 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
19853 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
19854 Correct usage of @samp vs @option, add @samp where appropriate.
19855 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
19856 Add armv6s-m and document it, as it is no official ARM name.
19858 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19860 * ifcvt.c (struct noce_if_info): Add transform_name field.
19861 (noce_try_move): Set if_info->transform_name to the function name.
19862 (noce_try_ifelse_collapse): Likewise.
19863 (noce_try_store_flag): Likewise.
19864 (noce_try_inverse_constants): Likewise.
19865 (noce_try_store_flag_constants): Likewise.
19866 (noce_try_addcc): Likewise.
19867 (noce_try_store_flag_mask): Likewise.
19868 (noce_try_cmove): Likewise.
19869 (noce_try_cmove_arith): Likewise.
19870 (noce_try_minmax): Likewise.
19871 (noce_try_abs): Likewise.
19872 (noce_try_sign_mask): Likewise.
19873 (noce_try_bitop): Likewise.
19874 (noce_convert_multiple_sets): Likewise.
19875 (noce_process_if_block): Print if_info->transform_name to
19876 dump_file if transformation succeeded.
19878 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19880 * config/arm/cortex-a57.md (cortex_a57_alu):
19883 2016-06-08 Martin Sebor <msebor@redhat.com>
19884 Jakub Jelinek <jakub@redhat.com>
19888 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
19889 BUILT_IN_MUL_OVERFLOW_P): New builtins.
19890 * builtins.c: Include gimple-fold.h.
19891 (fold_builtin_arith_overflow): Handle
19892 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
19893 (fold_builtin_3): Likewise.
19894 * doc/extend.texi (Integer Overflow Builtins): Document
19895 __builtin_{add,sub,mul}_overflow_p.
19897 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
19899 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
19900 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
19902 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
19904 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
19905 Rewrite, looking one level down for records and arrays.
19907 2016-06-08 David Malcolm <dmalcolm@redhat.com>
19909 * pretty-print.c: Include "selftest.h".
19910 (pp_format): Fix comment.
19911 (identifier_to_locale): Likewise.
19912 (selftest::test_basic_printing): New function.
19913 (selftest::assert_pp_format): New function.
19914 (selftest::test_pp_format): New function.
19915 (selftest::pretty_print_c_tests): New function.
19916 * selftest-run-tests.c (selftest::run_tests): Call
19917 selftest::pretty_print_c_tests.
19918 * selftest.h (pretty_print_c_tests): New declaration.
19920 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
19922 * invoke.texi (max-loop-headers-insns): Document.
19923 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
19924 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
19925 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
19927 2016-06-08 Richard Biener <rguenther@suse.de>
19929 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
19930 on strided SLP loads and fall back to scalar loads in case
19931 we can't chunk them.
19933 2016-06-08 Richard Biener <rguenther@suse.de>
19935 PR tree-optimization/71452
19936 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
19937 type used for the SSA rewrite has enough precision to cover
19938 the dynamic type of the location.
19940 2016-06-08 Jakub Jelinek <jakub@redhat.com>
19941 Richard Biener <rguenther@suse.de>
19944 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
19945 the same as DECL_P (base0) for indirect_base0. Use equality_code
19946 in one further place.
19948 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
19950 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
19951 to one word if the field is known to overlap other words.
19952 (extract_bit_field_1): Likewise.
19953 (store_split_bit_field): Remove compensating code.
19954 (extract_split_bit_field): Likewise.
19956 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
19960 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
19962 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19964 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
19966 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
19967 (arch64_addpv4sf): Delete.
19968 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
19969 "gen_aarch64_addpv4sf".
19970 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
19972 (vpadds_f32): Likewise.
19973 (vpaddq_f32): Likewise.
19974 (vpaddq_f64): Likewise.
19976 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19978 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
19980 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
19981 to VALLF. Rename to "fabd<mode>3".
19982 "*fabd_scalar<mode>3): Delete.
19983 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
19985 (vabdd_f64): Likewise.
19986 (vabd_f32): Likewise.
19987 (vabd_f64): Likewise.
19988 (vabdq_f32): Likewise.
19989 (vabdq_f64): Likewise.
19991 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19993 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
19995 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
19996 "aarch64_rsqrts<mode>".
19997 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
19998 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
20000 (vrsqrtsd_f64): Likewise.
20001 (vrsqrts_f32): Likewise.
20002 (vrsqrts_f64): Likewise.
20003 (vrsqrtsq_f32): Likewise.
20004 (vrsqrtsq_f64): Likewise.
20006 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20008 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
20010 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
20011 "aarch64_rsqrte<mode>".
20012 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
20013 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
20015 (vrsqrted_f64): Likewise.
20016 (vrsqrte_f32): Likewise.
20017 (vrsqrte_f64): Likewise.
20018 (vrsqrteq_f32): Likewise.
20019 (vrsqrteq_f64): Likewise.
20021 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20023 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
20025 (fcvtzs): Likewise.
20026 (fcvtzu): Likewise.
20027 * config/aarch64/aarch64-simd.md
20028 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
20029 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
20030 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
20032 (vcvt_n_f32_u32): Likewise.
20033 (vcvt_n_s32_f32): Likewise.
20034 (vcvt_n_u32_f32): Likewise.
20035 (vcvtq_n_f32_s32): Likewise.
20036 (vcvtq_n_f32_u32): Likewise.
20037 (vcvtq_n_f64_s64): Likewise.
20038 (vcvtq_n_f64_u64): Likewise.
20039 (vcvtq_n_s32_f32): Likewise.
20040 (vcvtq_n_s64_f64): Likewise.
20041 (vcvtq_n_u32_f32): Likewise.
20042 (vcvtq_n_u64_f64): Likewise.
20043 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
20044 (VSDQ_SDI): Likewise.
20045 (fcvt_target): Support V4DI, V4SI and V2SI.
20046 (FCVT_TARGET): Likewise.
20048 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20050 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
20051 (TYPES_BINOP_SUS): Likewise.
20052 (aarch64_simd_builtin_data): Update include file name.
20053 (aarch64_builtins): Likewise.
20054 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
20055 for conversion between scalar float-point and fixed-point.
20057 (fcvtzs): Likewise.
20058 (fcvtzu): Likewise.
20059 * config/aarch64/aarch64.md
20060 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
20061 pattern for conversion between scalar float to fixed-pointer.
20062 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
20063 (UNSPEC_FCVTZS): New UNSPEC enumeration.
20064 (UNSPEC_FCVTZU): Likewise.
20065 (UNSPEC_SCVTF): Likewise.
20066 (UNSPEC_UCVTF): Likewise.
20067 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
20069 (vcvtd_n_f64_u64): Likewise.
20070 (vcvtd_n_s64_f64): Likewise.
20071 (vcvtd_n_u64_f64): Likewise.
20072 (vcvtd_n_f32_s32): Likewise.
20073 (vcvts_n_f32_u32): Likewise.
20074 (vcvtd_n_s32_f32): Likewise.
20075 (vcvts_n_u32_f32): Likewise.
20076 * config/aarch64/iterators.md (fcvt_target): Support integer to float
20078 (FCVT_TARGET): Likewise.
20079 (FCVT_FIXED2F): New iterator.
20080 (FCVT_F2FIXED): Likewise.
20081 (fcvt_fixed_insn): New define_int_attr.
20083 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20085 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
20086 some statements was removed.
20088 2016-06-08 Alan Hayward <alan.hayward@arm.com>
20090 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
20091 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
20092 (vect_can_advance_ivs_p): likewise.
20093 (vect_update_ivs_after_vectorizer): likewise.
20094 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
20095 (vect_analyze_scalar_cycles_1): likewise.
20096 (vect_analyze_loop_operations): likewise.
20097 (report_vect_op): likewise.
20098 (vect_is_slp_reduction): likewise.
20099 (vect_is_simple_reduction): likewise.
20100 (get_initial_def_for_induction): likewise.
20101 (vect_transform_loop): likewise.
20102 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
20103 (vect_recog_sad_pattern): likewise.
20104 (vect_recog_widen_sum_pattern): likewise.
20105 (vect_recog_widening_pattern): likewise.
20106 (vect_recog_divmod_pattern): likewise.
20107 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
20108 (vect_analyze_slp_instance): likewise.
20109 (vect_transform_slp_perm_load): likewise.
20110 (vect_schedule_slp_instance): likewise.
20112 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20114 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
20115 (return_prediction): PRED_CONST_RETURN predict return as not taken.
20116 * predict.def (PRED_CONTINUE): Change hitrate 50->67
20117 (PRED_LOOP_BRANCH): Document predictor as broken.
20118 (PRED_LOOP_EXIT): Change hitrate 91->92.
20119 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
20120 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
20121 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
20122 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
20123 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
20124 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
20125 (PRED_CALL): Chane hitrate 71->67.
20126 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
20127 (PRED_GOTO): Document as unused right now.
20128 (PRED_CONST_RETURN): Change hitrate 67->69
20129 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
20130 (PRED_NULL_RETURN): Change hitrate 91->90.
20131 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
20132 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
20133 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
20135 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
20137 * config/rs6000/altivec.h: Add __builtin_vec_mul.
20138 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
20139 special case Altivec builtin.
20140 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
20141 VSX_BUILTIN_VEC_MUL (replaced with special case code).
20142 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
20143 code for ALTIVEC_BUILTIN_VEC_MUL.
20144 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
20145 for __builtin_vec_mul.
20147 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
20149 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
20152 2016-06-07 David Malcolm <dmalcolm@redhat.com>
20154 * spellcheck.c (selftest::test_find_closest_string): New function.
20155 (spellcheck_c_tests): Call the above.
20157 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20159 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
20161 2016-06-07 Jakub Jelinek <jakub@redhat.com>
20163 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
20164 Yv=Yv,C alternatives.
20166 2016-06-07 Richard Biener <rguenther@suse.de>
20169 * common.opt (ffast-math): Make Optimization.
20171 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
20172 Prachi Godbole <prachi.godbole@imgtec.com>
20174 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
20175 `fabs' and `fneg' type attributes.
20176 (p5600_fpu_fabs): Add `fmove' to the comment.
20178 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20180 * gimple.c: Include builtins.h
20181 (gimple_inexpensive_call_p): New function.
20182 * gimple.h (gimple_inexpensive_call_p): Declare.
20183 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
20184 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
20187 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
20189 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
20190 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
20191 warning_at_rich_loc, warning_n, pedwarn, permerror,
20192 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
20193 sorry, fatal_error, internal_error, internal_error_no_backtrace):
20196 2016-06-07 Richard Biener <rguenther@suse.de>
20198 PR tree-optimization/71428
20199 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
20200 BIT_FIELD_REF op vs. load.
20202 2016-06-07 Richard Biener <rguenther@suse.de>
20204 PR middle-end/71423
20205 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
20208 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
20210 * config/pa/pa.md (call): Generate indirect long calls to non-local
20211 functions on TARGET_64BIT.
20212 (call_value): Likewise.
20214 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
20216 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
20217 pattern and subsequent splitters.
20218 (call_val_reg_64bit_post_reload): Likewise.
20220 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20222 PR middle-end/71408
20223 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
20224 propagate_op_to_single_use.
20226 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20228 PR middle-end/71281
20229 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
20231 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
20233 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
20234 (enum x86_dirflag_state): New enum.
20235 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
20236 (machine_function): Remove needs_cld.
20237 (ix86_current_function_needs_cld): Remove.
20238 * config/i386/i386.c (ix86_set_func_type): Set
20239 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
20240 (ix86_expand_prologue): Do not emit CLD here.
20241 (ix86_dirflag_mode_needed): New function.
20242 (ix86_dirflag_mode_entry): Ditto.
20243 (ix86_mode_needed): Handle X86_DIRFLAG entity.
20244 (ix86_mode_after): Ditto.
20245 (ix86_mode_entry): Ditto.
20246 (ix86_mode_exit): Ditto.
20247 (ix86_emit_mode_set): Ditto.
20248 * config/i386/i386.md (strmov_singleop): Set
20249 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
20250 Do not set ix86_current_function_needs_cld.
20252 (strset_singleop): Ditto.
20254 (cmpstrnqi_nz_1): Ditto.
20255 (cmpstrnqi_1): Ditto.
20256 (strlenqi_1): Ditto.
20258 2016-06-06 Jakub Jelinek <jakub@redhat.com>
20260 PR tree-optimization/71259
20261 * tree-vect-slp.c (vect_get_constant_vectors): For
20262 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
20263 one for constant op, and use COND_EXPR for non-constant.
20265 2016-06-06 David Malcolm <dmalcolm@redhat.com>
20267 * Makefile.in (OBJS): Add function-tests.o,
20268 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
20269 selftest-run-tests.o.
20270 (OBJS-libcommon): Add selftest.o.
20271 (OBJS-libcommon-target): Add selftest.o.
20272 (all.internal): Add "selftest".
20273 (all.cross): Likewise.
20274 (selftest): New phony target.
20275 (s-selftest): New target.
20276 (selftest-gdb): New phony target.
20277 (COLLECT2_OBJS): Add selftest.o.
20278 * bitmap.c: Include "selftest.h".
20279 (selftest::test_gc_alloc): New function.
20280 (selftest::test_set_range): New function.
20281 (selftest::test_clear_bit_in_middle): New function.
20282 (selftest::test_copying): New function.
20283 (selftest::test_bitmap_single_bit_set_p): New function.
20284 (selftest::bitmap_c_tests): New function.
20285 * common.opt (fself-test): New.
20286 * diagnostic-show-locus.c: Include "selftest.h".
20287 (make_range): New function.
20288 (test_range_contains_point_for_single_point): New function.
20289 (test_range_contains_point_for_single_line): New function.
20290 (test_range_contains_point_for_multiple_lines): New function.
20291 (assert_eq): New function.
20292 (test_get_line_width_without_trailing_whitespace): New function.
20293 (selftest::diagnostic_show_locus_c_tests): New function.
20294 * et-forest.c: Include "selftest.h".
20295 (selftest::test_single_node): New function.
20296 (selftest::test_simple_tree): New function.
20297 (selftest::test_disconnected_nodes): New function.
20298 (selftest::et_forest_c_tests): New function.
20299 * fold-const.c: Include "selftest.h".
20300 (selftest::assert_binop_folds_to_const): New function.
20301 (selftest::assert_binop_folds_to_nonlvalue): New function.
20302 (selftest::test_arithmetic_folding): New function.
20303 (selftest::fold_const_c_tests): New function.
20304 * function-tests.c: New file.
20305 * gimple.c: Include "selftest.h".
20306 Include "gimple-pretty-print.h".
20307 (selftest::verify_gimple_pp): New function.
20308 (selftest::test_assign_single): New function.
20309 (selftest::test_assign_binop): New function.
20310 (selftest::test_nop_stmt): New function.
20311 (selftest::test_return_stmt): New function.
20312 (selftest::test_return_without_value): New function.
20313 (selftest::gimple_c_tests): New function.
20314 * hash-map-tests.c: New file.
20315 * hash-set-tests.c: New file.
20316 * input.c: Include "selftest.h".
20317 (selftest::assert_loceq): New function.
20318 (selftest::test_accessing_ordinary_linemaps): New function.
20319 (selftest::test_unknown_location): New function.
20320 (selftest::test_builtins): New function.
20321 (selftest::test_reading_source_line): New function.
20322 (selftest::input_c_tests): New function.
20323 * rtl-tests.c: New file.
20324 * selftest-run-tests.c: New file.
20325 * selftest.c: New file.
20326 * selftest.h: New file.
20327 * spellcheck.c: Include "selftest.h".
20328 (selftest::levenshtein_distance_unit_test_oneway): New function,
20329 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
20330 (selftest::levenshtein_distance_unit_test): Likewise.
20331 (selftest::spellcheck_c_tests): Likewise.
20332 * toplev.c: Include selftest.h.
20333 (toplev::run_self_tests): New.
20334 (toplev::main): Handle -fself-test.
20335 * toplev.h (toplev::run_self_tests): New.
20336 * tree.c: Include "selftest.h".
20337 (selftest::test_integer_constants): New function.
20338 (selftest::test_identifiers): New function.
20339 (selftest::test_labels): New function.
20340 (selftest::tree_c_tests): New function.
20341 * tree-cfg.c: Include "selftest.h".
20342 (selftest::push_fndecl): New function.
20343 (selftest::test_linear_chain): New function.
20344 (selftest::test_diamond): New function.
20345 (selftest::test_fully_connected): New function.
20346 (selftest::tree_cfg_c_tests): New function.
20347 * vec.c: Include "selftest.h".
20348 (selftest::safe_push_range): New function.
20349 (selftest::test_quick_push): New function.
20350 (selftest::test_safe_push): New function.
20351 (selftest::test_truncate): New function.
20352 (selftest::test_safe_grow_cleared): New function.
20353 (selftest::test_pop): New function.
20354 (selftest::test_safe_insert): New function.
20355 (selftest::test_ordered_remove): New function.
20356 (selftest::test_unordered_remove): New function.
20357 (selftest::test_block_remove): New function.
20358 (selftest::reverse_cmp): New function.
20359 (selftest::test_qsort): New function.
20360 (selftest::vec_c_tests): New function.c.
20361 * wide-int.cc: Include selftest.h and wide-int-print.h.
20362 (selftest::from_int <wide_int>): New function.
20363 (selftest::from_int <offset_int>): New function.
20364 (selftest::from_int <widest_int>): New function.
20365 (selftest::assert_deceq): New function.
20366 (selftest::assert_hexeq): New function.
20367 (selftest::test_printing <VALUE_TYPE>): New function template.
20368 (selftest::test_ops <VALUE_TYPE>): New function template.
20369 (selftest::test_comparisons <VALUE_TYPE>): New function template.
20370 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
20372 (selftest::wide_int_cc_tests): New function.
20374 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20376 PR middle-end/37780
20377 * ifcvt.c (noce_try_ifelse_collapse): New function.
20379 (noce_process_if_block): Call noce_try_ifelse_collapse.
20380 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
20381 (simplify_ternary_operation): Use the above to simplify
20382 conditional CLZ/CTZ expressions.
20384 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20386 PR middle-end/37780
20387 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
20388 define_insn_and_split.
20390 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20392 PR middle-end/37780
20393 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
20395 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
20398 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
20399 Implicitly clobber memory for basic asm with non-empty assembler
20400 string. Use targetm.md_asm_adjust also here.
20401 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
20402 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
20403 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
20404 non-empty assembler string.
20405 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
20406 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
20407 (decode_asm_operands): Handle basic asm in PARALLEL block.
20408 (extract_insn): Handle basic asm in PARALLEL block.
20409 * doc/extend.texi: Mention new behavior of basic asm.
20410 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
20411 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
20412 branch_needs_nop_p): Use asm_noperands.
20414 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
20416 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
20417 Include the M7 SPARC DFA scheduler.
20418 New attribute v3pipe.
20419 Annotate insns with v3pipe where appropriate.
20420 Define cpu_feature vis4.
20421 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
20422 Add (V8QI "8") to vbits.
20423 Add insns {add,sub}v8qi3
20424 Add insns ss{add,sub}v8qi3
20425 Add insns us{add,sub}{v8qi,v4hi}3
20426 Add insns {min,max}{v8qi,v4hi,v2si}3
20427 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
20428 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
20429 * config/sparc/niagara4.md: Add a comment explaining the
20430 discrepancy between the documented latenty numbers and the
20432 * config/sparc/niagara7.md: New file.
20433 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
20434 supports SPARC5 and VIS 4.0 instructions.
20435 * configure: Regenerate.
20436 * config.in: Likewise.
20437 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
20438 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
20439 TARGET_CPU_niagara7.
20440 (ASM_CPU64_DEFAULT_SPEC): Likewise.
20441 (CPP_CPU_SPEC): Handle niagara7.
20442 (ASM_CPU_SPEC): Likewise.
20443 * config/sparc/sparc-opts.h (processor_type): Add
20444 PROCESSOR_NIAGARA7.
20445 (mvis4): New option.
20446 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
20447 (AS_NIAGARA7_FLAG): Define.
20448 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
20449 (CPP_CPU64_DEFAULT_SPEC): Likewise.
20450 (CPP_CPU_SPEC): Handle niagara7.
20451 (ASM_CPU_SPEC): Likewise.
20452 * config/sparc/sparc.c (niagara7_costs): Define.
20453 (sparc_option_override): Handle niagara7 and adjust cache-related
20454 parameters with better values for niagara cpus. Also support VIS4.
20455 (sparc32_initialize_trampoline): Likewise.
20456 (sparc_use_sched_lookahead): Likewise.
20457 (sparc_issue_rate): Likewise.
20458 (sparc_register_move_cost): Likewise.
20459 (dump_target_flag_bits): Support VIS4.
20460 (sparc_vis_init_builtins): Likewise.
20461 (sparc_builtins): Likewise.
20462 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
20464 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
20466 * config/sparc/sparc.opt (sparc_processor_type): New value
20468 * config/sparc/visintrin.h (__attribute__): Prototypes for the
20470 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
20472 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
20475 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
20477 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
20479 2016-06-06 Richard Biener <rguenther@suse.de>
20481 PR tree-optimization/71398
20482 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
20485 2016-06-05 James Bowman <james.bowman@ftdichip.com>
20487 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
20488 ft32_expand_prolog, ft32_expand_epilogue):
20489 Handle pretend_args.
20490 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
20491 * config/ft32/ft32.md: Add pretend_returner.
20493 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
20496 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
20497 Copy op1 RTX to avoid invalid sharing.
20498 (ix86_expand_vector_move_misalign): Ditto.
20500 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
20502 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
20505 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
20507 * predict.c (predicted_by_loop_heuristics_p): New function.
20508 (predict_iv_comparison): Use it.
20509 (predict_loops): Walk from innermost loops; do not predict edges
20510 leaving multiple loops multiple times; implement
20511 PRED_LOOP_ITERATIONS_MAX heuristics.
20512 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
20514 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
20516 * cfg.c (check_bb_profile): Do not report mismatched profiles when
20517 only edges out of BB are EH edges.
20519 2016-06-04 Martin Sebor <msebor@redhat.com>
20520 Marcin Baczyński <marbacz@gmail.com>
20523 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
20524 a void expression in a void function.
20526 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
20528 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
20529 aux; dump reasons of decisions.
20530 (should_duplicate_loop_header_p): Likewise.
20531 (do_while_loop_p): Likewise.
20532 (ch_base::copy_headers): Dump asi num insns duplicated.
20534 2016-06-04 Jakub Jelinek <jakub@redhat.com>
20536 PR tree-optimization/71405
20537 * tree-ssa.c (execute_update_addresses_taken): For clobber with
20538 incompatible type, build a new clobber with the right type instead
20539 of building a VIEW_CONVERT_EXPR around it.
20541 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
20543 PR tree-optimization/52171
20544 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
20545 by_pieces_ninsns instead of move_by_pieces_ninsns.
20547 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
20549 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
20550 for reg+reg addressing mode.
20552 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20554 * rs6000-c.c (c/c-tree.h): Add #include.
20555 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
20556 in C++ when found in the base position of vec_ld or vec_st.
20558 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
20560 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
20561 use of profile unless profile status is PROFILE_READ.
20562 * profile.c (compute_branch_probabilities): Set profile status
20563 only after reporting predictor hitrates.
20565 2016-06-03 Joseph Myers <joseph@codesourcery.com>
20569 * common.opt (ffp-int-builtin-inexact): New option.
20570 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
20571 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
20572 (ceil@var{m}2): Document dependence on this option.
20573 * ipa-inline-transform.c (inline_call): Handle
20574 flag_fp_int_builtin_inexact.
20575 * ipa-inline.c (can_inline_edge_p): Likewise.
20576 * config/i386/i386.md (rintxf2): Do not test
20577 flag_unsafe_math_optimizations.
20578 (rint<mode>2_frndint): New define_insn.
20579 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
20580 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
20581 for 387 instead of extending and truncating.
20582 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
20583 !flag_trapping_math instead of flag_unsafe_math_optimizations.
20584 Change to frndint<mode>2_<rounding>.
20585 (frndintxf2_<rounding>_i387): Likewise. Change to
20586 frndint<mode>2_<rounding>_i387.
20587 (<rounding_insn>xf2): Likewise.
20588 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
20589 !flag_trapping_math instead of flag_unsafe_math_optimizations for
20590 x87. Test TARGET_ROUND || !flag_trapping_math ||
20591 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
20592 SSE. Use ROUND_NO_EXC in constant operand of
20593 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
20594 for 387 instead of extending and truncating.
20596 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
20597 Julia Koval <julia.koval@intel.com>
20609 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
20610 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
20611 all registers, except for function return registers if there are
20612 no caller-saved registers.
20613 (ix86_set_func_type): New function.
20614 (ix86_set_current_function): Call ix86_set_func_type to set
20615 no_caller_saved_registers and func_type. Call reinit_regs if
20616 caller-saved registers are changed. Don't allow MPX, SSE, MMX
20617 nor x87 instructions in interrupt handler nor function with
20618 no_caller_saved_registers attribute.
20619 (ix86_function_ok_for_sibcall): Return false if there are no
20620 caller-saved registers.
20621 (type_natural_mode): Don't warn ABI change for MMX in interrupt
20623 (ix86_function_arg_advance): Skip for callee in interrupt handler.
20624 (ix86_function_arg): Return special arguments in interrupt handler.
20625 (ix86_promote_function_mode): Promote pointer to word_mode only
20626 for normal functions.
20627 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
20629 (ix86_epilogue_uses): New function.
20630 (ix86_hard_regno_scratch_ok): Likewise.
20631 (ix86_save_reg): Preserve all registers in interrupt handler
20632 after reload. Preserve all registers, except for function return
20633 registers, if there are no caller-saved registers after reload.
20634 (find_drap_reg): Always use callee-saved register if there are
20635 no caller-saved registers.
20636 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
20637 for interrupt handler.
20638 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
20639 Emit cld instruction if stringops are used in interrupt handler
20640 or interrupt handler isn't a leaf function.
20641 (ix86_expand_epilogue): Generate interrupt return for interrupt
20642 handler and pop the 'ERROR_CODE' off the stack before interrupt
20643 return in exception handler.
20644 (ix86_expand_call): Disallow calling interrupt handler directly.
20645 If there are no caller-saved registers, mark all registers that
20646 are clobbered by the call which returns as clobbered.
20647 (ix86_handle_no_caller_saved_registers_attribute): New function.
20648 (ix86_handle_interrupt_attribute): Likewise.
20649 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
20651 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
20652 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
20653 accumulation in interrupt function if stack may be realigned to
20655 (EPILOGUE_USES): New.
20656 (function_type): New enum.
20657 (machine_function): Add func_type and no_caller_saved_registers.
20658 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
20659 (interrupt_return): New pattern.
20660 * doc/extend.texi: Document x86 interrupt and
20661 no_caller_saved_registers attributes.
20663 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
20665 PR tree-optimization/52171
20666 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
20667 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
20668 Look for constant strings. Move some code to emit_block_cmp_hints
20670 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
20671 * defaults.h (COMPARE_MAX_PIECES): New macro.
20672 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
20673 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
20674 (clear_by_pieces_1): Don't declare. Move definition before use.
20675 (can_do_by_pieces): New static function.
20676 (can_move_by_pieces): Use it. Return bool.
20677 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
20678 OP. All callers changed. Handle COMPARE_BY_PIECES.
20679 (class pieces_addr); New.
20680 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
20681 pieces_addr::adjust, pieces_addr::increment_address,
20682 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
20684 (class op_by_pieces_d): New.
20685 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
20687 (class move_by_pieces_d, class compare_by_pieces_d,
20688 class store_by_pieces_d): New subclasses of op_by_pieces_d.
20689 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
20690 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
20691 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
20692 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
20693 compare_by_pieces_d::finish_mode): New member functions.
20694 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
20696 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
20697 (emit_block_cmp_hints): New function.
20698 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
20699 use the newly defined classes.
20700 * expr.h (by_pieces_constfn): New typedef.
20701 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
20702 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
20703 (move_by_pieces_ninsns): Don't declare.
20704 (can_move_by_pieces): Change return value to bool.
20705 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
20706 (compare_by_pieces_branch_ratio): New hook.
20707 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
20708 (by_pieces_ninsns): Declare.
20709 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
20711 (default_compare_by_pieces_branch_ratio): New function.
20712 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
20713 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
20714 * doc/tm.texi: Regenerate.
20715 * tree-ssa-strlen.c: Include "builtins.h".
20716 (handle_builtin_memcmp): New static function.
20717 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
20718 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
20720 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20722 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
20723 relevant stmts which are simple and invariant.
20724 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
20725 instead of simple and invariant
20727 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20729 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
20730 (vectorizable_reduction): Check for new relevant state.
20731 (vectorizable_live_operation): vectorize live stmts using
20732 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
20733 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
20734 (vect_stmt_relevant_p): Check for stmts which are only used live.
20735 (process_use): Use of a stmt does not inherit it's live value.
20736 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
20737 (vect_analyze_stmt): Check for new relevant state.
20738 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
20739 outside the loop, but not inside it.
20741 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20743 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
20744 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
20745 (vect_get_vec_def_for_operand): Split out code.
20747 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
20749 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
20751 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20753 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
20755 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20757 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
20759 2016-06-03 Jakub Jelinek <jakub@redhat.com>
20761 PR middle-end/71387
20762 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
20763 to noreturn e->callee->decl that has void return type and void
20764 arguments, adjust gimple_call_fntype and remove lhs even if it had
20765 previously addressable type.
20767 2016-06-02 Jeff Law <law@redhat.com>
20769 PR tree-optimization/71328
20770 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
20771 error when checking for a jump back onto the copied path.
20773 2016-06-02 David Malcolm <dmalcolm@redhat.com>
20775 * config/microblaze/microblaze.c (get_branch_target): Add return
20776 NULL_RTX for the non-CALL_P case.
20777 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
20778 (insert_wic): Remove unused local "j".
20780 2016-06-02 Martin Liska <mliska@suse.cz>
20782 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
20784 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
20785 Julia Koval <julia.koval@intel.com>
20787 * function.c (assign_parm_setup_stack): Force source into a
20788 register if needed.
20789 * target.def (function_incoming_arg): Update documentation to
20790 allow arbitrary address computation based on hard register.
20791 * doc/tm.texi: Regenerated.
20793 2016-06-02 Martin Liska <mliska@suse.cz>
20795 * predict.c (combine_predictions_for_bb): Fix first match in
20796 cases where a first predictor contains more than one occurence
20797 in list of predictors. Take the best value in such case.
20799 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20801 PR rtl-optimization/71295
20802 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
20803 offset would go over the size of the inner mode reject it.
20805 2016-06-02 Jakub Jelinek <jakub@redhat.com>
20807 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
20808 x=x,x and v=v,m instead of x=x,m.
20810 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
20811 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
20812 alternative to v=rm,C.
20814 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
20815 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
20816 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
20817 instead of vex for the last two above mentioned alternatives.
20819 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20822 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
20824 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
20826 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
20828 2016-06-01 David Malcolm <dmalcolm@redhat.com>
20830 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
20831 from int to unsigned.
20833 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
20835 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
20836 alternatives, eliminating preferred register class. Add support
20837 for the MTVSRDD instruction in ISA 3.0.
20838 (vsx_splat_v4si_internal): Use splat_input_operand instead of
20839 reg_or_indexed_operand.
20840 (vsx_splat_v4sf_internal): Likewise.
20842 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
20845 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
20846 for loading up all 0's or all 1's.
20848 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
20850 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
20852 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
20854 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
20856 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
20857 * gcc.c (set_source_date_epoch_envvar): New function, sets
20858 the SOURCE_DATE_EPOCH environment variable to the current time.
20860 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
20862 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
20863 the factor for live Phi nodes.
20865 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
20867 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
20868 * tree-parloops.c (parallelize_loops): likewise.
20869 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
20870 tree_unswitch_outer_loop): likewise.
20872 2016-06-01 Jakub Jelinek <jakub@redhat.com>
20874 PR middle-end/71371
20875 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
20876 around creation of the temporary.
20878 2016-06-01 Richard Biener <rguenther@suse.de>
20880 PR tree-optimization/71366
20881 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
20882 (unloop_loops): Move removing edges here ...
20883 (try_unroll_loop_completely): ... from here.
20884 (try_peel_loop): ... and here.
20885 (tree_unroll_loops_completely_1): Track parent loops via
20886 bitmap of header BBs.
20887 (tree_unroll_loops_completely): Adjust for that.
20889 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
20891 * config/rs6000/altivec.h (vec_slv): New macro.
20892 (vec_srv): New macro.
20893 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
20894 (UNSPEC_VSRV): New value.
20897 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
20898 (vsrv): New builtin definition.
20899 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
20900 define argument types for new builtin.
20901 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
20903 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
20906 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
20907 Jocelyn Mayer <l_indien@magic.fr>
20910 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
20911 detect processor family for signature_CENTAUR_ebx.
20912 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
20913 signature_CENTAUR_ebx.
20914 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
20915 <default>: Pass x86-64 for has_longmode.
20917 2016-06-01 Nathan Sidwell <nathan@acm.org>
20919 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
20922 2016-06-01 Richard Biener <rguenther@suse.de>
20924 PR tree-optimization/71261
20925 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
20926 of stmts successfully put in the bool pattern. Remove
20927 single-use restriction.
20928 (adjust_bool_pattern_cast): Add cast at the use site via the
20929 pattern def sequence.
20930 (adjust_bool_pattern): Remove recursion, maintain a hash-map
20931 of patterned defs. Use the pattern def seqence instead of
20932 multiple independent patterns.
20933 (sort_after_uid): New qsort compare function.
20934 (adjust_bool_stmts): New function to process stmts in the bool
20935 pattern in IL order.
20936 (vect_recog_bool_pattern): Adjust.
20937 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
20938 (ifcvt_walk_pattern_tree): Likewise.
20939 (stmt_is_root_of_bool_pattern): Likewise.
20940 (ifcvt_repair_bool_pattern): Likewise.
20941 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
20943 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
20945 * loop-unroll.c (decide_unroll_constant_iterations,
20946 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
20947 likely upper bounds.
20948 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
20950 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
20952 * tree-core.h (enum omp_clause_code): Remove
20953 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
20955 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20957 * config/arm/sync.md (arm_store_exclusive<mode>):
20958 Use 'H' output modifier on operands[2] rather than creating a new
20959 entry in out-of-bounds memory of the operands array.
20960 (arm_store_release_exclusivedi): Likewise.
20962 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20964 * config/arm/arm.c (arm_fusion_enabled_p): New function.
20965 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
20966 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
20967 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
20969 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
20971 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
20972 into account live statements for mask producers.
20974 2016-06-01 Richard Biener <rguenther@suse.de>
20976 PR tree-optimization/71311
20977 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
20978 restrict to non-INTEGER_CST @0.
20980 2016-06-01 Richard Biener <rguenther@suse.de>
20982 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
20983 (relational patterns): Use :c to avoid pattern duplications.
20985 2016-06-01 Richard Biener <rguenther@suse.de>
20987 * genmatch.c (comparison_code_p): New predicate.
20988 (swap_tree_comparison): New function.
20989 (commutate): Add for_vec parameter to append new for entries.
20990 Support commutating relational operators by swapping it alongside
20992 (lower_commutative): Adjust.
20993 (dt_simplify::gen): Do not pass artificial operators to gen
20995 (decision_tree::gen): Do not add artificial operators as parameters.
20996 (parser::parse_expr): Verify operator commutativity when :c is
20997 applied. Allow :C to override this.
20998 * match.pd: Adjust patterns to use :C instead of :c where required.
21000 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
21002 PR tree-optimization/71077
21003 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
21004 the combining step, use boolean_false_node and boolean_true_node
21005 as the designated false/true return values.
21007 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21009 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
21010 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
21011 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
21014 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21016 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
21017 of flags impliying the register renaming.
21018 * toplev.c (process_options): Do not imply flag_rename_registers with
21021 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21023 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
21024 default implementation.
21026 2016-05-31 Nathan Sidwell <nathan@acm.org>
21028 * dwarf2out.c (cur_line_info_table): Add GTY marker.
21030 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21032 * config/sh/constraints.md (b): Remove constraint.
21033 * config/sh/predicates.md (arith_reg_operand): Remove
21035 * config/sh/sh-modes.def (PDI): Remove.
21036 * config/sh/sh.c (sh_target_reg_class,
21037 sh_optimize_target_register_callee_saved): Remove functions.
21038 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
21039 (sh_expand_epilogue): Update comment.
21040 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
21041 sh_secondary_reload): Remove TARGET_REGS related code.
21042 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
21043 TARGET_REGISTER_P): Remove macros.
21044 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
21045 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
21046 TR1_REG, TR2_REG): Remove constants.
21047 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
21049 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21051 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
21052 define_expand patterns.
21053 (adddi3_compact): Rename to adddi3.
21054 (subdi3_compact): Rename to subdi3.
21055 (*negdi2): Rename to negdi2.
21056 (*abs<mode>2): Rename to abs<mode>2.
21058 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21060 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
21061 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
21062 (atomic_sub_fetchsi): ... this new pattern.
21063 (mvtc): Add CC_REG clobber.
21065 2016-05-31 Marek Polacek <polacek@redhat.com>
21067 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
21069 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21071 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
21072 aarch64_fusion_enabled_p to check for fusion capabilities.
21074 2016-05-31 Richard Biener <rguenther@suse.de>
21076 PR tree-optimization/71352
21077 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
21078 minus one and a negate.
21080 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21082 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
21083 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
21085 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
21086 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
21087 Remove use of aarch64_simd_attr_length_move, set length attribute
21089 (*aarch64_be_movoi): Likewise.
21090 (*aarch64_be_movci): Likewise.
21091 (*aarch64_be_movxi): Likewise.
21093 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21095 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
21096 It no longer does that.
21097 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
21099 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
21101 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
21102 attribute __unused__.
21104 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
21106 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
21107 * config/arm/arm.c (arm_arch_thumb1): Define.
21108 (arm_option_override): Initialize arm_arch_thumb1.
21109 * config/arm/arm.h (arm_arch_thumb1): Declare.
21110 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
21111 support Thumb-1 ISA.
21113 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
21116 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
21117 `Yv' for scalar operand.
21119 2016-05-31 Tom de Vries <tom@codesourcery.com>
21121 PR tree-optimization/69068
21122 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
21123 phis with more than two args.
21125 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
21127 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
21128 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
21131 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
21133 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
21135 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21137 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
21138 cpu_32, cpu_64, tune_32 and tune_64.
21139 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
21141 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
21143 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
21145 2016-05-30 Andi Kleen <ak@linux.intel.com>
21147 * auto-profile.c (read_profile): Replace asserts with errors
21148 when file does not exist.
21149 * gcov-io.c (gcov_read_words): Dito.
21151 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21153 * tree-cfg.c (print_loop): Print likely upper bounds.
21155 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21157 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
21158 * opts.c (default_options): Enable peel loops at -O3.
21159 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
21160 (try_peel_loop): Do not re-peel already peeled loops;
21161 use likely upper bounds; fix profile updating.
21162 (pass_complete_unroll::execute): Initialize peeled_loops.
21164 2016-05-30 Martin Liska <mliska@suse.cz>
21166 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
21167 computed costs by frequency of BB they belong to.
21168 (get_scaled_computation_cost_at): New function.
21170 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
21171 Marc Glisse <marc.glisse@inria.fr>
21173 PR tree-optimization/71289
21174 * match.pd (-1 / B < A, A > -1 / B): New transformations.
21176 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21178 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
21180 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21182 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
21183 for peeled copies; avoid underflow when updating estimates; correctly
21184 scale loop profile.
21186 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21188 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
21189 r236875. Corrected oe3 to oe2 as obvious.
21191 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21193 PR middle-end/71269
21194 PR middle-end/71252
21195 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
21196 that inserted stmt will not dominate stmts that defines its operand.
21197 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
21198 (rewrite_expr_tree_parallel): Likewise.
21200 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21202 PR middle-end/71252
21203 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
21204 all fields including stmt_to_insert are swapped.
21206 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21208 * predict.h (force_edge_cold): Declare.
21209 * predict.c (force_edge_cold): New function.
21210 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
21212 (canonicalize_loop_induction_variables): Fix formating.
21214 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
21216 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
21217 (visium_expand_copysign): Use gen_int_mode directly.
21218 (visium_compute_frame_size): Minor tweaks.
21220 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21222 * tree-vect-loop.c (vect_analyze_loop_2): Use
21223 likely_max_stmt_executions_int.
21225 2016-05-30 Tom de Vries <tom@codesourcery.com>
21227 PR tree-optimization/69067
21228 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
21230 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
21233 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
21234 New peepholes to remove unneeded fild/fistp pairs.
21235 (define_peephole2 atomic_loaddi_fpu): Ditto.
21237 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21239 * predict.c (maybe_hot_frequency_p): Avoid division.
21241 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
21243 * doc/install.texi: Use https for shop.fsf.org.
21245 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21247 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
21248 likely_max_stmt_executions_int.
21250 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21252 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
21253 likely_max_stmt_executions_int.
21255 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21257 * profile.c (compute_branch_probabilities): Do not report hitrates
21259 (branch_prob): Report hitrates here.
21260 * predict.c (gimple_predict_edge): Do not assert profile status;
21261 fix formatting issues.
21263 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21265 * predict.c (edge_predicted_by_p): New function.
21266 (predict_paths_for_bb): Do not put multiple predictions of the same type
21269 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21271 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
21274 2016-05-28 Alan Modra <amodra@gmail.com>
21276 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
21278 2016-05-28 Alan Modra <amodra@gmail.com>
21280 PR rtl-optimization/71275
21281 * ira.c (ira): Free dominance info.
21283 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
21285 * doc/sourcebuild.texi: New address for upstream Go repository.
21287 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
21289 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
21290 (TARGET_ARM_V7M): Likewise.
21292 2016-05-26 Jeff Law <law@redhat.com>
21294 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
21295 (thread_across_edge): Remove calls to find_jump_threads_backwards.
21296 * passes.def: Add jump threading passes before DOM/VRP.
21297 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
21298 argument to a basic block from an edge. Remove tests which are
21300 (pass_data_thread_jumps, class pass_thread_jumps): New.
21301 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
21302 (make_pass_thread_jumps): Likewise.
21303 * tree-pass.h (make_pass_thread_jumps): Declare.
21305 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
21307 * config/visium/visium-protos.h (split_double_move): Rename into...
21308 (visium_split_double_move): ...this.
21309 (visium_split_double_add): Declare.
21310 * config/visium/visium.c (split_double_move): Rename into...
21311 (visium_split_double_move): ...this.
21312 (visium_split_double_add): New function.
21313 (visium_expand_copysign): Renumber operands for consistency.
21314 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
21315 (DFmode move splitter): Likewise.
21316 (*addi3_insn): Split by means of visium_split_double_add.
21317 (*adddi3_insn_flags): Delete.
21318 (*plus_plus_sltu<subst_arith>): New insn.
21319 (*subdi3_insn): Split by means of visium_split_double_add.
21320 (subdi3_insn_flags): Delete.
21321 (*minus_minus_sltu<subst_arith>): New insn.
21322 (*negdi2_insn): Split by means of visium_split_double_add.
21323 (*negdi2_insn_flags): Delete.
21325 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
21327 * configure.ac: Treat a --with-headers option without argument
21328 the same as the default (i.e. consult sys-include directory).
21329 * configure: Regenerate.
21331 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21333 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
21334 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
21336 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
21337 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21339 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21342 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
21343 tree-stdarg analysis results.
21344 (aarch64_setup_incoming_varargs): Likewise.
21346 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21348 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
21349 va_list_gpr_counter_field and va_list_fpr_counter_field.
21351 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
21354 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
21355 * config/aarch64/aarch64.c
21356 (aarch64_cannot_change_mode_class): Remove function.
21357 * config/aarch64/aarch64-protos.h
21358 (aarch64_cannot_change_mode_class): Remove.
21360 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21362 * cfgloop.c (record_niter_bound): Record likely upper bounds.
21363 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
21364 get_likely_max_loop_iterations_int): New.
21365 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
21366 any_likely_upper_bound.
21367 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
21369 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
21370 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
21372 (unroll_loop_constant_iterations): Likewise.
21373 (unroll_loop_runtime_iterations): Likewise.
21374 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
21375 * lto-streamer-out.c (output_cfg): Likewise.
21376 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
21378 (canonicalize_loop_induction_variables): Dump likely upper bounds.
21379 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
21380 (likely_max_loop_iterations): New.
21381 (likely_max_loop_iterations_int): New.
21382 (likely_max_stmt_executions): New.
21383 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
21384 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
21385 likely_max_stmt_executions): Declare.
21387 2016-05-27 Marek Polacek <polacek@redhat.com>
21389 PR middle-end/71308
21390 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
21392 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21394 * config/s390/s390.md (2x risbg splitters): Use
21395 reg_overlap_mentioned_p instead of rtx_equal_p.
21397 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
21399 * combine.c (make_compound_operation): Take known zero bits into
21400 account when checking for possible zero_extend.
21402 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21404 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
21405 Use const_int_operand for operand 2 predicate. Simplify expand code
21408 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
21410 PR middle-end/71279
21411 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
21414 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21416 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
21417 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
21418 that returns CC_SESWPmode and CC_ZESWPmode.
21419 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
21421 (aarch64_rtx_costs): Likewise.
21423 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21425 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
21426 for ISA 3.0 min/max support.
21427 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
21428 conditional move support.
21429 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
21430 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
21432 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
21433 conditional moves where the comparison type is different from move
21435 (fp_minmax): New code iterator for smin/smax.
21436 (minmax): New code attributes for min/max.
21437 (SMINMAX): Likewise.
21438 (smax<mode>3): Combine min, max insns into one insn using the
21439 fp_minmax code iterator. Add support for ISA 3.0 min/max
21440 instructions that don't need -ffast-math.
21441 (s<minmax><mode>3): Likewise.
21442 (smax<mode>3_vsx): Likewise.
21443 (smin<mode>3): Likewise.
21444 (s<minmax><mode>3_vsx): Likewise.
21445 (smin<mode>3_vsx): Likewise.
21446 (pre-VSX min/max splitters): Likewise.
21447 (s<minmax><mode>3_fpr): Likewise.
21448 (movsfcc): Rewrite floating point conditional moves to combine
21449 SFmode/DFmode into a single insn.
21450 (mov<mode>cc): Likewise.
21451 (movdfcc): Likewise.
21452 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
21453 SFDF2 iterators to handle all combinations.
21454 (fseldfsf4): Likewise.
21455 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
21456 (fseldfdf4): Likewise.
21457 (fselsfdf4): Likewise.
21458 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
21459 comparison instructions that set a 0/-1 mask, and use it for
21460 floating point conditional move via XXSEL.
21461 (fpmask<mode>): Likewise.
21462 (xxsel<mode>): Likewise.
21463 * config/rs6000/predicates.md (min_max_operator): Delete, no
21465 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
21466 instructions that generate a 0/-1 mask for use with XXSEL.
21467 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
21468 say whether floating point min/max is available, either through
21469 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
21470 (TARGET_MINMAX_DF): Likewise.
21472 2016-05-27 Alan Modra <amodra@gmail.com>
21474 PR rtl-optimization/71275
21475 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
21476 for update_equiv_regs and combine_and_move_insns.
21478 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
21480 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
21481 if_then_else or cond RTXes to calculate attribute value.
21482 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
21483 <attr "length_immediate>: Ditto.
21484 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
21485 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
21486 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
21487 <attr "type">: Ditto.
21488 <attr "prefix_data16">: Ditto.
21489 <attr "prefix_extra">: Ditto.
21490 <attr "length_immediate">: Ditto.
21491 <attr "prefix">: Ditto.
21492 (vec_set<mode>_0) <attr "isa">: Ditto.
21493 <attr "prefix_extra">: Ditto.
21494 <attr "length_immediate">: Ditto.
21495 <attr "prefix">: Ditto.
21496 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
21497 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
21498 (sse2_storelpd) <attr "prefix_data16">: Ditto.
21499 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
21500 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
21501 <attr "length_immediate">: Ditto.
21502 <attr "prefix">: Ditto.
21503 (sse2_movsd) <attr "length_immediate">: Ditto.
21504 <attr "prefix">: Ditto.
21505 (vec_concatv2df) <attr "isa">: Ditto.
21506 <attr "prefix">: Ditto.
21507 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
21508 (*vec_extractv2di_1) <attr "isa">: Ditto.
21509 <attr "type">: Ditto.
21510 <attr "length_immediate">: Ditto.
21511 <attr "prefix_rex">: Ditto.
21512 <attr "prefix_extra">: Ditto.
21513 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
21514 <attr "prefix_extra">: Ditto.
21515 <attr "length_immediate">: Ditto.
21516 (vec_concatv2di) <attr "isa">: Ditto.
21517 <attr "prefix_extra">: Ditto.
21518 <attr "length_immediate">: Ditto.
21519 <attr "prefix">: Ditto.
21521 2016-05-26 Martin Liska <mliska@suse.cz>
21523 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
21525 (operator+): Likewise.
21526 (operator-): Likewise.
21527 (comp_cost::operator+=): Likewise.
21528 (comp_cost::operator-=): Likewise.
21529 (comp_cost::operator/=): Likewise.
21530 (comp_cost::operator*=): Likewise.
21531 (operator<): Likewise.
21532 (operator==): Likewise.
21533 (operator<=): Likewise.
21534 (new_cost): Remove.
21535 (infinite_cost_p): Likewise.
21536 (add_costs): Likewise.
21537 (sub_costs): Likewise.
21538 (compare_costs): Likewise.
21539 (set_group_iv_cost): Use the newly introduced functions.
21540 (get_address_cost): Likewise.
21541 (get_shiftadd_cost): Likewise.
21542 (force_expr_to_var_cost): Likewise.
21543 (split_address_cost): Likewise.
21544 (ptr_difference_cost): Likewise.
21545 (difference_cost): Likewise.
21546 (get_computation_cost_at): Likewise.
21547 (determine_group_iv_cost_generic): Likewise.
21548 (determine_group_iv_cost_address): Likewise.
21549 (determine_group_iv_cost_cond): Likewise.
21550 (autoinc_possible_for_pair): Likewise.
21551 (determine_group_iv_costs): Likewise.
21552 (cheaper_cost_pair): Likewise.
21553 (iv_ca_recount_cost): Likewise.
21554 (iv_ca_set_no_cp): Likewise.
21555 (iv_ca_set_cp): Likewise.
21556 (iv_ca_cost): Likewise.
21557 (iv_ca_new): Likewise.
21558 (iv_ca_dump): Likewise.
21559 (iv_ca_narrow): Likewise.
21560 (iv_ca_prune): Likewise.
21561 (iv_ca_replace): Likewise.
21562 (try_add_cand_for): Likewise.
21563 (try_improve_iv_set): Likewise.
21564 (find_optimal_iv_set): Likewise.
21566 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
21568 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
21569 that internal functions will clobber all caller-saved registers.
21571 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
21573 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
21574 Return a better case_values_threshold when optimizing.
21576 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
21578 * config/aarch64/aarch64-simd.md (aarch64_combinez):
21579 Add ? to integer variant.
21580 (aarch64_combinez_be): Likewise.
21582 2016-05-26 Jakub Jelinek <jakub@redhat.com>
21584 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
21585 instead of x constraint.
21586 (vcvtps2ph256<mask_name>): Likewise.
21588 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
21589 alternative. Formatting fix.
21591 * config/i386/sse.md
21592 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
21594 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
21595 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
21596 maybe_evex prefix instead of vex.
21597 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
21598 EXT_REX_SSE_REG_P (op0) case in the splitter.
21600 2016-05-25 Jeff Law <law@redhat.com>
21602 PR tree-optimization/71272
21603 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
21604 Update comments. Add test for empty path.
21606 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
21608 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
21609 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
21610 special case builtin.
21611 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21612 code for ALTIVEC_BUILTIN_VEC_CMPNE.
21613 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
21614 for __builtin_vec_cmpne.
21616 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
21618 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
21619 redundant test and bail out if the type of the new operand is not
21620 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
21622 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
21624 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
21625 (x_ix86_target_flags_explicit): Remove.
21626 * config/i386/i386.c (ix86_function_specific_save): Do not copy
21627 x_ix86_target_flags_explicit.
21628 (ix86_function_specific_restore): Ditto.
21630 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
21631 H.J. Lu <hongjiu.lu@intel.com>
21634 * common/config/i386/i386-common.c
21635 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
21636 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
21637 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
21638 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
21639 (-mgeneral-regs-only): Add new option.
21640 * config/i386/i386.c (ix86_option_override_internal): Don't enable
21641 x87 instructions if only general registers are allowed.
21642 (ix86_target_string): Add ix86_flags argument. Handle additional
21643 flags options through ix86_flags argument. Update all callers.
21644 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
21646 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21648 PR rtl-optimization/66940
21649 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
21650 decrementing desired_val will not overflow before performing these
21653 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
21655 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
21656 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
21657 * config/i386/i386.c (enum ix86_builtins): Add
21658 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
21659 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
21660 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
21661 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
21662 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
21663 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
21664 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
21665 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
21666 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
21667 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
21668 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
21669 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
21670 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
21671 __builtin_ia32_cvtps2dq512_mask.
21672 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
21673 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
21674 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
21675 * config/i386/sse.md
21676 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
21678 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
21679 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
21681 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
21682 (avx512f_vec_pack_sfix_v8df): New define_expand.
21683 (avx512f_roundpd512): Rename to ...
21684 (avx512f_round<castmode>512): ... this. Change iterator.
21685 (avx512f_roundps512_sfix): New define_expand.
21686 (round<mode>2_sfix): Change iterator.
21688 2016-05-25 Nick Clifton <nickc@redhat.com>
21690 * config/msp430/msp430.c (msp430_attr): Produce an error if a
21691 static interrupt handler is detected.
21692 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
21693 default linker script.
21694 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
21695 the low part of a symbolic pointer.
21697 2016-05-25 Richard Biener <rguenther@suse.de>
21699 PR tree-optimization/71261
21700 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
21701 interesting stmt instead of immediate uses when looking
21702 for the use operand to replace.
21704 2016-05-25 Martin Liska <mliska@suse.cz>
21706 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
21708 2016-05-25 Richard Biener <rguenther@suse.de>
21710 PR tree-optimization/71264
21711 * tree-vect-stmts.c (vect_init_vector): Properly deal with
21714 2016-05-25 Martin Liska <mliska@suse.cz>
21716 PR tree-optimization/71239
21717 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
21718 if DECL_SIZE is NULL.
21720 2016-05-25 Richard Biener <rguenther@suse.de>
21722 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
21723 * tree-if-conv.c (pass_data_if_conversion): Use it.
21725 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
21727 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
21728 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
21729 * varpool.c (varpool_node::get_availability): Likewise.
21731 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21733 * config/rs6000/altivec.md (VNEG iterator): New iterator for
21734 VNEGW/VNEGD instructions.
21735 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
21736 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
21737 support for ISA 3.0 VNEGW/VNEGD instructions.
21739 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
21741 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
21742 pointers inside OACC_DATA regions.
21743 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
21744 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
21745 (gimplify_adjust_omp_clauses): Fix typo in comment.
21747 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21749 * config/rs6000/altivec.md (VParity): New mode iterator for vector
21750 parity built-in functions.
21751 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
21753 (p9v_parity<mode>2): Likewise.
21754 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
21756 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
21757 (parity<mode>2): ISA 3.0 expander for vector parity.
21758 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
21760 (BU_P9_64BIT_MISC_0): Likewise.
21761 (BU_P9_MISC_0): Likewise.
21762 (BU_P9V_AV_1): Likewise.
21763 (BU_P9V_AV_2): Likewise.
21764 (BU_P9V_AV_3): Likewise.
21765 (BU_P9V_AV_P): Likewise.
21766 (BU_P9V_VSX_1): Likewise.
21767 (BU_P9V_OVERLOAD_1): Likewise.
21768 (BU_P9V_OVERLOAD_2): Likewise.
21769 (BU_P9V_OVERLOAD_3): Likewise.
21770 (VCTZB): Add vector count trailing zeros support.
21774 (VPRTYBD): Add vector parity support.
21775 (VPRTYBQ): Likewise.
21776 (VPRTYBW): Likewise.
21777 (VCTZ): Add overloaded vector count trailing zeros support.
21778 (VPRTYB): Add overloaded vector parity support.
21779 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21780 overloaded vector count trailing zeros and parity instructions.
21781 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
21782 vector parity support.
21783 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
21784 trailing zeros support.
21785 (vec_cntlz): Likewise.
21786 (vec_vctzb): Likewise.
21787 (vec_vctzd): Likewise.
21788 (vec_vctzh): Likewise.
21789 (vec_vctzw): Likewise.
21790 (vec_vprtyb): Add ISA 3.0 vector parity support.
21791 (vec_vprtybd): Likewise.
21792 (vec_vprtybw): Likewise.
21793 (vec_vprtybq): Likewise.
21794 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
21795 the ISA 3.0 vector count trailing zeros and vector parity built-in
21798 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
21800 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
21801 when there is stmt_to_insert.
21803 2016-05-24 Martin Sebor <msebor@redhat.com>
21806 * tree.h (complete_or_array_type_p): New inline function.
21808 2016-05-24 Jakub Jelinek <jakub@redhat.com>
21810 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
21811 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
21812 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
21814 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
21815 Limit 1st alternative to noavx isa, split 2nd alternative into one
21816 noavx and one avx alternative, use *x and Bm in the former and
21817 x and m in the latter.
21819 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
21820 of sse4 for the first alternative, drop %v from the template
21821 and d operand modifier. Split second alternative into one sse4_noavx
21822 and one avx alternative, use *x instead of *v in the former and v
21823 instead of *v in the latter.
21824 (*sse4_1_extractps): Use noavx isa instead of * for the first
21825 alternative, drop %v from the template. Split second alternative into
21826 one noavx and one avx alternative, use *x instead of *v in the
21827 former and v instead of *v in the latter.
21828 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
21829 with noavx and the last one with avx.
21830 (sse4_1_phminposuw): Guard first alternative with noavx isa,
21831 split the second one into one noavx and one avx alternative,
21832 use *x and Bm in the former and x and m in the latter one.
21833 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
21836 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
21837 first two alternatives to noavx, use *x instead of *v in the second
21838 one, add avx alternative without *.
21839 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
21840 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
21841 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
21843 2016-05-24 Jeff Law <law@redhat.com>
21845 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
21846 New function, extracted from...
21847 (fsm_find_control_statement_thread_paths): Here. Use the new function.
21848 Allow simple copies and constant initializations in the SSA chain.
21850 2016-05-24 Marek Polacek <polacek@redhat.com>
21853 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
21856 2016-05-24 Jakub Jelinek <jakub@redhat.com>
21859 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
21860 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
21861 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
21862 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
21863 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
21865 2016-05-24 Richard Biener <rguenther@suse.de>
21867 PR tree-optimization/71240
21868 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
21871 2016-05-24 Richard Biener <rguenther@suse.de>
21873 PR tree-optimization/71230
21874 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
21876 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
21878 * tree-vectorizer.h (vectorizable_comparison): Delete.
21879 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
21880 PURE_SLP_STMT check.
21881 * tree-vect-stmts.c (vectorizable_call): Likewise.
21882 (vectorizable_simd_clone_call): Likewise.
21883 (vectorizable_conversion): Likewise.
21884 (vectorizable_assignment): Likewise.
21885 (vectorizable_shift): Likewise.
21886 (vectorizable_operation): Likewise.
21887 (vectorizable_load): Likewise.
21888 (vectorizable_condition): Likewise.
21889 (vectorizable_store): Likewise. Assert that we don't have
21891 (vectorizable_comparison): Make static. Remove redundant
21892 PURE_SLP_STMT check.
21893 (vect_transform_stmt): Assert that we always have an slp_node
21896 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21898 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
21899 operands[2] against 1 with comparison against CONST1_RTX.
21900 (<shift>di3_neon): Likewise.
21901 * config/arm/predicates.md (const0_operand): Replace with comparison
21902 against CONST0_RTX.
21904 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21906 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
21907 operands[2] against 1 with comparison against CONST1_RTX.
21908 (ashrdi3): Likewise.
21909 (lshrdi3): Likewise.
21910 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
21912 (ashrsi3): Likewise.
21913 (lshrsi3): Likewise.
21914 (rotrsi3): Likewise.
21915 (define_split above *compareqi_eq0): Likewise.
21916 (define_split above "prologue"): Likewise.
21917 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
21918 * config/arm/predicates.md (shift_operator): Likewise.
21919 (shift_nomul_operator): Likewise.
21920 (sat_shift_operator): Likewise.
21921 (thumb1_cmp_operand): Likewise.
21922 (const_neon_scalar_shift_amount_operand): Replace manual range
21923 check with IN_RANGE.
21924 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
21925 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
21927 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21929 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
21930 with HOST_WIDE_INT_1.
21932 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
21933 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
21934 (arm_canonicalize_comparison): Likewise.
21935 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
21937 (thumb1_size_rtx_costs): Likewise.
21938 (vfp_const_double_index): Replace cast of 1 to unsigned
21939 HOST_WIDE_INT with HOST_WIDE_INT_1U.
21940 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
21942 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
21943 HOST_WIDE_INT with HOST_WIDE_INT_1U.
21944 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
21945 HOST_WIDE_INT with HOST_WIDE_INT_1.
21947 2016-05-24 Marek Polacek <polacek@redhat.com>
21949 * tree-cfg.h (should_remove_lhs_p): New predicate.
21950 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
21951 * gimplify.c (gimplify_modify_expr): Likewise.
21952 * tree-cfg.c (verify_gimple_call): Likewise.
21953 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
21954 * gimple-fold.c: Include "tree-cfg.h".
21955 (gimple_fold_call): Use should_remove_lhs_p.
21957 2016-05-24 Richard Biener <rguenther@suse.de>
21959 PR tree-optimization/71253
21960 * cfganal.h (control_dependences): Make robust against edge
21962 (control_dependences::control_dependences): Remove edge_list argument.
21963 (control_dependences::get_edge): Remove.
21964 (control_dependences::get_edge_src): Add.
21965 (control_dependences::get_edge_dest): Likewise.
21966 (control_dependences::m_el): Make a vector of edge src/dest index.
21967 * cfganal.c (control_dependences::find_control_dependence): Adjust.
21968 (control_dependences::control_dependences): Likewise.
21969 (control_dependences::~control_dependence): Likewise.
21970 (control_dependences::get_edge): Remove.
21971 (control_dependences::get_edge_src): Add.
21972 (control_dependences::get_edge_dest): Likewise.
21973 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
21975 (perform_tree_ssa_dce): Adjust.
21976 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
21978 (pass_loop_distribution::execute): Adjust. Do loop destroying
21979 conditional on changed.
21981 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21984 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
21985 return. Reindent transformation comment and mention the ARM state
21988 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
21990 PR middle-end/71252
21991 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
21992 after build_and_add_sum creates new use stmt.
21994 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
21996 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
21997 load_lanes/grouped_load classification comes first. Don't check
21998 whether the vectorization factor is a multiple of the group size
22001 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22003 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
22004 GROUP_GAP for single-element interleaving.
22005 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
22008 2016-05-24 Richard Biener <rguenther@suse.de>
22010 PR middle-end/70434
22012 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
22013 bases which are accessed with non-invariant indices.
22014 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
22015 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
22017 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22019 PR middle-end/71170
22020 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
22021 (add_to_ops_vec): Add stmt_to_insert.
22022 (add_repeat_to_ops_vec): Init stmt_to_insert.
22023 (insert_stmt_before_use): New.
22024 (transform_add_to_multiply): Remove mult_stmt insertion and add it
22026 (get_ops): Init stmt_to_insert.
22027 (maybe_optimize_range_tests): Likewise.
22028 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
22029 (rewrite_expr_tree_parallel): Likewise.
22030 (reassociate_bb): Likewise.
22032 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22035 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
22036 ISA 3.0 xxperm fusion alternative.
22037 (altivec_vperm_v8hiv16qi): Likewise.
22038 (altivec_vperm_<mode>_uns_internal): Likewise.
22039 (vperm_v8hiv4si): Likewise.
22040 (vperm_v16qiv8hi): Likewise.
22042 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22043 Kelvin Nilsen <kelvin@gcc.gnu.org>
22045 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
22046 vpermr/xxpermr on ISA 3.0.
22047 (altivec_expand_vec_perm_le): Likewise.
22048 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
22049 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
22052 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
22054 * config/i386/i386.h (IS_STACK_MODE): Enable for
22055 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
22056 SSE_FLOAT_MODE_P macros.
22057 * config/i386/i386.c (ix86_preferred_reload_class): Use
22058 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
22059 Cleanup regclass processing for CONST_DOUBLE_P.
22060 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
22061 (ix86_rtx_costs): Remove redundant TARGET_80387 check
22062 with IS_STACK_MODE macro.
22063 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
22065 (*movdf_internal): Use IS_STACK_MODE macro.
22066 (*movsf_internal): Ditto.
22068 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
22070 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
22071 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
22073 2016-05-23 Jeff Law <law@redhat.com>
22075 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
22077 (fsm_find_control_statement_thread_paths): Call it.
22079 2016-05-23 Martin Jambor <mjambor@suse.cz>
22082 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
22083 from_global_constant if t is not NULL.
22085 2016-05-23 Marek Polacek <polacek@redhat.com>
22088 * common.opt (Wswitch-unreachable): New option.
22089 * doc/invoke.texi: Document -Wswitch-unreachable.
22090 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
22093 2016-05-23 Bin Cheng <bin.cheng@arm.com>
22095 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
22096 TMR_INDEX is non-NULL.
22098 2016-05-23 Richard Biener <rguenther@suse.de>
22100 PR tree-optimization/71230
22101 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
22102 (try_special_add_to_ops): ... here. Always test for single-use.
22104 2016-05-23 Martin Jambor <mjambor@suse.cz>
22106 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
22107 default block if a PHI node in the original one would be resized.
22109 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22111 PR tree-optimization/58135
22112 * tree-vect-slp.c: When group size is not multiple
22113 of vector size, allow splitting of store group at
22116 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
22118 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
22120 2016-05-22 Jakub Jelinek <jakub@redhat.com>
22122 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
22123 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
22124 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
22127 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
22128 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
22129 v constraint instead of x and vinserti32x4 insn.
22131 * config/i386/sse.md (i128vldq): New mode iterator.
22132 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
22133 avx512dq and avx512vl alternatives.
22135 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
22136 constraint, use maybe_evex prefix instead of vex.
22137 (vec_dupv4sf): Use v constraint instead of x for output
22138 operand except for noavx alternative, use Yv constraint
22139 instead of x for input. Use maybe_evex prefix instead of vex.
22140 (*vec_dupv4si): Likewise.
22141 (*vec_dupv2di): Likewise.
22143 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
22145 PR middle-end/40921
22146 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
22147 (linearize_expr_tree): Call try_special_add_to_ops.
22148 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
22150 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22152 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
22153 to computed stack_usage.
22155 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22158 * config/avr/avr.md (define_expand "mov<mode>"): If the source
22159 operand is subreg (symbol_ref) then move the symbol ref to register.
22161 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
22163 * tree.c (array_at_struct_end_p): Look through MEM_REF.
22165 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
22167 PR middle-end/71179
22168 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
22171 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
22173 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
22174 ranges by calling get_single_symbol and tidy up. Look more closely
22175 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
22177 2016-05-20 Jeff Law <law@redhat.com>
22179 * bitmap.c (bitmap_find_bit): Remove useless test.
22181 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
22183 * function.c (thread_prologue_and_epilogue_insns): Commit the
22184 insertion of the epilogue.
22186 2016-05-20 Martin Jambor <mjambor@suse.cz>
22188 PR tree-optimization/70884
22189 * tree-sra.c (initialize_constant_pool_replacements): Do not check
22190 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
22191 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
22192 of constant pool data as a reason for scalarization.
22194 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
22196 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
22197 for naked functions.
22198 (thumb1_expand_prologue): Likewise.
22200 2016-05-20 Nathan Sidwell <nathan@acm.org>
22202 * config/nvptx/nptx.c (nvptx_option_override): Only set
22203 flag_toplevel_reorder, if not explicitly specified. Set
22204 flag_no_common, unless explicitly specified.
22206 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22208 * calls.c (can_implement_as_sibling_call_p): Mark param
22209 reg_parm_stack_space with ATTRIBUTE_UNUSED.
22211 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
22213 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
22214 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
22215 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
22217 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
22218 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
22219 and CASE_CONST_ANY.
22221 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
22223 * config/nvptx/nvptx.md (sincossf3): New pattern.
22225 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22227 * calls.c (maybe_complain_about_tail_call): New function.
22228 (initialize_argument_information): Call
22229 maybe_complain_about_tail_call when clearing *may_tailcall.
22230 (can_implement_as_sibling_call_p): Call
22231 maybe_complain_about_tail_call when returning false.
22232 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
22233 ensure try_tail_call is set. Call maybe_complain_about_tail_call
22234 if tail-call optimization fails.
22235 * cfgexpand.c (expand_call_stmt): Initialize
22236 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
22237 * gimple-pretty-print.c (dump_gimple_call): Dump
22238 gimple_call_must_tail_p.
22239 * gimple.c (gimple_build_call_from_tree): Call
22240 gimple_call_set_must_tail with the value of
22241 CALL_EXPR_MUST_TAIL_CALL.
22242 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
22243 (gimple_call_set_must_tail): New function.
22244 (gimple_call_must_tail_p): New function.
22245 * print-tree.c (print_node): Update printing of TREE_STATIC
22246 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
22247 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
22248 trailing comment listing applicable flags.
22249 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
22251 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22253 * calls.c (expand_call): Move "Rest of purposes for tail call
22254 optimizations to fail" to...
22255 (can_implement_as_sibling_call_p): ...this new function, and
22256 split into multiple "if" statements.
22258 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22260 * cfgloop.h (expected_loop_iterations_unbounded,
22261 expected_loop_iterations): Unconstify.
22262 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
22263 profile with known upper bound; return 3 when profile is absent.
22264 (expected_loop_iterations): Update.
22266 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22268 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
22269 and get_max_loop_iterations_int.
22271 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22273 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
22274 realistic upper bounds here.
22276 2016-05-20 Jakub Jelinek <jakub@redhat.com>
22279 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
22280 calls if the LHS is variable length or has addressable type.
22281 If targets[0]->decl is a noreturn call with void return type and
22282 zero arguments, adjust fntype and remove lhs in that case.
22284 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
22286 PR tree-optimization/71079
22287 PR tree-optimization/71206
22288 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
22290 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22292 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
22293 (get_vec_alignment_for_array_decl): Likewise.
22294 (get_vec_alignment_for_record_decl): Likewise.
22295 (increase_alignment::execute): Move code to find alignment to
22296 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
22297 (type_align_map): New hash_map.
22299 2016-05-20 Richard Guenther <rguenther@suse.de>
22301 PR tree-optimization/29756
22302 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
22303 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
22304 * fold-const.c (operand_equal_p): Likewise.
22305 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
22306 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
22307 * tree-inline.c (estimate_operator_cost): Likewise.
22308 * tree-pretty-print.c (dump_generic_node): Likewise.
22309 * tree-ssa-operands.c (get_expr_operands): Likewise.
22310 * cfgexpand.c (expand_debug_expr): Likewise.
22311 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
22312 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
22313 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
22314 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
22315 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
22316 (execute_update_addresses_taken): Do it.
22318 2016-05-20 Richard Biener <rguenther@suse.de>
22320 PR tree-optimization/71185
22321 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
22322 register operations.
22324 2016-05-20 Richard Biener <rguenther@suse.de>
22326 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
22327 gimple_seq_add_seq_without_update.
22328 (release_bb_predicate): Assert we have no operands to free.
22329 (if_convertible_loop_p_1): Calculate post dominators later.
22330 Do not free BB predicates here.
22331 (combine_blocks): Do not recompute BB predicates.
22332 (version_loop_for_if_conversion): Save BB predicates around
22335 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22337 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
22338 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
22339 code. Ignore sibcalls on EDGE_IGNORE edges.
22340 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
22341 on edges for sibcalls that run without prologue. The rest of the
22342 function is combined from...
22343 (fix_fake_fallthrough_edge): ... this, and ...
22344 (try_shrink_wrapping): ... a part of this. Remove the bb_with
22345 function argument, make it a local variable.
22347 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
22349 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
22350 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
22351 for 32-bit mode and SEH for 64-bit.
22352 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
22353 TARGET_64BIT_DEFAULT.
22355 2016-05-19 Ryan Burn <contact@rnburn.com>
22357 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
22358 * gengtype.c (open_base_files): Add cilk.h to ifiles.
22360 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
22362 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
22363 force pending loads from memory.
22365 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
22367 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
22368 (UNSPEC_DARN_32): New unspec constant.
22369 (UNSPEC_DARN_RAW): New unspec constant.
22370 (darn_32): New instruction.
22371 (darn_raw): New instruction.
22372 (darn): New instruction.
22373 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
22374 support and documentation for this macro.
22375 (BU_P9_MISC_1): New macro definition.
22376 (BU_P9_64BIT_MISC_0): New macro definition.
22377 (BU_P9_MISC_0): New macro definition.
22378 (darn_32): New builtin definition.
22379 (darn_raw): New builtin definition.
22380 (darn): New builtin definition.
22381 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
22382 RS6000_BUILTIN_0 directives to surround each occurrence of
22383 #include "rs6000-builtin.def".
22384 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
22385 RS6000_BTM_64BIT flags to the returned mask, depending on
22387 (def_builtin): Correct an error in the assignments made to the
22388 debugging variable attr_string.
22389 (rs6000_expand_builtin): Add support for no-operand built-in
22391 (builtin_function_type): Remove fatal_error assertion that is no
22393 (rs6000_common_init_builtins): Add support for no-operand built-in
22395 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
22397 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
22399 (RS6000_BTM_64BIT): New macro definition.
22400 * doc/extend.texi: Document __builtin_darn (void),
22401 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
22404 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
22406 * tree-vect-loop.c (vect_analyze_loop_2): Use also
22407 max_loop_iterations_int.
22409 2016-05-19 Marek Polacek <polacek@redhat.com>
22411 PR tree-optimization/71031
22412 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
22413 condition and adjust the code a bit.
22415 2016-05-19 Martin Liska <mliska@suse.cz>
22417 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
22418 auto_vec instead of vec.
22420 2016-05-19 Martin Liska <mliska@suse.cz>
22422 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
22424 2016-05-19 Martin Liska <mliska@suse.cz>
22426 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
22428 2016-05-19 Martin Liska <mliska@suse.cz>
22430 * ipa-pure-const.c (set_function_state): Remove an existing
22432 (remove_node_data): Do not free it as it's released
22433 in set_function_state.
22435 2016-05-19 Martin Liska <mliska@suse.cz>
22437 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
22440 2016-05-19 Martin Liska <mliska@suse.cz>
22442 * omp-simd-clone.c (simd_clone_adjust): Release vector.
22444 2016-05-19 Martin Liska <mliska@suse.cz>
22446 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
22447 an auto_vec instead of re-creating it.
22449 2016-05-19 Martin Liska <mliska@suse.cz>
22451 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
22452 auto_vec instead of vec.
22454 2016-05-19 Martin Liska <mliska@suse.cz>
22456 * lto-section-in.c (lto_get_section_data): Call
22457 lto_check_version with additional argument.
22458 * lto-streamer.c (lto_check_version): Add new argument.
22459 * lto-streamer.h (lto_check_version): Likewise.
22461 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22463 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
22464 Don't add cost of inner memory when handling sign-extended loads.
22466 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
22468 PR rtl-optimization/71148
22469 * cse.c (cse_main): Free dominance info.
22470 (rest_of_handle_cse): Don't free dominance info.
22471 (rest_of_handle_cse2): Likewise.
22472 (rest_of_handle_cse_after_global_opts): Likewise.
22474 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22477 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
22478 NULL_TREE early if NEON is not available. Remove now redundant check
22479 in ARM_CHECK_BUILTIN_MODE.
22481 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
22484 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
22485 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
22486 * doc/cpp.texi: Document new macros.
22488 2016-05-19 Bin Cheng <bin.cheng@arm.com>
22490 PR tree-optimization/69848
22491 * tree-vect-loop.c (vectorizable_reduction): Don't factor
22492 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
22494 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22496 * function.c (thread_prologue_and_epilogue_insn): Move the
22497 "goto epilogue_done" one block later.
22499 2016-05-19 Richard Biener <rguenther@suse.de>
22501 PR tree-optimization/70729
22502 * passes.def: Move LIM pass before PRE. Remove no longer
22503 required copyprop and move first DCE out of the loop pipeline.
22505 2016-05-18 David Malcolm <dmalcolm@redhat.com>
22508 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
22509 (OBJS-libcommon-target): ...here.
22510 * opts-common.c: Include spellcheck.h.
22511 (cmdline_handle_error): Build a vec of valid options and use it
22512 to suggest provide hints for misspelled arguments.
22514 2016-05-18 Jakub Jelinek <jakub@redhat.com>
22517 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
22518 lhs if it has TREE_ADDRESSABLE type.
22520 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
22523 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
22524 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
22526 2016-05-18 Martin Jambor <mjambor@suse.cz>
22529 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
22530 input for NOP_EXPR pass-through functions.
22531 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
22532 aggregate global constant VAR_DECLs in constant jump functions.
22534 2016-05-18 Martin Jambor <mjambor@suse.cz>
22537 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
22538 from TREE_READONLY parameters.
22540 2016-05-18 Martin Jambor <mjambor@suse.cz>
22543 * cgraph.h (cgraph_indirect_call_info): New field
22544 guaranteed_unmodified.
22545 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
22546 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
22548 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
22549 pass the parameter value to ipa_find_agg_cst_for_param.
22550 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
22551 guaranteed_unmodified, store AA results there instead of bailing out
22553 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
22554 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
22555 (find_constructor_constant_at_offset): New function.
22556 (ipa_find_agg_cst_from_init): Likewise.
22557 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
22558 static initializers of contants, report back through a new paameter
22559 from_global_constant if that was the case.
22560 (try_make_edge_direct_simple_call): Also pass parameter value to
22561 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
22563 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
22564 (ipa_read_indirect_edge_info): Likewise.
22565 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
22566 (ipa_load_from_parm_agg): Likewise.
22568 2016-05-18 Jiong Wang <jiong.wang@arm.com>
22570 PR rtl-optimization/71150
22571 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
22574 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22577 * config/rs6000/constraints.md (wE constraint): New constraint
22578 for a vector constant that can be loaded with XXSPLTIB.
22579 (wM constraint): New constraint for a vector constant of a 1's.
22580 (wS constraint): New constraint for a vector constant that can be
22581 loaded with XXSPLTIB and a vector sign extend instruction.
22582 * config/rs6000/predicates.md (xxspltib_constant_split): New
22583 predicates for wE/wS constraints.
22584 (xxspltib_constant_nosplit): Likewise.
22585 (easy_vector_constant): Add support for constants that can be
22586 loaded via XXSPLTIB.
22587 (all_ones_constant): New predicate for vector constant with all
22589 (splat_input_operand): Add support for ISA 3.0 word splat operations.
22590 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
22591 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
22592 instruction and possibly with a sign extension.
22593 (output_vec_const_move): Add support for XXSPLTIB. If we are
22594 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
22595 instead of XXLXOR/XXLORC.
22596 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
22598 (rs6000_legitimize_reload_address): Likewise.
22599 (rs6000_output_move_128bit): Use output_vec_const_move to emit
22601 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
22602 combine VSX_M and VSX_M2 into one iterator.
22603 (VSX_M2): Likewise.
22604 (VSINT_84): New iterators for loading constants with XXSPLTIB.
22605 (VSINT_842): Likewise.
22606 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
22607 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
22608 XXSPLTIB instruction.
22609 (xxspltib_<mode>_nosplit): Likewise.
22610 (xxspltib_<mode>_split): New insn to load up constants with
22611 XXSPLTIB and a sign extend instruction.
22612 (vsx_mov<mode>): Replace single move that handled all vector types
22613 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
22614 moves (when -mvsx-timode is in effect) into the main vector
22615 moves. Eliminate separate moves for <VSr> <VSa>, where the
22616 preferred register class (<VSr>) is listed first, and the
22617 secondary register class (<VSa>) is listed second with a '?' to
22618 discourage use. Prefer loading 0/-1 in any VSX register for ISA
22619 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
22620 that if the register was involved in a slow operation, the
22621 clear/set operation does not wait for the slow operation to
22622 finish. Adjust the length attributes for 32-bit mode. Use
22623 rs6000_output_move_128bit and drop the use of the string
22624 instructions for 32-bit movti when -mvsx-timode is in effect. Use
22625 spacing so that the alternatives and attributes don't generate
22626 long lines, and put things in columns, so that it is easier to
22627 match up the operands and attributes with the insn alternatives.
22628 (vsx_mov<mode>_64bit): Likewise.
22629 (vsx_mov<mode>_32bit): Likewise.
22630 (vsx_movti_64bit): Fold movti into normal vector moves.
22631 (vsx_movti_32bit): Likewise.
22632 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
22633 splat instructions.
22634 (vsx_splat_v4si_internal): Likewise.
22635 (vsx_splat_v4sf_internal): Likewise.
22636 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
22637 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
22638 extend vector elements.
22639 (vsx_sign_extend_hi_<mode>): Likewise.
22640 (vsx_sign_extend_si_v2di): Likewise.
22641 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
22643 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
22644 constraints. Add trailing period to wL documentation.
22646 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
22648 PR middle-end/71020
22649 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
22650 * tree-dfa.c (replace_abnormal_ssa_names): New function.
22651 * tree-call-cdce.c: Include tree-dfa.h.
22652 (can_guard_call_p): New function, extracted from...
22653 (can_use_internal_fn): ...here.
22654 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
22656 (shrink_wrap_one_built_in_call): Likewise.
22657 (use_internal_fn): Likewise.
22658 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
22659 and return void. Call replace_abnormal_ssa_names.
22660 (pass_call_cdce::execute): Check can_guard_call_p during the
22661 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
22662 will always change something.
22664 2016-05-18 Martin Jambor <mjambor@suse.cz>
22667 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
22668 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
22670 2016-05-18 Martin Jambor <mjambor@suse.cz>
22673 * ipa-inline.h (condition): New field size.
22674 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
22675 for comaprison and store it into the new condition.
22676 (evaluate_conditions_for_known_args): Use condition size to check
22677 access sizes for all but CHANGED conditions.
22678 (unmodified_parm_1): New parameter size_p, store access size into it.
22679 (unmodified_parm): Likewise.
22680 (unmodified_parm_or_parm_agg_item): Likewise.
22681 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
22682 (set_cond_stmt_execution_predicate): Extract access sizes and store
22683 them to conditions.
22684 (set_switch_stmt_execution_predicate): Likewise.
22685 (will_be_nonconstant_expr_predicate): Likewise.
22686 (will_be_nonconstant_predicate): Likewise.
22687 (inline_read_section): Stream condition size.
22688 (inline_write_summary): Likewise.
22690 2016-05-18 Richard Biener <rguenther@suse.de>
22692 * tree-ssa-loop-im.c (determine_max_movement): Properly add
22693 condition cost to PHI cost instead of total_cost.
22695 2016-05-18 Martin Liska <mliska@suse.cz>
22698 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
22701 2016-05-18 Richard Biener <rguenther@suse.de>
22703 * lto-streamer.h (LTO_major_version): Bump to 6.
22705 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
22707 * function.c (make_split_prologue_seq, make_prologue_seq,
22708 make_epilogue_seq): New functions, factored out from...
22709 (thread_prologue_and_epilogue_insns): Here.
22711 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
22713 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
22714 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
22715 of before. Add a comment.
22717 2016-05-18 Bin Cheng <bin.cheng@arm.com>
22719 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
22720 expression pointer, not pointer to the pointer.
22722 2016-05-18 Jakub Jelinek <jakub@redhat.com>
22724 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
22725 (avx2_pbroadcast<mode>): Add another alternative with v instead
22726 of x constraints in it, using <pbroadcast_evex_isa> isa.
22727 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
22729 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
22730 constraint x instead of v in second alternative, add avx512bw
22733 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
22734 constraint x instead of v in second alternative, add avx512bw
22737 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
22738 constraint x instead of v in second alternative, add avx512bw
22741 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
22742 avx512bw alternative.
22744 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
22746 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
22747 array to 128 chars.
22748 (define_insn "*andnottf3"): Ditto.
22749 (define_insn "*<code><mode>3"/any_logic): Ditto.
22750 (define_insn "*<code>tf3"/any_logic): Ditto.
22751 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
22752 operand to block AVX-512VL insn variant emit when it is not enabled.
22754 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
22756 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
22757 constraint fot SF mode.
22759 2016-05-18 Petr Murzin <petr.murzin@intel.com>
22760 Kirill Yukhin <kirill.yukhin@intel.com>
22762 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
22764 (define_insn "rsqrt14<mode>"): Ditto.
22765 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
22766 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
22767 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
22768 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
22769 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
22771 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
22772 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
22773 * config/i386/i386.c (ix86_print_operand): Expand check for size
22774 override codes for Intel syntax.
22776 2016-05-18 Richard Biener <rguenther@suse.de>
22778 PR tree-optimization/71168
22779 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
22780 initialization earlier.
22782 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
22784 * config/aarch64/aarch64-simd.md
22785 (aarch64_reduc_plus_internal<mode>): Rename to...
22786 (reduc_plus_scal): ...This, and remove previous implementation.
22788 2016-05-18 Richard Biener <rguenther@suse.de>
22790 * passes.def: Put late dse and cd_dce in canonical order.
22792 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
22794 * ipa-inline-transform.c (preserve_function_body_p): Look for
22795 first non-thunk clone.
22796 (save_function_body): Save into first non-thunk.
22797 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
22799 (lto_output_node): Inline thunks don't need body in every
22801 * lto-streamer-in.c: Do not fixup thunk clones.
22802 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
22804 * tree-inline.c (copy_bb): Be prepared for target node to be new after
22807 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
22809 PR middle-end/63586
22810 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
22811 (reassociate_bb): Call transform_add_to_multiply.
22813 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
22815 * config/aarch64/aarch64.c (all_extensions): Removed unused
22818 2016-05-17 Nathan Sidwell <nathan@acm.org>
22820 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
22821 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
22823 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
22825 PR tree-optimization/54579
22826 PR middle-end/55299
22827 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
22829 2016-05-17 Marek Polacek <polacek@redhat.com>
22832 * tree-inline.c (expand_call_inline): Call
22833 maybe_remove_unused_call_args.
22835 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
22837 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
22838 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
22839 * doc/md.texi (fmin@var{m}3): Likewise.
22841 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22843 * match.pd (X & C): New transformation.
22845 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22847 * match.pd (~X & Y): New transformation.
22849 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22851 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
22852 information for new SSA_NAME.
22853 (simplify_conversion_using_ranges): Get range through get_range_info
22854 instead of get_value_range.
22856 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22858 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
22859 Remove inline assembly.
22860 (vmvn_s16): Likewise.
22861 (vmvn_s32): Likewise.
22862 (vmvn_u8): Likewise.
22863 (vmvn_u16): Likewise.
22864 (vmvn_u32): Likewise.
22865 (vmvnq_s8): Likewise.
22866 (vmvnq_s16): Likewise.
22867 (vmvnq_s32): Likewise.
22868 (vmvnq_u8): Likewise.
22869 (vmvnq_u16): Likewise.
22870 (vmvnq_u32): Likewise.
22871 (vmvn_p8): Likewise.
22872 (vmvnq_p16): Likewise.
22874 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22876 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
22878 (vmul_n_s16): Likewise.
22879 (vmul_n_s32): Likewise.
22880 (vmul_n_u16): Likewise.
22881 (vmul_n_u32): Likewise.
22882 (vmulq_n_f32): Likewise.
22883 (vmulq_n_f64): Likewise.
22884 (vmulq_n_s16): Likewise.
22885 (vmulq_n_s32): Likewise.
22886 (vmulq_n_u16): Likewise.
22887 (vmulq_n_u32): Likewise.
22889 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22891 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
22892 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
22894 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22896 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
22897 to *aarch64_fma4_elt_from_dup<mode>.
22898 (*aarch64_fnma4_elt_to_128df): Rename to
22899 *aarch64_fnma4_elt_from_dup<mode>.
22900 * config/aarch64/arm_neon.h (vfma_n_f64): New.
22901 (vfms_n_f32): Likewise.
22902 (vfms_n_f64): Likewise.
22903 (vfmsq_n_f32): Likewise.
22904 (vfmsq_n_f64): Likewise.
22906 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
22908 * wide-int.h: Change fixed_wide_int_storage from class to struct.
22910 2016-05-17 Richard Biener <rguenther@suse.de>
22912 PR tree-optimization/71132
22913 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
22914 Only add control dependences for blocks in the loop.
22915 (build_rdg): Adjust.
22916 (generate_code_for_partition): Return whether loop should
22917 be destroyed and delay that.
22918 (distribute_loop): Likewise.
22919 (pass_loop_distribution::execute): Record loops to be destroyed
22920 and perform delayed destroying of loops.
22922 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22925 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
22927 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22929 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
22931 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
22934 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
22935 insertion point for instructions generated by validize_mem.
22937 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22939 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
22942 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22944 * config/aarch64/aarch64.c
22945 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
22946 rather than a macro.
22948 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
22950 * doc/invoke.texi (AArch64 Options): Various updates.
22952 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22954 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
22955 into instrumentation thunks.
22956 * cif-code.def (CIF_CHKP): New.
22958 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
22960 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
22962 2016-05-16 Martin Jambor <mjambor@suse.cz>
22964 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
22965 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
22967 2016-05-16 Marek Polacek <polacek@redhat.com>
22969 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
22972 2016-05-16 Martin Jambor <mjambor@suse.cz>
22975 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
22976 the outlined kernel function.
22978 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
22980 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
22981 (ISA_HAS_DLSA): Ditto.
22983 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
22985 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
22987 2016-05-16 Nathan Sidwell <nathan@acm.org>
22989 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
22990 (nvptx_name_replacement): Restore. Add comment.
22991 (write_fn_proto, write_fn_proto_from_insn,
22992 nvptx_output_call_insn): Restore
22993 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
22995 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
22997 * config/aarch64/aarch64.md
22998 (add<mode>3_compareC_cconly_imm): Remove use of %w.
22999 (add<mode>3_compareC_imm): Likewise.
23000 (<optab>si3_uxtw): Split into register and immediate variants.
23001 (andsi3_compare0_uxtw): Likewise.
23002 (and<mode>3_compare0): Likewise.
23003 (and<mode>3nr_compare0): Likewise.
23004 (stack_protect_test_<mode>): Don't use %x for memory operands.
23006 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23008 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
23010 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23012 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
23013 Split integer shifts into shift_reg and bfm.
23014 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23015 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
23016 (ror<mode>3_insn): Likewise.
23017 (<optab>si3_insn_uxtw): Likewise.
23018 (<optab><mode>3_insn): Change to rotate_imm.
23019 (extr<mode>5_insn_alt): Likewise.
23020 (extrsi5_insn_uxtw): Likewise.
23021 (extrsi5_insn_uxtw_alt): Likewise.
23023 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23025 * doc/tm.texi: Regenerate.
23026 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
23027 (TARGET_INVALID_RETURN_TYPE): Remove.
23028 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
23029 TARGET_INVALID_RETURN_TYPE.
23030 * target.def (invalid_parameter_type): Remove.
23031 (invalid_return_type): Remove.
23033 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23035 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
23036 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
23038 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
23040 (preserve_function_body_p): No need to preserve function body
23041 * cif-codes.def (CIF_THUNK): Remove.
23042 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
23044 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23046 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
23048 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23050 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
23053 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23055 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
23056 (inline_small_functions): Do not look for function symbol when
23059 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23061 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
23064 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23065 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23066 Jiong Wang <jiong.wang@arm.com>
23068 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
23069 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
23070 Define __ARM_FP16_ARGS when appropriate.
23071 * config/arm/arm.c (arm_invalid_parameter_type): Remove
23073 (arm_invalid_return_type): Likewise.
23074 (TARGET_INVALID_PARAMETER_TYPE): Remove.
23075 (TARGET_INVALID_RETURN_TYPE): Remove.
23076 (aapcs_vfp_sub_candidate): Allow HFmode.
23077 (aapcs_vfp_allocate): Add comment. Support HFmode.
23078 (aapcs_vfp_allocate_return_reg): Likewise.
23079 (struct aapcs_cp_arg_layout): Slightly reword comments for
23080 is_return_candidate and allocate_return_reg.
23081 (output_mov_vfp): Update assert.
23082 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
23084 (arm_invalid_parameter_type): Remove.
23085 (amr_invalid_return_type): Remove.
23086 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
23087 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
23088 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
23090 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23092 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23093 * config/aarch64/arch64-protos.h
23094 (aarch64_legitimize_reload_address): Remove.
23095 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
23098 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
23100 * configure.ac: Add ACX_NONCANONICAL_HOST.
23101 * configure: Regenerate.
23102 * Makefile.in: Set host_noncanonical.
23104 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
23107 * config/i386/i386.md (*movtf_internal): Before register allocation,
23108 do not allow FP constants for CM_MEDIUM memory model, allow only
23109 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
23110 (*movxf_internal): Ditto.
23111 (*movdf_internal): Ditto.
23112 (*movsf_internal): Ditto.
23114 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
23116 PR rtl-optimization/67483
23117 * combine.c (make_compound_operation): Don't call extract_left_shift
23118 with negative shift amounts.
23120 2016-05-13 Jakub Jelinek <jakub@redhat.com>
23123 * fold-const.c (fold_checksum_tree): Allow modification
23124 of TYPE_ALIAS_SET during folding.
23126 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
23127 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
23128 (ix86_split_to_parts): Likewise. Fix up formatting.
23130 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
23132 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
23133 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
23136 2016-05-13 Nathan Sidwell <nathan@acm.org>
23138 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
23139 (nvptx_name_replacement): Delete.
23140 (write_fn_proto, write_fn_proto_from_insn,
23141 nvptx_output_call_insn): Remove nvptx_name_replacement call.
23142 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
23143 * langhooks.c (add_builtin_funcction_common): Call
23144 targetm.mangle_decl_assembler_name.
23146 * config/nvptx/nvptx.c (write_fn_proto): Handle
23147 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
23149 2016-05-13 Martin Liska <mliska@suse.cz>
23151 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
23152 and PRIu64 in printf format.
23154 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23156 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
23159 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23161 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
23162 Change --param max-completely-peeled-times to
23163 --param max-completely-peel-times in dump file printing.
23165 2016-05-13 Richard Biener <rguenther@suse.de>
23167 PR tree-optimization/42587
23168 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
23169 (find_bswap_or_nop_1): Likewise.
23170 (bswap_replace): Likewise.
23172 2016-05-13 Martin Liska <mliska@suse.cz>
23174 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
23175 Initialize a variable with default value.
23177 2016-05-13 Martin Liska <mliska@suse.cz>
23179 * doc/invoke.texi: Enhance explanation of error recovery
23182 2016-05-13 Martin Liska <mliska@suse.cz>
23184 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
23185 (struct cost_pair): Change inv_expr_id (int) to inv_expr
23186 (iv_inv_expr_ent *).
23187 (struct iv_inv_expr_ent): Comment struct fields.
23188 (sort_iv_inv_expr_ent): New function.
23189 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
23190 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
23191 a hash_map between iv_inv_expr_ent and number of usages.
23192 (niter_for_exit): Fix coding style.
23193 (tree_ssa_iv_optimize_init): Use renamed variable.
23194 (determine_base_object): Fix coding style.
23195 (alloc_iv): Likewise.
23196 (find_interesting_uses_outside): Likewise.
23197 (add_candidate_1): Likewise.
23198 (add_standard_iv_candidates): Likewise.
23199 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
23200 (prepare_decl_rtl): Fix coding style.
23201 (get_address_cost): Likewise.
23202 (get_shiftadd_cost): Likewise.
23203 (force_expr_to_var_cost): Likewise.
23204 (compare_aff_trees): Likewise.
23205 (get_expr_id): Restructure the function.
23206 (get_loop_invariant_expr_id): Renamed to
23207 get_loop_invariant_expr.
23208 (get_computation_cost_at): Replace usage of inv_expr_id with
23210 (get_computation_cost): Likewise.
23211 (determine_group_iv_cost_generic): Likewise.
23212 (determine_group_iv_cost_address): Likewise.
23213 (iv_period): Fix coding style.
23214 (iv_elimination_compare_lt): Likewise.
23215 (may_eliminate_iv): Likewise.
23216 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
23218 (determine_group_iv_costs): Dump invariant expressions.
23219 (iv_ca_recount_cost): Use the newly added hash_map.
23220 (iv_ca_set_remove_invariants): Fix coding style.
23221 (iv_ca_set_add_invariants): Fix coding style.
23222 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
23224 (iv_ca_set_cp): Likewise.
23225 (iv_ca_new): Initialize the newly added hash_map and remove
23226 initialization of fields.
23227 (iv_ca_free): Delete the hash_map.
23228 (iv_ca_dump): Dump invariant expressions.
23229 (iv_ca_extend): Fix coding style.
23230 (try_add_cand_for): Likewise.
23231 (create_new_ivs): Dump information about # of avg iterations and
23232 # of used invariant expressions.
23233 (rewrite_use_compare): Fix coding style.
23234 (free_loop_data): Set default value for max_inv_expr_id.
23236 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
23238 * cse.c (rest_of_handle_cse): Use cleanup_cfg
23239 returned value cse_cfg_altered computation.
23240 (rest_of_handle_cse2): Likewise.
23241 (rest_of_handle_cse_after_global_opts): Likewise.
23243 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23246 * config/arm/arm.c (arm32_output_mi_thunk): New.
23247 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
23248 to split Thumb1 vs TARGET_32BIT functionality.
23249 (arm_thumb1_mi_thunk): New.
23251 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23253 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
23256 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23259 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
23261 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
23263 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
23264 (expand_builtin_trap): Emit a regular call.
23265 (set_builtin_user_assembler_name): Remove obsolete cases.
23266 * dse.c (scan_insn): Adjust.
23267 * except.c: Include calls.h.
23268 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
23269 emit a regular call to setjmp.
23270 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
23271 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
23272 (emit_block_move_via_libcall): Delete.
23273 (block_move_fn): Delete.
23274 (init_block_move_fn): Likewise.
23275 (emit_block_move_libcall_fn): Likewise.
23276 (emit_block_op_via_libcall): New function.
23277 (set_storage_via_libcall): Tidy up and use memset builtin.
23278 (block_clear_fn): Delete.
23279 (init_block_clear_fn): Likewise.
23280 (clear_storage_libcall_fn): Likewise.
23281 (expand_assignment): Call emit_block_move_via_libcall.
23282 Do not include gt-expr.h.
23283 * expr.h (emit_block_op_via_libcall): Declare.
23284 (emit_block_copy_via_libcall): New inline function.
23285 (emit_block_move_via_libcall): Likewise.
23286 (emit_block_comp_via_libcall): Likewise.
23287 (block_clear_fn): Delete.
23288 (init_block_move_fn): Likewise.
23289 (init_block_clear_fn): Likewise.
23290 (emit_block_move_via_libcall): Likewise.
23291 (set_storage_via_libcall): Add default parameter value.
23292 * libfuncs.h (enum libfunc_index): Remove obsolete values.
23293 (abort_libfunc): Delete.
23294 (memcpy_libfunc): Likewise.
23295 (memmove_libfunc): Likewise.
23296 (memcmp_libfunc): Likewise.
23297 (memset_libfunc): Likewise.
23298 (setbits_libfunc): Likewise.
23299 (setjmp_libfunc): Likewise.
23300 (longjmp_libfunc): Likewise.
23301 (profile_function_entry_libfunc): Likewise.
23302 (profile_function_exit_libfunc): Likewise.
23303 (gcov_flush_libfunc): Likewise.
23304 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
23305 and DECL_VISIBILITY on the declaration.
23306 (init_optabs): Do not initialize obsolete libfuncs.
23307 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
23308 * tree-core.h (ECF_RET1): Define.
23309 (ECF_TM_PURE): Adjust.
23310 (ECF_TM_BUILTIN): Likewise.
23311 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
23312 (build_common_builtin_nodes): Initialize abort builtin.
23313 Add ECF_RET1 on memcpy, memmove and memset builtins.
23314 Pass final flags for alloca and alloca_with_align builtins.
23315 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
23317 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
23318 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
23319 set_storage_via_libcall and call emit_block_copy_via_libcall.
23321 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
23323 * config/i386/i386.md (*call_got_x32): Change operand 0 to
23324 DImode before it is passed to ix86_output_call_operand.
23325 (*call_value_got_x32): Ditto for operand 1.
23327 2016-05-12 Jiong Wang <jiong.wang@arm.com>
23329 PR rtl-optimization/70904
23330 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
23331 reload for wide mode.
23333 2016-05-12 Marek Polacek <polacek@redhat.com>
23336 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
23337 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
23338 * langhooks.h (incomplete_type_error): Likewise.
23339 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
23340 parameter, pass it down to incomplete_type_error.
23341 * tree.h (size_in_bytes): New inline overload.
23342 (size_in_bytes_loc): Renamed from size_in_bytes.
23344 2016-05-12 Richard Biener <rguenther@suse.de>
23346 PR tree-optimization/71059
23347 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
23348 nary before looking up or entering the expression into the VN
23350 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
23351 Make sure to re-use NARYs without result as inserted by
23354 2016-05-12 Richard Biener <rguenther@suse.de>
23356 PR tree-optimization/71062
23357 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
23359 * tree-ssa-structalias.c (set_uids_in_ptset): Set
23360 vars_contains_restrict if the var is a restrict tag.
23361 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
23362 do not disambiguate pointers against it.
23363 (dump_points_to_solution): Re-structure and adjust for new
23364 vars_contains_restrict flag.
23365 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
23367 2016-05-12 Martin Liska <mliska@suse.cz>
23369 * doc/invoke.texi: Explain connection between
23370 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
23372 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
23374 PR tree-optimization/71006
23375 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
23376 consider COND_EXPR as a mask producer.
23378 2016-05-12 Marek Polacek <polacek@redhat.com>
23381 * opts.c (common_handle_option): Detect missing argument for --help^.
23383 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23386 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
23387 when popping the PC and within an interrupt handler routine.
23388 Add missing tab to output of "ldmfd".
23389 (output_return_instruction): Output LDMFD with SP update rather
23390 than POP when returning from interrupt handler.
23392 2016-05-12 Jakub Jelinek <jakub@redhat.com>
23394 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
23395 TARGET_64BIT && TARGET_AVX512DQ.
23396 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
23397 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
23398 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
23399 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
23400 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
23401 (*vec_extractv4si_zext): Add avx512dq alternative.
23402 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
23403 use v instead of x constraint in other alternatives where possible.
23405 * config/i386/sse.md (sse2_loadld): Use v instead of x
23406 constraint in alternatives 0,1,4.
23408 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
23409 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
23410 v constraints instead of x and <pinsr_evex_isa> isa attribute.
23413 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
23414 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
23415 is not emitted unless TARGET_AVX512BW.
23416 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
23417 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
23418 for the result operand.
23420 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
23421 constraint instead of x in avx alternatives. Use maybe_evex instead
23424 * config/i386/constraints.md (Yv): New constraint.
23425 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
23426 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
23427 * config/i386/i386.md (avx512fvecmode): New mode attr.
23428 (*pushtf): Use v constraint instead of x.
23429 (*movtf_internal): Likewise. For TARGET_AVX512VL and
23430 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
23431 (*absneg<mode>2): Use Yv constraint instead of x constraint.
23432 (*absnegtf2_sse): Likewise.
23433 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
23434 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
23435 avx512f alternatives.
23436 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
23438 2016-05-12 Richard Biener <rguenther@suse.de>
23440 PR tree-optimization/71060
23441 * tree-data-ref.c (initialize_data_dependence_relation): Do not
23442 require exact match of DR_BASE_OBJECT but only matching address and
23445 2016-05-12 Richard Biener <rguenther@suse.de>
23447 PR tree-optimization/70986
23448 * cfganal.c: Include cfgloop.h.
23449 (dfs_find_deadend): Prefer to take edges exiting loops.
23451 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23453 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
23454 compile and run time.
23456 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
23459 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
23461 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
23463 * config/i386/i386.c (legitimize_pic_address): Use
23464 copy_to_suggested_reg instead of gen_movsi.
23466 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23468 * config/rs6000/predicates.md (quad_memory_operand): Move most of
23469 the code into quad_address_p and call it to share code with
23470 vsx_quad_dform_memory_operand.
23471 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
23473 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
23474 bit instead of being a separate word. Split -mpower9-dform into
23475 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
23476 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
23477 for the register class supporting 128-bit quad word memory offsets.
23478 (mode_supports_vsx_dform_quad): Helper function to return if the
23479 register class uses quad word memory offsets.
23480 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
23481 (rs6000_debug_reg_global): Always print if we are using LRA or not.
23482 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
23483 instructions are enabled, set up the appropriate addr_masks for
23485 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
23486 -mpower9-dform-scalar, instead of -mpower9-dform.
23487 (rs6000_option_override_internal): Split -mpower9-dform into two
23488 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
23489 -mpower9-dform switch sets or clears both. If we are not using
23490 the LRA register allocator, do not enable -mpower9-dform-vector by
23491 default. If we are using LRA, enable -mpower9-dform-vector and
23492 -mvsx-timode if it is appropriate. Issue a warning if either
23493 -mpower9-dform-vector or -mvsx-timode are explicitly used without
23495 (quad_address_offset_p): New helper function to return if the
23496 offset is legal for quad word memory instructions.
23497 (quad_address_p): New function to determin if GPR or vector
23498 register quad word memory addresses are legal.
23499 (mem_operand_gpr): Validate quad word address offsets.
23500 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
23501 d-form (register + offset) instructions.
23502 (offsettable_ok_by_alignment): Likewise.
23503 (rs6000_legitimate_offset_address_p): Likewise.
23504 (legitimate_lo_sum_address_p): Likewise.
23505 (rs6000_legitimize_address): Likewise.
23506 (rs6000_legitimize_reload_address): Add more debug statements for
23508 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
23509 d-form instructions.
23510 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
23511 d-form instructions. Distinguish different cases in debug
23512 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
23513 d-form instructions.
23514 (rs6000_preferred_reload_class): Likewise.
23515 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
23516 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
23517 of the ISA 2.06 indexed memory instructions.
23518 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
23519 use them to save/restore the saved vector registers instead of
23520 using Altivec instructions.
23521 (rs6000_emit_epilogue): Likewise.
23522 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
23523 (rs6000_opt_masks): Split -mpower9-dform into
23524 -mpower9-dform-scalar and -mpower9-dform-vector.
23525 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
23527 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
23528 ISA 3.0 vector indexed memory instructions, and fold the code into
23529 the normal mov<mode> patterns.
23530 (p9_vecstore_<mode>): Likewise.
23531 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
23533 (vsx_movti_64bit): Likewise.
23534 (vsx_movti_32bit): Likewise.
23535 * config/rs6000/constraints.md (wO constraint): New constraint for
23536 ISA 3.0 vector d-form support.
23537 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
23538 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
23539 include -mpower9-dform-vector until we switch over to LRA.
23540 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
23541 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
23542 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
23543 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
23544 for -mpower9-dform and -mlra.
23545 * doc/md.texi (wO constraint): Document wO constraint.
23547 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
23549 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
23550 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
23551 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
23552 Move handling of non-insn arguments inline into the sole user:
23553 (output_trans_func): ...here.
23554 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
23555 in emitted function prototype.
23556 (output_internal_insn_latency_func): Ditto. Simplify.
23557 (output_internal_maximal_insn_latency_func): Ditto. Delete
23558 always-unused argument.
23559 (output_insn_latency_func): Ditto.
23560 (output_maximal_insn_latency_func): Ditto.
23562 2016-05-11 Richard Biener <rguenther@suse.de>
23564 PR tree-optimization/71055
23565 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
23566 sth with precision not equal to access size verify we don't chop
23569 2016-05-11 Richard Biener <rguenther@suse.de>
23572 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
23573 (dwarf2out_finish): Move retry_incomplete_types call ...
23574 (dwarf2out_early_finish): ... here.
23576 2016-05-11 Richard Biener <rguenther@suse.de>
23578 PR middle-end/71002
23579 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
23580 if the langhook insists on it.
23581 * fold-const.c (make_bit_field_ref): Add arg for the original
23582 reference and preserve its alias-set.
23583 (decode_field_reference): Take exp by reference and adjust it
23584 to the original memory reference.
23585 (optimize_bit_field_compare): Adjust callers.
23586 (fold_truth_andor_1): Likewise.
23587 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
23589 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
23591 PR middle-end/70807
23592 * cfgrtl.h (delete_insn_and_edges): Now return bool.
23593 * cfgrtl.c (delete_insn_and_edges): Likewise.
23594 * config/i386/i386.c (convert_scalars_to_vector): Remove
23596 * cse.c (cse_insn): Compute cse_cfg_altered.
23597 (delete_trivially_dead_insns): Likewise.
23598 (cse_cc_succs): Likewise.
23599 (rest_of_handle_cse): Free dominance info if required.
23600 (rest_of_handle_cse2): Likewise.
23601 (rest_of_handle_cse_after_global_opts): Likewise.
23603 2016-05-11 Alan Modra <amodra@gmail.com>
23605 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
23606 abi_v4_pass_in_fpr): New functions.
23607 (rs6000_function_arg_boundary): Exclude complex IBM long double
23608 from 64-bit alignment when ABI_V4.
23609 (rs6000_function_arg, rs6000_function_arg_advance_1,
23610 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
23612 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
23614 PR rtl-optimization/71028
23615 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
23616 jump with just a return in the fallthrough block if the branch
23617 block contains just a return as well.
23619 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
23621 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
23622 * match.pd ((X & Y) ^ Y): ... this.
23623 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
23624 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
23626 2016-05-10 David Malcolm <dmalcolm@redhat.com>
23628 * read-md.c (require_char_ws): New function.
23629 (read_string): Simplify using require_char_ws.
23630 (handle_constants): Likewise.
23631 (handle_enum): Likewise.
23632 (handle_file): Likewise.
23633 * read-md.h (require_char_ws): New declaration.
23634 * read-rtl.c (read_conditions): Simplify using require_char_ws.
23635 (read_mapping): Likewise.
23636 (read_rtx_code): Likewise.
23637 (read_nested_rtx): Likewise.
23639 2016-05-10 James Norris <jnorris@codesourcery.com>
23641 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
23642 if offloading is enabled and -fopenacc or -fopenmp is specified.
23643 (CRTOFFLOADEND): Likewise.
23644 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
23645 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
23647 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
23649 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
23650 gotoff_operand code paths. Use copy_to_suggested_regs and
23651 expand_simple_binop where appropriate. Cleanup.
23653 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23656 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
23658 (dimode_scalar_chain::vector_const_cost): New.
23659 (dimode_scalar_chain::compute_convert_gain): Handle constants.
23660 (dimode_scalar_chain::convert_op): Likewise.
23661 (dimode_scalar_chain::convert_insn): Likewise.
23663 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
23665 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
23666 unary operation, not a binary one.
23668 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23670 PR middle-end/70877
23671 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
23672 calls with type casted fndecl.
23674 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23676 PR tree-optimization/70786
23677 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
23678 * calls.c (initialize_argument_information): Bind bounds
23679 with corresponding args passed by reference.
23681 2016-05-10 Jakub Jelinek <jakub@redhat.com>
23684 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
23685 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
23686 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
23689 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23692 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
23693 code for a zero scale factor.
23694 (vsx_xvcvdpuxds_scale): Likewise.
23696 2016-05-10 David Malcolm <dmalcolm@redhat.com>
23698 * diagnostic-show-locus.c (layout::layout): Call show_ruler
23699 if show_ruler_p was set on the context.
23700 (layout::show_ruler): New method.
23701 * diagnostic.h (struct diagnostic_context): Add field
23704 2016-05-10 Richard Biener <rguenther@suse.de>
23706 PR tree-optimization/71039
23707 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
23708 (chk_uses): New function.
23709 (propagate_with_phi): Verify we can safely replicate the lhs of an
23710 aggregate assignment on all incoming edges.
23712 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
23714 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
23716 (rx_atomic_sequence): New class.
23717 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
23718 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
23720 (rx_atomic_sequence::rx_atomic_sequence,
23721 rx_atomic_sequence::~rx_atomic_sequence): New functions.
23722 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
23723 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
23724 CTRLREG_INTB): New constants.
23725 (FETCHOP): New code iterator.
23726 (fethcop_name, fetchop_name2): New iterator code attributes.
23727 (QIHI): New mode iterator.
23728 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
23729 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
23730 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
23732 2016-05-10 Martin Liska <mliska@suse.cz>
23734 * tree-inline.c (remap_dependence_clique): Do not remap
23735 debugging statements.
23737 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23739 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
23740 ("*fixuns_truncdfdi2_z13")
23741 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
23742 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
23743 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
23745 2016-05-10 Richard Biener <rguenther@suse.de>
23747 PR tree-optimization/70497
23748 PR tree-optimization/28367
23749 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
23751 (visit_reference_op_load): ... here.
23752 (vn_reference_lookup_3): Use it to handle subreg-like accesses
23753 with simplified BIT_FIELD_REFs.
23754 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
23755 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
23758 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
23760 * dwarf2out.c (add_abstract_origin_attribute): Adjust
23761 documentation comment. For BLOCK nodes, add a
23762 DW_AT_abstract_origin attribute that points to the DIE generated
23763 for the origin BLOCK.
23764 (gen_lexical_block_die): Call add_abstract_origin_attribute for
23765 blocks from inlined functions.
23767 2016-05-10 Alan Modra <amodra@gmail.com>
23770 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
23771 regrename modifying insns saving lr before __morestack call.
23772 * config/rs6000/rs6000.md (split_stack_return): Similarly for
23773 insns restoring lr after __morestack call.
23775 2016-05-09 Jakub Jelinek <jakub@redhat.com>
23777 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
23778 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
23780 * config/i386/sse.md (vec_interleave_high<mode>,
23781 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
23782 <avx512>_vpermt2var<mode>3_maskz): Likewise.
23784 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
23786 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
23787 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
23788 parallel reassociation for power8 and forward.
23790 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
23792 * config/i386/i386.md (absneg splitters with general regs): Use
23793 general_reg_operand predicate.
23794 (btsq peephole2): Use x86_64_immediate_operand to check if new
23795 value is suitable for immediate operand. Generate emitted insn
23796 using RTL expressions.
23797 (btcq peephole2): Ditto.
23798 (btrq peephole2): Ditto. Generate correct immediate operand
23801 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
23803 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
23806 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
23808 * tree-affine.c (wide_int_constant_multiple_p): Add missing
23809 pointer dereference.
23811 2016-05-09 Richard Biener <rguenther@suse.de>
23813 PR tree-optimization/70985
23814 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
23815 op0 isn't a gimple register.
23817 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
23819 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
23820 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
23821 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
23822 (i6400_fpu_mult): New cpu units.
23823 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
23824 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
23825 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
23826 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
23827 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
23828 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
23829 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
23830 (i6400_msa_long_float4, i6400_msa_long_float5)
23831 (i6400_msa_long_float8, i6400_msa_fdiv_df)
23832 (i6400_msa_fdiv_sf): New reservations.
23833 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
23834 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
23835 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
23836 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
23837 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
23838 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
23839 (msa_short_cmp, msa_short_float2, msa_short_logic3)
23840 (msa_short_store4, msa_long_load, msa_short_store)
23841 (msa_long_logic, msa_long_float2, msa_long_float4)
23842 (msa_long_float5, msa_long_float8, msa_long_mult)
23843 (msa_long_fdiv, msa_long_div): New reservations.
23845 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
23846 Sameera Deshpande <sameera.deshpande@imgtec.com>
23847 Matthew Fortune <matthew.fortune@imgtec.com>
23848 Graham Stott <graham.stott@imgtec.com>
23849 Chao-ying Fu <chao-ying.fu@imgtec.com>
23851 * config.gcc: Add MSA header file for mips*-*-* target.
23852 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
23853 (Ubv8i, Urv8): New constraints.
23854 * config/mips/mips-ftypes.def: Add function types for MSA
23856 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
23857 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
23858 * config/mips/mips-msa.md: New file.
23859 * config/mips/mips-protos.h
23860 (mips_split_128bit_const_insns): New prototype.
23861 (mips_msa_idiv_insns): Likewise.
23862 (mips_split_128bit_move): Likewise.
23863 (mips_split_128bit_move_p): Likewise.
23864 (mips_split_msa_copy_d): Likewise.
23865 (mips_split_msa_insert_d): Likewise.
23866 (mips_split_msa_fill_d): Likewise.
23867 (mips_expand_msa_branch): Likewise.
23868 (mips_const_vector_same_val_p): Likewise.
23869 (mips_const_vector_same_bytes_p): Likewise.
23870 (mips_const_vector_same_int_p): Likewise.
23871 (mips_const_vector_shuffle_set_p): Likewise.
23872 (mips_const_vector_bitimm_set_p): Likewise.
23873 (mips_const_vector_bitimm_clr_p): Likewise.
23874 (mips_msa_vec_parallel_const_half): Likewise.
23875 (mips_msa_output_division): Likewise.
23876 (mips_ldst_scaled_shift): Likewise.
23877 (mips_expand_vec_cond_expr): Likewise.
23878 * config/mips/mips.c (enum mips_builtin_type): Add
23879 MIPS_BUILTIN_MSA_TEST_BRANCH.
23880 (mips_gen_const_int_vector_shuffle): New prototype.
23881 (mips_const_vector_bitimm_set_p): New function.
23882 (mips_const_vector_bitimm_clr_p): Likewise.
23883 (mips_const_vector_same_val_p): Likewise.
23884 (mips_const_vector_same_bytes_p): Likewise.
23885 (mips_const_vector_same_int_p): Likewise.
23886 (mips_const_vector_shuffle_set_p): Likewise.
23887 (mips_symbol_insns): Forbid loading symbols via immediate for
23889 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
23891 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
23893 (mips_lx_address_p): Add support load indexed address for MSA.
23894 (mips_address_insns): Add calculation of instructions needed for
23895 stores and loads for MSA.
23896 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
23897 CONST_VECTOR for MSA and let it fall through.
23898 (mips_ldst_scaled_shift): New function.
23899 (mips_subword_at_byte): Likewise.
23900 (mips_msa_idiv_insns): Likewise.
23901 (mips_legitimize_move): Validate MSA moves.
23902 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
23903 calculation of costs for MSA division.
23904 (mips_split_move_p): Check if MSA moves need splitting.
23905 (mips_split_move): Split MSA moves if necessary.
23906 (mips_split_128bit_move_p): New function.
23907 (mips_split_128bit_move): Likewise.
23908 (mips_split_msa_copy_d): Likewise.
23909 (mips_split_msa_insert_d): Likewise.
23910 (mips_split_msa_fill_d): Likewise.
23911 (mips_output_move): Handle MSA moves.
23912 (mips_expand_msa_branch): New function.
23913 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
23914 Reinstate 'y' modifier.
23915 (mips_file_start): Add MSA .gnu_attribute.
23916 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
23918 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
23919 (mips_class_max_nregs): Add register size for MSA supported mode.
23920 (mips_cannot_change_mode_class): Allow conversion between MSA
23921 vector modes and TImode.
23922 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
23924 (mips_secondary_reload_class): Force MSA loads/stores via memory.
23925 (mips_preferred_simd_mode): Add preffered modes for MSA.
23926 (mips_vector_mode_supported_p): Add MSA supported modes.
23927 (mips_autovectorize_vector_sizes): New function.
23928 (mips_msa_output_division): Likewise.
23929 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
23930 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
23931 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
23932 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
23933 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
23934 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
23935 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
23936 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
23937 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
23938 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
23939 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
23940 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
23941 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
23942 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
23943 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
23944 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
23945 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
23946 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
23947 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
23948 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
23949 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
23950 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
23951 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
23952 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
23953 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
23954 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
23955 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
23956 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
23957 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
23958 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
23959 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
23960 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
23961 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
23962 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
23963 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
23964 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
23965 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
23966 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
23967 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
23968 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
23969 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
23970 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
23971 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
23972 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
23973 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
23974 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
23975 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
23976 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
23977 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
23978 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
23979 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
23980 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
23981 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
23982 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
23983 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
23984 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
23985 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
23986 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
23987 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
23988 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
23989 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
23990 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
23991 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
23992 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
23993 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
23994 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
23995 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
23996 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
23997 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
23998 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
23999 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
24000 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
24001 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
24002 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
24003 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
24004 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
24005 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
24006 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
24007 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
24008 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
24009 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
24010 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
24011 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
24012 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
24013 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
24014 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
24015 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
24016 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
24017 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
24018 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
24019 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
24020 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
24021 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
24022 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
24023 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
24024 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
24025 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
24026 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
24027 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
24028 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
24029 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
24030 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
24031 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
24032 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
24033 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
24034 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
24035 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
24036 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
24037 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
24038 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
24039 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
24040 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
24041 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
24042 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
24043 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
24044 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
24045 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
24046 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
24047 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
24048 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
24049 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
24050 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
24051 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
24052 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
24053 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
24054 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
24055 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
24056 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
24057 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
24058 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
24059 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
24060 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
24061 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
24062 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
24063 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
24064 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
24065 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
24066 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
24067 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
24068 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
24069 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
24070 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
24071 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
24072 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
24073 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
24074 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
24075 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
24076 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
24077 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
24078 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
24079 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
24081 (mips_get_builtin_decl_index): New array.
24082 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
24083 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
24084 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
24085 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
24086 (mips_init_builtins): Initialize mips_get_builtin_decl_index
24088 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
24090 (mips_expand_builtin_insn): Prepare operands for
24091 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
24092 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
24093 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
24094 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
24095 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
24096 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
24097 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
24098 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
24099 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
24100 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
24101 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
24102 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
24103 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
24104 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
24105 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
24106 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
24107 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
24108 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
24109 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
24110 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
24111 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
24112 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
24113 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
24114 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
24115 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
24116 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
24117 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
24118 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
24119 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
24120 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
24121 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
24122 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
24123 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
24124 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
24125 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
24126 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
24127 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
24128 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
24129 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
24130 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
24131 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
24132 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
24133 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
24134 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
24135 These are set implicitly and an error is reported if overridden.
24136 (mips_expand_builtin_msa_test_branch): New function.
24137 (mips_expand_msa_shuffle): Likewise.
24138 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
24139 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
24140 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
24141 (mips_expand_vec_unpack): Add support for MSA.
24142 (mips_expand_vector_init): Likewise.
24143 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
24144 instead of const0_rtx.
24145 (mips_msa_vec_parallel_const_half): New function.
24146 (mips_gen_const_int_vector): Likewise.
24147 (mips_gen_const_int_vector_shuffle): Likewise.
24148 (mips_expand_msa_cmp): Likewise.
24149 (mips_expand_vec_cond_expr): Likewise.
24150 * config/mips/mips.h
24151 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
24152 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
24154 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
24155 (ISA_HAS_MSA): New macro.
24156 (UNITS_PER_MSA_REG): Likewise.
24157 (BITS_PER_MSA_REG): Likewise.
24158 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
24159 (MSA_REG_FIRST): New macro.
24160 (MSA_REG_LAST): Likewise.
24161 (MSA_REG_NUM): Likewise.
24162 (MSA_REG_P): Likewise.
24163 (MSA_REG_RTX_P): Likewise.
24164 (MSA_SUPPORTED_MODE_P): Likewise.
24165 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
24166 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
24167 * config/mips/mips.md: Include mips-msa.md.
24168 (alu_type): Add simd_add.
24169 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
24170 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
24171 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
24172 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
24173 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
24174 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
24175 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
24176 simd_move, simd_load, simd_store. Choose "multi" for moves
24178 (qword_mode): New attribute.
24179 (insn_count): Add instruction count for quad moves.
24180 Increase the count for MIPS SIMD division.
24181 (UNITMODE): Add UNITMODEs for vector types.
24182 (addsub): New code iterator.
24183 * config/mips/mips.opt (mmsa): New option.
24184 * config/mips/msa.h: New file.
24185 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
24187 * config/mips/mti-linux.h: Likewise.
24188 * config/mips/predicates.md
24189 (const_msa_branch_operand): New constraint.
24190 (const_uimm3_operand): Likewise.
24191 (const_uimm4_operand): Likewise.
24192 (const_uimm5_operand): Likewise.
24193 (const_uimm8_operand): Likewise.
24194 (const_imm5_operand): Likewise.
24195 (aq10b_operand): Likewise.
24196 (aq10h_operand): Likewise.
24197 (aq10w_operand): Likewise.
24198 (aq10d_operand): Likewise.
24199 (const_m1_operand): Likewise.
24200 (reg_or_m1_operand): Likewise.
24201 (const_exp_2_operand): Likewise.
24202 (const_exp_4_operand): Likewise.
24203 (const_exp_8_operand): Likewise.
24204 (const_exp_16_operand): Likewise.
24205 (const_vector_same_val_operand): Likewise.
24206 (const_vector_same_simm5_operand): Likewise.
24207 (const_vector_same_uimm5_operand): Likewise.
24208 (const_vector_same_uimm6_operand): Likewise.
24209 (const_vector_same_uimm8_operand): Likewise.
24210 (par_const_vector_shf_set_operand): Likewise.
24211 (reg_or_vector_same_val_operand): Likewise.
24212 (reg_or_vector_same_simm5_operand): Likewise.
24213 (reg_or_vector_same_uimm6_operand): Likewise.
24214 * doc/extend.texi (MIPS SIMD Architecture Functions): New
24216 * doc/invoke.texi (-mmsa): Document new option.
24218 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24220 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
24221 * configure: Regenerate.
24222 * config.in: Regenerate.
24223 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
24224 on -fvtable-verify.
24225 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
24226 (ENDFILE_VTV_SPEC): Define.
24228 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
24230 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
24231 registers in all interrupt handlers if necessary.
24232 (rl78_option_override): Add warning.
24233 (MUST_SAVE_MDUC_REGISTERS): New macro.
24234 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
24235 * config/rl78/rl78.c (check_mduc_usage): New function.
24236 (mduc_regs): New structure to hold MDUC register data.
24237 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
24238 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
24239 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
24240 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
24241 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
24242 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
24244 2016-05-09 Bin Cheng <bin.cheng@arm.com>
24246 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
24247 (tree-ssa-loop-niter.h): Ditto.
24248 (idx_within_array_bound, ref_within_array_bound): New functions.
24249 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
24250 Factor out check on writable base object to ...
24251 (base_object_writable): ... here.
24253 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24255 * config/arm/arm.md (probe_stack): Add modes to set source
24258 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
24260 * regrename.c (base_reg_class_for_rename): New static function.
24261 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
24263 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
24265 * cgraph.c (thunk_adjust): Export.
24266 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
24267 * cgraphunit.c (thunk_adjust): Export.
24268 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
24270 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
24272 * tree-inline.c (expand_call_inline): Expand thunks inline.
24274 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
24277 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
24278 (*sse2_vd_cvtss2sd): Ditto.
24279 * config/i386/i386.md
24280 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
24281 Generate *sse2_vd_cvtsd2ss pattern.
24282 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
24283 Generate *sse2_vd_cvtss2sd pattern.
24285 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
24287 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
24288 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
24291 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
24293 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
24294 * config/sh/sh.c: Define and declare variables on first use throughout
24296 (current_function_interrupt): Change to bool type.
24297 (frame_insn): Rename to emit_frame_insn and update users.
24298 (push_regs): Use bool for 'interrupt_handler' argument.
24299 (save_schedule_s): Remove.
24300 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
24301 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
24302 targetm.asm_out.unaligned_op.di.
24303 (gen_far_branch): Remove redundant forward declaration.
24304 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
24305 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
24306 (sh_set_return_address, sh_function_ok_for_sibcall,
24307 scavenge_reg): Update comments.
24308 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
24309 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
24310 (sh_attr_renesas_p): Remove unnecessary parentheses.
24311 (branch_dest): Simplify.
24312 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
24313 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
24314 (CUMULATIVE_ARGS): Change macro to typedef.
24315 (current_function_interrupt): Change to bool type.
24316 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
24317 Surround with __cplusplus ifdef.
24318 (sh_compare_op0, sh_compare_op1): Remove.
24319 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
24321 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
24323 * config/arm/arm.md (arch): Add neon.
24324 (arch_enabled): Return yes for arch neon when TARGET_NEON.
24325 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
24326 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
24327 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
24328 attributes for alt renumbering. Mark alt 3 as non-predicable.
24329 (thumb2_movdf_vfp): Likewise.
24331 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
24333 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
24334 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
24335 (*andqi_1): Add preferred_for_speed attribute to disparage
24336 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
24337 (*<code>qi_1): Ditto.
24338 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
24339 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
24340 (*ashlqi3_1): Ditto.
24341 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
24342 Add preferred_for_size attribute to disparage alternative 0 and
24343 preferred_for_speed attribute to disparage alternative 1 for
24344 TARGET_PARTIAL_REG_STALL targets.
24346 2016-05-07 Tom de Vries <tom@codesourcery.com>
24348 PR tree-optimization/70956
24349 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
24352 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
24354 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
24355 * config/sh/sh.c (sh_cbranch_distance): Implement it.
24356 * config/sh/sh.md (branch_zero): Remove define_attr.
24357 (define_delay): Disable delay slot if branch distance is one insn.
24359 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24361 * config/i386/i386.md (LEAMODE): New mode attribute.
24362 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
24363 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
24364 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
24365 operand 2 predicate.
24366 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
24367 (*lea<mode>_general_3): Ditto.
24368 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
24370 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24372 * genmddump.c (main): Convert argv from char ** to const char **.
24374 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24376 * coretypes.h (OVERRIDE): New macro.
24377 (FINAL): New macro.
24379 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
24381 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
24382 allow coalescing if the types are compatible.
24384 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24386 * pass_manager.h (pass_manager::register_pass_name): New method.
24387 (pass_manager::get_pass_by_name): New method.
24388 (pass_manager::create_pass_tab): New method.
24389 (pass_manager::m_name_to_pass_map): New field.
24390 * passes.c (name_to_pass_map): Delete global in favor of field
24391 "m_name_to_pass_map" of pass_manager.
24392 (register_pass_name): Rename from a function to...
24393 (pass_manager::register_pass_name): ...this method, updating
24394 for renaming of global "name_to_pass_map" to field
24395 "m_name_to_pass_map".
24396 (create_pass_tab): Rename from a function to...
24397 (pass_manager::create_pass_tab): ...this method, updating
24398 for renaming of global "name_to_pass_map" to field.
24399 (get_pass_by_name): Rename from a function to...
24400 (pass_manager::get_pass_by_name): ...this method.
24401 (enable_disable_pass): Convert use of get_pass_by_name to
24402 a method call, locating the pass_manager singleton.
24404 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24406 * genattr-common.c (main): Convert argv from char ** to const char **.
24407 * genattr.c (main): Likewise.
24408 * genattrtab.c (main): Likewise.
24409 * genautomata.c (initiate_automaton_gen): Likewise.
24411 * gencodes.c (main): Likewise.
24412 * genconditions.c (main): Likewise.
24413 * genconfig.c (main): Likewise.
24414 * genconstants.c (main): Likewise.
24415 * genemit.c (main): Likewise.
24416 * genenums.c (main): Likewise.
24417 * genextract.c (main): Likewise.
24418 * genflags.c (main): Likewise.
24419 * genmddeps.c (main): Likewise.
24420 * genopinit.c (main): Likewise.
24421 * genoutput.c (main): Likewise.
24422 * genpeep.c (main): Likewise.
24423 * genpreds.c (main): Likewise.
24424 * genrecog.c (main): Likewise.
24425 * gensupport.c (init_rtx_reader_args_cb): Likewise.
24426 (init_rtx_reader_args): Likewise.
24427 * gensupport.h (init_rtx_reader_args_cb): Likewise.
24428 (init_rtx_reader_args): Likewise.
24429 * gentarget-def.c (main): Likewise.
24430 * read-md.c (read_md_files): Likewise.
24431 * read-md.h (read_md_files): Likewise.
24433 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24435 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
24436 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
24437 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
24438 Remove unused predicate.
24439 (register_and_not_fp_reg_operand): Ditto.
24441 2016-05-06 Martin Liska <mliska@suse.cz>
24443 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
24444 instead of vec as the vector is local to the function.
24446 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24448 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
24449 avx512bw alternative.
24451 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
24452 before the ashr<mode>3 pattern.
24454 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
24455 v instead of x in vex or maybe_vex alternatives, use
24456 maybe_evex instead of vex in prefix.
24458 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
24459 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
24460 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
24461 in vex or maybe_vex alternatives, use maybe_evex instead of vex
24464 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
24465 v instead of x in vex or maybe_vex alternatives, use
24466 maybe_evex instead of vex in prefix.
24468 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
24469 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
24470 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
24471 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
24472 alternatives, use maybe_evex instead of vex in prefix.
24474 * config/i386/sse.md (vec_interleave_lowv4sf,
24475 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
24476 v instead of x in vex or maybe_vex alternatives, use
24477 maybe_evex instead of vex in prefix.
24479 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
24480 v instead of x in vex or maybe_vex alternatives, use
24481 maybe_evex instead of vex in prefix.
24483 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
24484 v constraint instead of x.
24486 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
24488 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
24489 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
24492 2016-05-06 Richard Biener <rguenther@suse.de>
24494 PR tree-optimization/70948
24495 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24496 Properly clobber all fields of va_list for __builtin_va_start.
24498 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
24501 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
24502 loop latch destination.
24504 2016-05-06 Martin Liska <mliska@suse.cz>
24506 * tree-ssa-uninit.c: Apply manual changes
24507 to the GNU coding style.
24508 (prune_uninit_phi_opnds): Rename from
24509 prune_uninit_phi_opnds_in_unrealizable_paths.
24511 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24513 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
24514 mspace): Remove deprecated options.
24515 * doc/invoke.texi (SH options): Remove -mspace.
24517 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24519 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
24521 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24523 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
24524 corresponding combine split pattern.
24526 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24529 * config/sh/predicates.md (long_displacement_mem_operand): New.
24530 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
24531 Add movi20, movi20s alternatives. Adjust length attribute for
24533 (movsi_ie): Allow for any FPU. Adjust length attribute for
24535 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
24536 attribute for alternatives.
24537 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
24538 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
24539 length attribute for alternatives.
24541 2016-05-06 Richard Biener <rguenther@suse.de>
24543 PR tree-optimization/70960
24544 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
24546 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24549 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
24550 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
24552 2016-05-06 Marek Polacek <polacek@redhat.com>
24555 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
24557 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24560 * config/sh/sh.md (*rotcr): Add another variant.
24562 2016-05-06 Richard Biener <rguenther@suse.de>
24564 PR middle-end/70931
24565 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
24567 2016-05-06 Richard Biener <rguenther@suse.de>
24569 PR middle-end/70941
24570 * fold-const.c (split_tree): Always convert to the original type
24573 2016-05-06 Richard Biener <rguenther@suse.de>
24575 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
24576 (fwprop_addr): Likewise.
24578 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24581 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
24583 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
24584 * config/i386/i386.md (push mem splitter): Use find_constant_src in
24585 the splitter condition.
24586 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
24587 the splitter condition.
24588 (FP float_extend load splitter): Ditto.
24590 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
24592 * config/i386/i386.md (peehole2 patterns): Change true_regnum
24593 to REGNO in all peephole2 patterns.
24594 (post-reload splitters): Change true_regnum to REGNO in
24595 post-reload splitters.
24596 (zero_extend splitters): Use general_reg_operand and
24597 nonimmediate_gr_operand predicates.
24599 2016-05-05 Jakub Jelinek <jakub@redhat.com>
24601 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
24602 v constraint instead of x.
24604 2016-05-05 Alan Modra <amodra@gmail.com>
24607 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
24608 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
24609 TARGET_NO_FP_IN_TOC for -mrelocatable.
24610 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
24611 TARGET_RELOCATABLE test.
24612 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24613 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24614 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
24615 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24616 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24617 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
24618 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24619 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24620 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
24621 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
24623 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
24624 (rs6000_stack_info): Likewise.
24625 (rs6000_elf_asm_out_constructor): Likewise.
24626 (rs6000_elf_asm_out_destructor): Likewise.
24627 (rs6000_elf_declare_function_name): Likewise.
24628 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
24629 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
24632 2016-05-05 Alan Modra <amodra@gmail.com>
24634 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
24636 2016-05-05 Alan Modra <amodra@gmail.com>
24638 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
24639 out-of-line gpr restore for one or two regs if that would add
24642 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
24645 * config/i386/i386.md
24646 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
24647 Change to post-epilogue_completed late splitter. Use sse_reg_operand
24648 as operand 0 predicate.
24649 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
24651 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
24652 Ditto. Emit the pattern using RTX.
24654 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
24655 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
24656 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
24657 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
24659 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
24660 sse_reg_operand as operand 0 predicate.
24662 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
24663 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
24664 instead of gen_rtx_REG.
24665 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
24668 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24670 * function.c (emit_use_return_register_into_block): Delete.
24671 (gen_return_pattern): Delete.
24672 (emit_return_into_block): Delete.
24673 (active_insn_between): Delete.
24674 (convert_jumps_to_returns): Delete.
24675 (emit_return_for_exit): Delete.
24676 (thread_prologue_and_epilogue_insns): Delete all code dealing with
24677 simple_return for shrink-wrapped blocks.
24678 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
24679 end of blocks that need one.
24680 (get_unconverted_simple_return): Delete.
24681 (convert_to_simple_return): Delete.
24682 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
24683 (convert_to_simple_return): Ditto.
24685 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24687 * cfgcleanup.c (bb_is_just_return): New function.
24688 (try_optimize_cfg): Simplify jumps to return, branches to return,
24689 and branches around return.
24691 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24693 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
24694 branch to a return.
24696 2016-05-04 Jakub Jelinek <jakub@redhat.com>
24700 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
24701 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
24702 assert flags & OEP_HASH_CHECK, instead of asserting it
24703 never happens. Handle TARGET_EXPR.
24704 * fold-const.c (operand_equal_p): For hash verification,
24705 or in OEP_HASH_CHECK into flags.
24707 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
24709 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
24711 (compute_samebase_partition_bases): Fix typo.
24713 2016-05-04 Jakub Jelinek <jakub@redhat.com>
24715 * config/i386/sse.md (vec_interleave_highv8sf,
24716 vec_interleave_lowv8sf, vec_interleave_highv4df,
24717 vec_interleave_lowv4df): Remove constraints from expanders.
24719 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
24721 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
24723 * tree-inline.c (expand_call_inline): Fix path dealing with
24724 making lhs of call statement undefined.
24726 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
24728 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24729 Check availability on NODE, too.
24730 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
24731 (cgraph_node::call_for_symbol_and_aliases): Likewise.
24732 (varpool_node::call_for_symbol_and_aliase): Likewise.
24733 * ipa-pure-const.c (add_new_function): Analyze all bodies.
24734 (propagate_pure_const): Propagate across interposable functions, too.
24735 (skip_function_for_local_pure_const): Do not skip interposable bodies
24737 (pass_local_pure_const::execute): Update.
24739 2016-05-04 Marek Polacek <polacek@redhat.com>
24741 * doc/invoke.texi: Document -Wdangling-else.
24743 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
24745 * config.gcc: Error out when conflicting multilib is detected. Do not
24746 loop over multilibs since no combination is legal.
24748 2016-05-04 Alan Modra <amodra@gmail.com>
24750 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
24751 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
24752 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
24755 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
24757 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
24758 Clean up p5600 comments.
24760 2016-05-04 Richard Biener <rguenther@suse.de>
24762 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
24763 constructor simplifications.
24764 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
24766 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
24768 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
24769 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
24770 result.set_rtx is null instead of aborting.
24771 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
24773 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
24774 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
24775 *mov<mode>_store_postinc): New patterns.
24777 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
24779 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
24780 as commutative. Check both conversions are NOP.
24781 ((A & B) OP (C & B)): Remove.
24783 2016-05-04 Alan Modra <amodra@gmail.com>
24785 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
24787 2016-05-04 Alan Modra <amodra@gmail.com>
24790 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
24791 when cr2,3,4 are all fixed regs.
24793 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
24795 PR rtl-optimization/57193
24796 * opts.c (default_options_table): Revert OPT_frename_registers change.
24797 * doc/invoke.texi (-frename-registers, -O2): Likewise.
24799 2016-05-03 Martin Sebor <msebor@redhat.com>
24802 * builtins.c (fold_builtin_FILE): New function.
24803 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
24804 (fold_builtin_0): Call them.
24805 * gimplify.c (gimplify_call_expr): Remove the handling of
24806 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
24809 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
24810 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
24814 * doc/extend.texi (Function Names as Strings): Update __func__,
24815 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
24818 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24819 Richard Biener <rguenther@suse.de>
24821 PR tree-optimization/70916
24822 * tree-if-conv.c: Include cfganal.h.
24823 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
24824 and remove_fake_exit_edges around the optimization pass.
24826 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
24828 * cgraph.c (symbol_table::create_edge): Set inline_failed.
24829 (cgraph_edge::make_direct): Likewise.
24830 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
24831 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
24832 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
24833 (CIF_THUNK): New code.
24834 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
24835 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
24836 (compute_inline_parameters): Set inline_failed for thunks.
24837 (inline_analyze_function): Cleanup.
24838 * ipa-inline.c (can_inline_edge_p): Do not deal with
24839 call_stmt_cannot_inline_p.
24840 (can_early_inline_edge_p): Likewise.
24841 (early_inliner): Initialize inline_failed.
24842 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
24844 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
24846 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
24847 from nonimm_ssenomem_operand.
24848 (nonimm_ssenomem_operand): New predicate.
24849 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
24850 as operand 0 predicate.
24851 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
24852 Disable unsupported alternatives using "enabled" attribute.
24853 Use register_ssemem_operand as operand 0 predicate.
24854 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
24856 2016-05-03 Marek Polacek <polacek@redhat.com>
24859 * input.c (expansion_point_location): New function.
24860 * input.h (expansion_point_location): Declare.
24862 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
24864 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
24865 occurence with frame_offset_ ones.
24867 2016-05-03 Alan Modra <amodra@gmail.com>
24869 PR rtl-optimization/70890
24870 * ira.c (combine_and_move_insns): When moving def_insn, remove
24871 equivs on use_insn.
24873 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
24875 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
24876 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
24877 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
24878 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
24880 2016-05-03 Alan Modra <amodra@gmail.com>
24882 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
24883 for SAVE_MULTIPLE/STORE_MULTIPLE.
24885 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24887 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
24888 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
24890 2016-05-03 Richard Biener <rguenther@suse.de>
24892 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
24894 (gimplify_arg): Likewise.
24895 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
24896 re-writing the result to a decl if required.
24897 (internal_get_tmp_var): Add allow_ssa parameter
24898 and override into_ssa with it.
24899 (get_formal_tmp_var): Adjust.
24900 (get_initialized_tmp_var): Add allow_ssa parameter.
24901 (gimplify_arg): Add allow_ssa parameter and avoid generating
24902 SSA names for the result false.
24903 (gimplify_call_expr): If the call may return twice do not
24904 gimplify parameters into SSA.
24905 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
24906 (gimplify_modify_expr): Adjust assert. For noreturn calls
24907 with a SSA name LHS adjust its def.
24908 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
24909 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
24910 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
24911 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
24912 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
24913 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
24914 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
24915 (optimize_target_teams): Do not allow SSA names for clause operands.
24916 (gimplify_expr): Likewise for where we mark the result addressable.
24917 * passes.def (pass_init_datastructures): Remove.
24918 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
24919 (rewrite_stmt): Likewise.
24920 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
24921 (replace_locals_op): Replace SSA names.
24922 (copy_gimple_seq_and_replace_locals): Init src_cfun.
24923 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
24924 * cgraph.c (release_function_body): Free CFG annotations only
24925 when we have a CFG. Simplify.
24926 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
24927 force_gimple_operand instead of get_initialized_tmp_var.
24928 * tree-pass.h (make_pass_init_datastructures): Remove.
24929 * tree-ssa.c (execute_init_datastructures): Remove.
24930 (pass_data_init_datastructures): Likewise.
24931 (class pass_init_datastructures): Likewise.
24932 (make_pass_init_datastructures): Likewise.
24933 * omp-low.c (create_omp_child_function): Init SSA data structures.
24934 (grid_expand_target_grid_body): Likewise.
24935 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
24936 name before adding it to names_to_release.
24937 (remove_bb): Always release SSA defs.
24938 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
24939 before dereferencing it.
24940 * cgraphunit.c (init_lowered_empty_function): Always
24941 int SSA data structures.
24942 * tree-ssanames.c (release_defs): Remove assert that we are in
24944 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
24946 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24947 Uros Bizjak <ubizjak@gmail.com>
24949 PR rtl-optimization/70467
24950 * config/i386/predicates.md (x86_64_hilo_int_operand,
24951 x86_64_hilo_general_operand): New predicates.
24952 * config/i386/constraints.md (Wd): New constraint.
24953 * config/i386/i386.md (mode attr di): Use Wd instead of e.
24954 (general_hilo_operand): New mode attr.
24955 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
24956 instead of <general_operand>.
24957 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
24958 x86_64_hilo_general_operand instead of <general_operand>.
24960 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24962 PR tree-optimization/70916
24963 * tree-if-conv.c (constant_or_ssa_name): Removed.
24964 (fold_build_cond_expr): Use is_gimple_val instead of
24965 constant_or_ssa_name.
24967 PR tree-optimization/70916
24968 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
24969 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
24972 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
24973 (optimize_atomic_bit_test_and): New function.
24974 (pass_fold_builtins::execute): Use it.
24975 * optabs.def (atomic_bit_test_and_set_optab,
24976 atomic_bit_test_and_complement_optab,
24977 atomic_bit_test_and_reset_optab): New optabs.
24978 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
24979 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
24980 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
24981 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
24982 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
24983 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
24984 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
24985 * doc/md.texi (atomic_bit_test_and_set@var{mode},
24986 atomic_bit_test_and_complement@var{mode},
24987 atomic_bit_test_and_reset@var{mode}): Document.
24988 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
24989 atomic_bit_test_and_complement<mode>,
24990 atomic_bit_test_and_reset<mode>): New expanders.
24991 (atomic_bit_test_and_set<mode>_1,
24992 atomic_bit_test_and_complement<mode>_1,
24993 atomic_bit_test_and_reset<mode>_1): New insns.
24995 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
24997 PR rtl-optimization/70687
24998 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
24999 instead of unsigned HOST_WIDE_INT.
25001 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
25003 PR rtl-optimization/44281
25004 * hard-reg-set.h (struct target_hard_regs): New field
25005 x_fixed_nonglobal_reg_set.
25006 (fixed_nonglobal_reg_set): New macro.
25007 * reginfo.c (init_reg_sets_1): Initialize it.
25008 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
25010 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
25012 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25014 PR tree-optimization/56541
25015 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
25016 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
25017 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
25018 (any_complicated_phi): new static variable.
25019 (aggressive_if_conv): delete.
25020 (if_convertible_phi_p): support phis with more than two arguments.
25021 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
25022 critical pred edges.
25023 (ifcvt_split_critical_edges): support phis with more than two
25024 arguments by checking new parameter. only split critical edges
25026 (tree_if_conversion): handle simd pragma marked loop using new
25027 local variable aggressive_if_conv. check any_complicated_phi.
25029 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25031 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
25034 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25036 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
25039 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
25041 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
25042 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
25043 define_insn_and_split.
25044 (mulsi3_i): New define_insn_and_split.
25045 (mulsi3_call): Convert to define_insn.
25046 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
25047 Remove constraints.
25049 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25051 * machmode.h (mode_complex): Add support to give the complex mode
25053 (GET_MODE_COMPLEX_MODE): Likewise.
25054 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
25055 stored by build_complex_type and gfc_build_complex_type instead of
25056 trying to figure out the appropriate mode based on the size. Raise
25057 an assertion error, if the type was not set.
25058 * genmodes.c (struct mode_data): Add field for the complex type of
25060 (blank_mode): Likewise.
25061 (make_complex_modes): Remember the complex mode created in the
25063 (emit_mode_complex): Write out the mode_complex array to map a
25064 type mode to the complex version.
25065 (emit_insn_modes_c): Likewise.
25066 * tree.c (build_complex_type): Set the complex type to use before
25067 calling layout_type.
25068 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
25069 support for __float128 complex datatypes.
25070 (rs6000_hard_regno_mode_ok): Likewise.
25071 (rs6000_setup_reg_addr_masks): Likewise.
25072 (rs6000_complex_function_value): Likewise.
25073 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
25074 __float128 and __ibm128 complex.
25075 (FLOAT128_IBM_P): Likewise.
25076 (ALTIVEC_ARG_MAX_RETURN): Likewise.
25077 * doc/extend.texi (Additional Floating Types): Document that
25078 -mfloat128 must be used to enable __float128. Document complex
25079 __float128 and __ibm128 support.
25081 2016-05-02 Jakub Jelinek <jakub@redhat.com>
25084 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
25085 char/short arguments promoted to int because of promote_prototypes.
25087 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
25089 * config/i386/predicates.md (register_ssemem_operand): New predicate.
25090 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
25091 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
25092 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
25093 alternatives using "enabled" attribute. Use register_ssemem_operand
25094 as operand 1 predicate.
25095 (*cmpi<unord>xf_i387): Split XFmode pattern from
25096 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
25097 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
25098 *absneg<mode>2_i387. Disable unsupported alternatives using
25099 "enabled" attribute.
25100 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
25102 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
25104 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
25106 (oacc_loop_process): Check mask for loop termination.
25108 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
25110 * cif-code.def (CIF_THUNK): Add.
25111 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
25114 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
25116 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
25117 (dump_inline_summary): Dump it.
25118 (fp_expression_p): New predicate.
25119 (estimate_function_body_sizes): Use it.
25120 (inline_merge_summary): Merge fp_expressions.
25121 (inline_read_section): Read fp_expressions.
25122 (inline_write_summary): Write fp_expressions.
25123 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
25124 codegen boundary if either caller or callee is !fp_expressions.
25125 * ipa-inline.h (inline_summary): Add fp_expressions.
25126 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
25127 to fp_expressions be sure the fp generation flags are updated.
25129 2016-05-02 Jakub Jelinek <jakub@redhat.com>
25131 PR rtl-optimization/70467
25132 * cse.c (cse_insn): Handle no-op MEM moves after folding.
25134 PR rtl-optimization/70467
25135 * ipa-pure-const.c (check_call): Handle internal calls even in
25136 ipa mode like in local mode.
25138 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25140 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
25142 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
25144 * match.pd (X u< X, X u> X): New transformations.
25146 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
25148 * flag-types.h (enum warn_strict_overflow_code): Move ...
25149 * coretypes.h: ... here.
25150 * fold-const.h (fold_overflow_warning): Declare.
25151 * fold-const.c (fold_overflow_warning): Make non-static.
25152 (fold_comparison): Move the transformation of X +- C1 CMP C2
25153 into X CMP C2 -+ C1 ...
25154 * match.pd: ... here.
25155 * gimple-fold.c (fold_stmt_1): Protect with
25156 fold_defer_overflow_warnings.
25158 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
25160 * omp-low.c (struct oacc_loop): Add 'inner' field.
25161 (new_oacc_loop_raw): Initialize it to zero.
25162 (oacc_loop_fixed_partitions): Initialize it.
25163 (oacc_loop_auto_partitions): Partition outermost loop to outermost
25164 available partitioning.
25166 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25168 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
25170 (umulsidi3): Likewise.
25171 (indirect_jump): Fix jump instruction assembly patterns.
25173 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
25176 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
25177 (nvptx_function_value): Assert non-NULL cfun.
25179 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
25181 PR rtl-optimization/70886
25182 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
25184 * cselib.h (rtx_equal_for_cselib_1): Declare.
25185 (rtx_equal_for_cselib_p: New inline function.
25186 * cselib.c (rtx_equal_for_cselib_p): Delete.
25187 (rtx_equal_for_cselib_1): Make public.
25189 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
25191 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
25192 (register_mixssei387nonimm_operand): Remove predicate.
25193 * config/i386/i386.md (*fop_<mode>_comm): Merge from
25194 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
25195 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
25196 for TARGET_MIX_SSE_I387 alternatives.
25197 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
25198 Disable unsupported alternatives using "enabled" attribute. Use
25199 nonimm_ssenomem_operand as operand 1 predicate. Also check
25200 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
25202 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25204 * tree.c (cst_and_fits_in_hwi): Simplify.
25206 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25208 * tree.h (wi::to_wide): New function.
25209 * expr.c (expand_expr_real_1): Use wi::to_wide.
25210 * fold-const.c (int_const_binop_1): Likewise.
25211 (extract_muldiv_1): Likewise.
25213 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25215 * wide-int.h: Update offset_int and widest_int documentation.
25216 (WI_SIGNED_SHIFT_RESULT): New macro.
25217 (wi::binary_shift): Define signed_shift_result_type for
25218 shifts on offset_int- and widest_int-like types.
25219 (generic_wide_int): Support <<= and >>= if << and >> are supported.
25220 * tree.h (int_bit_position): Use shift operators instead of wi::
25222 * alias.c (adjust_offset_for_component_ref): Likewise.
25223 * expr.c (get_inner_reference): Likewise.
25224 * fold-const.c (fold_comparison): Likewise.
25225 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
25226 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
25227 * tree-dfa.c (get_ref_base_and_extent): Likewise.
25228 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25229 (stmt_kills_ref_p): Likewise.
25230 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
25231 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
25232 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
25233 (ao_ref_init_from_vn_reference): Likewise.
25235 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25237 * wide-int.h: Update offset_int and widest_int documentation.
25238 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
25239 (wi::binary_traits): Allow ordered comparisons between offset_int and
25240 offset_int, between widest_int and widest_int, and between either
25241 of these types and basic C types.
25242 (operator <, <=, >, >=): Define for the same combinations.
25243 * tree.h (tree_int_cst_lt): Use comparison operators instead
25244 of wi:: comparisons.
25245 (tree_int_cst_le): Likewise.
25246 * gimple-fold.c (fold_array_ctor_reference): Likewise.
25247 (fold_nonarray_ctor_reference): Likewise.
25248 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
25249 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
25250 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
25251 * tree-sra.c (completely_scalarize): Likewise.
25252 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
25253 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
25254 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
25255 (check_for_binary_op_overflow): Likewise.
25256 (search_for_addr_array): Likewise.
25257 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
25259 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25261 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
25262 (arc_save_restore): Likewise.
25263 (arc_dwarf_register_span): Likewise.
25264 (arc_output_pic_addr_const): Initialize suffix variable.
25266 2016-05-02 Martin Liska <mliska@suse.cz>
25268 * symbol-summary.h (function_summary::function_summary):
25269 Remove checking assert for all cgraph nodes.
25270 (function_summary::get): Check summary_uid.
25271 (symtab_insertion): Check summary_uid.
25273 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25275 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
25276 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
25277 bmaskn instruction.
25278 (arc_dwarf_register_span): Remove enum keyword.
25279 (compact_memory_operand_p): New function.
25280 * config/arc/arc.h (reg_class): Add code density register classes.
25281 (REG_CLASS_NAMES): Likewise.
25282 (REG_CLASS_CONTENTS): Likewise.
25283 * config/arc/arc.md (*movqi_insn): Add code density instructions.
25284 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
25285 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
25286 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
25287 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
25289 (h, Rcd, Rsd, Rzd): New register constraints.
25290 (T): Use compact_memory_operand_p function.
25291 * config/arc/predicates.md (compact_load_memory_operand): Remove.
25293 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
25295 * config/sh/sh.md (*negnegt, *movtt): Remove.
25297 2016-05-02 Marek Polacek <polacek@redhat.com>
25298 Tom de Vries <tom@codesourcery.com>
25300 PR tree-optimization/70700
25301 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
25302 bigger than FIRST_REF_NODE.
25304 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
25307 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
25309 (prepare_cbranch_operands): Don't use scratch register. Assume that
25310 function is used when pseudos can be created.
25311 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
25312 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
25313 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
25314 define_expand. Allow it only when pseudos can be created.
25315 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
25317 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
25319 * config/i386/constraints.md (BC): Only allow -1 operands.
25320 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
25321 Add "enabled" attribute. Update XI mode attribute calculation.
25322 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
25323 (*movoi_internal_avx): Update XI mode attribute calculation.
25324 (*movti_internal): Ditto.
25326 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25328 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
25329 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
25331 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
25333 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
25334 statement on instruction code. Remove trailing spaces.
25335 (altivec_expand_stv_builtin): Likewise.
25337 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25339 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
25340 (TARGET_FPU_DOUBLE): Simplify.
25341 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
25342 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
25343 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
25344 with 'TARGET_FPU_DOUBLE'.
25345 * config/sh/sh.md: Likewise.
25347 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
25349 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
25350 SH_DIV_STR_FOR_SIZE): Remove.
25351 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
25352 SH_DIV_STR_FOR_SIZE): Remove.
25354 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25356 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
25357 logical_reg_operand): Delete.
25358 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
25359 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
25360 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
25361 match_operand and match_test.
25362 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
25363 variables on their first use. Return bool values.
25364 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
25365 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
25366 arith_reg_operand for input operand. Remove empty constraints.
25368 (*xorsi3_compact): Rename to xorsi3.
25369 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
25370 (*zero_extend<mode>si2_disp_mem): Update comment.
25373 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25375 * config/sh/t-sh: Remove SH5 support.
25376 * config.gcc: Likewise.
25377 * configure: Likewise.
25379 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25381 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
25383 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25385 * config/sh/sh.c (register_sh_passes, sh_option_override,
25386 sh_print_operand, prepare_move_operands,
25387 sh_can_follow_jump): Remove TARGET_SH1 checks.
25388 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
25389 PROMOTE_MODE): Likewise.
25390 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
25393 2016-04-30 Alan Modra <amodra@gmail.com>
25395 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
25396 restoring when fixed_reg_p, but allow out-of-line or stmw save.
25397 Check for user regs later to avoid unnecessary looping over regs.
25398 Merge user reg check with non-saved reg check. Don't force
25399 inline VR restore when static chain used.
25400 (rs6000_frame_related): Omit eh_frame info for user regs when
25402 (fixed_regs_p): Delete.
25404 2016-04-30 Alan Modra <amodra@gmail.com>
25406 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
25407 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
25410 2016-04-30 Alan Modra <amodra@gmail.com>
25413 * config/rs6000/rs6000.c (fixed_reg_p): New function.
25414 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
25417 2016-04-30 Alan Modra <amodra@gmail.com>
25419 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
25420 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
25421 flag_pic test for Darwin.
25423 2016-04-30 Alan Modra <amodra@gmail.com>
25425 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
25426 throw_calls_crossed.
25427 (REG_FREQ_CALLS_CROSSED): Delete.
25428 (REG_N_THROWING_CALLS_CROSSED): Delete.
25429 * regstat.c (regstat_bb_compute_ri): Don't calculate
25430 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
25431 (dump_reg_info): Don't print call cross frequency.
25432 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
25433 and REG_N_THROWING_CALLS_CROSSED.
25435 2016-04-30 Alan Modra <amodra@gmail.com>
25437 * regs.h (struct reg_info_t): Delete live_length.
25438 (REG_LIVE_LENGTH): Delete macro.
25439 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
25440 local_live, local_processed and local_live_last_luid params.
25441 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
25443 (regstat_compute_ri): Adjust for above. Don't set
25445 (dump_reg_info): Don't print live length.
25446 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
25447 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
25448 Localize loop_depth var.
25450 2016-04-30 Alan Modra <amodra@gmail.com>
25452 * ira.c (enum valid_equiv): New.
25453 (validate_equiv_mem): Return enum.
25454 (update_equiv_mem): Create replacement in more cases.
25455 (add_store_equivs): Update validate_equiv_mem call.
25457 2016-04-30 Alan Modra <amodra@gmail.com>
25459 * ira.c (combine_and_move_insns): Rather than scanning insns,
25460 use DF infrastucture to find use and def insns.
25462 2016-04-30 Alan Modra <amodra@gmail.com>
25464 ira.c (combine_and_move_insns): Move invariant conditions..
25465 (ira.c): ..to here. Call combine_and_move_insns before
25466 add_store_equivs. Call grow_reg_equivs later. Allocate
25467 req_equiv later using max_reg_num() rather than global max_regno.
25468 (contains_replace_regs): Delete.
25469 (add_store_equivs): Remove contains_replace_regs test.
25471 2016-04-30 Alan Modra <amodra@gmail.com>
25473 * ira.c (struct equiv_mem_data): New.
25474 (equiv_mem, equiv_mem_modified): Delete static vars.
25475 (validate_equiv_mem_from_store): Use "data" param to communicate..
25476 (validate_equiv_mem): ..from here.
25478 2016-04-30 Alan Modra <amodra@gmail.com>
25480 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
25482 (update_reg_equivs): ..here. Move allocation and freeing of
25483 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
25484 end_alias_analysis to..
25487 2016-04-30 Alan Modra <amodra@gmail.com>
25489 * ira.c (pdx_subregs): Delete.
25490 (struct equivalence): Add pdx_subregs field.
25491 (set_paradoxical_subreg): Remove pdx_subregs param. Update
25492 pdx_subregs access.
25493 (update_equiv_regs): Don't create or free pdx_subregs. Update
25494 pdx_subregs access.
25496 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25498 * config/rs6000/altivec.h: Change definitions of vec_xl and
25500 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
25501 (LD_ELEMREV_V2DI): New.
25502 (LD_ELEMREV_V4SF): New.
25503 (LD_ELEMREV_V4SI): New.
25504 (LD_ELEMREV_V8HI): New.
25505 (LD_ELEMREV_V16QI): New.
25506 (ST_ELEMREV_V2DF): New.
25507 (ST_ELEMREV_V2DI): New.
25508 (ST_ELEMREV_V4SF): New.
25509 (ST_ELEMREV_V4SI): New.
25510 (ST_ELEMREV_V8HI): New.
25511 (ST_ELEMREV_V16QI): New.
25514 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25515 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
25516 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
25517 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
25518 (altivec_expand_builtin): Add handling for
25519 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
25520 (rs6000_invalid_builtin): Add error-checking for
25521 RS6000_BTM_P9_VECTOR.
25522 (altivec_init_builtins): Define builtins used to implement vec_xl
25524 (rs6000_builtin_mask_names): Define power9-vector.
25525 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
25526 (RS6000_BTM_P9_VECTOR): Define.
25527 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
25528 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
25529 (vsx_ld_elemrev_v2df): Likewise.
25530 (vsx_ld_elemrev_v4sf): Likewise.
25531 (vsx_ld_elemrev_v4si): Likewise.
25532 (vsx_ld_elemrev_v8hi): Likewise.
25533 (vsx_ld_elemrev_v16qi): Likewise.
25534 (vsx_st_elemrev_v2df): Likewise.
25535 (vsx_st_elemrev_v2di): Likewise.
25536 (vsx_st_elemrev_v4sf): Likewise.
25537 (vsx_st_elemrev_v4si): Likewise.
25538 (vsx_st_elemrev_v8hi): Likewise.
25539 (vsx_st_elemrev_v16qi): Likewise.
25540 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
25543 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
25545 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
25547 (simplify_control_stmt_condition_1): ... here. Recurse into
25548 BIT_AND_EXPRs and BIT_IOR_EXPRs.
25550 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
25553 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
25554 (zero_extendqi<mode>2_dot): Revert earlier conversion from
25555 define_insn_and_split to define_insn.
25556 (zero_extendqi<mode>2_dot2): Same.
25557 (extendqi<mode>2_dot): Same.
25558 (extendqi<mode>2_dot2): Same.
25560 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25562 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
25563 (probe_stack): New expander.
25564 (probe_stack_<mode>): New insn pattern.
25566 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25568 * config/i386/i386.md
25569 (operations with memory inputs setting flags peephole2):
25570 Remove uneeded REG_P checks. Cleanup pattern generation.
25572 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
25574 * tree-vect-loop.c (vect_transform_loop): Fix
25575 nb_iterations_upper_bound computation for vectorized loop.
25577 2016-04-29 Marek Polacek <polacek@redhat.com>
25578 Jakub Jelinek <jakub@redhat.com>
25581 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
25582 TARGET_EXPR_SLOT as a base.
25584 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
25586 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
25587 with 'rCm2' constraints to limit possible immediate size.
25588 (*load_zeroextendqisi_update): Likewise.
25589 (*load_signextendqisi_update): Likewise.
25590 (*loadhi_update): Likewise.
25591 (*load_zeroextendhisi_update): Likewise.
25592 (*load_signextendhisi_update): Likewise.
25593 (*loadsi_update): Likewise.
25594 (*loadsf_update): Likewise.
25596 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25598 * config/i386/predicates.md (constm1_operand): Fix comparison.
25600 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
25602 * testsuite/gcc.target/arc/ieee_eq.c: New test.
25604 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
25606 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
25607 remaining SH5 related settings.
25608 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
25609 shmedia_prepare_call_address): Delete.
25610 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
25611 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
25612 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
25613 UNSUPPORTED_SH2A): Remove m5 checks.
25614 (sh_divide_strategy_e): Remove SH5 division strategies.
25615 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
25616 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
25618 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
25620 * config/s390/s390.c (s390_rtx_costs): Update documentation.
25622 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25624 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
25625 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
25626 Change lder to ldr.
25627 * config/s390/vector.md ("mov<mode>"): Likewise.
25629 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
25631 * config/s390/constraints.md ("U", "W"): Invoke
25632 s390_mem_constraint with "ZR" and "ZT".
25633 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
25634 addresses when using LRA. Accept also short displacements for S
25635 and T constraints. Do not check for long displacement target for
25636 S and T constraints.
25637 (s390_mem_constraint): Remove handling of U and W constraints.
25638 * config/s390/s390.md (various patterns): Remove the short
25639 displacement constraints (Q and R) if a long displacement
25640 constraint is present. Add longdisp as required CPU capability.
25641 * config/s390/vector.md: Likewise.
25642 * config/s390/vx-builtins.md: Likewise.
25644 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25647 * reload1.c (reload): Call finish_spills before
25648 restarting reload loop. Skip select_reload_regs
25649 if update_eliminables_and_spill returns true.
25651 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
25653 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
25654 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
25655 (umulhisi3_imm): Update predicates and constraint letters.
25656 (umulhisi3_reg): Declare instruction as commutative.
25657 * config/arc/constraints.md (J12, J16): New constraints.
25658 * config/arc/predicates.md (short_unsigned_const_operand): New
25660 (arc_short_operand): Likewise.
25661 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
25663 2016-04-29 Richard Biener <rguenther@suse.de>
25665 PR tree-optimization/13962
25666 PR tree-optimization/65686
25667 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
25668 * tree-ssa-alias.c (ptrs_compare_unequal): New function
25669 using PTA to compare pointers.
25670 * match.pd: Add pattern for pointer equality compare simplification
25671 using ptrs_compare_unequal.
25673 2016-04-29 Richard Biener <rguenther@suse.de>
25675 * stor-layout.c (layout_type): Do not build a pointer-to-element
25678 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25680 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
25681 Use SWI mode iterator. Use general_reg_operand predicate.
25682 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
25683 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
25686 2016-04-29 Jakub Jelinek <jakub@redhat.com>
25688 PR middle-end/70843
25689 * fold-const.c (operand_equal_p): Don't verify hash value equality
25691 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
25694 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25697 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
25698 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
25699 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
25700 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
25701 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
25703 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25705 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
25706 to info. Don't initialize separate fields to 0. Clean up
25709 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25711 * config/i386/i386.md (peephole2s for operations with memory inputs):
25712 Use SWI mode iterator.
25713 (peephole2s for operations with memory outputs): Ditto.
25714 Do not check for stack checking probe.
25716 (probe_stack): Remove expander.
25718 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25719 Andrew Burgess <andrew.burgess@embecosm.com>
25721 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
25722 operands as 32-bits.
25724 2016-04-28 Jason Merrill <jason@redhat.com>
25726 * gdbinit.in: Skip line-map.h.
25728 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25729 Andrew Burgess <andrew.burgess@embecosm.com>
25731 * config/arc/arc.c (arc_conditional_register_usage): Take
25732 TARGET_RRQ_CLASS into account.
25733 (arc_print_operand): Support printing 'p' and 's' operands.
25734 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
25736 (TARGET_RRQ_CLASS): Define.
25737 (IS_POWEROF2_OR_0_P): Define.
25738 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
25740 (*tst_movb): New define_insn.
25741 (*tst): Avoid recognition if it could prevent '*tst_movb'
25742 combination; replace c/CnL with c/Chs alternative.
25743 (*tst_bitfield_tst): New define_insn.
25744 (*tst_bitfield_asr): New define_insn.
25745 (*tst_bitfield): New define_insn.
25746 (andsi3_i): Add Rrq variant.
25747 (extzv): New define_expand.
25748 (insv): New define_expand.
25749 (*insv_i): New define_insn.
25750 (*movb): New define_insn.
25751 (*movb_signed): New define_insn.
25752 (*movb_high): New define_insn.
25753 (*movb_high_signed): New define_insn.
25754 (*movb_high_signed + 1): New define_split pattern.
25755 (*mrgb): New define_insn.
25756 (*mrgb + 1): New define_peephole2 pattern.
25757 (*mrgb + 2): New define_peephole2 pattern.
25758 * config/arc/arc.opt (mbitops): New option for nps400, uses
25759 TARGET_NPS_BITOPS_DEFAULT.
25760 * config/arc/constraints.md (q): Make register class conditional.
25761 (Rrq): New register constraint.
25762 (Chs): New constraint.
25763 (Clo): New constraint.
25764 (Chi): New constraint.
25765 (Cbf): New constraint.
25766 (Cbn): New constraint.
25767 (C18): New constraint.
25768 (Cbi): New constraint.
25770 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25772 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
25774 (bitmap_intersection_of_preds): Ditto.
25775 (bitmap_union_of_succs): Ditto.
25776 (bitmap_union_of_preds): Ditto.
25777 * sbitmap.c (do_popcount): Delete.
25778 (BITMAP_DEBUGGING): Delete.
25779 (sbitmap_verify_popcount): Delete.
25780 (sbitmap_alloc): Don't initialize the popcount field.
25781 (sbitmap_alloc_with_popcount): Delete.
25782 (sbitmap_resize): Don't resize the popcount array.
25783 (sbitmap_vector_alloc): Don't initialize the popcount field.
25784 (bitmap_copy): Don't copy the popcount array.
25785 (bitmap_clear): Don't clear the popcount array.
25786 (bitmap_clear): Delete the popcount array handling.
25787 (bitmap_ior_and_compl): Delete the popcount assert.
25788 (bitmap_not): Ditto.
25789 (bitmap_and_compl): Ditto.
25790 (bitmap_and): Delete the popcount array handling.
25791 (bitmap_xor): Ditto.
25792 (bitmap_ior): Ditto.
25793 (bitmap_or_and): Delete the popcount assert.
25794 (bitmap_and_or): Ditto.
25795 (popcount_table): Delete.
25796 (sbitmap_elt_popcount): Delete.
25797 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
25798 (bitmap_set_bit): Delete the popcount assert.
25799 (bitmap_clear_bit): Ditto.
25800 (sbitmap_free): Don't free the popcount array.
25801 (sbitmap_alloc_with_popcount): Delete declaration.
25802 (sbitmap_popcount): Ditto.
25804 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25805 Andrew Burgess <andrew.burgess@embecosm.com>
25807 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
25808 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
25809 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
25810 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
25811 * config/arc/arc.opt (mcmem): New option.
25812 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
25813 supply length for r/m alternative.
25814 (*extendqisi2_ac): Likewise.
25815 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
25817 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
25818 (movhi_insn): Likewise.
25819 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
25820 (*zero_extendqihi2_i): Add r/Ucm alternative.
25821 (*zero_extendqisi2_ac): Likewise.
25822 (*zero_extendhisi2_i): Likewise.
25823 * config/arc/constraints.md (Uex): New memory constraint.
25824 (Ucm): New define_constraint.
25825 * config/arc/predicates.md (long_immediate_loadstore_operand):
25826 Return 0 for MEM with cmem_address address.
25827 (cmem_address_0): New predicates.
25828 (cmem_address_1): Likewise.
25829 (cmem_address_2): Likewise.
25830 (cmem_address): Likewise.
25832 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25834 * config/rs6000/rs6000.c (machine_function): Rename
25835 insn_chain_scanned_p to spe_insn_chain_scanned_p.
25836 (rs6000_stack_info): Adjust.
25838 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25839 Andrew Burgess <andrew.burgess@embecosm.com>
25841 * config/arc/constraints.md (Usd): Convert to define_constraint.
25845 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25848 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
25849 Add new peephole2 where the first insn is *mov<mode>_or instead of
25850 *mov<mode>_internal.
25852 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
25854 * tracer.c (bb_seen): Make static.
25856 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
25858 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
25859 support, setup defaults.
25860 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
25861 * config/arc/arc.c (arc_init): Add NPS400 support.
25862 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
25863 (TARGET_ARC700): NPS400 is also an ARC700.
25864 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
25866 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25869 * config/nds32/nds32.md (casesi): Don't access the operands array
25872 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25874 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
25875 (or $-1,reg peephole2): Ditto.
25876 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
25878 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
25880 * doc/extend.texi (Common Function Attributes) [optimize]:
25881 Discourage use of the optimize attribute.
25883 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
25885 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
25886 special case builtin.
25887 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
25888 ALTIVEC_BUILTIN_VEC_ADDE.
25889 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
25890 support for ALTIVEC_BUILTIN_VEC_ADDE.
25891 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
25892 for __builtin_vec_adde.
25894 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25896 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
25897 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
25899 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25902 * doc/sourcebuild.texi (Effective-Target Keywords, Other
25903 attributes): Document cilkplus_runtime.
25905 2016-04-28 Martin Jambor <mjambor@suse.cz>
25907 * tree-cfg.c (verify_expr): Verify that local declarations belong to
25908 this function. Call verify_expr on MEM_REFs and bases of other
25909 handled_components.
25911 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25913 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
25914 for WORD_REGISTER_OPERATIONS to runtime check.
25916 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25918 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
25920 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25922 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
25923 big-endian compilation.
25924 * config/arc/arc.md (addf3): Likewise.
25925 (subdf3): Likewise.
25926 (muldf3): Likewise.
25928 2016-04-28 Richard Biener <rguenther@suse.de>
25930 PR tree-optimization/70840
25931 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
25932 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
25933 Mark x * pow(x,c) -> pow(x,c+1) commutative.
25934 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
25936 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25938 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
25939 and explain why in a comment.
25941 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25943 * config/arc/arc.md (cpu_facility): Add fpx variant.
25944 (subdf3): Prohibit use reverse sub when assist operations option
25946 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
25947 instructions only when FPX is enabled.
25948 * testsuite/gcc.target/arc/trsub.c: New test.
25950 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25952 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
25953 mult_operator when calculating "type" attribute.
25954 (*fop_<mode>_1_i387): Ditto.
25955 (*fop_xf_1_i387): Ditto.
25956 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
25957 Use std::swap to swap operands. Use RTL expressions to generate
25960 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25961 Joern Rennecke <joern.rennecke@embecosm.com>
25963 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
25965 (emit_pic_move): Remove.
25966 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
25967 * config/arc/arc.c (emit_pic_move): Removed.
25968 (TARGET_HAVE_TLS): Define.
25969 (arc_conditional_register_usage): Test for arc_tp_regno.
25970 (arc_print_operand, arc_print_operand_address): Handle TLS
25972 (arc_needs_pcl_p): New function.
25973 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
25974 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
25975 (arc_raw_symbolic_reference_mentioned_p): Likewise.
25976 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
25977 (arc_legitimize_tls_address): Likewise.
25978 (DTPOFF_ZERO_SYM): Define.
25979 (arc_legitimize_pic_address): Make it static, handle TLS cases.
25980 (arc_output_pic_addr_const): Print TLS unspecs.
25981 (prepare_pic_move): New function, replaces emit_pic_move.
25982 (arc_legitimate_constant_p): Handle TLS unspecs.
25983 (arc_legitimate_address_p): Likewise.
25984 (arc_rewrite_small_data_p): Use assert for TLS constants.
25985 (prepare_move_operands): Use prepare_pic_move.
25986 (arc_legitimize_address): Legitimize tls addresses.
25987 (arc_epilogue_uses): Check for arc_tp_regno.
25988 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
25989 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
25991 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
25993 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
25994 %(arc_tls_extra_start_spec).
25995 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
25996 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
25998 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
25999 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
26000 (UNSPEC_TLS_OFF): Add.
26002 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
26003 (get_thread_pointersi): New patterns.
26004 * config/arc/arc.opt (mtp-regno): New option.
26005 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
26006 (move_dest_operand): Likewise.
26007 * configure: Regenerate.
26008 * configure.ac: Add arc*-*-* case to test for tls.
26009 * doc/invoke.texi (ARC options): Document mtp-regno.
26011 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26013 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
26014 the new ARC HS SIMD instructions.
26015 (arc_preferred_simd_mode): New function.
26016 (arc_autovectorize_vector_sizes): Likewise.
26017 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26018 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
26019 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
26020 (arc_init_builtins): Add new SIMD builtin types.
26021 (arc_split_move): Handle 64 bit vector moves.
26022 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
26023 (TARGET_PLUS_QMACW): Define.
26024 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
26025 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
26026 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
26027 (VSUBADD4H): New builtins.
26028 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
26029 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
26031 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
26032 Matthias Klose <doko@debian.org>
26034 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
26036 2016-04-28 Richard Biener <rguenther@suse.de>
26038 PR middle-end/70777
26039 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
26042 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
26044 * common/config/sh/sh-common.c: Remove SH5 support.
26045 * config/sh/constraints.md: Likewise.
26046 * config/sh/config/sh/elf.h: Likewise.
26047 * config/sh/linux.h: Likewise.
26048 * config/sh/netbsd-elf.h: Likewise.
26049 * config/sh/predicates.md: Likewise.
26050 * config/sh/sh-c.c: Likewise.
26051 * config/sh/sh-protos.h: Likewise.
26052 * config/sh/sh.c: Likewise.
26053 * config/sh/sh.h: Likewise.
26054 * config/sh/sh.md: Likewise.
26055 * config/sh/sh.opt: Likewise.
26056 * config/sh/sync.md: Likewise.
26057 * config/sh/sh64.h: Delete.
26058 * config/sh/shmedia.h: Likewise.
26059 * config/sh/shmedia.md: Likewise.
26060 * config/sh/sshmedia.h: Likewise.
26061 * config/sh/t-netbsd-sh5-64: Likewise.
26062 * config/sh/t-sh64: Likewise.
26063 * config/sh/ushmedia.h: Likewise.
26065 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26067 * config/i386/i386.md (sign_extend to memory peephole2s): Use
26068 general_reg_operand instead of register_operand predicate.
26070 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26072 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
26074 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
26076 * match.pd (A - B > A, A + B < A): New transformations.
26078 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
26080 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
26081 which defaults to true. Emit an outer pair of parentheses only if
26082 EMIT_PARENS. When continuing a chain of && or || (or & or |),
26083 don't emit parentheses for the right-hand operand.
26085 2016-04-27 Jeff Law <law@redhat.com>
26087 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
26089 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26091 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
26092 (altivec_lvx_<mode>_internal): Document.
26093 (altivec_lvx_<mode>_2op): New define_insn.
26094 (altivec_lvx_<mode>_1op): Likewise.
26095 (altivec_lvx_<mode>_2op_si): Likewise.
26096 (altivec_lvx_<mode>_1op_si): Likewise.
26097 (altivec_stvx_<mode>): Remove.
26098 (altivec_stvx_<mode>_internal): Document.
26099 (altivec_stvx_<mode>_2op): New define_insn.
26100 (altivec_stvx_<mode>_1op): Likewise.
26101 (altivec_stvx_<mode>_2op_si): Likewise.
26102 (altivec_stvx_<mode>_1op_si): Likewise.
26103 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26104 Expand vec_ld and vec_st during parsing.
26105 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
26107 (altivec_expand_stvx_be): Likewise.
26108 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
26109 address-masking behavior in RTL.
26110 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
26111 address-masking behavior in RTL.
26112 (altivec_expand_builtin): Change builtin code arguments for calls
26113 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
26114 (insn_is_swappable_p): Avoid incorrect swap optimization in the
26115 presence of lvx/stvx patterns.
26116 (alignment_with_canonical_addr): New function.
26117 (alignment_mask): Likewise.
26118 (find_alignment_op): Likewise.
26119 (recombine_lvx_pattern): Likewise.
26120 (recombine_stvx_pattern): Likewise.
26121 (recombine_lvx_stvx_patterns): Likewise.
26122 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
26123 stvx patterns from expand.
26124 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
26126 (vector_altivec_store_<mode>): Likewise.
26128 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
26130 * config/aarch64/aarch64.md
26131 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
26132 remove the "fp" attributes.
26133 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
26134 add the "simd" attributes.
26135 (*movdf_aarch64): Likewise.
26136 (*movtf_aarch64): Remove the "fp" attributes.
26137 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
26138 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
26140 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26142 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
26143 rtx to rtx_code_label *.
26144 * rtl.h (maybe_set_first_label_num): Likewise.
26146 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26148 * df-core.c (df_add_problem): Make the problem param be const.
26149 (df_remove_problem): Make local "problem" be const.
26150 * df-problems.c (problem_RD): Make const.
26151 (problem_LR): Likewise.
26152 (problem_LIVE): Likewise.
26153 (problem_MIR): Likewise.
26154 (problem_CHAIN): Likewise.
26155 (problem_WORD_LR): Likewise.
26156 (problem_NOTE): Likewise.
26157 (problem_MD): Likewise.
26158 * df-scan.c (problem_SCAN): Likewise.
26159 * df.h (struct df_problem): Make field "dependent_problem" be
26161 (struct dataflow): Likewise for field "problem".
26162 (df_add_problem): Make param const.
26164 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
26166 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
26167 inter-unit moves to/from vector registers are enabled. Do not disable
26170 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26172 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
26173 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
26175 (enum df_problem_id): ...this new enum.
26176 (struct df_problem): Convert field "id" from "int" to
26177 enum df_problem_id.
26179 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26181 * rtl.def: Update comment for "things in the instruction chain" to
26182 reflect the removal of the leading "i" field for INSN_UID in
26183 r210360. Fix bogus apostrophe.
26185 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
26187 * config/i386/i386.md
26188 (lea arith with mem operand + setcc peephole2): Set operator mode.
26190 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
26193 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
26194 (dimode_scalar_to_vector_candidate_p): This.
26195 (timode_scalar_to_vector_candidate_p): New function.
26196 (scalar_to_vector_candidate_p): Likewise.
26197 (timode_check_non_convertible_regs): Likewise.
26198 (timode_remove_non_convertible_regs): Likewise.
26199 (remove_non_convertible_regs): Likewise.
26200 (remove_non_convertible_regs): Renamed to ...
26201 (dimode_remove_non_convertible_regs): This.
26202 (scalar_chain::~scalar_chain): Make it virtual.
26203 (scalar_chain::compute_convert_gain): Make it pure virtual.
26204 (scalar_chain::mark_dual_mode_def): Likewise.
26205 (scalar_chain::convert_insn): Likewise.
26206 (scalar_chain::convert_registers): Likewise.
26207 (scalar_chain::add_to_queue): Make it protected.
26208 (scalar_chain::emit_conversion_insns): Likewise.
26209 (scalar_chain::replace_with_subreg): Likewise.
26210 (scalar_chain::replace_with_subreg_in_insn): Likewise.
26211 (scalar_chain::convert_op): Likewise.
26212 (scalar_chain::convert_reg): Likewise.
26213 (scalar_chain::make_vector_copies): Likewise.
26214 (scalar_chain::convert_registers): New pure virtual function.
26215 (class dimode_scalar_chain): New class.
26216 (class timode_scalar_chain): Likewise.
26217 (scalar_chain::mark_dual_mode_def): Renamed to ...
26218 (dimode_scalar_chain::mark_dual_mode_def): This.
26219 (timode_scalar_chain::mark_dual_mode_def): New function.
26220 (timode_scalar_chain::convert_insn): Likewise.
26221 (dimode_scalar_chain::convert_registers): Likewise.
26222 (scalar_chain::compute_convert_gain): Renamed to ...
26223 (dimode_scalar_chain::compute_convert_gain): This.
26224 (scalar_chain::replace_with_subreg): Renamed to ...
26225 (dimode_scalar_chain::replace_with_subreg): This.
26226 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
26227 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
26228 (scalar_chain::make_vector_copies): Renamed to ...
26229 (dimode_scalar_chain::make_vector_copies): This.
26230 (scalar_chain::convert_reg): Renamed to ...
26231 (dimode_scalar_chain::convert_reg ): This.
26232 (scalar_chain::convert_op): Renamed to ...
26233 (dimode_scalar_chain::convert_op): This.
26234 (scalar_chain::convert_insn): Renamed to ...
26235 (dimode_scalar_chain::convert_insn): This.
26236 (scalar_chain::convert): Call convert_registers.
26237 (convert_scalars_to_vector): Change to scalar_chain pointer to
26238 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
26239 in 32-bit mode. Delete scalar_chain pointer. Call
26240 free_dominance_info in 64-bit mode.
26241 (pass_stv::gate): Remove TARGET_64BIT check.
26242 (ix86_option_override): Put the 64-bit STV pass before the CSE
26245 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
26247 * dwarf2out.h (struct dw_loc_descr_node): Remove the
26248 dw_loc_frame_offset field.
26249 * dwarf2out.c (new_loc_descr): Likewise.
26250 (resolve_args_picking_1): Turn the VISITED hash set into a
26251 FRAME_OFFSET hash map. Use it to associate a frame offset to
26252 visited nodes. Remove uses of the CHECKING_P macro.
26253 (resolve_args_picking): Update call to resolve_args_picking_1.
26255 2016-04-27 Martin Liska <mliska@suse.cz>
26257 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
26258 (free_loop_data): Release vuses of groups.
26260 2016-04-27 Bin Cheng <bin.cheng@arm.com>
26262 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
26263 instead of redundant use_id and boolean have_use_for.
26264 (struct iv_use): Change sub_id into group_id. Remove field next.
26265 Move fields: related_cands, n_map_members, cost_map and selected
26267 (struct iv_group): ... here. New structure.
26268 (struct iv_common_cand): Use structure declaration directly.
26269 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
26270 (MAX_CONSIDERED_USES): Rename macro to ...
26271 (MAX_CONSIDERED_GROUPS): ... here.
26272 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
26273 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
26274 (dump_uses): Rename to ...
26275 (dump_groups): ... here. Update all uses.
26276 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
26277 (find_induction_variables): Refactor format of dump information.
26278 (record_sub_use): Delete.
26279 (record_use): Update all uses.
26280 (record_group): New function.
26281 (record_group_use, find_interesting_uses_op): Call above functions.
26283 (find_interesting_uses_cond): Ditto.
26284 (group_compare_offset): New function.
26285 (split_all_small_groups): Rename to ...
26286 (split_small_address_groups_p): ... here. Update all uses.
26287 (split_address_groups): Update all uses.
26288 (find_interesting_uses): Refactor format of dump information.
26289 (add_candidate_1): Update all uses. Remove redundant check on iv,
26291 (add_candidate, record_common_cand): Remove redundant assert.
26292 (add_iv_candidate_for_biv): Update use.
26293 (add_iv_candidate_derived_from_uses): Update all uses.
26294 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
26295 (alloc_use_cost_map): Ditto.
26296 (set_use_iv_cost, get_use_iv_cost): Rename to ...
26297 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
26298 (determine_use_iv_cost_generic): Ditto.
26299 (determine_group_iv_cost_generic): Ditto.
26300 (determine_use_iv_cost_address): Ditto.
26301 (determine_group_iv_cost_address): Ditto.
26302 (determine_use_iv_cost_condition): Ditto.
26303 (determine_group_iv_cost_cond): Ditto.
26304 (determine_use_iv_cost): Ditto.
26305 (determine_group_iv_cost): Ditto.
26306 (set_autoinc_for_original_candidates): Update all uses.
26307 (find_iv_candidates): Update all uses. Refactor dump information.
26308 (determine_use_iv_costs): Ditto.
26309 (determine_iv_costs): Ditto.
26310 (iv_ca_cand_for_use): Rename to ...
26311 (iv_ca_cand_for_group): ... here. Update all uses.
26312 (iv_ca_add_use, iv_ca_add_group): Ditto.
26313 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
26314 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
26315 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
26316 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
26317 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
26318 (create_new_iv, adjust_iv_update_pos): Ditto.
26319 (rewrite_use_address): Delete.
26320 (rewrite_use_address_1): Rename to ...
26321 (rewrite_use_address): ... here.
26322 (rewrite_use_compare): Update all uses.
26323 (rewrite_use): Delete.
26324 (rewrite_uses): Rename to ...
26325 (rewrite_groups): ... here. Update all uses.
26326 (remove_unused_ivs, free_loop_data): Update all uses.
26327 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
26329 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26331 * rtlanal.c (nonzero_bits1): Convert preprocessor check
26332 for WORD_REGISTER_OPERATIONS to runtime check.
26334 2016-04-27 Richard Biener <rguenther@suse.de>
26337 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
26338 aggregate_value_p to determine if a function result is
26339 returned by reference.
26340 (ipa_pta_execute): Functions having their address taken are
26341 not automatically nonlocal.
26343 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26346 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
26347 * fold-const.c (operand_equal_p): If flag_checking and
26348 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
26349 and if it returns non-zero, assert iterative_hash_expr on both
26352 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26354 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
26356 2016-04-27 Nick Clifton <nickc@redhat.com>
26358 PR middle-end/49889
26359 * varasm.c (merge_weak): Generate an error if an attempt is made
26360 to convert a non-weak static function into a weak, public function.
26362 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26364 * params.def (MAX_PARTITION_SIZE): New param.
26365 * doc/invoke.texi: Document lto-max-partition.
26367 2016-04-27 Richard Biener <rguenther@suse.de>
26370 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
26371 function cummulating used_from_other_partition, externally_visible
26372 and force_output from aliases.
26373 (refered_from_nonlocal_var): Likewise.
26374 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
26375 node flags properly.
26377 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26379 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
26380 (-Wmemset-elt-size): New item.
26382 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
26385 * stor-layout.h (internal_reference_types): Delete.
26386 * stor-layout.c (reference_types_internal): Likewise.
26387 (internal_reference_types): Likewise.
26388 (layout_type) <REFERENCE_TYPE>: Adjust.
26390 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26393 * tree.h (inchash::add_expr): Add FLAGS argument.
26394 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
26395 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
26396 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
26397 Formatting fix. Adjust recursive calls. For tcc_comparison,
26398 if swap_tree_comparison (code) is smaller than code, hash that
26399 and arguments in the other order. Hash CONVERT_EXPR the same
26400 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
26401 of ADDR_EXPR of decl as the decl itself. Add or remove
26402 OEP_ADDRESS_OF from recursive flags as needed. For
26403 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
26404 operands commutatively and only the third one normally.
26405 For internal CALL_EXPR hash in CALL_EXPR_IFN.
26407 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
26409 * config/rtems.h (LIB_SPEC): Add -latomic.
26411 2016-04-27 Joel Sherrill <joel@rtems.org>
26413 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
26414 xilink.ld and flags not relevant to RTEMS.
26416 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26418 * toplev.c (backend_init_target): Avoid calling init_reload when using
26421 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26423 * reorg.c (try_merge_delay_insns): Declare i and j inside the
26424 for loops rather than one for the whole function.
26426 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26428 * match.pd (X + CST CMP X): New transformation.
26430 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26432 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
26433 * fold-const.c (fold_binary_loc): Remove 2 transformations
26434 superseded by match.pd.
26435 * match.pd (x+x -> x*2): Generalize to integers.
26437 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
26439 * config/i386/i386.md (operation on memory peephole): Duplicate an
26440 existing peephole and adapt it to match lea rather than an operation
26443 PR rtl-optimization/57193
26444 * opts.c (default_options_table): Add OPT_frename_registers at -O2
26446 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
26448 2016-04-26 Bin Cheng <bin.cheng@arm.com>
26450 * tree-if-conv.c (any_pred_load_store): New static variable.
26451 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
26452 any_pred_load_store instead of and_mask_load_store.
26453 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
26454 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
26455 (combine_blocks, tree_if_conversion): Ditto.
26457 2016-04-26 Bin Cheng <bin.cheng@arm.com>
26459 PR tree-optimization/70771
26460 PR tree-optimization/70775
26461 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
26462 virtual PHI nodes. Delete parameter.
26463 (if_convertible_loop_p_1): Delete argument to above function.
26464 (predicate_all_scalar_phis): Delete code handling single-argument
26466 (tree_if_conversion): Mark and update virtual SSA.
26468 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26471 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
26472 (x86_elf_aligned_common): Rename to ...
26473 (x86_elf_aligned_decl_common): ... this.
26474 Add decl arg. Switch to .lbss for largecomm object. Use
26475 LARGECOMM_SECTION_ASM_OP.
26476 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
26478 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
26479 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
26481 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
26482 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
26484 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26487 * config/i386/i386.c (SECTION_LARGE): Define.
26488 (x86_64_elf_select_section): Set it for large data/bss sections.
26489 Only clear SECTION_WRITE for .lrodata.
26490 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
26492 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
26493 * varasm.c (default_elf_asm_named_section): Grow flagchars.
26494 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
26496 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
26497 * doc/tm.texi: Regenerate.
26499 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26502 * configure.ac (--enable-checking): Document extra flag, for
26503 non-release builds default to --enable-checking=yes,extra.
26504 If misc checking and extra checking, define CHECKING_P to 2 instead
26506 * common.opt (fchecking=): Add.
26507 * doc/invoke.texi (-fchecking=): Document.
26508 * doc/install.texi: Document --enable-checking changes.
26509 * configure: Regenerated.
26510 * config.in: Regenerated.
26512 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26514 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
26515 attribute instead of which_alternative.
26516 * config/i386/sse.md (*mov<mode>_internal): Ditto.
26517 Use EXT_REX_SSE_REG_P where appropriate.
26519 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26521 * config/i386/predicates.md (const0_operand): Do not match
26522 const_wide_int code.
26523 (const1_operand): Ditto.
26525 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26527 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
26528 for SSE constm1 operands and TARGET_AVX512VL.
26529 (*movti_internal): Ditto.
26530 (*mov<mode>_or): Use constm1_operand predicate.
26531 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
26532 for SSE vector_all_ones operands and TARGET_AVX512VL.
26533 * config/i386/predicates.md (constm1_operand): New predicate.
26534 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
26535 emission of constant -1 load.
26537 2016-04-25 Jason Merrill <jason@redhat.com>
26539 * gdbinit.in: Skip is-a.h.
26541 * attribs.c (register_scoped_attributes): Fix logic.
26542 * attribs.h: Declare register_scoped_attributes.
26544 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26546 * config/rs6000/rs6000-builtin.def: Correct pasto error for
26547 stxvd2x and stxvw4x built-in functions.
26549 2016-04-25 DJ Delorie <dj@redhat.com>
26551 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
26552 (ashrhi3): Likewise.
26553 (lshrhi3): Likewise.
26555 2016-04-25 Richard Biener <rguenther@suse.de>
26557 PR tree-optimization/70780
26558 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
26559 wasn't visited yet.
26560 (compute_antic): Mark blocks with abnormal preds as visited as
26561 they have a final empty antic-in solution already.
26563 2016-04-25 Michael Collison <michael.collison@linaro.org>
26565 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
26567 2016-04-25 Michael Collison <michael.collison@linaro.org>
26569 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
26570 mode is VQI to improve mixed mode vectorization.
26571 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
26572 define_insn to match low half of signed vaddw.
26573 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
26574 define_insn to match high half of signed vaddw.
26575 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
26576 define_insn to match low half of unsigned vaddw.
26577 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
26578 define_insn to match high half of unsigned vaddw.
26579 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
26580 (arm_simd_check_vect_par_cnst_half_p): Likewise.
26581 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
26583 (arm_simd_check_vect_par_cnst_half_p): Likewise.
26584 * config/arm/predicates.md (vect_par_constant_high): Support
26585 big endian and simplify by calling
26586 arm_simd_check_vect_par_cnst_half
26587 (vect_par_constant_low): Likewise.
26589 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26591 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
26592 predicate for operand 2.
26594 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
26595 H.J. Lu <hongjiu.lu@intel.com>
26597 * config/i386/i386-protos.h (standard_sse_constant_p): Add
26598 machine_mode argument.
26599 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
26600 constm1_rtx operands. For VOIDmode constants, get mode from
26601 pred_mode. Check mode size if the mode is supported by ABI.
26602 (standard_sse_constant_opcode): Do not use standard_constant_p.
26603 Strictly check ABI support for all-ones operands.
26604 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
26605 immediates. Update calls to standard_sse_constant_p.
26606 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
26607 (ix86_rtx_costs): Ditto.
26608 * config/i386/i386.md (*movxi_internal_avx512f): Use
26609 nonimmediate_or_sse_const_operand instead of vector_move_operand.
26610 Use (v,BC) alternative instead of (v,C). Use register_operand
26611 checks instead of MEM_P.
26612 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
26613 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
26614 isa attribute. Use register_operand checks instead of MEM_P.
26615 (*movti_internal): Use nonimmediate_or_sse_const_operand for
26616 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
26617 alternative and corresponding sse2 isa attribute.
26618 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
26619 to standard_sse_constant_p.
26620 (FP constant splitters): Ditto.
26621 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
26623 * config/i386/predicates.md (constm1_operand): Remove.
26624 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
26625 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
26626 vector_all_ones_operand instead of constm1_operand.
26628 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26630 * print-rtl.c (print_rtx_insn_vec): New function.
26631 * print-rtl.h: New prototype.
26632 * store-motion.c (struct st_expr): Make avail_stores a vector.
26633 (st_expr_entry): Adjust.
26634 (free_st_expr_entry): Likewise.
26635 (print_store_motion_mems): Likewise.
26636 (find_moveable_store): Likewise.
26637 (compute_store_table): Likewise.
26638 (delete_store): Likewise.
26639 (build_store_vectors): Likewise.
26641 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26643 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
26645 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26647 * vec.h (vec_safe_contains): New function.
26648 (vec::contains): Likewise.
26649 (vec::begin): Likewise.
26650 (vec::end): Likewise.
26652 2016-04-23 Jakub Jelinek <jakub@redhat.com>
26655 * cfgexpand.c (expand_stack_vars): Fix typo.
26657 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
26659 * system.h (list, map, set, vector): Include conditionally.
26660 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
26661 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
26662 * ipa-icf.c (INCLUDE_LIST): Define.
26663 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
26664 * config/sh/sh.c (INCLUDE_VECTOR): Define.
26665 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
26666 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
26667 * cp/logic.cc (INCLUDE_LIST): Define.
26668 * fortran/trans-common.c (INCLUDE_MAP): Define.
26670 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
26672 * auto-profile.c: Remove <string.h> include.
26673 * ipa-icf-gimple.c: Remove <list> include.
26674 * diagnostic.c: Remove <new> include.
26675 * genmatch.c: Likewise.
26676 * pretty-print.c: Likewise.
26677 * toplev.c: Likewise
26678 * c/c-objc-common.c: Likewise.
26679 * cp/error.c: Likewise.
26680 * fortran/error.c: Likewise.
26682 2016-04-22 Richard Biener <rguenther@suse.de>
26684 * lto-streamer-in.c (input_ssa_names): Do not allocate
26685 GIMPLE_NOP for all SSA names.
26686 * lto-streamer-out.c (output_ssa_names): Do not output
26687 SSA names that should have been released.
26689 2016-04-22 Richard Biener <rguenther@suse.de>
26691 PR tree-optimization/70740
26692 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
26695 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
26698 * config/i386/predicates.md (call_insn_operand): Replace
26699 sibcall_memory_operand with memory_operand.
26701 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
26703 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
26704 has_single_use() tests.
26705 (register_edge_assert_for_1): Likewise.
26706 (find_assert_locations_1): Check the liveness bitmap instead of
26707 checking has_single_use().
26709 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
26712 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
26713 Extract AVX-512BW constraint from AVX.
26715 2016-04-21 Richard Biener <rguenther@suse.de>
26717 PR tree-optimization/70725
26718 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
26719 for phi_convertible_by_degenerating_args.
26720 (predicate_all_scalar_phis): Handle single-argument PHIs.
26722 2016-04-21 Richard Biener <rguenther@suse.de>
26724 PR middle-end/70747
26725 * fold-const.c (fold_comparison): Return properly typed
26728 2016-04-21 Bin Cheng <bin.cheng@arm.com>
26730 PR tree-optimization/70715
26731 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
26732 after expanding BASE using expand_simple_operations.
26734 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
26736 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
26737 New transformations.
26739 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
26741 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
26743 2016-04-20 Jan Hubicka <jh@suse.cz>
26745 * ipa-inline.c (can_inline_edge_p): Pass caller info to
26746 ultiimate_alias_target.
26747 (update_callee_keys): Likewise.
26748 (lookup_recursive_calls): Likewise.
26749 (speculation_useful_p): Likewise.
26751 2016-04-20 Jan Hubicka <jh@suse.cz>
26754 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
26755 (set_nothrow_flag_1): ... this; handle interposition correctly;
26756 recurse on aliases and thunks.
26757 (cgraph_node::set_nothrow_flag): New.
26758 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
26759 functions compiled with non-call exceptions that binds to current
26761 (propagate_nothrow): Be safe WRT interposition.
26762 * cgraph.h (set_nothrow_flag): Update prototype.
26764 2016-04-18 Jan Hubicka <jh@suse.cz>
26766 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
26767 max_loop_iterations_int.
26768 (tree_unswitch_outer_loop): Likewise.
26770 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26772 PR tree-optimization/69489
26773 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
26774 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
26775 Revise dump message.
26776 (if_convertible_bb_p): Remove check on edge count of basic block's
26779 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26781 PR tree-optimization/56625
26782 PR tree-optimization/69489
26783 * tree-data-ref.h (DR_INNERMOST): New macro.
26784 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
26785 hashing struct innermost_loop_behavior.
26786 (ref_DR_map): Remove.
26787 (innermost_DR_map): New map.
26788 (baseref_DR_map): Revise comment.
26789 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
26790 to innermost_DR_map accroding to its innermost loop behavior.
26791 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
26792 to its innermost loop behavior.
26793 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
26794 Add initialization for innermost_DR_map. Record memory reference
26795 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
26796 have innermost loop behavior.
26797 (if_convertible_loop_p): Remove release for ref_DR_map. Release
26800 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
26802 * config/i386/i386.md (*lea<mode>_general_1): Rename from
26803 *lea_general_1. Use explicit SWI12 mode interator.
26804 (*lea<mode>_general_2): Rename from *lea_general_2.
26805 Use explicit SWI12 mode interator.
26806 (*lea<mode>_general_3): Rename from *lea_general_3.
26807 Use explicit SWI12 mode interator.
26808 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
26809 Use explicit SWI12 mode interator.
26810 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
26811 Use explicit SWI48 mode interator.
26813 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
26815 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
26816 Short-cut unaligned load and store cases. Handle all integer
26818 (ix86_expand_vector_move_misalign): Short-cut unaligned load
26819 and store cases. Call ix86_avx256_split_vector_move_misalign
26820 directly without checking mode class.
26822 2016-04-20 Andrew Pinski <apinski@cavium.com>
26823 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26826 * config/aarch64/aarch64.md (sibcall): Force call
26827 address to be DImode for ILP32.
26828 (sibcall_value): Likewise.
26830 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
26832 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
26834 2016-04-20 Richard Biener <rguenther@suse.de>
26836 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
26837 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
26838 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
26839 (maybe_push_res_to_seq): Adjust.
26840 * gimple-fold.c (maybe_build_generic_op): Likewise.
26842 2016-04-20 Marek Polacek <polacek@redhat.com>
26844 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
26847 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
26849 * config/i386/sse.md (vec_unpacks_lo_hi): Always
26850 use kmovw to support AVX512F target.
26852 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26854 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
26856 2016-04-20 Marek Polacek <polacek@redhat.com>
26858 PR tree-optimization/70725
26859 * tree-if-conv.c (is_false_predicate): New function.
26860 (predicate_mem_writes): Use it.
26862 2016-04-20 Richard Biener <rguenther@suse.de>
26864 PR tree-optimization/70726
26865 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
26866 shift amounts from a pattern stmt operand.
26868 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26871 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
26872 stack_restore_from_fpr pattern when restoring r15.
26873 (s390_optimize_prologue): Strip away the memory barrier in the
26874 parallel when trying to get rid of restore insns.
26875 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
26876 definition for loading the stack pointer from an FPR. Compared to
26877 the normal move insn this pattern includes a full memory barrier.
26879 2016-04-19 Jakub Jelinek <jakub@redhat.com>
26881 PR middle-end/70680
26882 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
26883 implicitly linear or lastprivate iterator on the outer context.
26885 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
26887 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
26889 * config/i386/i386.md (ssememalign): Removed.
26890 * config/i386/sse.md: Remove ssememalign attribute from patterns.
26892 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
26895 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
26896 const short * to __builtin_ia32_loaddquhi512_mask.
26897 (_mm512_maskz_loadu_epi16): Likewise.
26898 (_mm512_mask_storeu_epi16): Pass short * to
26899 __builtin_ia32_storedquhi512_mask.
26900 (_mm512_mask_loadu_epi8): Pass const char * to
26901 __builtin_ia32_loaddquqi512_mask.
26902 (_mm512_maskz_loadu_epi8): Likewise.
26903 (_mm512_mask_storeu_epi8): Pass char * to
26904 __builtin_ia32_storedquqi512_mask.
26905 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
26906 const double * to __builtin_ia32_loadupd512_mask.
26907 (_mm512_mask_loadu_pd): Likewise.
26908 (_mm512_maskz_loadu_pd): Likewise.
26909 (_mm512_storeu_pd): Pass double * to
26910 __builtin_ia32_storeupd512_mask.
26911 (_mm512_mask_storeu_pd): Likewise.
26912 (_mm512_loadu_ps): Pass const float * to
26913 __builtin_ia32_loadups512_mask.
26914 (_mm512_mask_loadu_ps): Likewise.
26915 (_mm512_maskz_loadu_ps): Likewise.
26916 (_mm512_storeu_ps): Pass float * to
26917 __builtin_ia32_storeups512_mask.
26918 (_mm512_mask_storeu_ps): Likewise.
26919 (_mm512_mask_loadu_epi64): Pass const long long * to
26920 __builtin_ia32_loaddqudi512_mask.
26921 (_mm512_maskz_loadu_epi64): Likewise.
26922 (_mm512_mask_storeu_epi64): Pass long long *
26923 to __builtin_ia32_storedqudi512_mask.
26924 (_mm512_loadu_si512): Pass const int * to
26925 __builtin_ia32_loaddqusi512_mask.
26926 (_mm512_mask_loadu_epi32): Likewise.
26927 (_mm512_maskz_loadu_epi32): Likewise.
26928 (_mm512_storeu_si512): Pass int * to
26929 __builtin_ia32_storedqusi512_mask.
26930 (_mm512_mask_storeu_epi32): Likewise.
26931 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
26932 char * to __builtin_ia32_storedquqi256_mask.
26933 (_mm_mask_storeu_epi8): Likewise.
26934 (_mm256_mask_loadu_epi16): Pass const short * to
26935 __builtin_ia32_loaddquhi256_mask.
26936 (_mm256_maskz_loadu_epi16): Likewise.
26937 (_mm_mask_loadu_epi16): Pass const short * to
26938 __builtin_ia32_loaddquhi128_mask.
26939 (_mm_maskz_loadu_epi16): Likewise.
26940 (_mm256_mask_loadu_epi8): Pass const char * to
26941 __builtin_ia32_loaddquqi256_mask.
26942 (_mm256_maskz_loadu_epi8): Likewise.
26943 (_mm_mask_loadu_epi8): Pass const char * to
26944 __builtin_ia32_loaddquqi128_mask.
26945 (_mm_maskz_loadu_epi8): Likewise.
26946 (_mm256_mask_storeu_epi16): Pass short * to.
26947 __builtin_ia32_storedquhi256_mask.
26948 (_mm_mask_storeu_epi16): Pass short * to.
26949 __builtin_ia32_storedquhi128_mask.
26950 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
26951 const double * to __builtin_ia32_loadupd256_mask.
26952 (_mm256_maskz_loadu_pd): Likewise.
26953 (_mm_mask_loadu_pd): Pass onst double * to
26954 __builtin_ia32_loadupd128_mask.
26955 (_mm_maskz_loadu_pd): Likewise.
26956 (_mm256_mask_storeu_pd): Pass double * to
26957 __builtin_ia32_storeupd256_mask.
26958 (_mm_mask_storeu_pd): Pass double * to
26959 __builtin_ia32_storeupd128_mask.
26960 (_mm256_mask_loadu_ps): Pass const float * to
26961 __builtin_ia32_loadups256_mask.
26962 (_mm256_maskz_loadu_ps): Likewise.
26963 (_mm_mask_loadu_ps): Pass const float * to
26964 __builtin_ia32_loadups128_mask.
26965 (_mm_maskz_loadu_ps): Likewise.
26966 (_mm256_mask_storeu_ps): Pass float * to
26967 __builtin_ia32_storeups256_mask.
26968 (_mm_mask_storeu_ps): ass float * to
26969 __builtin_ia32_storeups128_mask.
26970 (_mm256_mask_loadu_epi64): Pass const long long * to
26971 __builtin_ia32_loaddqudi256_mask.
26972 (_mm256_maskz_loadu_epi64): Likewise.
26973 (_mm_mask_loadu_epi64): Pass const long long * to
26974 __builtin_ia32_loaddqudi128_mask.
26975 (_mm_maskz_loadu_epi64): Likewise.
26976 (_mm256_mask_storeu_epi64): Pass long long * to
26977 __builtin_ia32_storedqudi256_mask.
26978 (_mm_mask_storeu_epi64): Pass long long * to
26979 __builtin_ia32_storedqudi128_mask.
26980 (_mm256_mask_loadu_epi32): Pass const int * to
26981 __builtin_ia32_loaddqusi256_mask.
26982 (_mm256_maskz_loadu_epi32): Likewise.
26983 (_mm_mask_loadu_epi32): Pass const int * to
26984 __builtin_ia32_loaddqusi128_mask.
26985 (_mm_maskz_loadu_epi32): Likewise.
26986 (_mm256_mask_storeu_epi32): Pass int * to
26987 __builtin_ia32_storedqusi256_mask.
26988 (_mm_mask_storeu_epi32): Pass int * to
26989 __builtin_ia32_storedqusi128_mask.
26990 * config/i386/i386-builtin-types.def (PCSHORT): New.
26991 (PINT64): Likewise.
26992 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
26993 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
26994 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
26995 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
26996 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
26997 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
26998 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
26999 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
27000 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
27001 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
27002 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
27003 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
27004 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
27005 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
27006 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
27007 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
27008 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
27009 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
27010 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
27011 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
27012 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
27013 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
27014 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
27015 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
27016 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
27017 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
27018 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
27019 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
27020 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
27021 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
27022 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
27023 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
27024 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
27025 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
27026 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
27027 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
27028 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
27029 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
27030 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
27031 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
27032 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
27033 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
27034 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
27035 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
27036 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
27037 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
27038 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
27039 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
27040 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
27042 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
27043 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
27045 (ix86_expand_vector_move_misalign): Likewise.
27046 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
27047 to scalar function prototype for unaligned load/store builtins.
27048 (ix86_expand_special_args_builtin): Updated.
27049 * config/i386/sse.md (UNSPEC_LOADU): Removed.
27050 (UNSPEC_STOREU): Likewise.
27051 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
27052 (VI_ULOADSTORE_F_AVX512VL): Likewise.
27053 (ssescalarsize): Handle V4TI, V2TI and V1TI.
27054 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27055 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27056 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
27057 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
27058 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
27059 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
27060 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
27061 (<avx512>_storedqu<mode>_mask): Likewise.
27062 (*sse4_2_pcmpestr_unaligned): Likewise.
27063 (*sse4_2_pcmpistr_unaligned): Likewise.
27064 (*mov<mode>_internal): Renamed to ...
27065 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
27066 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
27067 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
27068 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
27070 2016-04-19 Richard Biener <rguenther@suse.de>
27072 PR tree-optimization/70171
27073 * tree-ssa-phiprop.c: Include stor-layout.h.
27074 (phiprop_insert_phi): Handle the aggregate copy case.
27075 (propagate_with_phi): Likewise.
27077 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
27079 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
27080 instead of simplify_gen_subreg (... , 0).
27081 (ix86_delegitimize_address): Ditto.
27082 (ix86_split_divmod): Ditto.
27083 (ix86_split_copysign_const): Ditto.
27084 (ix86_split_copysign_var): Ditto.
27085 (ix86_expand_args_builtin): Ditto.
27086 (ix86_expand_round_builtin): Ditto.
27087 (ix86_expand_special_args_builtin): Ditto.
27088 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
27089 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
27090 (udivmodqi4): Ditto.
27091 (absneg splitters): Ditto.
27092 (*jcc_bt<mode>_1): Ditto.
27094 2016-04-19 Richard Biener <rguenther@suse.de>
27096 PR tree-optimization/70724
27097 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
27098 restoring out from ...
27099 (free_scc_vn): ... here.
27100 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
27101 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
27103 (pass_fre::execute): Restore SSA info.
27105 2016-04-19 Richard Biener <rguenther@suse.de>
27107 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
27108 * gimple-walk.c (walk_gimple_op): Initialize it.
27109 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
27110 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
27111 remapping SSA names of defs.
27112 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
27115 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
27117 PR middle-end/70689
27118 * lra-constraints.c (equiv_substition_p): New.
27119 (process_alt_operands): Use it.
27120 (swap_operands): Swap it.
27121 (curr_insn_transform): Update it.
27123 2016-04-18 Michael Matz <matz@suse.de>
27125 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
27126 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
27127 * tree-core.h (tree_type_common.align): Use bit-field.
27128 (tree_type_common.spare): New.
27129 (tree_decl_common.off_align): Make smaller.
27130 (tree_decl_common.align): Use bit-field.
27132 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
27133 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
27134 (scan_sharing_clauses): Ditto.
27135 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
27136 (omp_finish_file): Ditto.
27137 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
27138 (layout_decl): Ditto.
27139 (relayout_decl): Ditto.
27140 (finalize_record_size): Use SET_TYPE_ALIGN.
27141 (finalize_type_size): Ditto.
27142 (finish_builtin_struct): Ditto.
27143 (layout_type): Ditto.
27144 (initialize_sizetypes): Ditto.
27145 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
27146 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
27147 (lookup_field_for_decl): Use SET_DECL_ALIGN.
27148 (get_chain_field): Ditto.
27149 (get_trampoline_type): Ditto.
27150 (get_nl_goto_field): Ditto.
27151 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27153 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
27154 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
27155 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
27156 (build_qualified_type): Use SET_TYPE_ALIGN.
27157 (build_aligned_type, build_range_type_1): Ditto.
27158 (build_atomic_base): Ditto.
27159 (build_common_tree_nodes): Ditto.
27160 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
27161 (expand_one_stack_var_at): Ditto.
27162 * coverage.c (build_var): Use SET_DECL_ALIGN.
27163 * except.c (init_eh): Ditto.
27164 * function.c (assign_parm_setup_block): Ditto.
27165 * symtab.c (increase_alignment_1): Ditto.
27166 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
27167 * tree-vect-stmts.c (ensure_base_align): Ditto.
27168 * varasm.c (align_variable): Ditto.
27169 (assemble_variable): Ditto.
27170 (build_constant_desc): Ditto.
27171 (output_constant_def_contents): Ditto.
27173 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
27174 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
27175 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
27176 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
27177 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
27179 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
27182 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
27183 replace %vmovsd with "%vmovq".
27184 (vec_concatv2df): Likewise.
27186 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
27188 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
27189 (*vec_extractv2si_0): Ditto.
27190 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
27191 (zero_extended_scalar_load_operand splitters): Ditto.
27192 (vec_extract splitters): Ditto.
27193 (*vec_extractv4si_0_zext): Ditto.
27194 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
27195 and lowpart_subreg.
27196 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
27197 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
27198 (*sse4_1_extractps): Use lowpart_subreg.
27199 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
27201 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27203 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
27205 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
27206 Mention Solaris 11 packaging changes.
27207 Update gas and gld requirements.
27208 Remove reference to pre-Solaris 10 bug.
27209 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
27211 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
27214 2016-04-17 Jan Hubicka <jh@suse.cz>
27216 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
27217 max_loop_iterations_int.
27219 2016-04-18 Richard Biener <rguenther@suse.de>
27221 PR tree-optimization/43434
27222 * tree-ssa-structalias.c (struct vls_data): New.
27223 (visit_loadstore): Handle all pointer-based accesses.
27224 (compute_dependence_clique): Compute a bitmap of restrict tags
27225 assigned bases and pass it to visit_loadstore.
27227 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
27230 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
27231 armv8.1-a and armv8.1-a+crc.
27233 2016-04-18 Richard Biener <rguenther@suse.de>
27235 PR tree-optimization/70701
27236 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
27237 references after translating through a memcpy.
27239 2016-04-18 Richard Biener <rguenther@suse.de>
27241 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
27242 (compute_antic): ... here. For partial antic use regular
27243 postorder and scrap iteration.
27244 (compute_partial_antic_aux): Remove unused return value.
27245 (init_pre): Do not allocate postorder.
27246 (fini_pre): Do not free postorder.
27248 2016-04-18 Richard Biener <rguenther@suse.de>
27250 PR middle-end/37870
27251 * expmed.c (extract_bit_field_1): Remove broken case
27252 using a wider MODE_INT mode.
27254 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
27256 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
27257 unless compiling with at least GCC-4.8.
27259 2016-04-17 Jan Hubicka <jh@suse.cz>
27262 * graphite.c (graphite_finalize): Update call to
27263 tree_estimate_probability.
27264 * predict.h (tree_estimate_probability): Update prototype.
27266 2016-04-17 Jan Hubicka <jh@suse.cz>
27268 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
27269 (tree_estimate_probability): Likewise.
27270 (pass_profile::execute): Update.
27271 (report_predictor_hitrates): New function.
27272 * profile.c (compute_branch_probabilities): Use it.
27273 * predict.h (report_predictor_hitrates): Declare.
27275 2016-04-17 Jan Hubicka <jh@suse.cz>
27278 * cgraph.h (cgraph_node::set_const_flag,
27279 cgraph_node::set_pure_flag): Update prototype to return bool;
27281 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
27282 of interposable symbol are interposable, too.
27283 (cgraph_set_const_flag_1): Rename to ...
27284 (set_const_flag_1): ... this one; change to self recursive function
27285 instead of call_for_symbol_thunks_and_aliases. Handle correctly
27286 clearnig the flag in all variants and also virtual thunks of const
27287 functions are pure; track if any change was done.
27288 (cgraph_node::set_const_flag): Update.
27289 (struct set_pure_flag_info): New struct.
27290 (cgraph_set_pure_flag_1): Rename to ...
27291 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
27292 rather than pointer encoded flags; track if any changes was done;
27293 handle correctly clearning flag and setting flag of aliases already
27295 (cgraph_node::set_pure_flag): Update.
27296 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
27298 2016-04-17 Tom de Vries <tom@codesourcery.com>
27301 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
27302 backslash in label.
27304 2016-04-17 Tom de Vries <tom@codesourcery.com>
27306 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
27307 '{}<> ' as escape-for-record.
27309 2016-04-17 Tom de Vries <tom@codesourcery.com>
27311 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
27314 2016-04-17 Tom de Vries <tom@codesourcery.com>
27317 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
27318 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
27319 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
27320 * passes.c (finish_optimization_passes): Only call
27321 finish_graph_dump_file if dfi->graph_dump_initialized.
27322 (execute_function_dump, pass_init_dump_file): Use
27323 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
27325 2016-04-17 Tom de Vries <tom@codesourcery.com>
27327 PR tree-optimization/70256
27328 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
27329 (debug_varmap): New function.
27331 2016-04-17 Tom de Vries <tom@codesourcery.com>
27334 * passes.c (pass_manager::register_pass): Propagate pflags.
27336 2016-04-17 Tom de Vries <tom@codesourcery.com>
27339 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
27340 * passes.c (pass_manager::pass_manager): Declare and init p_start in
27341 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
27342 check if it's equal to p_start.
27343 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
27345 2016-04-15 Jan Hubicka <jh@suse.cz>
27348 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
27349 function does not bind to current def.
27350 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
27351 handle conservatively calls to functions that does not need to bind
27353 (check_call): Update call of worse_state.
27354 (ignore_edge_for_nothrow): Update.
27355 (ignore_edge_for_pure_const): Likewise.
27356 (propagate_pure_const): Update calls to worse_state.
27357 (skip_function_for_local_pure_const): Reformat comments.
27359 2016-04-15 Jan Hubicka <jh@suse.cz>
27362 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
27363 (cgraph_node::function_symbol): Likewise.
27364 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27365 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
27366 (symtab_node::ultimate_alias_target): Add REF parameter.
27367 (symtab_node::binds_to_current_def_p): Declare.
27368 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
27369 (cgraph_node::function_symbol): Likewise.
27370 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27371 (cgraph_node::get_availability): Likewise.
27372 (cgraph_edge::binds_to_current_def_p): New inline function.
27373 (varpool_node::get_availability): Add REF parameter.
27374 (varpool_node::ultimate_alias_target): Likewise.
27375 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
27376 (symtab_node::binds_to_current_def_p): Likewise.
27377 * varpool.c (varpool_node::get_availability): Likewise.
27379 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27382 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
27383 Fix mode size check.
27385 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27387 * BASE-VER: Set to 7.0.0.
27389 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
27391 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
27393 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27395 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
27396 architecture revisions.
27398 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
27400 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
27401 * config/i386/i386.c (ix86_using_red_zone): No longer static.
27402 * config/i386/i386.md (stack decrement to push peepholes): Guard
27403 with !x86_using_red_zone ().
27405 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27408 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
27409 to dump_generic_node.
27410 (NIY): Pass also flags to do_niy.
27412 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
27414 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
27415 (simd_clone_vector_of_formal_parm_types)
27416 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
27417 (simd_clone_mangle, simd_clone_create)
27418 (simd_clone_adjust_return_type, create_tmp_simd_array)
27419 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
27420 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
27421 (ipa_simd_modify_function_body, simd_clone_linear_addend)
27422 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
27423 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
27424 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
27425 * omp-simd-clone.c: ... this new file.
27426 (simd_clone_vector_of_formal_parm_types): Make it static.
27427 * Makefile.in (OBJS): Add omp-simd-clone.o.
27429 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27432 * config/i386/sse.md: Use proper memory operand modifiers.
27435 2016-04-15 Richard Biener <rguenther@suse.de>
27436 Alan Modra <amodra@gmail.com>
27438 PR tree-optimization/70130
27439 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
27440 when alignment stays not the same and no not use the realign
27443 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27446 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27447 direct move handlers for KFmode. Change TFmode handlers test from
27448 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
27450 2016-04-14 Jakub Jelinek <jakub@redhat.com>
27453 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
27454 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
27455 (inlined_polymorphic_ctor_dtor_block_p): Use it.
27456 * tree-ssa-live.c (remove_unused_scope_block_p): When
27457 in_ctor_dtor_block, avoid discarding not just BLOCKs with
27458 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
27459 block_ultimate_origin is FUNCTION_DECL.
27460 (remove_unused_locals): If current_function_decl is
27461 polymorphic_ctor_dtor_p, pass initial true to
27462 remove_unused_scope_block_p' is_ctor_dtor_block.
27464 2016-04-14 Martin Sebor <msebor@redhat.com>
27469 * doc/extend.texi (Variable Length): Revert.
27471 2016-04-14 Marek Polacek <polacek@redhat.com>
27472 Jan Hubicka <hubicka@ucw.cz>
27475 * tree.c (verify_type): Disable the canonical type of main variant
27478 2016-04-14 Jason Merrill <jason@redhat.com>
27480 * cfgexpand.c, expr.c: Revert previous change.
27482 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
27484 PR middle-end/70643
27485 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
27486 when building a mem ref for the incoming reduction variable.
27488 2016-04-14 Richard Biener <rguenther@suse.de>
27490 PR tree-optimization/70614
27491 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
27492 loop if the evolution dropped to chrec_dont_know.
27493 (interpret_condition_phi): Likewise.
27495 2016-04-14 Richard Biener <rguenther@suse.de>
27497 PR tree-optimization/70623
27498 * tree-ssa-pre.c (changed_blocks): Make global ...
27499 (compute_antic): ... local here. Move and fix worklist
27500 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
27501 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
27502 worklist handling, dump when ANTIC_IN changed.
27503 (compute_partial_antic_aux): Remove worklist handling.
27504 (init_pre): Do not compute post dominators. Add a comment about
27505 the CFG order chosen.
27506 (fini_pre): Do not free post dominators.
27508 2016-04-13 Martin Sebor <msebor@redhat.com>
27513 * doc/extend.texi (Variable Length): Document C++ specifics.
27515 2016-04-13 Jakub Jelinek <jakub@redhat.com>
27518 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
27519 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
27520 eh edges have been purged.
27523 * tree-sra.c (create_access_replacement,
27524 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
27526 * tree-pretty-print.c (dump_fancy_name): New function.
27527 (dump_decl_name, dump_generic_node): Use it.
27529 2016-04-13 Jason Merrill <jason@redhat.com>
27531 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
27532 * expr.c (expand_expr_real_1): Likewise.
27534 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
27536 * config/i386/i386.md (kunpckhi): Swap operands.
27537 (kunpcksi): Likewise.
27538 (kunpckdi): Likewise.
27539 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
27540 (vec_pack_trunc_<mode>): Likewise.
27542 2016-04-13 Jakub Jelinek <jakub@redhat.com>
27545 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
27547 PR middle-end/70633
27548 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
27549 gimplification turns some element into non-constant.
27552 * rtl.h (convert_memory_address_addr_space_1): New prototype.
27553 * explow.c (convert_memory_address_addr_space_1): No longer static,
27554 add NO_EMIT argument and don't call convert_modes if true, pass
27555 it down recursively, remove break after return.
27556 (convert_memory_address_addr_space): Adjust caller.
27557 * simplify-rtx.c (simplify_unary_operation_1): Call
27558 convert_memory_address_addr_space_1 instead of convert_memory_address,
27559 if it returns NULL, don't simplify.
27561 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
27564 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
27566 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27568 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27569 Bump the upper SIMDLEN limits, so that if the return type or
27570 characteristic type if the return type is void can be passed in
27571 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
27574 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
27577 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
27578 Do not use "=" constraint on an input constraint.
27579 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
27580 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
27581 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
27582 generates (neg (abs ...)) instead of (abs ...).
27584 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27586 PR rtl-optimization/70596
27587 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
27588 just invalidate LRA data and reset them. Adjust dump wording.
27590 2016-04-12 Martin Liska <mliska@suse.cz>
27593 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
27595 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
27597 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27598 max_loop_iterations_int.
27599 (tree_unswitch_outer_loop): Likewise.
27600 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
27601 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
27603 2016-04-12 Tom de Vries <tom@codesourcery.com>
27605 PR tree-optimization/68756
27606 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
27607 instead of new_name.
27609 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27611 PR tree-optimization/70602
27612 * tree-sra.c (generate_subtree_copies): Don't write anything into
27613 constant pool decls.
27615 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
27616 regardless whether there are depend clauses or not.
27618 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27621 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
27622 target attribute and pragma from changing the -mfloat128
27623 and -mfloat128-hardware options.
27625 * doc/extend.texi (Additional Floating Types): Document PowerPC
27626 __float128 restrictions.
27628 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27631 * config/aarch64/driver-aarch64.c
27632 (aarch64_get_extension_string_for_isa_flags): New.
27633 (arch_extension): Rename to...
27634 (aarch64_arch_extension): ...This.
27635 (ext_to_feat_string): Rename to...
27636 (aarch64_extensions): ...This.
27637 (aarch64_core_data): Keep track of architecture extension flags.
27638 (cpu_data): Rename to...
27639 (aarch64_cpu_data): ...This.
27640 (aarch64_arch_driver_info): Keep track of architecture extension
27642 (get_arch_name_from_id): Rename to...
27643 (get_arch_from_id): ...This, change return type.
27644 (host_detect_local_cpu): Update and reformat for renames, handle
27645 extensions through common infrastructure.
27647 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27650 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
27651 track of a canonical flag name.
27652 (all_extensions): Likewise.
27653 (arch_to_arch_name): Also track extension flags enabled by the arch.
27654 (all_architectures): Likewise.
27655 (aarch64_parse_extension): Move to here.
27656 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
27658 (aarch64_rewrite_selected_cpu): Update for above change.
27659 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
27660 are handled, such that the single explicit value enabled by an
27661 extension is kept seperate from the implicit values it also enables.
27662 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
27664 (aarch64_parse_extension): New.
27665 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
27666 here to config/aarch64/aarch64-protos.h.
27667 (aarch64_parse_extension): Move from here to
27668 common/config/aarch64/aarch64-common.c.
27669 (aarch64_option_print): Update.
27670 (aarch64_declare_function_name): Likewise.
27671 (aarch64_start_file): Likewise.
27672 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
27673 the canonical flag for extensions.
27674 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
27677 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27679 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
27682 2016-04-09 Tom de Vries <tom@codesourcery.com>
27684 PR tree-optimization/68953
27685 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
27686 first to last subscript.
27688 2016-04-09 Jakub Jelinek <jakub@redhat.com>
27690 PR tree-optimization/70586
27691 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
27694 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
27698 PR tree-optimization/70373
27699 PR middle-end/70533
27700 PR middle-end/70534
27701 PR middle-end/70535
27702 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
27703 clauses for acc parallel reductions as necessary. Error on those
27705 * omp-low.c (scan_sharing_clauses): Don't install variables which
27706 are used in acc parallel reductions.
27707 (lower_rec_input_clauses): Remove dead code.
27708 (lower_oacc_reductions): Add support for reference reductions.
27709 (lower_reduction_clauses): Remove dead code.
27710 (lower_omp_target): Don't remap variables appearing in acc parallel
27712 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
27714 2016-04-08 Jakub Jelinek <jakub@redhat.com>
27716 PR middle-end/70593
27717 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
27718 with multiple SSA_NAME defs, force the outputs other than first
27719 to be live before calling live_track_process_def on each output.
27721 PR rtl-optimization/70574
27722 * fwprop.c (forward_propagate_and_simplify): Don't add
27723 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
27724 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
27725 paradoxical subregs within *loc.
27727 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
27729 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
27730 -ftree-parallelize-loops={0,1}.
27731 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
27732 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
27733 * config/ia64/hpux.h (LIB_SPEC): Likewise.
27734 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27735 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
27737 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
27740 * asan.c (instrument_derefs): If we get unknown location, extract it
27741 with EXPR_LOCATION.
27742 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
27744 2016-04-08 Tom de Vries <tom@codesourcery.com>
27746 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
27747 implicit firstprivate clause.
27749 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27752 * config/arm/thumb2.md (tst + branch-> lsls + branch
27753 peephole below *orsi_not_shiftsi_si): Require that condition
27754 register is dead after the peephole.
27755 (second peephole after the above): Likewise.
27757 2016-04-08 Alan Modra <amodra@gmail.com>
27760 * builtins.c (fold_builtin_classify): For IBM extended precision,
27761 look at just the high-order double to test for NaN.
27762 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
27763 test just the high double for Inf but both doubles for subnormal
27766 2016-04-07 Jakub Jelinek <jakub@redhat.com>
27768 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
27769 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
27770 node->simdclone->mask_mode != VOIDmode masks.
27771 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
27772 earlier, use it instead of node->simdclone.
27773 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27774 Set clonei->mask_mode.
27776 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
27779 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
27780 Pass it through to cp_parser_already_scoped_statement.
27781 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
27782 it through to cp_parser_statement.
27783 (cp_parser_statement): Pass IF_P through to
27784 cp_parser_iteration_statement.
27785 (cp_parser_pragma): Adjust call to
27786 cp_parser_iteration_statement.
27788 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
27791 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
27792 resolve a future -Wparentheses warning.
27793 * omp-low.c (scan_sharing_clauses): Likewise.
27794 * tree-parloops.c (eliminate_local_variables): Likewise.
27796 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
27798 PR rtl-optimization/70398
27799 * lra-constraints.c (process_address_1): Check zero scale and code
27800 for reloading with zero scale.
27802 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
27804 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
27805 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
27807 2016-04-06 Jakub Jelinek <jakub@redhat.com>
27809 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27810 Add support for AVX512F clones, include them by default for
27811 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
27812 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
27815 PR middle-end/70550
27816 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
27817 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
27818 firstprivate clauses.
27819 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
27820 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
27821 (lower_omp_target): Set TREE_NO_WARNING for
27822 non-addressable possibly uninitialized vars which are copied into
27823 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
27825 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
27827 * config/pa/predicates.md (integer_store_memory_operand): Accept
27828 REG+D operands with a large offset when reload_in_progress is true.
27829 (floating_point_store_memory_operand): Likewise.
27831 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27834 * match.pd (nested int casts): Limit to GIMPLE.
27836 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
27839 * ipa-devirt.c (maybe_record_node): Fix comment; use
27840 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
27842 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27844 PR rtl-optimization/70542
27845 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
27846 if there are any uses other than insn or debug insns.
27848 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
27849 Jakub Jelinek <jakub@redhat.com>
27851 PR tree-optimization/70509
27852 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
27853 Shift HOST_WIDE_INT_1U instead of 1.
27855 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
27857 PR tree-optimization/70509
27858 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
27859 of the vector base type for index.
27861 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
27864 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
27866 2016-04-05 Richard Biener <rguenther@suse.de>
27868 PR tree-optimization/70526
27869 * tree-sra.c (build_ref_for_offset): Use prev_base to
27870 extract the alias pointer type.
27872 2016-04-05 Richard Biener <rguenther@suse.de>
27874 * dse.c (struct store_info): Remove alias_set member.
27875 (struct read_info_type): Likewise.
27876 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
27877 spill_deleted, clear_alias_set_lookup): Remove.
27878 (get_group_info): Remove dead base == NULL_RTX case.
27879 (dse_step0): Remove initialization of removed variables.
27880 (delete_dead_store_insn): Reomve alias set dumping.
27881 (free_read_records): Remove alias_set handling.
27882 (canon_address): Remove alias_set_out parameter.
27883 (record_store): Remove spill_alias_set, it's always zero.
27884 (check_mem_read_rtx): Likewise.
27885 (dse_step2): Rename from ...
27886 (dse_step2_nospill): ... this. Adjust.
27887 (scan_stores): Rename from ...
27888 (scan_stores_nospill): ... this.
27889 (scan_reads): Rename from ...
27890 (scan_reads_nospill): ... this.
27891 (scan_stores_spill, scan_reads_spill): Remove.
27892 (dse_step3_scan): Remove for_spills argument which is always false.
27893 (dse_step3): Likewise.
27894 (dse_step5): Rename from ...
27895 (dse_step5_nospill): ... this. Remove alias_set handling.
27896 (rest_of_handle_dse): Adjust.
27898 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27901 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
27902 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
27903 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
27904 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
27906 2016-04-05 Richard Biener <rguenther@suse.de>
27908 PR middle-end/70499
27909 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
27910 non-register type temporaries into SSA.
27912 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
27915 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
27916 calls when sanitizing.
27917 (possible_polymorphic_call_target_p): Fix formatting.
27919 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27920 Jakub Jelinek <jakub@redhat.com>
27922 PR middle-end/70457
27923 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
27924 to ensure a call statement is compatible with a built-in's
27926 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
27929 2016-04-04 Richard Biener <rguenther@suse.de>
27931 PR rtl-optimization/70484
27932 * rtl.h (canon_output_dependence): Declare.
27933 * alias.c (canon_output_dependence): New function.
27934 * dse.c (record_store): Use canon_output_dependence rather
27935 than canon_true_dependence.
27937 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
27940 * cgraph.h (symtab_node::copy_visibility_from): New function.
27941 * symtab.c (symtab_node::copy_visibility_from): New function.
27942 * ipa-visibility.c (optimize_weakref): New function.
27943 (function_and_variable_visibility): Use it.
27945 2016-04-04 Martin Liska <mliska@suse.cz>
27948 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
27949 value that is really in range handled by SBR instruction.
27950 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
27951 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
27952 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
27954 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
27958 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
27959 set, but not for SP_REG operands.
27961 2016-04-02 Martin Sebor <msebor@redhat.com>
27964 * fold-const.c (maybe_nonzero_address): New function.
27965 (fold_comparison): Call it. Fold equality and relational
27966 expressions involving null pointers.
27967 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
27969 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
27971 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
27972 the "Y" constraint (scalar FP 0.0 immediate).
27974 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
27975 Add the "const_double" to the list of operand constraints.
27977 2016-04-01 Jakub Jelinek <jakub@redhat.com>
27979 PR rtl-optimization/70467
27980 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
27981 If low word of the last operand is 0, just emit addition/subtraction
27984 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27987 * config/s390/s390.c (s390_expand_insv): Check for everything
27988 constant instead of just VOIDmode stuff.
27990 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27993 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
27995 2016-04-01 Nathan Sidwell <nathan@acm.org>
27997 * tree.def (TRY_CATCH_EXPR): Correct documentation.
27999 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
28001 PR rtl-optimization/70461
28002 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
28005 2016-03-31 Martin Liska <mliska@suse.cz>
28008 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
28009 a tree value or an immediate integer value to a buffer
28010 that is eventually copied to a BRIG section.
28011 (emit_immediate_operand): Call the function here.
28012 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
28013 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
28014 of class' fields that are removed.
28015 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
28016 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
28017 m_brig_repr_size fields.
28019 2016-03-31 Martin Liska <mliska@suse.cz>
28022 * hsa-gen.c (hsa_function_representation::update_dominance): New
28024 (convert_addr_to_flat_segment): Likewise.
28025 (gen_hsa_memory_set): New alignment argument.
28026 (gen_hsa_ctor_assignment): Likewise.
28027 (gen_hsa_insns_for_single_assignment): Provide alignment
28028 to gen_hsa_ctor_assignment.
28029 (gen_hsa_insns_for_direct_call): Add new argument.
28030 (expand_lhs_of_string_op): New function.
28031 (expand_string_operation_builtin): Likewise.
28032 (expand_memory_copy): New function.
28033 (expand_memory_set): New function.
28034 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
28035 (convert_switch_statements): Change signature.
28036 (generate_hsa): Use a return value of the function.
28037 (pass_gen_hsail::execute): Do not call
28038 convert_switch_statements here.
28039 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
28040 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
28041 (hsa_function_representation::update_dominance): New function.
28043 2016-03-31 Martin Liska <mliska@suse.cz>
28046 * hsa-brig.c (emit_directive_variable): Emit alignment
28047 according to hsa_symbol::m_align.
28048 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
28049 (dump_hsa_symbol): Dump alignment of HSA symbols.
28050 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
28051 (gen_hsa_addr_with_align): New function.
28052 (hsa_bitmemref_alignment): Use newly added function.
28053 (gen_hsa_insns_for_load): Likewise.
28054 (gen_hsa_insns_for_store): Likewise.
28055 (gen_hsa_memory_copy): New argument added.
28056 (gen_hsa_insns_for_single_assignment): Respect
28057 alignment for assignments processed via gen_hsa_memory_copy.
28058 (gen_hsa_insns_for_direct_call): Likewise.
28059 (gen_hsa_insns_for_return): Likewise.
28060 (gen_function_def_parameters): Set default alignment.
28061 * hsa.c (hsa_object_alignment): New function.
28062 (hsa_byte_alignment): Pasted function.
28063 * hsa.h (hsa_symbol::m_align): New field.
28065 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28067 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
28068 scratch field for goto case.
28070 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
28072 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
28074 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
28077 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
28078 (scalar_chain::convert_insn): Call convert_op for reg
28079 moves to handle undefined registers.
28081 2016-03-31 Nathan Sidwell <nathan@acm.org>
28084 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
28085 Assert we don't want to move backwards.
28087 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
28090 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
28092 2016-03-31 Jakub Jelinek <jakub@redhat.com>
28094 PR rtl-optimization/70460
28095 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
28096 with operand from REG_LABEL_OPERAND, instead substitute
28097 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
28098 Don't do anything for REG_NON_LOCAL_GOTO jumps.
28100 2016-03-31 Martin Liska <mliska@suse.cz>
28102 * passes.c (execute_one_pass): Do not call
28103 todo_after for a discarded function.
28105 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28107 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
28108 (no_cost, infinite_cost): Initialize the new field.
28109 (get_computation_cost_at): Record setup cost.
28110 (determine_use_iv_cost_address): Skip cost computation for sub
28111 uses if we can estimate it without losing accuracy.
28113 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28115 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28117 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28118 max_loop_iterations_int.
28119 (tree_unswitch_outer_loop): Likewise.
28120 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28121 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28123 2016-03-30 Richard Biener <rguenther@suse.de>
28125 PR middle-end/70450
28126 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
28128 2016-03-30 Jakub Jelinek <jakub@redhat.com>
28131 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
28132 in gen_blendm expander.
28134 2016-03-30 Nick Clifton <nickc@redhat.com>
28137 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
28138 case where we are already provided with an SImode SUBREG.
28140 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
28143 * config/i386/i386.c (ix86_expand_epilogue): Properly check
28144 conflict between DRAP register and __builtin_eh_return.
28146 2016-03-30 Michael Matz <matz@suse.de>
28147 Richard Biener <rguenther@suse.de>
28150 * ipa-polymorphic-call.c (struct type_change_info): Change
28151 speculative to an unsigned allowing to limit the work we do.
28152 (csftc_abort_walking_p): New inline function..
28153 (check_stmt_for_type_change): Limit the number of may-defs
28154 skipped for speculative devirtualization to
28155 max-speculative-devirt-maydefs.
28156 * params.def (max-speculative-devirt-maydefs): New param.
28157 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
28159 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
28162 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
28165 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
28167 PR tree-optimization/59124
28168 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
28169 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
28171 2016-03-29 Jeff Law <law@redhat.com>
28173 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
28175 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28177 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
28180 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
28182 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
28183 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
28184 gcrt0.o if linking dynamically.
28186 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28189 * ipa-devirt.c (methods_equal_p): New function.
28190 (compare_virtual_tables): Use it.
28191 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
28192 * cgraphclones.c (clone_function_name_1): Use
28193 symbol_table::symbol_suffix_separator.
28194 * coverage.c (build_var): Likewise.
28195 * symtab.c (symbol_table::symbol_suffix_separator): New.
28197 2016-03-29 Jakub Jelinek <jakub@redhat.com>
28199 PR rtl-optimization/70429
28200 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
28201 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
28202 mode != result_mode.
28205 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
28207 PR tree-optimization/70405
28208 * ssa-iterators.h (num_imm_uses): Add missing braces.
28210 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
28212 PR rtl-optimization/68695
28213 * ira-color.c (allocno_copy_cost_saving): New.
28214 (improve_allocation): Use it.
28216 2016-03-29 Richard Henderson <rth@redhat.com>
28218 PR middle-end/70355
28219 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
28221 2016-03-29 Richard Biener <rguenther@suse.de>
28223 PR middle-end/70424
28224 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
28225 use alignment returned by get_pointer_alignment_1 if it is
28226 bigger than BITS_PER_UNIT.
28227 * builtins.c (get_pointer_alignment_1): Do not return true
28228 for alignment extracted from SSA info.
28230 2016-03-28 James Bowman <james.bowman@ftdichip.com>
28232 * config/ft32/ft32.opt (mnodiv): New.
28233 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
28234 * doc/invoke.texi (FT32 Options -mnodiv): New.
28236 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
28239 * config/i386/i386.md (define_split, andn): Fix modes.
28241 2016-03-26 Richard Biener <rguenther@suse.de>
28242 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28245 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
28247 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
28248 as 2nd argument to cl_optimization_restore().
28250 2016-03-25 Richard Henderson <rth@redhat.com>
28253 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
28254 * config/aarch64/aarch64-protos.h: Declare it.
28255 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
28257 2016-03-25 Alan Modra <amodra@gmail.com>
28260 * config/rs6000/constraints.md (j): Simplify.
28261 * config/rs6000/predicates.md (easy_fp_constant): Exclude
28263 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
28264 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
28265 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
28266 in all constraint alternatives.
28267 (movtd_64bit_nodm): Delete "j" constraint alternative.
28269 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
28271 * tree-ssa-propagate.c: Enhance docs for
28272 SSA_PROP_NOT_INTERESTING.
28274 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
28276 * doc/extend.texi: Fix typo in documentation to pure attribute.
28278 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
28281 * config/pa/pa.md (bswapdi2): Use a scratch register.
28283 2016-03-24 Richard Henderson <rth@redhat.com>
28285 PR middle-end/69845
28286 * fold-const.c (extract_muldiv_1): Correct test for multiplication
28289 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
28291 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
28292 using ix86_expand_binary_operator instead of gen_andsi3.
28294 2016-03-24 Richard Biener <rguenther@suse.de>
28296 PR tree-optimization/70396
28297 * tree-vect-stmts.c (vectorizable_comparison): Use
28298 get_vectype_for_scalar_type.
28300 2016-03-24 Richard Biener <rguenther@suse.de>
28302 PR middle-end/70370
28303 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
28304 with register bases.
28306 2016-03-24 Richard Biener <rguenther@suse.de>
28308 PR tree-optimization/70372
28309 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
28310 build_all_ones_cst to also handle vector types correctly.
28312 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28315 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
28318 2016-03-23 Marek Polacek <polacek@redhat.com>
28321 * doc/invoke.texi: Document -Wignored-attributes.
28323 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28325 PR tree-optimization/69042
28326 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
28327 parameter from 30 to 40.
28329 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28331 PR tree-optimization/69042
28332 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
28333 for use with constant offset stripped in base.
28335 2016-03-23 Richard Biener <rguenther@suse.de>
28337 PR middle-end/70251
28338 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
28339 mode compatibility check.
28340 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28342 2016-03-23 Jeff Law <law@redhat.com>
28344 PR tree-optimization/64058
28345 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
28347 (struct ssa_conflicts): Move up earlier in the file.
28348 (conflicts_, var_map_): New static variables.
28349 (initialize_conflict_count): New function to initialize the
28350 CONFLICT_COUNT field for each conflict pair.
28351 (compare_pairs): Lazily initialize the conflict count and use it
28352 as the first tie-breaker.
28353 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
28354 and wipe conflicts_ and map_ around the call to qsort. Remove
28355 special case for 2 coalesce pairs.
28356 * bitmap.c (bitmap_count_unique_bits): New function.
28357 (bitmap_count_bits_in_word): New function, extracted from
28359 (bitmap_count_bits): Use bitmap_count_bits_in_word.
28360 * bitmap.h (bitmap_count_unique_bits): Declare it.
28362 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
28365 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
28366 transparent alias chain for decl assembler name.
28367 * config/sol2.c (solaris_assemble_visibility): Likewise.
28369 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28371 * config/arm/arm1020e.md (1020call_op): Reduce reservation
28373 (v10_fdivs): Likewise.
28374 (v10_fdivd): Likewise.
28376 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28379 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
28380 to not call fclose twice on file.
28382 2016-03-23 Jakub Jelinek <jakub@redhat.com>
28384 PR tree-optimization/70354
28385 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
28386 oprnd0 is wider than oprnd1 and there is a cast from the wider
28387 type to oprnd1, mask it with the mask of the narrower type.
28390 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
28391 Optimize TARGET_STV splitters, if high or low word of last argument
28394 2016-03-22 Jeff Law <law@redhat.com>
28397 tree-ssa-threadbackward.c
28398 (fsm_find_control_statement_thread_paths): Correctly distinguish
28399 between old style jump threads vs FSM jump threads.
28401 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
28404 * config/i386/i386.c (scalar_chain::convert_op): Support
28405 uninitialized register usage case.
28407 2016-03-22 Richard Biener <rguenther@suse.de>
28409 PR middle-end/70251
28410 * genmatch.c (gen_transform): Adjust last parameter to a three-state
28412 (capture::gen_transform): ... to change behavior when substituting
28413 a condition into cond or not-cond expr context.
28414 (dt_simplify::gen_1): Adjust.
28415 * gimple-match-head.c: Include gimplify.h for unshare_expr.
28416 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
28417 last change and instead change to
28418 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
28419 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28421 2016-03-22 Anthony Green <green@moxielogic.com>
28423 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
28424 issue for moxiebox targets.
28425 (CC1PLUS_SPEC): Ditto.
28427 2016-03-22 Richard Biener <rguenther@suse.de>
28429 PR middle-end/70333
28430 * fold-const.c (extract_muldiv_1): Properly perform multiplication
28433 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28435 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
28437 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28440 * config/i386/i386.c (def_builtin): Handle
28441 OPTION_MASK_ISA_AVX512VL to be and-ed with other
28443 (const struct builtin_description bdesc_special_args[]):
28444 Remove duplicate ISA bits.
28446 2016-03-22 Jakub Jelinek <jakub@redhat.com>
28449 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
28450 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
28451 in a way that works also for AVX512BW.
28454 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
28455 instead of source if operands[1] is xmm16 and above and
28456 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
28457 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
28460 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
28461 on assign if (*from_p) is a comparison, set it to
28462 TREE_NO_WARNING (*from_p).
28464 2016-03-21 Jakub Jelinek <jakub@redhat.com>
28466 PR middle-end/70326
28467 * lra.c (restore_scratches): Ignore deleted insns.
28469 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
28470 Jakub Jelinek <jakub@redhat.com>
28472 PR tree-optimization/70317
28473 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
28476 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
28479 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
28480 of ix86_expand_move.
28482 (movti): Use general_operand for operand 1 predicate.
28484 2016-03-21 Martin Liska <mliska@suse.cz>
28486 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
28488 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
28490 2016-03-21 Martin Liska <mliska@suse.cz>
28493 * ipa-icf.c (sem_function::parse): Skip static
28494 constructors and destructors.
28496 2016-03-21 Jakub Jelinek <jakub@redhat.com>
28499 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
28500 function-like macro, peek following token(s) if it is followed
28501 by CPP_OPEN_PAREN token with optional padding in between, and
28502 if not, don't treat it like a macro.
28504 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
28505 Alexander Monakov <amonakov@ispras.ru>
28507 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
28508 for the stabs debug format.
28510 2016-03-21 Richard Biener <rguenther@suse.de>
28512 PR tree-optimization/70310
28513 * tree-vect-generic.c (expand_vector_condition): Fold the built
28516 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
28519 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
28520 Block third alternative for AVX-512VL target,
28522 2016-03-21 Martin Liska <mliska@suse.cz>
28525 * hsa-brig.c (emit_function_directives): Mark unemitted
28526 global variables for emission.
28527 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
28528 (get_symbol_for_decl): Likewise.
28529 * hsa.h (struct hsa_symbol): New flag.
28531 2016-03-21 Richard Biener <rguenther@suse.de>
28533 PR tree-optimization/70288
28534 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
28535 we do not estimate unsimplified all-constant conditionals or
28536 switches as optimized away.
28538 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
28540 PR rtl-optimization/69102
28541 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
28542 when we have a readonly dependency context.
28544 2016-03-18 Jeff Law <law@redhat.com>
28546 PR rtl-optimization/70263
28547 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
28548 (update_equiv_regs): When trying to move a store to after the insn
28549 that sets the source of the store, make sure the store occurs after
28550 the insn that sets the source of the store. When successful note
28551 the REG_EQUIV note created in the dump file.
28553 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
28554 Bernd Schmidt <bschmidt@redhat.com>
28556 * doc/extend.texi: Document more potential problems with basic asms.
28558 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
28560 PR rtl-optimization/70278
28561 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
28564 2016-03-18 Jason Merrill <jason@redhat.com>
28566 * calls.c (load_register_parameters): Fix zero size sibcall logic.
28568 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
28570 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
28571 values to 128b regs.
28573 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
28575 PR tree-optimization/70252
28576 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
28577 boolean vector has a proper number of elements.
28578 (supportable_narrowing_operation): Likewise.
28580 2016-03-18 Tom de Vries <tom@codesourcery.com>
28583 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
28585 2016-03-18 Jakub Jelinek <jakub@redhat.com>
28587 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
28588 instead of replace_rtx for DEBUG_INSNs.
28590 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28592 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
28593 load type reservations.
28595 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
28598 * config/pa/constraints.md: Revert 2015-02-13 change. Use
28599 define_constraint for "Q" and "T" constraints.
28601 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
28603 Tweak the pipeline model for Exynos M1
28605 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
28608 2016-03-17 David Malcolm <dmalcolm@redhat.com>
28611 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
28612 where one or both locations aren't within a line_map.
28614 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
28617 * opts.c (finish_options): Don't set flag_pie to the default if
28618 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
28621 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
28623 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
28624 true as ALL_REGS argument to replace_rtx.
28626 2016-03-17 Richard Biener <rguenther@suse.de>
28629 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
28632 2016-03-17 Jakub Jelinek <jakub@redhat.com>
28635 * rtl.h (replace_rtx): Add ALL_REGS argument.
28636 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
28637 equality and assert mode is the same, instead of just rtx pointer
28639 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
28640 true as ALL_REGS argument to replace_rtx.
28642 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
28644 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
28645 for boolean vector with vector mode only.
28646 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28648 2016-03-17 Nick Clifton <nickc@redhat.com>
28651 * config/rx/rx.c (rx_print_integer): Print negative constants in
28654 2016-03-17 Jakub Jelinek <jakub@redhat.com>
28657 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
28659 2016-03-16 Richard Henderson <rth@redhat.com>
28660 Richard Biener <rguenth@suse.de>
28662 PR middle-end/70240
28663 PR middle-end/68215
28665 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
28666 first operand as is_gimple_condexpr.
28668 PR middle-end/70240
28669 PR middle-end/68215
28671 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
28672 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
28673 Do not gimplify the result.
28674 (do_unop): Adjust call to tree_vec_extract.
28675 (do_binop): Likewise.
28676 (do_compare): Likewise.
28677 (do_plus_minus): Likewise.
28678 (do_negate): Likewise.
28679 (expand_vector_condition): Likewise.
28680 (do_cond): Likewise.
28682 2016-03-16 Richard Henderson <rth@redhat.com>
28685 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
28686 (aarch64_classify_address): Use it.
28687 (aarch64_legitimize_address): Force all subexpressions of PLUS
28688 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
28690 2016-03-16 Jakub Jelinek <jakub@redhat.com>
28691 Richard Biener <rguenth@suse.de>
28694 * rtlanal.c (replace_rtx): For REG, if from is a REG,
28695 return to even if only REGNO is equal, and assert
28698 2016-03-11 Jeff Law <law@redhat.com>
28700 PR rtl-optimization/70224
28701 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
28703 2016-03-16 Richard Henderson <rth@redhat.com>
28705 PR middle-end/70199
28706 * function.h (struct function): Add has_forced_label_in_static.
28707 * gimplify.c (force_labels_r): Set it.
28708 * lto-streamer-in.c (input_struct_function_base): Read it.
28709 * lto-streamer-out.c (output_struct_function_base): Write it.
28710 * tree-inline.c (has_label_address_in_static_1): Remove.
28711 (copy_forbidden): Remove fndecl parameter; test
28712 has_forced_label_in_static.
28713 (inline_forbidden_p): Update call to copy_forbidden.
28714 (tree_versionable_function_p): Likewise.
28715 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
28716 (chkp_versioning): Likewise.
28717 * tree-inline.h (copy_forbidden): Update decl.
28719 2016-03-16 Marek Polacek <polacek@redhat.com>
28722 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
28723 function being thunked if the result type doesn't have fixed size.
28724 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
28725 doesn't have fixed size.
28727 2016-03-16 Bin Cheng <bin.cheng@arm.com>
28729 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
28730 reporting malformed loop nest.
28732 2016-03-16 Tom de Vries <tom@codesourcery.com>
28735 * ipa-devirt.c (possible_polymorphic_call_targets): Move
28736 nodes.length () == 1 test to before first nodes[0] access.
28738 2016-03-16 Tom de Vries <tom@codesourcery.com>
28740 PR tree-optimization/68715
28741 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
28742 single_pred_p test.
28744 2016-03-16 Tom de Vries <tom@codesourcery.com>
28746 PR tree-optimization/68809
28747 * graphite-scop-detection.c (same_close_phi_node): Test if result types
28750 2016-03-16 Carlos O'Donell <carlos@redhat.com>
28751 Sandra Loosemore <sandra@codesourcery.com>
28753 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
28754 on leaf attribute. Mention ELF interposition problems.
28756 2016-03-16 Alan Modra <amodra@gmail.com>
28758 PR rtl-optimization/69195
28759 PR rtl-optimization/47992
28760 * ira.c (indirect_jump_optimize): Ignore artificial defs.
28763 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
28766 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
28768 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28770 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
28772 2016-03-15 Jakub Jelinek <jakub@redhat.com>
28774 PR rtl-optimization/70222
28775 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
28776 optimization if mode is different from result_mode, queue up masking
28777 of the result in outer_op. Formatting fix.
28779 PR middle-end/70239
28780 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
28783 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28785 PR rtl-optimization/69032
28786 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
28787 looping backwards over basic block insns.
28789 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28792 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
28793 to non-speculative when propagating trap bits.
28795 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28797 PR rtl-optimization/63384
28798 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
28799 DEBUG_INSN_P insns.
28801 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28804 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
28805 factored out from ...
28806 (sched_analyze_insn): ... here.
28807 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
28808 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
28809 get_implicit_reg_pending_clobbers in it.
28810 (setup_id_reg_sets): Use setup_id_implicit_regs.
28811 (deps_init_id): Ditto.
28813 2016-03-15 Tom de Vries <tom@codesourcery.com>
28816 * cgraph.c (cgraph_node::get_body): Save, reset and restore
28818 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
28819 execute_function_dump.
28820 (execute_one_pass): Don't dump function if it will be dumped after ipa
28823 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
28825 * genrecog.c (match_pattern_2): If pred is NULL don't call
28826 safe_predicate_mode on it.
28828 2016-03-14 Jakub Jelinek <jakub@redhat.com>
28830 PR middle-end/70219
28831 * lra-constraints.c (delete_move_and_clobber): Change assertion
28832 to also allow dregno == 0.
28834 2016-03-14 Richard Henderson <rth@redhat.com>
28837 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
28838 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
28839 (reassociate_bb): Use optimize_vec_cond_expr; avoid
28840 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
28843 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
28846 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
28848 (lra_create_live_ranges_1): initialize hard register biggest_mode to
28850 * lra-constraints.c (split_reg): For hard regs, try to find the
28851 biggest single-register mode used in the function.
28853 2016-03-14 Richard Biener <rguenther@suse.de>
28855 PR tree-optimization/56365
28856 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
28857 constants to compare against.
28859 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
28862 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
28863 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
28864 (define_split for the GPR case): Use int_reg_operand instead of
28865 gpc_reg_operand for the output.
28867 2016-03-14 Tom de Vries <tom@codesourcery.com>
28869 PR tree-optimization/70045
28870 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
28871 create_empty_if_region_on_edge argument.
28873 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
28875 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
28876 (STACK_CHECK_PROTECT): Likewise.
28877 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
28878 (STACK_CHECK_PROTECT): Likewise.
28879 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
28880 (STACK_CHECK_PROTECT): Likewise.
28881 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
28882 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
28883 (STACK_CHECK_PROTECT): Likewise.
28885 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
28887 PR rtl-optimization/69307
28888 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
28889 registers in modes that span more than one register.
28891 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
28894 * lra-constraints.c (delete_move_and_clobber): New.
28895 (remove_inheritance_pseudos): Use it.
28897 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
28900 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
28901 the libcall is LCT_THROW.
28902 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
28903 for the checking routine.
28905 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28908 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
28909 optimization if we have direct move.
28910 (roundu32<mode>2_fprs): Likewise.
28912 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
28915 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
28917 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
28918 Arguments swapped. All callers changed. Take reg_renumber into
28919 account, and Calculate and compare register ranges for hard regs.
28921 2016-03-11 Jeff Law <law@redhat.com>
28923 PR tree-optimization/70190
28924 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
28925 Handle cases where we can not extract the taken edge, even though we
28926 found a constant value.
28928 PR tree-optimization/64058
28929 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
28930 (num_coalesce_pairs): Move up earlier in file.
28931 (find_coalesce_pair): Initialize the INDEX field for each pair
28933 (compare_pairs): No longer sort on the elements in each pair.
28934 Instead break ties with the index of the coalesce pair.
28936 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28939 * config/aarch64/aarch64-protos.h
28940 (aarch64_save_restore_target_globals): New prototype.
28941 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
28942 Call the above when popping pragma.
28943 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
28945 (aarch64_set_current_function): Rewrite using the above.
28947 2016-03-11 Jakub Jelinek <jakub@redhat.com>
28949 PR tree-optimization/70177
28950 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
28951 (extract_ops_from_tree): ... this. In the 2 argument
28952 overload remove _1 suffix.
28953 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
28954 (extract_ops_from_tree): ... this.
28955 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
28957 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
28958 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
28959 extract_ops_from_tree instead of 2 operand one.
28961 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
28963 PR tree-optimization/70013
28964 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
28965 for constant-pool entries.
28967 2016-03-11 Jakub Jelinek <jakub@redhat.com>
28969 PR rtl-optimization/70174
28970 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
28971 followed by gen_lowpart on force_reg instead of just gen_lowpart.
28973 PR tree-optimization/70169
28974 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
28975 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
28978 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
28979 Jakub Jelinek <jakub@redhat.com>
28982 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
28983 of uninitialized values.
28985 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28987 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
28989 ("*trunctddd2"): New pattern definition.
28990 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
28993 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28995 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
28996 definitions for BFP and DFP rounding modes.
28997 ("fixuns_truncdddi2", "fixuns_trunctddi2")
28998 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
28999 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
29000 ("fix_trunctf<mode>2"): Use the new constants instead of magic
29003 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29005 * config/s390/constraints.md: Adjust comment.
29006 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
29007 s390_decompose_addrstyle_without_index.
29008 * config/s390/predicates.md (shift_count_or_setmem_operand):
29009 Rename to setmem_operand.
29010 * config/s390/s390-protos.h
29011 (s390_decompose_shift_count): Rename to
29012 s390_decompose_addrstyle_without_index.
29013 * config/s390/s390.c (s390_decompose_shift_count)
29014 (s390_mem_constraint, print_shift_count_operand)
29015 (print_operand_address, print_operand): Rename
29016 s390_decompose_shift_count to
29017 s390_decompose_addrstyle_without_index and rename
29018 print_shift_count_operand to print_addrstyle_operand troughout the
29020 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
29021 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
29022 Rename shift_count_or_setmem_operand to setmem_operand.
29023 * config/s390/vx-builtins.md ("vec_insert<mode>")
29024 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
29027 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29030 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
29031 Handle overlapping retval and newval.
29033 2016-03-10 Nick Clifton <nickc@redhat.com>
29036 * config/aarch64/aarch64.c
29037 (aarch64_override_options_after_change_1): When forcing
29038 flag_omit_frame_pointer to be true, use a special value that can
29039 be detected if this function is called again, thus preventing
29040 flag_omit_leaf_frame_pointer from being forced to be false.
29042 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29044 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
29045 Set x_flag_omit_leaf_frame_pointer when handling
29046 -momit-leaf-frame-pointer.
29048 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29051 * cgraph.c (cgraph_node::dump): Dump split_part and
29052 indirect_call_target.
29053 * cgraph.h (cgraph_node): Add indirect_call_target flag.
29054 * ipa.c (has_addr_references_p): Cleanup.
29055 (is_indirect_call_target_p): New.
29056 (walk_polymorphic_call_targets): Do not mark virtuals that may be
29057 called indirectly as local.
29058 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
29060 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29063 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
29064 on cxa_pure_virtual.
29066 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29069 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
29071 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29074 * tree.c (need_assembler_name_p): Only record main variant type names.
29076 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
29079 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
29080 Always define to 0 or 1.
29081 (TARGET_FIX_ERR_A53_843419): New macro.
29082 * config/aarch64/aarch64-elf-raw.h
29083 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
29084 * config/aarch64/aarch64-linux.h: Likewise.
29085 * config/aarch64/aarch64.c
29086 (aarch64_override_options_after_change_1): Do not default
29087 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
29089 (aarch64_attributes): Handle fix-cortex-a53-843419.
29090 (aarch64_can_inline_p): Likewise.
29091 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
29093 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
29094 Jakub Jelinek <jakub@redhat.com>
29096 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
29097 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
29098 DECL_COMMONS if flag_unconstrained_commons is set.
29099 * tree-dfa.c (get_ref_base_and_extent): Likewise.
29100 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
29101 (funconstrained-commons): Document.
29103 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
29105 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
29106 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
29108 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
29110 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
29111 has a proper number of elements.
29113 2016-03-10 Alan Modra <amodra@gmail.com>
29115 PR rtl-optimization/69195
29116 PR rtl-optimization/47992
29117 * ira.c (recorded_label_ref): Delete.
29118 (update_equiv_regs): Return void.
29119 (indirect_jump_optimize): New function.
29120 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
29121 before regstat_compute_ri. Don't rebuild_jump_labels here.
29122 Delete update_regstat.
29124 2016-03-10 Richard Biener <rguenther@suse.de>
29126 PR tree-optimization/70128
29127 * tree-ssa-structalias.c (set_uids_in_ptset): Set
29128 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
29130 2016-03-09 Jakub Jelinek <jakub@redhat.com>
29132 PR tree-optimization/70152
29133 * tree-sra.c (replace_removed_params_ssa_names): Copy over
29134 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
29137 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
29138 instead of gen_sse2_loadlpd.
29139 * config/i386/sse.md (*vec_concatv2df): Rename to...
29140 (vec_concatv2df): ... this.
29142 PR tree-optimization/70127
29143 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
29145 2016-03-09 David Malcolm <dmalcolm@redhat.com>
29149 * diagnostic-show-locus.c (compatible_locations_p): New function.
29150 (layout::layout): Sanitize ranges using compatible_locations_p.
29152 2016-03-09 David Malcolm <dmalcolm@redhat.com>
29156 * diagnostic-show-locus.c (layout_range::layout_range): Replace
29157 location_range param with three const expanded_locations * and a
29159 (layout::layout): Replace call to
29160 rich_location::lazily_expand_location with get_expanded_location.
29161 Extract the range and perform location expansion here, passing
29162 the results to the layout_range ctor.
29163 * diagnostic.c (source_range::debug): Delete.
29164 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
29165 of rich_location::get_expanded_location.
29166 * gcc-rich-location.c (get_range_for_expr): Delete.
29167 (gcc_rich_location::add_expr): Reimplement to avoid the
29168 rich_location::add_range overload that took a location_range,
29169 passing a location_t instead.
29171 2016-03-09 Richard Biener <rguenther@suse.de>
29172 Jakub Jelinek <jakub@redhat.com>
29174 PR tree-optimization/70138
29175 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
29176 Also skip vect_double_reduction_def.
29178 2016-03-09 Jakub Jelinek <jakub@redhat.com>
29181 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
29182 if the operand is "m".
29184 2016-03-09 Nathan Sidwell <nathan@acm.org>
29186 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
29188 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29190 * config/i386/i386.c (processor_target_table): Fix cost table
29191 intialization order for znver1.
29193 2016-03-08 Jakub Jelinek <jakub@redhat.com>
29195 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
29196 - becuase -> because.
29197 * ipa-reference.c (ignore_module_statics): Likewise.
29198 * cgraph.c (cgraph_node::get_body): Likewise.
29199 * ipa-inline.c (early_inliner): Likewise.
29200 * ipa-devirt.c (types_same_for_odr): Likewise.
29201 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
29202 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
29204 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29206 * tree-ssa-math-opts.c: Fix typo in comment.
29208 2016-03-08 Jakub Jelinek <jakub@redhat.com>
29211 * config/i386/i386.c (scalar_chain::make_vector_copies,
29212 scalar_chain::convert_reg): Call end_sequence in between
29213 get_insns and emit_conversion_insns rather than after both
29216 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
29219 * config/i386/i386.h (machine_function): Add
29220 pc_thunk_call_expanded flag.
29221 (ix86_pc_thunk_call_expanded): New define.
29222 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
29223 (*set_got): Rename insn pattern from set_got.
29224 (*set_got_labelled): Rename inst pattern from set_got_labelled.
29225 * config/i386/i386.c (ix86_compute_frame_layout): Use
29226 ix86_pc_thunk_call_expanded to prevent red-zone.
29228 2016-03-07 Martin Jambor <mjambor@suse.cz>
29230 * hsa.h (hsa_get_ctor_statements): Declare.
29231 (hsa_get_dtor_statements): Likewise.
29232 (hsa_get_kernel_dispatch_type): Likewise.
29233 * hsa.c (hsa_get_ctor_statements): New function.
29234 (hsa_get_dtor_statements): Likewise.
29235 (hsa_get_kernel_dispatch_type): Likewise.
29236 * hsa-brig.c (hsa_cdtor_statements): Removed.
29237 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
29238 hsa_get_dtor_statements.
29239 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
29240 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
29242 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
29244 * config/arm/arm-cores.def (cortex-r8): New.
29245 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
29246 * config/arm/arm-tune.md: Likewise.
29247 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
29249 2016-03-07 Martin Sebor <msebor@redhat.com>
29251 PR rtl-optimization/19705
29252 * doc/invoke.texi (Options That Control Optimization): Clarify
29253 -fno-branch-count-reg.
29255 2016-02-26 Richard Biener <rguenther@suse.de>
29256 Jeff Law <law@redhat.com>
29258 PR tree-optimization/69740
29259 * cfghooks.c (remove_edge): Request loop fixups if we delete
29260 an edge that might turn an irreducible loop into a natural
29262 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
29263 Move after definition of loops_state_clear.
29265 2016-03-07 Bin Cheng <bin.cheng@arm.com>
29267 PR rtl-optimization/69052
29268 * rtlanal.c (commutative_operand_precedence): Set higher precedence
29271 2016-03-07 Tom de Vries <tom@codesourcery.com>
29273 PR tree-optimization/70116
29274 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
29275 is_tm_ending stmts and ubsan/asan internal functions.
29276 (find_duplicate): Use it. Don't test is_tm_ending here.
29278 2016-03-07 Richard Biener <rguenther@suse.de>
29280 PR tree-optimization/70115
29281 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
29282 (propagate_constants_for_unrolling): Use replace_uses_by.
29284 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
29286 PR middle-end/69916
29287 * omp-low.c (struct oacc_loop): Add ifns.
29288 (new_oacc_loop_raw): Initialize it.
29289 (finish_oacc_loop): Clear mask & flags if no ifns.
29290 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
29291 (oacc_loop_xform_loop): Add ifns arg & adjust.
29292 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
29294 2016-03-07 Richard Henderson <rth@redhat.com>
29297 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
29298 (insert_value_copy_on_edge): Likewise.
29300 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29302 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
29304 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29307 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
29309 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29311 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
29313 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29315 Fix sseimul type attribute.
29316 * config/i386/znver1.md
29317 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
29318 znver1_sseimul_avx256_load) : Fix the type attribute.
29319 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
29320 pipe usage and latency.
29322 2016-03-05 Jakub Jelinek <jakub@redhat.com>
29325 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
29326 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
29329 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29332 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
29334 PR rtl-optimization/69941
29335 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
29336 the reg share its mode.
29338 2016-03-04 Jeff Law <law@redhat.com>
29340 PR tree-optimization/69196
29341 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29342 If the both SSA_NAMEs are anonymous, then consider them unassociated
29343 and include the PHI in the statement count.
29345 2016-03-05 Tom de Vries <tom@codesourcery.com>
29347 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
29348 construct in oacc routine. Check for oacc region in oacc routine.
29350 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29353 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
29354 2016-02-22 changes, instead don't recurse if RECUR is already true.
29355 Don't change *dynamic_check if RECUR. Adjust recursive caller
29356 to pass true to the new argument.
29357 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
29360 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
29361 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
29363 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
29365 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29367 PR rtl-optimization/57676
29368 * lra-assigns.c (lra_assign): Guard test for maximum iterations
29369 with flag_checking.
29371 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
29373 * tree-vect-patterns.c (search_type_for_mask): Handle
29374 comparison of booleans.
29376 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29378 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
29382 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
29383 all other ops that have dw_val_class_die_ref operands,
29384 and DW_OP_GNU_entry_value.
29386 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29388 PR rtl-optimization/69904
29389 * config/arm/arm.c (arm_cannot_copy_insn_p):
29390 Return true for load-exclusive instructions.
29392 2016-03-03 Jakub Jelinek <jakub@redhat.com>
29395 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
29396 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
29397 the pattern no matter if it is used just by non-pattern, pattern
29399 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
29400 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29401 oprnd1 def_stmt is in pattern, don't look through it.
29403 2016-03-03 Marek Polacek <polacek@redhat.com>
29405 PR middle-end/70050
29406 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
29408 2016-03-03 Martin Liska <mliska@suse.cz>
29410 PR tree-optimization/70043
29411 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
29412 previous statement if we see a debug statement.
29414 2016-03-03 Richard Biener <rguenther@suse.de>
29416 PR tree-optimization/55936
29417 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
29418 parameter and guard unsafe equivalence use.
29419 (vrp_evaluate_conditional_warnv_with_ops): Always use
29420 safe equivalences but not via the quadratic compare_names
29423 2016-03-03 Michael Collison <michael.collison@linaro.org>
29426 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
29427 for operand 1 to s_register_operand. Change predicate for operand
29428 2 to arm_not_immediate_operand.
29430 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
29432 * doc/tm.texi: Regenerated.
29434 2016-03-02 Richard Henderson <rth@redhat.com>
29437 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
29438 simplification when all args are positive non-fixed registers.
29440 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
29442 * target.def (lra_p): Specify that new ports should use LRA.
29444 2016-03-02 Jakub Jelinek <jakub@redhat.com>
29447 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
29448 gimplify_type_sizes the type they refer to.
29449 (omp_notice_variable): Handle reference vars to VLAs.
29450 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
29451 reference to VLA decls in the second pass instead of first pass.
29453 2016-03-02 Tom de Vries <tom@codesourcery.com>
29455 PR tree-optimization/68659
29456 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
29457 new_expr == NULL_TREE.
29458 (get_new_name): Handle ADDR_EXPR.
29460 2016-03-02 Bin Cheng <bin.cheng@arm.com>
29462 PR rtl-optimization/69052
29463 * loop-invariant.c (canonicalize_address): New function.
29464 (inv_can_prop_to_addr_use): Check validity of address expression
29465 which is canonicalized by above function.
29467 2016-03-02 Alan Modra <amodra@gmail.com>
29470 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
29473 2016-03-02 Jakub Jelinek <jakub@redhat.com>
29476 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
29477 (*movhi_internal): Put mask moves from and to memory separately
29478 from moves from/to GPRs.
29480 2016-03-02 Richard Biener <rguenther@suse.de>
29482 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
29483 GENERIC expressions in GIMPLE.
29485 2016-03-02 Richard Biener <rguenther@suse.de>
29487 * config/i386/i386.c (type_natural_mode): Fix typo.
29489 2016-03-02 Nick Clifton <nickc@redhat.com>
29491 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
29493 2016-03-02 Richard Biener <rguenther@suse.de>
29494 Uros Bizjak <ubizjak@gmail.com>
29497 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
29499 2016-03-02 Richard Biener <rguenther@suse.de>
29501 PR middle-end/67278
29502 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
29504 2016-03-02 Marek Polacek <polacek@redhat.com>
29507 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
29508 "is promoted to" warning.
29510 2016-03-01 DJ Delorie <dj@redhat.com>
29512 * config.gcc: Deprecate mep-*.
29514 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
29516 PR middle-end/70025
29517 * lra-constraints.c (regno_val_use_in): New.
29518 (match_reload): Use it instead of regno_use_in.
29520 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
29522 PR rtl-optimization/70007
29523 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
29524 references present in REG_EQUAL notes attached to non-SET patterns.
29526 2016-03-01 Jeff Law <law@redhat.com>
29528 PR tree-optimization/69196
29529 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29530 Appropriately clamp the number of statements to copy when the
29531 thread path does not traverse a loop backedge.
29533 PR tree-optimization/69196
29534 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29535 Do count some PHIs in the thread path against the insn count. Decrease
29536 final statement count by one as the control statement in the last
29537 block will get removed. Remove special cased code for handling PHIs
29540 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
29543 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
29544 asm dialect alternatives to explicit GOTPCREL calls.
29546 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
29549 * ira.c (do_reload): Issue warning for generic stack checking here...
29550 * reload1.c (reload): ...instead of here and streamline it.
29552 2016-03-01 Nick Clifton <nickc@redhat.com>
29554 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
29556 2016-03-01 Richard Biener <rguenther@suse.de>
29558 PR tree-optimization/69983
29559 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
29560 types and fall back to operand_equal_p.
29562 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29565 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29567 * config/s390/constraints.md ("jm8"): New constraint.
29568 * config/s390/predicates.md ("const_int_8bitset_operand"): New
29570 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
29572 ("*setmem_long<setmem_and>"): New pattern.
29573 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
29575 ("*setmem_long_31z<setmem_and>"): New pattern.
29576 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
29577 New substitution rules with the required attributes.
29580 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29583 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29585 * gensupport.c (process_substs_on_one_elem): Split loop to
29586 complete mark_operands_used_in_match_dup on all expressions in the
29588 (adjust_operands_numbers): Inline into process_substs_on_one_elem
29589 and remove function.
29591 2016-03-01 Richard Biener <rguenther@suse.de>
29593 PR middle-end/70022
29594 * fold-const.c (fold_indirect_ref_1): Fix range checking for
29595 vector BIT_FIELD_REF extract.
29597 2016-03-01 Richard Biener <rguenther@suse.de>
29599 PR tree-optimization/69994
29600 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
29602 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
29604 PR tree-optimization/69956
29605 * tree-vect-stmts.c (supportable_widening_operation): Support
29606 multi-step conversion of boolean vectors.
29607 (supportable_narrowing_operation): Likewise.
29609 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29611 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
29614 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29616 * config/s390/subst.md (DSI_VI): New mode iterator.
29617 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
29618 * config/s390/vector.md ("vec_set<mode>"): Move expander before
29619 the insn definition.
29620 ("*vec_set<mode>"): Change predicate and add alternative to
29621 support only either register or const_int operands as element
29623 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
29625 ("vec_extract<mode>"): New expander.
29626 ("*vec_extract<mode>"): New insn definition supporting reg and
29627 const_int element selectors.
29628 ("*vec_extract<mode>_plus"): New insn definition supporting
29629 reg+const_int element selectors.
29630 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
29631 following expander+insn definition.
29632 ("<vec_shifts_name><mode>3"): New expander.
29633 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
29635 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29637 * config/s390/s390.md ("*tabort_1"): Change predicate to
29638 nonmemory_operand. Add a second alternative to cover
29639 register as well as const int operands.
29640 ("*tabort_1_plus"): New pattern definition.
29642 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29644 * config/s390/s390.md ("*ashrdi3_cc_31")
29645 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
29646 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
29647 Merge insn definitions into ...
29648 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
29649 New pattern definition.
29650 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
29651 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
29652 ("*ashr<mode>3_and"): Merge insn definitions into ...
29653 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
29654 New pattern definition.
29655 * config/s390/subst.md ("addr_style_op_cc_subst")
29656 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
29657 substitutions patterns plus attributes.
29658 Add ashiftrt to SUBST iterator.
29660 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29662 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
29663 op2 to nonmemory_operand.
29664 ("*<shift>di3_31", "*<shift>di3_31_and"):
29665 Merge into single pattern definition ...
29666 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
29667 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
29668 pattern definition ...
29669 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
29670 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
29673 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29675 * config/s390/predicates.md (const_int_6bitset_operand): New
29677 * config/s390/s390.md: Include subst.md.
29678 ("rotl<mode>3"): New expander.
29679 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
29681 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
29682 * config/s390/subst.md: New file.
29684 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29686 * config/s390/s390.md ("op_type", "atype", "length" attributes):
29687 Remove RRR type. It doesn't really exist.
29688 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
29690 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
29691 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
29692 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
29693 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
29694 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
29695 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
29696 `enabled' attribute.
29698 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29700 * gensupport.c (process_substs_on_one_elem): Split loop to
29701 complete mark_operands_used_in_match_dup on all expressions in the
29703 (adjust_operands_numbers): Inline into process_substs_on_one_elem
29704 and remove function.
29706 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
29709 * config/sparc/sparc.c (NWORDS_UP): Rename to...
29710 (CEIL_NWORDS): ...this. Use CEIL macro.
29711 (compute_fp_layout): Adjust to above renaming.
29712 (function_arg_union_value): Likewise.
29713 (sparc_arg_partial_bytes): Likewise.
29714 (sparc_function_arg_advance): Likewise.
29716 2016-02-29 Jeff Law <law@redhat.com>
29718 PR tree-optimization/70005
29719 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
29720 where an object with a boolean range is compared against a value
29723 PR tree-optimization/69999
29724 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
29725 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
29728 2016-02-29 Richard Biener <rguenther@suse.de>
29730 PR tree-optimization/69994
29731 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
29732 (get_unary_op): Look through nop conversions.
29733 (ops_equal_values_p): New function, look for equality diregarding
29735 (eliminate_plus_minus_pair): Use ops_equal_values_p
29736 (repropagate_negates): Do not use get_unary_op here.
29738 2016-02-29 Martin Liska <mliska@suse.cz>
29740 * system.h: Poison ENABLE_CHECKING macro.
29742 2016-02-29 Martin Liska <mliska@suse.cz>
29744 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
29745 is presented in dump flags.
29746 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
29747 (hsa_regalloc): Likewise.
29749 2016-02-19 Richard Biener <rguenther@suse.de>
29751 PR tree-optimization/69980
29752 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
29753 permutation of those we need to keep.
29755 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
29758 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
29759 (NWORDS_UP): ...this
29760 (init_cumulative_args): Minor tweaks.
29761 (sparc_promote_function_mode): Likewise.
29762 (scan_record_type): Delete.
29763 (traverse_record_type): New function template.
29764 (classify_data_t): New structure type.
29765 (classify_registers): New inline function.
29766 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
29767 exhausted. Instantiate traverse_record_type on classify_registers and
29768 deal with the case of a structure passed in slot #15 with no FP field
29770 (assign_data_t): New structure type.
29771 (compute_int_layout): New static function.
29772 (compute_fp_layout): Likewise.
29773 (count_registers): New inline function.
29774 (assign_int_registers): New static function.
29775 (assign_fp_registers): Likewise.
29776 (assign_registers): New inline function.
29777 (function_arg_record_value_1): Delete.
29778 (function_arg_record_value_2): Likewise.
29779 (function_arg_record_value_3): Likewise.
29780 (function_arg_record_value): Adjust to above changes. Instantiate
29781 traverse_record_type on count_registers to first count the number of
29782 registers to be used and then on assign_registers to assign them.
29783 (function_arg_union_value): Adjust to above renaming.
29784 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
29785 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
29786 case of a structure passed in slot #15
29787 (sparc_function_arg_advance): Likewise.
29788 (function_arg_padding): Minor tweak.
29790 2016-02-29 Richard Biener <rguenther@suse.de>
29792 PR tree-optimization/69720
29793 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
29794 the adjustment_def path for possibly vectorized defs.
29795 (vect_create_epilog_for_reduction): Handle vectorized initial
29798 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
29800 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
29802 2016-02-27 Jeff Law <law@redhat.com>
29805 2016-02-26 Richard Biener <rguenther@suse.de>
29806 Jeff Law <law@redhat.com>
29808 PR tree-optimization/69740
29809 * cfghooks.c (remove_edge): Request loop fixups if we delete
29810 an edge that might turn an irreducible loop into a natural
29813 2016-02-27 Jakub Jelinek <jakub@redhat.com>
29815 PR rtl-optimization/69896
29816 * tree-vect-generic.c (get_compute_type): Avoid single element
29819 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
29821 Rename the AArch64 tuning option and related functions to enable the
29822 Newton series for the reciprocal square root to reflect its
29823 approximative characteristic.
29825 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
29826 function to "aarch64_emit_approx_rsqrt".
29827 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
29828 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
29829 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
29830 (xgene1_tunings): Likewise.
29831 (use_rsqrt_p): Likewise.
29832 (aarch64_emit_swrsqrt): Use new function name.
29833 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
29834 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
29835 text explaining this option.
29836 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
29838 2016-02-26 Jakub Jelinek <jakub@redhat.com>
29841 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29842 complain about -mallow-movmisalign without -mvsx if
29843 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
29845 2016-02-26 Joel Sherrill <joel@rtems.org>
29847 * config.gcc: Add x86_64-*-rtems*.
29848 * config/i386/rtems-64.h: New file.
29850 2016-02-26 Joel Sherrill <joel@rtems.org>
29852 * config.gcc: Add aarch64-*-rtems*.
29853 * config/aarch64/rtems.h: New file.
29855 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
29858 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
29859 shift amount using %h. Add comment.
29861 2016-02-26 Richard Biener <rguenther@suse.de>
29862 Jeff Law <law@redhat.com>
29864 PR tree-optimization/69740
29865 * cfghooks.c (remove_edge): Request loop fixups if we delete
29866 an edge that might turn an irreducible loop into a natural
29869 2016-02-26 Martin Jambor <mjambor@suse.cz>
29871 PR middle-end/69920
29872 * tree-sra.c (sra_modify_assign): Do not remove loads of
29873 uninitialized aggregates to SSA_NAMEs.
29875 2016-02-26 Richard Henderson <rth@redhat.com>
29878 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
29879 pseudo in case the target rtx matches the source of the left
29882 2016-02-26 Martin Jambor <mjambor@suse.cz>
29885 * hsa.h (hsa_type_packed_p): Declare.
29886 * hsa.c (hsa_type_packed_p): New function.
29887 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
29889 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
29890 * hsa-brig.c (emit_basic_insn): Likewise.
29892 2016-02-26 Martin Jambor <mjambor@suse.cz>
29895 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
29897 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
29899 2016-02-26 Martin Jambor <mjambor@suse.cz>
29901 * hsa.h (is_a_helper): New overload for hsa_op_immed for
29902 hsa_op_with_type operands.
29903 (hsa_unsigned_type_for_type): Declare.
29904 * hsa.c (hsa_unsigned_type_for_type): New function.
29905 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
29906 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
29907 the finalizer. Do not emit extra move.
29909 2016-02-26 Martin Jambor <mjambor@suse.cz>
29911 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
29912 atomic operations in private segment.
29914 2016-02-26 Martin Jambor <mjambor@suse.cz>
29916 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
29917 statements to wi->info. Also disallow omp simd constructs.
29918 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
29919 for not gridifying. Dump special string for omp_for.
29921 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29924 * config/aarch64/aarch64.c (aarch64_set_current_function):
29925 Save/restore target globals when switching to
29926 target_option_default_node.
29928 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29931 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
29932 Return 0 if !SHIFT_COUNT_TRUNCATED.
29934 2016-02-26 Jakub Jelinek <jakub@redhat.com>
29935 Eric Botcazou <ebotcazou@adacore.com>
29937 PR rtl-optimization/69891
29938 * dse.c (scan_insn): If we can't figure out memset arguments
29939 or they are non-constant, call clear_rhs_from_active_local_stores.
29941 2016-02-26 Martin Liska <mliska@suse.cz>
29943 * doc/extend.texi: Mention clog10, clog10f an clog10l
29944 in Builtins section.
29946 2016-02-26 Martin Liska <mliska@suse.cz>
29948 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
29950 (resolve_args_picking_1): Likewise.
29951 * dwarf2out.h (struct GTY): Likewise.
29953 2016-02-26 Martin Liska <mliska@suse.cz>
29955 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
29956 with flag_checking.
29957 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
29959 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
29960 Martin Liska <mliska@suse.cz>
29962 * doc/install.texi: Mention --enable-valgrind-annotations.
29964 2016-02-26 Richard Biener <rguenther@suse.de>
29966 PR tree-optimization/69551
29967 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
29968 looking through aliases adjust DECL_PT_UID to refer to the
29969 ultimate alias target.
29971 2016-02-25 Martin Liska <mliska@suse.cz>
29973 PR middle-end/69919
29974 * alloc-pool.c (after_memory_report): New variable.
29975 * alloc-pool.h (base_pool_allocator ::release): Do not use
29976 the infrastructure if after_memory_report.
29977 * toplev.c (toplev::main): Mark after memory report.
29979 2016-02-25 Richard Biener <rguenther@suse.de>
29981 PR tree-optimization/48795
29982 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
29984 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
29987 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
29988 offloading is enabled and -fopenacc or -fopenmp is specified.
29989 (CRTOFFLOADEND): Likewise.
29990 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
29991 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
29992 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
29993 (offload_objects_file_name): New static var.
29994 (tool_cleanup): Remove offload_objects_file_name file.
29995 (find_offloadbeginend): Replace with ...
29996 (find_crtoffloadtable): ... this.
29997 (run_gcc): Remove offload_argc and offload_argv.
29998 Get offload_objects_file_name from -foffload-objects=... option.
29999 Read names of object files with offload from this file, pass them to
30000 compile_images_for_offload_targets. Don't call find_offloadbeginend and
30001 don't pass offloadbegin and offloadend to the linker. Don't pass
30002 offload non-LTO files to the linker, because now they're not claimed.
30004 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
30007 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30008 on builtin_unreachable.
30010 2016-02-25 Jakub Jelinek <jakub@redhat.com>
30012 PR rtl-optimization/69896
30013 * regcprop.c: Include cfgrtl.h.
30014 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
30015 than remembered mode, either delete it (if noop_move_p), or
30016 treat like copy_p but not noop_p instruction.
30018 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30021 * dwarf2out.c (gen_variable_die): Work around buggy LTO
30022 - allow NULL decl for Fortran DW_TAG_common_block variables.
30024 2016-02-24 Jason Merrill <jason@redhat.com>
30026 * common.opt (flifetime-dse): Add -flifetime-dse=1.
30028 2016-02-24 Richard Biener <rguenther@suse.de>
30029 Jakub Jelinek <jakub@redhat.com>
30031 PR middle-end/69760
30032 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
30033 conditionally executed ops to well-defined overflow behavior.
30035 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30037 PR middle-end/69915
30038 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
30041 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30043 PR rtl-optimization/69886
30044 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
30045 argument. Use it when checking validity of set instructions.
30046 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
30047 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
30049 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
30050 * store-motion.c (find_moveable_store): Update
30051 can_assign_to_reg_without_clobbers_p callsite.
30053 2016-02-24 Richard Biener <rguenther@suse.de>
30055 PR middle-end/68963
30056 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
30058 (record_nonwrapping_iv): Do not fall back to the low/high bound
30059 for non-constant IV bases if the stmt is not always executed.
30061 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30063 * config/arm/arm-cores.def (cortex-a32): New entry.
30064 * config/arm/arm-tables.opt: Regenerate.
30065 * config/arm/arm-tune.md: Regenerate.
30066 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
30067 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
30068 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
30069 for -mcpu and -mtune.
30071 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30074 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
30075 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
30076 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
30077 (atomic_loaddi_1): Delete.
30078 (atomic_loaddi): Rewrite expander using the above changes.
30080 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30083 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
30086 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30087 Richard Biener <rguenth@suse.de>
30089 PR middle-end/69909
30090 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
30091 set_mem_attributes if tem is SSA_NAME which got expanded
30094 2016-02-24 Richard Biener <rguenther@suse.de>
30096 PR tree-optimization/69907
30097 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
30098 end of permutations for BB vectorization.
30100 2016-02-24 Christian Bruel <christian.bruel@st.com>
30102 * config/arm/arm-c.c (arm_option_override): Initialize
30103 target_option_current_node.
30104 * config/arm/arm.c (arm_pragma_target_parse): Replace
30105 build_target_option_node call by target_option_current_node.
30106 Set target_option_current_node.
30109 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
30112 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
30113 define_insn_and_split to define_insn.
30114 (zero_extendqi<mode>2_dot2): Same.
30115 (extendqi<mode>2_dot): Same.
30116 (extendqi<mode>2_dot2): Same.
30118 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
30120 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
30121 and add bypass for AES{D,E} and AESMC pairs.
30122 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
30125 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
30127 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
30128 series for reciprocal square root in Exynos M1.
30130 2016-02-23 Martin Sebor <msebor@redhat.com>
30133 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
30134 __builtin_alloca_with_align.
30136 2016-02-23 Richard Henderson <rth@redhat.com>
30138 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
30139 (ix86_register_pragmas): Remove __seg_tls.
30140 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
30141 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
30142 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
30143 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
30144 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
30145 * doc/extend.texi (__seg_tls): Remove item.
30147 2016-02-23 Richard Biener <rguenther@suse.de>
30149 * alloc-pool.h (struct allocation_object): Make id member
30150 conditional on CHECKING_P again.
30151 (get_instance): Adjust.
30152 (base_pool_allocator): Likewise.
30154 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
30156 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
30157 (parallelize_loops): In OpenACC kernels mode, set n_threads to
30159 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
30161 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
30163 2016-02-23 Richard Biener <rguenther@suse.de>
30165 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
30166 * bitmap.h (struct bitmap_usage): Likewise.
30167 (bitmap_move): Declare.
30168 * bitmap.c (register_overhead): Take size_t argument.
30169 (bitmap_move): New function.
30170 * df-problems.c (df_rd_transfer_function): Use bitmap_move
30171 to properly account overhead.
30172 * tree.c (free_node): Use tree_size.
30174 2016-02-23 Jakub Jelinek <jakub@redhat.com>
30177 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
30178 when inverting comparison.
30181 * common.opt (Wunreachable-code): Add Warning flag.
30183 2016-02-23 Mark Wielaard <mjw@redhat.com>
30184 Jakub Jelinek <jakub@redhat.com>
30187 * cgraphunit.c (check_global_declaration): Check main_input_filename
30188 and DECL_SOURCE_FILE are not NULL.
30190 2016-02-23 Martin Jambor <mjambor@suse.cz>
30192 PR tree-optimization/69666
30193 * tree-sra.c (sra_modify_assign): Do not attempt to create
30194 default_def replacements for unscalarizable regions.
30196 2016-02-20 Mark Wielaard <mjw@redhat.com>
30199 * cgraphunit.c (check_global_declaration): Check level of
30200 warn_unused_const_variable and main_input_filename.
30201 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
30202 (-Wunused-variable): For C implies -Wunused-const-variable=1.
30203 (-Wunused-const-variable): Explain levels 1 and 2.
30205 2016-02-22 Jakub Jelinek <jakub@redhat.com>
30208 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
30209 identical arguments. Formatting and spelling fixes.
30212 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
30217 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
30218 and m68k-devices.def.
30219 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
30220 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
30222 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
30224 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
30225 and HImode registers.
30227 2016-02-22 Richard Biener <rguenther@suse.de>
30229 PR tree-optimization/69882
30230 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
30231 preserve permutations present because of gaps.
30232 (vect_supported_load_permutation_p): Always continue checking
30233 permutations after vect_attempt_slp_rearrange_stmts.
30235 2016-02-22 Bin Cheng <bin.cheng@arm.com>
30237 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
30238 min_profitable_estimate, rather than min_profitable_iters.
30240 2016-02-22 Jakub Jelinek <jakub@redhat.com>
30243 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
30244 SImode for last match_operand.
30246 2016-02-22 Martin Liska <mliska@suse.cz>
30248 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
30249 return bitsize - 1 as the return value.
30251 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
30255 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
30256 Handle negative shift counts.
30257 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
30258 force_reg on the shift constant.
30259 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
30260 (lshrsi3_d): Handle negative shift counts.
30262 2016-02-22 Richard Biener <rguenther@suse.de>
30263 Tom de Vries <tom@codesourcery.com>
30265 * graph.c: Include dumpfile.h.
30266 (print_graph_cfg): Split into three overloads.
30267 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
30269 2016-02-22 Tom de Vries <tom@codesourcery.com>
30271 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
30274 2016-02-22 Richard Biener <rguenther@suse.de>
30277 * ipa-inline-transform.c (inline_call): When not updating
30278 overall summaries adjust self size by the growth estimate.
30279 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
30280 hash-set, do not update overall summaries here. Renamed from ...
30281 (inline_to_all_callers): ... this which is now wrapping the
30282 above and performing delayed overall summary update.
30283 (early_inline_small_functions): Delay updating of the overall
30286 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
30288 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
30291 2016-02-19 Jakub Jelinek <jakub@redhat.com>
30294 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
30295 :%* in %:gt() argument.
30296 (greater_than_spec_func): Adjust for expecting only numbers,
30297 if there are more than two numbers, compare the last two.
30299 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
30301 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
30302 -Wnarrowing with -std.
30304 2016-02-19 Jakub Jelinek <jakub@redhat.com>
30307 * expr.c (store_field): Don't use bit-field path if exp is
30308 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
30309 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
30310 and the assignment can be performed by bitwise copy. Formatting
30313 PR middle-end/69838
30314 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
30315 call copy_reg_eh_region_note_forward on before and/or after sequences
30316 and remove note from insn if it no longer can throw.
30319 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
30320 if TARGET_AVX512BW.
30322 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30324 * config/s390/vector.md: Add missing commutative operand markers
30325 to the patterns which qualify for one.
30326 * config/s390/vx-builtins.md: Likewise.
30328 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30330 * config/s390/vector.md (VI, VI_QHS): Add single element vector
30331 types to mode iterators.
30332 (vec_double): ... and mode attribute.
30333 * config/s390/vx-builtins.md (non_vec_int): Likewise.
30335 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30337 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
30338 Change the predicate of op2 from nonimmediate to general and let
30339 reload fix it if necessary.
30341 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30343 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
30345 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30347 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
30350 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30352 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
30353 * config/s390/s390.c (s390_expand_vec_movstr): New function.
30354 * config/s390/s390.md ("movstr<P:mode>"): Call
30355 s390_expand_vec_movstr.
30357 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30359 * config/s390/s390.md: Add missing output modifier for operand 1
30360 to print it as address properly.
30362 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30364 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
30365 * config/s390/2964.md: New file.
30366 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
30367 of insn grouping attributes depending on the CPU level.
30368 (s390_get_unit_mask): New function.
30369 (s390_sched_score): Remove the OOO from the scheduling macros.
30370 Add loop to calculate a score for the instruction mix.
30371 (s390_sched_reorder): Likewise plus improve debug output.
30372 (s390_sched_variable_issue): Rename macros as above. Calculate
30373 the unit distances after actually scheduling an insn. Improve
30375 (s390_sched_init): Clear last_scheduled_unit_distance array.
30376 * config/s390/s390.md: Include 2964.md.
30378 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30381 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
30382 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
30383 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
30384 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
30385 *avx512f_<code>v8div16qi2_mask_1): New insns.
30387 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
30390 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
30393 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
30394 earlyclobber from target. Use wF constraint for fused memory
30396 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
30398 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30399 Martin Liska <mliska@suse.cz>
30402 * cfgexpand.c (asan_sanitize_stack_p): New function.
30403 (partition_stack_vars): Use the function.
30404 (expand_stack_vars): Likewise.
30405 (defer_stack_allocation): Likewise.
30406 (expand_used_vars): Likewise.
30408 2016-02-18 Richard Biener <rguenther@suse.de>
30410 PR middle-end/69553
30411 * fold-const.c (operand_equal_p): Properly compare offsets for
30412 IMAGPART_EXPR and ARRAY_REF.
30414 2016-02-18 Nick Clifton <nickc@redhat.com>
30418 * config/arm/arm.c (arm_option_override_internal): Disable
30419 interworking if the target does not support thumb instructions.
30420 (arm_reload_in_hi): Handle the case where a register to register
30421 move needs reloading because there is no simple pattern to handle
30423 (arm_reload_out_hi): Likewise.
30425 2016-02-18 Richard Biener <rguenther@suse.de>
30427 PR middle-end/69854
30428 * match.pd: Don't use fold_binary or fold_unary for folding
30431 2016-02-17 Jakub Jelinek <jakub@redhat.com>
30434 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
30435 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
30436 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
30437 warn on gimple_no_warning_p statements.
30439 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
30441 * doc/extend.texi (C++ Attributes): Correct description of
30442 warn_unused type attribute.
30444 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30446 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
30447 correct instruction.
30449 2016-02-17 Richard Biener <rguenther@suse.de>
30451 PR rtl-optimization/69609
30452 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
30453 (find_traces_1_round): When ending a trace update cached priority
30455 (bb_to_key): Use cached priority when available.
30456 (copy_bb): Initialize cached priority.
30457 (reorder_basic_blocks_software_trace_cache): Likewise.
30459 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30462 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
30464 (aarch64_comparison_operator): Break overly long line into two.
30465 (aarch64_comparison_operation): Likewise.
30466 * config/aarch64/aarch64.md (cstorecc4): Use
30467 aarch64_comparison_operator_mode instead of
30468 aarch64_comparison_operator.
30469 (cstore<mode>4): Likewise.
30470 (aarch64_cstore<mode>): Likewise.
30471 (*cstoresi_insn_uxtw): Likewise.
30472 (cstore<mode>_neg): Likewise.
30473 (*cstoresi_neg_uxtw): Likewise.
30475 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30478 * config/arm/predicates.md (arm_comparison_operator_mode):
30480 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
30481 instead of arm_comparison_operator.
30482 (*mov_negscc): Likewise.
30483 (*mov_notscc): Likewise.
30484 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
30485 (*thumb2_mov_negscc): Likewise.
30486 (*thumb2_mov_negscc_strict_it): Likewise.
30487 (*thumb2_mov_notscc): Likewise.
30488 (*thumb2_mov_notscc_strict_it): Likewise.
30490 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
30492 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
30493 Add missing return.
30495 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
30497 * config/visium/visium.c (machine_libfunc_index): New enum.
30498 (machine_libfuncs): New structure.
30499 (visium_libfuncs): New static variable.
30500 (TARGET_INIT_LIBFUNCS): Define to...
30501 (visium_init_libfuncs): ...this. New function.
30502 (expand_block_move_4): Use the appropriate libfunc.
30503 (expand_block_move_2): Likewise.
30504 (expand_block_move_1): Likewise.
30505 (expand_block_set_4): Likewise.
30506 (expand_block_set_2): Likewise.
30507 (expand_block_set_1): Likewise.
30508 (visium_trampoline_init): Likewise.
30510 2016-02-17 Nick Clifton <nickc@redhat.com>
30512 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
30513 TI's devices.csv file as of March 2016.
30515 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
30518 * opts-global.c (handle_common_deferred_options): Introduce and
30519 initialize two global variables to remember command-line options
30520 specifying a stack-limiting register.
30521 * opts.h: Add extern declarations of the two new global variables.
30522 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
30523 variable based on the values of the two new global variables.
30525 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30528 * common.opt (Wnonnull-compare): New warning.
30529 * doc/invoke.texi (-Wnonnull): Remove text about comparison
30530 of arguments against NULL.
30531 (-Wnonnull-compare): Document.
30532 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
30533 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
30534 * passes.def (pass_warn_nonnull_compare): Add.
30535 * gimple-ssa-nonnull-compare.c: New file.
30537 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30539 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
30540 AARCH64_EXTRA_TUNE_RECIP_SQRT.
30542 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30544 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
30545 reciprocal sqrt for -mlow-precision-recip-sqrt.
30547 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30548 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30550 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
30551 always use lane loads to construct non-constant vectors.
30553 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30555 * config/aarch64/aarch64.md
30556 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
30557 constraints for operand 3.
30558 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
30560 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30561 Richard Biener <rguenther@suse.de>
30563 PR tree-optimization/69820
30564 * tree-vect-patterns.c (type_conversion_p): Return false if
30565 *orig_type is unsigned single precision or boolean.
30566 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
30569 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30571 PR rtl-optimization/69764
30572 PR rtl-optimization/69771
30573 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
30574 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
30576 2016-02-16 Richard Biener <rguenther@suse.de>
30578 PR tree-optimization/69776
30579 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
30581 (indirect_refs_may_alias_p): Likewise.
30582 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
30583 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
30584 according to tbaa_p.
30585 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
30586 (optimize_stmt): For redundant store discovery do not allow tbaa.
30588 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
30590 PR tree-optimization/69714
30591 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
30592 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
30594 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
30596 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
30597 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
30598 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
30599 * config/arc/arc.c (arc_init): Check FPU options.
30600 (get_arc_condition_code): Handle new CC_FPU* modes.
30601 (arc_select_cc_mode): Likewise.
30602 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
30603 register pair only. Allow access for ARCv2 accumulator.
30604 (gen_compare_reg): Whenever we have FPU support use FPU compare
30606 (arc_reorg): Don't generate brcc insns when FPU compare
30607 instructions are involved.
30608 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
30609 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
30610 floating point emulation.
30611 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
30612 (REVERSE_CONDITION): Add new CC_FPU* modes.
30613 (TARGET_FP_SP_BASE): Define.
30614 (TARGET_FP_DP_BASE): Likewise.
30615 (TARGET_FP_SP_FUSED): Likewise.
30616 (TARGET_FP_DP_FUSED): Likewise.
30617 (TARGET_FP_SP_CONV): Likewise.
30618 (TARGET_FP_DP_CONV): Likewise.
30619 (TARGET_FP_SP_SQRT): Likewise.
30620 (TARGET_FP_DP_SQRT): Likewise.
30621 (TARGET_FP_DP_AX): Likewise.
30622 * config/arc/arc.md (ARCV2_ACC): New constant.
30623 (type): New fpu type attribute.
30624 (SDF): Conditional iterator.
30625 (cstore<mode>, cbranch<mode>): Change expand condition.
30626 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
30627 handles FPU/FPX cases as well.
30628 * config/arc/arc.opt (mfpu): New option.
30629 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
30631 (adddf3, muldf3, subdf3): Removed.
30632 * config/arc/predicates.md (proper_comparison_operator): Recognize
30634 * config/arc/fpu.md: New file.
30635 * doc/invoke.texi (ARC Options): Document mfpu option.
30637 2016-02-16 Richard Biener <rguenther@suse.de>
30639 PR rtl-optimization/69291
30640 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
30641 noce_operand_ok check.
30643 2016-02-16 Tom de Vries <tom@codesourcery.com>
30646 * omp-low.c (simd_clone_create): Remove call to
30647 symtab->call_cgraph_insertion_hooks.
30649 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30651 PR tree-optimization/69802
30652 * tree-ssa-reassoc.c (update_range_test): If op is
30653 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
30654 op == 1 test of precision 1 integral op, otherwise handle
30655 that case as op itself. Fix up formatting.
30656 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
30659 2016-02-16 Richard Biener <rguenther@suse.de>
30661 PR tree-optimization/69586
30662 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
30663 types for conversion sources.
30665 2016-02-16 Richard Biener <rguenther@suse.de>
30667 PR middle-end/69801
30668 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
30669 mask OEP_ADDRESS_OF.
30671 2016-02-16 Alan Modra <amodra@gmail.com>
30674 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
30675 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
30676 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
30678 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
30679 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
30680 (p8_fmrgow_<mode>): Likewise.
30681 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
30683 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
30684 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
30685 to use movdi_internal64. Remove op0_di.
30686 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
30688 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
30690 Add support for the FCCMP insn types
30692 * config/aarch64/aarch64.md (fccmp): Change insn type.
30693 (fccmpe): Likewise.
30694 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
30695 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
30696 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
30697 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
30698 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
30699 * config/arm/types.md (fccmps): Add new insn type.
30700 (fccmpd): Likewise.
30702 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
30704 * alias.c (get_alias_set): Fix a typo in comment.
30706 2016-02-15 Richard Biener <rguenther@suse.de>
30708 PR tree-optimization/69595
30709 * match.pd: Complete range test simplification to true.
30711 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
30713 PR rtl-optimization/69648
30714 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
30715 pic_offset_table_rtx.
30717 PR rtl-optimization/69752
30718 * ira.c (update_equiv_regs): When looking for more than a single SET,
30719 also take other side effects into account.
30721 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
30723 * config/s390/s390.c (s390_function_profiler): Add a new sequence
30724 for z900+ CPUs in 31-bit mode.
30726 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
30728 * common/config/s390/s390-common.c (s390_supports_split_stack):
30730 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
30731 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
30732 * config/s390/s390.c (struct machine_function): New field
30733 split_stack_varargs_pointer.
30734 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
30735 in s390_emit_prologue.
30736 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
30738 (morestack_ref): New global.
30739 (SPLIT_STACK_AVAILABLE): New macro.
30740 (s390_expand_split_stack_prologue): New function.
30741 (s390_live_on_entry): New function.
30742 (s390_va_start): Use split-stack vararg pointer if appropriate.
30743 (s390_asm_file_end): Emit the split-stack note sections.
30744 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
30745 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
30746 (UNSPECV_SPLIT_STACK_CALL): New unspec.
30747 (UNSPECV_SPLIT_STACK_DATA): New unspec.
30748 (split_stack_prologue): New expand.
30749 (split_stack_space_check): New expand.
30750 (split_stack_data): New insn.
30751 (split_stack_call): New expand.
30752 (split_stack_call_*): New insn.
30753 (split_stack_cond_call): New expand.
30754 (split_stack_cond_call_*): New insn.
30756 2016-02-15 Richard Biener <rguenther@suse.de>
30758 PR tree-optimization/69783
30759 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30760 Add trivially correct cases.
30762 2016-02-15 Tom de Vries <tom@codesourcery.com>
30765 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
30767 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
30769 2016-02-15 Richard Biener <rguenther@suse.de>
30771 PR tree-optimization/69776
30772 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
30773 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
30774 indicate whether we can use TBAA to disambiguate against stores.
30775 Use alias-set zero if not.
30776 (visit_reference_op_store): Do not use TBAA when looking up
30778 * tree-ssa-pre.c (compute_avail): Use TBAA here.
30779 (eliminate_dom_walker::before_dom_children): But not when looking
30780 up redundant stores.
30782 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
30784 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
30786 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30788 * config/i386/znver1.md
30789 (znver1_pop, znver1_pop_mem,
30790 znver1_load_imov_double_store,
30791 znver1_load_imov_direct_store,
30792 znver1_load_imov_direct_load,
30793 znver1_load_imov_double_load): Add new.
30794 (znver1_insn, znver1_insn_load): Add icmov type.
30795 (znver1_sseavx_fma,
30796 znver1_sseavx_fma_load,
30798 znver1_avx256_fma_load): Fix pipe usage.
30800 2016-02-14 Alan Modra <amodra@gmail.com>
30803 * reload.c (find_reloads_address_1): For pre/post-inc/dec
30804 with an invalid hard reg, reload just the reg not the entire
30805 pre/post-inc/dec address expression.
30807 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
30810 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
30811 fixed R1_REG scratch reg.
30812 (sibcall_value_pcrel_fdpic): Likewise.
30814 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
30818 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
30820 2016-02-12 Walter Lee <walt@tilera.com>
30822 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
30823 * config/tilegx/t-tilegx: Likewise.
30825 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30828 * diagnostic-show-locus.c (struct line_span): New struct.
30829 (layout::get_first_line): Delete.
30830 (layout::get_last_line): Delete.
30831 (layout::get_num_line_spans): New member function.
30832 (layout::get_line_span): Likewise.
30833 (layout::print_heading_for_line_span_index_p): Likewise.
30834 (layout::get_expanded_location): Likewise.
30835 (layout::calculate_line_spans): Likewise.
30836 (layout::m_first_line): Delete.
30837 (layout::m_last_line): Delete.
30838 (layout::m_line_spans): New field.
30839 (layout::layout): Update comment. Replace m_first_line and
30840 m_last_line with m_line_spans, replacing their initialization
30841 with a call to calculate_line_spans.
30842 (diagnostic_show_locus): When printing source lines and
30843 annotations, rather than looping over a single span
30844 of lines, instead loop over each line_span within
30845 the layout, with an inner loop over the lines within them.
30846 Call the context's start_span callback when changing line spans.
30847 * diagnostic.c (diagnostic_initialize): Initialize start_span.
30848 (diagnostic_build_prefix): Break out the building of the location
30849 part of the string into...
30850 (diagnostic_get_location_text): ...this new function, rewriting
30851 it from nested ternary expressions to a sequence of "if"
30853 (default_diagnostic_start_span_fn): New function.
30854 * diagnostic.h (diagnostic_start_span_fn): New typedef.
30855 (diagnostic_context::start_span): New field.
30856 (default_diagnostic_start_span_fn): New prototype.
30858 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30861 * gcc.c (driver::finalize): Fix cleanup of "specs".
30863 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30867 * gcc.c (driver::driver): Initialize m_option_suggestions.
30868 (driver::~driver): Clean up m_option_suggestions.
30869 (suggest_option): Convert to...
30870 (driver::suggest_option): ...this, and split out into
30871 driver::build_option_suggestions and find_closest_string.
30872 (driver::build_option_suggestions): New function, from
30873 first half of suggest_option. Special-case
30874 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
30875 the sanitizer_opts array. For options of enum types, add the
30876 various enum values to the candidate strings.
30877 (driver::handle_unrecognized_options): Remove "const".
30878 * gcc.h (driver::handle_unrecognized_options): Likewise.
30879 (driver::build_option_suggestions): New decl.
30880 (driver::suggest_option): New decl.
30881 (driver::m_option_suggestions): New field.
30882 * opts-common.c (add_misspelling_candidates): New function.
30883 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
30884 and make non-static.
30885 * opts.h (sanitizer_opts): New array decl.
30886 (add_misspelling_candidates): New function decl.
30887 * spellcheck.c (find_closest_string): New function.
30888 * spellcheck.h (find_closest_string): New function decl.
30890 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30892 PR rtl-optimization/69764
30893 PR rtl-optimization/69771
30894 * optabs.c (expand_binop_directly): For shift_optab_p, force
30895 convert_modes with VOIDmode if xop1 has VOIDmode.
30897 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
30900 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
30901 to correctly determine instrumentation thunks.
30903 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30906 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
30907 type by reference, force lhs on the call.
30910 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
30911 Compute retval and retbnd early in all cases if split_part_return_p
30912 and return_bb is not EXIT. Remove all clobber stmts and reset
30913 all debug stmts that refer to SSA_NAMEs defined in split part,
30914 except if it is retval, in that case replace the old retval with the
30915 lhs of the call to the split part.
30917 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30920 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30922 PR middle-end/66726
30923 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
30924 whose result is used in PHI.
30925 (maybe_optimize_range_tests): Likewise.
30926 (final_range_test_p): Likweise.
30928 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30930 PR middle-end/66726
30931 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
30932 whose result is used in PHI.
30933 (maybe_optimize_range_tests): Likewise.
30934 (final_range_test_p): Likweise.
30936 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30938 * cgraph.c: Spelling fixes - behaviour -> behavior and
30939 neighbour -> neighbor.
30940 * target.def: Likewise.
30941 * sel-sched.c: Likewise.
30942 * config/mips/mips.c: Likewise.
30943 * config/arc/arc.md: Likewise.
30944 * config/arm/cortex-a57.md: Likewise.
30945 * config/arm/arm.c: Likewise.
30946 * config/arm/neon.md: Likewise.
30947 * config/arm/arm-c.c: Likewise.
30948 * config/vms/vms-c.c: Likewise.
30949 * config/s390/s390.c: Likewise.
30950 * config/i386/znver1.md: Likewise.
30951 * config/i386/i386.c: Likewise.
30952 * config/ia64/hpux-unix2003.h: Likewise.
30953 * config/msp430/msp430.md: Likewise.
30954 * config/rx/rx.c: Likewise.
30955 * config/rx/rx.md: Likewise.
30956 * config/aarch64/aarch64-simd.md: Likewise.
30957 * config/aarch64/aarch64.c: Likewise.
30958 * config/nvptx/nvptx.c: Likewise.
30959 * config/bfin/bfin.c: Likewise.
30960 * config/cris/cris.opt: Likewise.
30961 * config/rs6000/rs6000.c: Likewise.
30962 * target.h: Likewise.
30963 * spellcheck.c: Likewise.
30964 * ira-build.c: Likewise.
30965 * tree-inline.c: Likewise.
30966 * builtins.c: Likewise.
30967 * lra-constraints.c: Likewise.
30968 * explow.c: Likewise.
30969 * hwint.h: Likewise.
30970 * targhooks.c: Likewise.
30971 * tree-vect-data-refs.c: Likewise.
30972 * expr.c: Likewise.
30973 * doc/tm.texi: Likewise.
30974 * doc/extend.texi: Likewise.
30975 * doc/install.texi: Likewise.
30976 * doc/md.texi: Likewise.
30977 * tree-ssa-tail-merge.c: Likewise.
30978 * sched-int.h: Likewise.
30979 * match.pd: Likewise.
30980 * sched-ebb.c: Likewise.
30981 * target.def (omit_struct_return_reg): Likewise.
30982 * gimple-ssa-isolate-paths.c: Likewise.
30983 (find_implicit_erroneous_behaviour): Renamed to...
30984 (find_implicit_erroneous_behavior): ... this.
30985 (find_explicit_erroneous_behaviour): Renamed to...
30986 (find_explicit_erroneous_behavior): ... this.
30987 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
30989 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
30991 PR rtl-optimization/64682
30992 PR rtl-optimization/69567
30993 PR rtl-optimization/69737
30994 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
30995 in I2 as well, just lose it.
30997 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30999 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
31001 (aarch64_last_printed_tune_string): Likewise.
31002 (aarch64_declare_function_name): Only output .arch assembler
31003 directive if it will be different from the previously output
31004 directive. Same for .tune comment but only if -dA is set.
31005 (aarch64_start_file): New function.
31006 (TARGET_ASM_FILE_START): Define.
31008 2016-02-11 David Malcolm <dmalcolm@redhat.com>
31011 * Makefile.in (PLUGIN_HEADERS): Add params.list.
31013 2016-02-11 Jakub Jelinek <jakub@redhat.com>
31016 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
31017 -Wmaybe-uninitialized warning.
31019 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
31022 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
31024 2016-02-11 Richard Biener <rguenther@suse.de>
31026 PR rtl-optimization/69291
31027 * ifcvt.c (noce_try_store_flag_constants): Do not allow
31028 subexpressions affected by changing the result.
31030 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
31033 * lra-constraints.c (curr_insn_transform): Find in/out operands
31034 for secondary memory moves. Update dups.
31036 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
31038 PR tree-optimization/69652
31039 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
31040 to nested loop, did source re-formatting, skip debug statements,
31041 add check on statement with volatile operand, remove dead scalar
31044 2016-02-10 Jakub Jelinek <jakub@redhat.com>
31045 Patrick Palka <ppalka@gcc.gnu.org>
31049 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
31050 calls if the return type is TREE_ADDRESSABLE.
31051 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
31052 * ipa-split.c (split_function): Fix doubled "we" in comment.
31053 Use void return type for the split part even if
31054 !split_point->split_part_set_retval.
31056 2016-02-10 Bin Cheng <bin.cheng@arm.com>
31058 PR tree-optimization/68021
31059 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
31060 when computing the value of biv cand by itself.
31062 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31064 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
31065 (cortexa57_tunings): Likewise.
31066 (cortexa72_tunings): Likewise.
31067 (arch_macro_fusion_pair_p): Add support for AES fusion.
31068 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
31069 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
31070 Allow virtual registers before reload so early scheduling works.
31071 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
31072 correct latency and pipeline.
31073 (cortex_a57_crypto_complex): Likewise.
31074 (cortex_a57_crypto_xor): Likewise.
31075 (define_bypass): Add AES bypass.
31077 2016-02-10 Richard Biener <rguenther@suse.de>
31079 PR tree-optimization/69726
31080 * passes.def: Add DCE pass before late uninit.
31081 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
31082 really fixup if-conversions job.
31084 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31086 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
31087 (arm_cortex_a57_tune): Likewise.
31088 (aarch_macro_fusion_pair_p): Add support for AES fusion.
31089 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
31091 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
31093 * timevar.def (TV_PHASE_DBGINFO): Delete.
31094 (TV_PHASE_CHECK_DBGINFO): Likewise.
31095 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
31097 2016-02-10 Richard Biener <rguenther@suse.de>
31099 PR tree-optimization/69719
31100 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31101 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
31103 2016-02-09 Andrew Pinski <apinski@cavium.com>
31106 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
31107 get_vcond_mask_icode returns false.
31109 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
31112 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
31113 an ADDIS that adds a pointer to a large constant that sets the
31114 upper16 bits with a load operation.
31116 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
31119 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
31121 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
31123 (vzipq_s16): Likewise.
31124 (vzipq_s32): Likewise.
31125 (vzipq_f32): Likewise.
31126 (vzipq_u8): Likewise.
31127 (vzipq_u16): Likewise.
31128 (vzipq_u32): Likewise.
31129 (vzipq_p8): Likewise.
31130 (vzipq_p16): Likewise.
31132 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
31135 * config/arm/arm.c (neon_endian_lane_map): New function.
31136 (neon_vector_pair_endian_lane_map): New function.
31137 (arm_evpc_neon_vuzp): Allow for big endian lane order.
31138 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
31140 (vuzpq_s16): Likewise.
31141 (vuzpq_s32): Likewise.
31142 (vuzpq_f32): Likewise.
31143 (vuzpq_u8): Likewise.
31144 (vuzpq_u16): Likewise.
31145 (vuzpq_u32): Likewise.
31146 (vuzpq_p8): Likewise.
31147 (vuzpq_p16): Likewise.
31149 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
31152 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
31155 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
31157 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
31158 truncate const_int operand 1 to QImode.
31160 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
31162 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
31163 corresponding to an abnormal edge.
31165 2016-02-09 Tom de Vries <tom@codesourcery.com>
31167 PR tree-optimization/69599
31168 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
31170 (find_func_aliases_for_builtin_call, find_func_clobbers)
31171 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
31174 2016-02-09 Richard Biener <rguenther@suse.de>
31176 PR tree-optimization/69715
31177 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
31178 LHS on calls as non-rewritable.
31180 2016-02-09 Tom de Vries <tom@codesourcery.com>
31183 * lto-wrapper.c (append_diag_options): New function.
31184 (compile_offload_image): Call append_diag_options.
31186 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
31189 * doc/extend.texi (Flag Output Operands): Correct sectioning.
31190 Minor copy-edit to fix verb tenses.
31192 2016-02-08 Jakub Jelinek <jakub@redhat.com>
31194 PR tree-optimization/69209
31195 * ipa-split.c (split_function): If split part is not
31196 returning retval, retval has gimple type but is not
31197 gimple value, force it into a SSA_NAME first.
31199 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
31201 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
31204 2016-02-08 Jason Merrill <jason@redhat.com>
31207 * convert.c (convert_to_integer_1): Check dofold on truncation
31209 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
31210 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
31211 Rename from *_nofold.
31212 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
31213 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
31215 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
31218 * tree.c (build_common_tree_nodes): Remove short_double argument.
31219 All callers changed.
31220 * tree.h (build_common_tree_nodes): Adjust declaration.
31221 * doc/invoke.texi (-fshort-double): Remove documentation.
31222 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
31223 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
31224 * lto-wrapper.c (merge_and_complain, append_compiler_options)
31225 (append_linker_options): Don't handle OPT_fshort_double.
31227 PR rtl-optimization/68730
31228 * lra-remat.c (insn_to_cand_activation): New static variable.
31229 (lra_remat): Allocate and free it.
31230 (create_cand): New arg activation. Initialize a field in
31231 insn_to_cand_activation if it is nonnull.
31232 (create_cands): Pass the activation insn to create_cand when making
31233 a candidate involving an output reload. Reorganize code a little.
31234 (do_remat): Keep track of active status of candidates in a separate
31237 2016-02-08 Richard Biener <rguenther@suse.de>
31239 PR tree-optimization/69719
31240 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31241 Properly use absolute of the difference of the two offsets to
31242 compare or adjust the segment length.
31244 2016-02-08 Richard Biener <rguenther@suse.de>
31245 Jeff Law <law@redhat.com>
31248 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
31249 types for anonymous SSA names.
31251 2016-02-08 Richard Biener <rguenther@suse.de>
31253 PR rtl-optimization/69274
31254 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
31256 2016-02-08 Jeff Law <law@redhat.com>
31258 PR tree-optimization/65917
31259 * tree-ssa-dom.c (record_temporary_equivalences): Record both
31260 equivalences from if (x == y) style conditionals.
31261 (loop_depth_of_name): Remove.
31262 (record_equality): Remove loop depth check.
31263 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
31264 (const_and_copies::record_const_or_copy_raw): New member function.
31265 * tree-ssa-scopedtables.c
31266 (const_and_copies::record_const_or_copy_raw): New, factored out of
31267 (const_and_copies::record_const_or_copy): Call new member function.
31269 2016-02-05 Jeff Law <law@redhat.com>
31271 PR tree-optimization/68541
31272 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
31273 (count_stmts_in_block): New function.
31274 (poor_ifcvt_candidate_code): Likewise.
31275 (is_feasible_trace): Add some heuristics to determine when path
31276 splitting is profitable.
31277 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
31278 is a diamond with a single exit.
31280 2016-02-05 Martin Sebor <msebor@redhat.com>
31283 * doc/invoke.texi: Update -Wplacement-new to take an optional
31286 2016-02-06 Richard Henderson <rth@redhat.com>
31289 * tree.c (tree_nop_conversion_p): Do not strip casts into or
31290 out of non-standard address spaces.
31292 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31294 PR rtl-optimization/69691
31295 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
31297 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
31299 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
31300 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
31301 (*ieee128_mfvsrd_64bit): Likewise.
31302 (*ieee128_mfvsrd_32bit): Likewise.
31304 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
31308 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
31310 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
31311 instrumented_version.
31313 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
31315 * doc/invoke.texi (Optimize Options): In table of --param options
31316 rename second occurrence of tracer-min-branch-ratio to
31317 tracer-min-branch-probability, rename
31318 tracer-min-branch-ratio-feedback to
31319 tracer-min-branch-probability-feedback and clarify description,
31320 rename sched-spec-state-edge-prob-cutoff to
31321 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
31322 to selsched-insns-to-rename, rename lto-minpartition to
31323 lto-min-partition, delete reorder-blocks-duplicate and
31324 reorder-blocks-duplicate-feedback.
31326 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31328 * config/s390/s390.c (s390_register_info_set_ranges): Remove
31331 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
31333 * doc/extend.texi: S/390: Correct some typos.
31335 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31337 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
31339 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31342 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
31343 (s390_register_info_gprtofpr): Use new macros above.
31344 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
31346 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
31347 its name. Adjust restore and save gpr ranges.
31348 (s390_register_info_set_ranges): New function.
31349 (s390_register_info): Use new macros above. Call
31350 s390_register_info_set_ranges.
31351 (s390_optimize_register_info): Likewise.
31352 (s390_hard_regno_rename_ok): Use new macros.
31353 (s390_hard_regno_scratch_ok): Likewise.
31354 (s390_emit_epilogue): Likewise.
31355 (s390_can_use_return_insn): Likewise.
31356 (s390_optimize_prologue): Likewise.
31357 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
31359 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31362 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
31364 (ix86_option_override_internal): Disable TARGET_STV even for
31365 -m{incoming,preferred}-stack-boundary=3.
31367 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31369 * config.gcc: Mark deprecated rtems targets as obsolete.
31371 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
31373 PR rtl-optimization/64682
31374 PR rtl-optimization/69567
31375 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
31376 before I2 only if the register is both used and set in I2.
31378 2016-02-04 DJ Delorie <dj@redhat.com>
31380 * config/msp430/msp430.c (msp430_start_function): Add function type.
31382 2016-02-04 Jakub Jelinek <jakub@redhat.com>
31385 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
31387 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
31389 PR rtl-optimization/69577
31391 2015-10-29 Richard Henderson <rth@redhat.com>
31395 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
31396 sse check to the exact conditions of PR 67609.
31398 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
31401 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
31402 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
31403 not allowed into the traditional Altivec registers.
31404 (movtd_64bit_nodm): Likewise.
31405 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
31407 2016-02-04 David Malcolm <dmalcolm@redhat.com>
31409 * config/aarch64/cortex-a57-fma-steering.c
31410 (aarch64_register_fma_steering): Remove "static" from arguments
31413 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
31416 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
31417 twice when complex.
31419 2016-02-04 Mike Frysinger <vapier@gentoo.org>
31421 * doc/invoke.texi: Delete -mno-fma4.
31423 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
31425 PR rtl-optimization/69577
31426 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
31427 (find_subregs_of_mode): Update accordingly. Iterate over partial
31430 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
31432 * config/arm/arm-protos.h (neon_reinterpret): Remove.
31433 * config/arm/arm.c (neon_reinterpret): Remove.
31434 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
31435 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
31436 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
31437 vreinterpretti): Remove.
31438 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
31439 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
31440 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
31441 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
31442 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
31443 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
31444 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
31445 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
31446 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
31447 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
31448 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
31449 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
31450 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
31451 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
31452 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
31453 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
31454 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
31455 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
31456 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
31457 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
31458 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
31459 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
31460 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
31461 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
31462 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
31463 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
31464 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
31465 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
31466 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
31467 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
31468 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
31469 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
31470 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
31471 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
31472 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
31473 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
31474 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
31475 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
31476 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
31477 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
31478 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
31479 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
31480 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
31481 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
31482 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
31483 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
31484 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
31485 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
31486 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
31487 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
31488 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
31489 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
31490 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
31491 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
31492 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
31493 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
31494 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
31495 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
31496 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
31497 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
31498 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
31499 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
31500 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
31501 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
31502 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
31503 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
31504 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
31505 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
31506 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
31507 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
31508 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
31509 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
31510 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
31511 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
31512 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
31513 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
31514 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
31515 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
31516 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
31517 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
31518 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
31519 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
31520 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
31521 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
31522 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
31523 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
31524 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
31525 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
31526 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
31527 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
31528 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
31529 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
31530 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
31531 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
31532 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
31533 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
31534 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
31535 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
31536 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
31537 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
31538 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
31539 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
31540 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
31542 2016-02-04 Martin Liska <mliska@suse.cz>
31545 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
31546 that are gimple_store_p.
31547 (maybe_instrument_call): Likewise.
31549 2016-02-04 Bin Cheng <bin.cheng@arm.com>
31551 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
31552 register scaling out of memory reference and comment why.
31554 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31558 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
31559 folding the source of a SET.
31561 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31565 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
31566 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
31568 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
31572 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
31575 2016-02-04 Christian Bruel <christian.bruel@st.com>
31577 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
31578 * config/arm/arm.c (arm_set_current_function): Likewise.
31580 2016-02-04 Jakub Jelinek <jakub@redhat.com>
31581 Ilya Enkovich <enkovich.gnu@gmail.com>
31582 H.J. Lu <hongjiu.lu@intel.com>
31585 * config/i386/i386.c (convert_scalars_to_vector): Remove
31586 stack alignment fixes.
31587 (ix86_option_override_internal): Disable TARGET_STV if stack
31588 might not be aligned enough.
31589 (ix86_minimum_alignment): Assert that TARGET_STV is false.
31591 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
31593 * config/i386/x86-tune.def: Disable default prefetching
31596 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
31597 Vladimir Makarov <vmakarov@redhat.com>
31600 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
31601 in validating fused toc addresses.
31603 2016-02-03 Jakub Jelinek <jakub@redhat.com>
31606 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
31607 range->m_caret fields if range->m_show_caret_p is false.
31610 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
31611 Force oldval into register if it does not satisfy reg_or_short_operand
31612 predicate. Fix up formatting.
31614 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
31615 Alexandre Oliva <aoliva@redhat.com>
31618 * lra-constraints.c (simplify_operand_subreg): Check additionally
31619 address validity after potential reloading.
31620 (process_address_1): Check insns validity. In case of failure do
31623 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
31626 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
31629 2016-02-02 Jakub Jelinek <jakub@redhat.com>
31631 * wide-int.cc (canonize_uhwi): New function.
31632 (wi::divmod_internal): Use it.
31634 2016-02-02 James Norris <jnorris@codesourcery.com>
31636 * gimplify.c (omp_notice_variable): Add usage check.
31638 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
31640 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
31641 like LE, GE, LT, GT when emitting relational operator.
31643 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
31645 * ira-costs.c (find_costs_and_classes): Add extra argument.
31646 * target.def (ira_change_pseudo_allocno_class): Add parameter.
31647 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
31648 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
31649 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
31650 Add best_class parameter, and return it if not ALL_REGS.
31651 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
31653 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
31654 Update target hook.
31656 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
31658 * config/aarch64/aarch64.c
31659 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
31660 (aarch64_ira_change_pseudo_allocno_class): New function.
31662 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
31665 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
31667 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31669 * config/avr/avr.c (avr_option_override): Set
31670 PARAM_ALLOW_STORE_DATA_RACES to 1.
31672 2016-02-02 Richard Biener <rguenther@suse.de>
31674 PR tree-optimization/69595
31675 * match.pd: Add range test simplifications to true/false.
31677 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
31679 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
31680 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
31683 2016-02-02 Richard Biener <rguenther@suse.de>
31685 PR tree-optimization/69606
31686 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
31687 info on the result before moving a stmt.
31689 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
31691 PR middle-end/68542
31692 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
31693 branch with vector comparison.
31694 * config/i386/sse.md (VI48_AVX): New mode iterator.
31695 (define_expand "cbranch<mode>4): Add support for conditional branch
31696 with vector comparison.
31697 * tree-vect-loop.c (optimize_mask_stores): New function.
31698 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
31699 has_mask_store field of vect_info.
31700 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
31701 vectorized loops having masked stores after vec_info destroy.
31702 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
31703 correspondent macros.
31704 (optimize_mask_stores): Add prototype.
31706 2016-02-02 Alan Modra <amodra@gmail.com>
31709 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
31712 2016-02-02 Alan Modra <amodra@gmail.com>
31715 * config/rs6000/rs6000.c (need_toc_init): New var, set it
31716 whenever toc_label_name used.
31717 (rs6000_file_start): Don't set up toc section here,
31718 (rs6000_output_function_epilogue): do so here instead,
31719 (rs6000_xcoff_file_start): and here.
31720 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
31721 (load_toc_aix_di): Likewise.
31723 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31725 PR rtl-optimization/69592
31726 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
31727 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
31728 (num_sign_bit_copies_binary_arith_p): New inline function.
31729 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
31731 2016-02-01 Jeff Law <law@redhat.com>
31733 PR tree-optimization/69580
31734 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
31735 * tree-ssa-threadbackward.c
31736 (fsm_find_control_statement_thread_paths): Do not try to walk
31737 through large PHI nodes.
31739 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31741 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
31742 when count is incremented above limit, don't analyze further
31745 * omp-low.c (oacc_parse_default_dims): Avoid
31746 -Wsign-compare warning, make sure value fits into int
31747 rather than just unsigned int.
31749 2016-02-01 Bin Cheng <bin.cheng@arm.com>
31751 PR tree-optimization/67921
31752 * fold-const.c (split_tree): New parameters. Convert pointer
31753 type variable part to proper type before negating.
31754 (fold_binary_loc): Pass new arguments to split_tree.
31756 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
31758 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
31759 (nvptx_goacc_validate_dims): Extend to handle global defaults.
31760 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
31761 * doc/tm.texti: Rebuilt.
31762 * doc/invoke.texi (fopenacc-dim): Document.
31763 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
31764 (append_compiler_options): Likewise.
31765 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
31766 (oacc_parse_default_dims): New.
31767 (oacc_validate_dims): Add USED arg. Select non-unity default when
31769 (oacc_loop_fixed_partitions): Return mask of used partitions.
31770 (oacc_loop_auto_partitions): Emit dump info.
31771 (oacc_loop_partition): Return mask of used partitions.
31772 (execute_oacc_device_lower): Parse default dimension arg. Adjust
31773 loop partitioning and validation calls.
31775 2016-02-01 Richard Biener <rguenther@suse.de>
31777 PR middle-end/69556
31778 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
31780 2016-02-01 Richard Biener <rguenther@suse.de>
31782 PR tree-optimization/69574
31783 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
31784 of asserting return chrec_dont_know.
31786 2016-02-01 Martin Liska <mliska@suse.cz>
31788 * mem-stats-traits.h: Add copyright header.
31789 * mem-stats.h: Likewise.
31791 2016-02-01 Richard Biener <rguenther@suse.de>
31793 PR tree-optimization/69579
31794 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
31795 Do not propagate through abnormal PHI results.
31797 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
31799 * postreload.c (reload_cse_simplify): Remove dead code.
31801 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31803 PR rtl-optimization/69570
31804 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
31805 if there is more than one set, not if there is a single set.
31807 2016-02-01 Richard Henderson <rth@redhat.com>
31810 * combine.c (make_compound_operation): When looking through a
31811 subreg, make sure to re-extend to the width of the outer mode.
31813 2016-01-30 Jakub Jelinek <jakub@redhat.com>
31815 PR tree-optimization/69546
31816 * wide-int.cc (wi::divmod_internal): For unsigned division
31817 where both operands fit into uhwi, if o1 is 1 and o0 has
31818 msb set, if divident_prec is larger than bits per hwi,
31819 clear another quotient word and return 2 instead of 1.
31820 Similarly for remainder with msb in HWI set, if dividend_prec
31821 is larger than bits per hwi.
31823 2016-01-29 Martin Jambor <mjambor@suse.cz>
31825 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
31826 Use short lowercase names.
31827 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
31828 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
31829 acq_rel one. Protect warning agains segfaults if
31830 get_memory_order_name returns NULL.
31831 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
31832 with release semantics. Do not warn if get_memory_order already did.
31833 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
31834 semantics. Fix check for relaxed or acquire semantics. Do not warn
31835 if get_memory_order already did.
31837 2016-01-29 Sebastian Pop <s.pop@samsung.com>
31839 * doc/install.texi: Document that isl-0.16 is supported.
31841 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
31844 * config/i386/constraints.md (Bm): Describe as special memory
31846 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
31847 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31848 * genpreds.c (struct constraint_data): Add is_special_memory.
31849 (have_special_memory_constraints, special_memory_start): New
31851 (special_memory_end): Ditto.
31852 (add_constraint): Add new arg is_special_memory. Add code to
31853 process its true value. Update have_special_memory_constraints.
31854 (process_define_constraint): Pass the new arg.
31855 (process_define_register_constraint): Ditto.
31856 (choose_enum_order): Process special memory.
31857 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
31858 function insn_extra_special_memory_constraint.
31859 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31860 * gensupport.c (process_rtx): Process
31861 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31862 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
31863 * ira-lives.c (single_reg_class): Use
31864 insn_extra_special_memory_constraint.
31865 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
31866 * lra-constraints.c (process_alt_operands): Ditto.
31867 (curr_insn_transform): Use insn_extra_special_memory_constraint.
31868 * recog.c (asm_operand_ok, preprocess_constraints): Process
31870 * reload.c (find_reloads): Ditto.
31871 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
31872 * stmt.c (parse_input_constraint): Use
31873 insn_extra_special_memory_constraint.
31875 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
31878 * lra-splill.c (lra_final_code_change): Revert r229087 by
31879 removing all sub-registers.
31881 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
31884 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
31886 2016-01-29 Jakub Jelinek <jakub@redhat.com>
31889 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
31890 SSE1, copy target into the temporary reg first before recursing
31893 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
31895 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
31898 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
31900 * ginclude/stdarg.h: Test __cplusplus instead of
31901 __GXX_EXPERIMENTAL_CXX0X__.
31903 2016-01-29 Richard Biener <rguenther@suse.de>
31905 PR tree-optimization/69547
31906 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
31907 Do not mark clobbers necessary.
31908 (mark_all_reaching_defs_necessary_1): Likewise.
31910 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
31912 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
31913 declaration name with %qs and print it in both error messages.
31914 Also fix indentation.
31916 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
31919 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
31920 trailing blank line from error message.
31922 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
31925 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
31928 2016-01-29 Richard Biener <rguenther@suse.de>
31930 PR middle-end/69537
31931 * match.pd: Allow all integral types when simplifying a
31932 widening or sign-changing conversion.
31934 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31936 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
31937 back to setting codegen_error to fail codegen.
31939 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
31942 * config/i386/constraints.md (C): Only accept constant zero operand.
31943 (BC): New constraint.
31944 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
31945 instead of C constraint.
31946 * doc/md.texi (Machine Constraints): Update description
31949 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
31952 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
31954 2016-01-28 Jakub Jelinek <jakub@redhat.com>
31956 PR middle-end/69542
31957 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
31960 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
31962 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
31963 branches if using guessed profile.
31965 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
31967 * graphite-optimize-isl.c (optimize_isl): Fix dump.
31969 2016-01-28 Richard Henderson <rth@redhat.com>
31972 * config/aarch64/aarch64-modes.def (CC_Cmode): New
31973 * config/aarch64/aarch64-protos.h: Update.
31974 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
31975 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
31976 (aarch64_get_condition_code_1): Handle CC_Cmode.
31977 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
31978 (*add<mode>3_compareC_cconly_imm): New.
31979 (*add<mode>3_compareC_cconly): New.
31980 (*add<mode>3_compareC_imm): New.
31981 (add<mode>3_compareC): New.
31982 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
31983 to be first. Use aarch64_carry_operation.
31984 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
31985 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
31986 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
31987 (subti3): Use subdi3_compare1.
31988 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
31989 (sub<mode>3_compare1): New.
31990 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
31991 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
31992 (*subsi3_carryin_uxtw): Likewise.
31993 (*ngc<mode>, *ngcsi_uxtw): Likewise.
31994 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
31995 * config/aarch64/iterators.md (DWI): New.
31996 * config/aarch64/predicates.md (aarch64_carry_operation): New.
31997 (aarch64_borrow_operation): New.
31999 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32001 * graphite-optimize-isl.c (optimize_isl): Print a different debug
32002 message when isl does not return a valid schedule.
32004 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32006 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
32007 Remove comments from class declarations: they are already in the code
32010 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32012 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
32014 (ternary_op_to_tree): Same.
32015 (unary_op_to_tree): Same.
32016 (nary_op_to_tree): Same.
32017 (gcc_expression_from_isl_expr_op): Same.
32018 (gcc_expression_from_isl_expression): Same.
32019 (graphite_create_new_loop): Same.
32020 (graphite_create_new_loop_guard): Same.
32021 (build_iv_mapping): Same.
32022 (graphite_create_new_guard): Same.
32023 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
32024 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
32026 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32028 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
32029 instead of setting codegen_error to fail codegen.
32031 2016-01-28 Jason Merrill <jason@redhat.com>
32033 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
32035 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32037 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
32038 Remove CONST_INT_P check in CCMP cost calculation.
32040 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32042 * config/aarch64/aarch64.c (generic_vector_cost):
32043 Set vec_permute_cost.
32044 (cortexa57_vector_cost): Likewise.
32045 (exynosm1_vector_cost): Likewise.
32046 (xgene1_vector_cost): Likewise.
32047 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
32048 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
32049 Add vec_permute_cost entry.
32051 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32053 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
32055 (add<mode>3_compare0): Likewise.
32056 (addsi3_compare0_uxtw): Likewise.
32057 (add<mode>3nr_compare0): Likewise.
32058 (compare_neg<mode>): Likewise.
32059 (<optab><mode>3): Likewise.
32061 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
32063 * tree-vect-stmts.c (vectorizable_comparison): Add
32064 NULL check for vectype.
32066 2016-01-28 Richard Biener <rguenther@suse.de>
32068 PR tree-optimization/69466
32069 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
32070 Account for PHIs we couldn't duplicate.
32072 2016-01-28 Martin Liska <mliska@suse.cz>
32075 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
32076 instead of ENABLE_VALGRIND_CHECKING.
32078 2016-01-27 Richard Henderson <rth@redhat.com>
32081 * lra-remat.c (subreg_regs): New.
32082 (dump_candidates_and_remat_bb_data): Dump it.
32083 (operand_to_remat): Reject if operand in subreg_regs.
32084 (set_bb_regs): Collect subreg_regs.
32085 (lra_remat): Init and free subreg_regs. Compute
32086 calculate_local_reg_remat_bb_data before create_cands.
32088 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
32091 * config/i386/i386.c (ix86_update_stack_boundary): Don't
32092 change stack_alignment_needed for __tls_get_addr call.
32094 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
32096 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
32098 2016-01-27 Jeff Law <law@redhat.com>
32100 PR tree-optimization/68398
32101 PR tree-optimization/69196
32102 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
32103 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
32104 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
32105 Only count PHIs in the last block in the path. The others will
32106 const/copy propagate away. Add heuristic to allow more irreducible
32107 subloops to be created when it is likely profitable to do so.
32109 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
32110 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
32111 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
32113 2016-01-27 Jakub Jelinek <jakub@redhat.com>
32116 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
32117 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
32118 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
32119 * tree-streamer-in.c: Include asan.h.
32120 (streamer_get_builtin_tree): For builtins in sanitizer
32121 range call initialize_sanitizer_builtins and retry.
32123 2016-01-27 Ian Lance Taylor <iant@google.com>
32125 * common.opt (fkeep-gc-roots-live): New undocumented option.
32126 * tree-ssa-loop-ivopts.c (add_candidate_1): If
32127 -fkeep-gc-roots-live, skip pointers.
32128 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
32131 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
32134 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
32135 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
32137 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
32140 * configure.ac: NetBSD provides SSP in its C library.
32141 * configure: Updated.
32143 2016-01-27 Richard Biener <rguenther@suse.de>
32145 PR tree-optimization/69166
32146 * tree-vect-loop.c (vect_is_simple_reduction): Always check
32147 reduction code for commutativity / associativity.
32149 2016-01-27 Martin Jambor <mjambor@suse.cz>
32151 PR tree-optimization/69355
32152 * tree-sra.c (analyze_access_subtree): Correct hole detection when
32153 total_scalarization fails.
32155 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
32157 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
32160 2016-01-27 Christian Bruel <christian.bruel@st.com>
32163 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
32164 Move arm_reset_previous_fndecl and set_target_option_current_node in
32165 the conditional part. Call save_restore_target_globals.
32166 * config/arm/arm.c (arm_set_current_function):
32167 Refactor to better support #pragma target and attribute mix.
32168 Call save_restore_target_globals.
32169 * config/arm/arm-protos.h (save_restore_target_globals): New function.
32171 2016-01-27 Martin Liska <mliska@suse.cz>
32173 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
32174 reference for an HSA kernel and its host function.
32176 2016-01-27 Jakub Jelinek <jakub@redhat.com>
32178 PR tree-optimization/69399
32179 * wide-int.h (wi::lrshift): For larger precisions, only
32180 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
32182 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
32184 * config/arc/predicates.md (proper_comparison_operator): Reject
32185 constant-constant comparison.
32187 2016-01-26 Tom de Vries <tom@codesourcery.com>
32189 PR tree-optimization/69110
32190 * tree-data-ref.c (initialize_data_dependence_relation): Handle
32191 DR_NUM_DIMENSIONS == 0.
32193 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32194 Sebastian Pop <s.pop@samsung.com>
32196 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
32197 isl_ast_op_cond and isl_ast_op_select.
32198 (gcc_expression_from_isl_expr_op): Same.
32200 2016-01-26 Jason Merrill <jason@redhat.com>
32203 * tree.c (recompute_constructor_flags): Split out from
32205 (verify_constructor_flags): New.
32206 * tree.h: Declare them.
32208 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
32210 PR rtl-optimization/69217
32211 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
32212 are no TYPE_FIELDS set for the record type.
32214 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32217 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
32218 toc_label_name unconditionally.
32219 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
32220 SYMBOL_REF string. Use toc_label_name instead of constructing
32222 (rs6000_elf_declare_function_name): Use toc_label_name instead of
32223 constructing LCTOC1.
32225 2016-01-26 Martin Sebor <msebor@redhat.com>
32228 * doc/extend.texi (Common Type Attributes): Move text that talks about
32229 attribute packed from attribute aligned to the section discussing
32230 the former attribute for clarity.
32232 2016-01-26 Richard Henderson <rth@redhat.com>
32234 PR middle-end/60908
32235 * trans-mem.c (tm_region_init): Mark entry block as visited.
32237 2016-01-26 David Malcolm <dmalcolm@redhat.com>
32240 * diagnostic-show-locus.c (layout::print_source_line): Replace
32241 call to pp_newline with call to layout::print_newline.
32242 (layout::print_annotation_line): Likewise.
32243 (layout::move_to_column): Likewise.
32244 (layout::print_any_fixits): After printing any fixits, print a
32245 trailing newline, if necessary.
32246 (layout::print_newline): New method, resetting any colorization
32248 (diagnostic_show_locus): Move the pp_newline to before the
32249 early bailout. Remove dummy block enclosing the layout instance.
32250 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
32251 of pp_newline_and_flush with pp_flush.
32252 (diagnostic_append_note): Delete use of pp_newline.
32253 (diagnostic_append_note_at_rich_loc): Delete.
32254 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
32255 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
32256 when newline characters are added to the buffer.
32258 2016-01-26 Michael Matz <matz@suse.de>
32260 * configure.ac (ac_cv_std_swap_in_utility): New test.
32261 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
32262 * configure: Regenerate.
32263 * config.in: Regenerate.
32265 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
32267 * config/arc/arc.md (cstoresi4): Force operand into register.
32268 (arcset<code>): Fix predicate.
32269 (arcsetltu): Likewise.
32270 (arcsetgeu): Likewise.
32271 (arcsethi): Likewise.
32272 (arcsetls): Likewise.
32274 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32276 PR tree-optimization/69483
32277 * gimple-fold.c (canonicalize_constructor_val): Return NULL
32278 if base has error_mark_node type.
32280 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
32283 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
32284 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
32286 (vget_lane_f16): Handle big-endian.
32287 (vgetq_lane_f16): Likewise.
32288 (vset_lane_f16): Likewise.
32289 (vsetq_lane_f16): Likewise.
32290 * config/arm/iterators.md (VQXMOV): Add V8HF.
32291 (VDQ): Add V4HF and V8HF.
32292 (V_reg): Handle V4HF and V8HF.
32293 (Is_float_mode): Likewise.
32294 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
32295 neon_vdup_nv8hf): New patterns.
32296 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
32297 Use VD_LANE iterator.
32298 (neon_vld1_dup<mode>): Use VQ2 iterator.
32300 2016-01-26 Nathan Sidwell <nathan@acm.org>
32302 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
32303 (set_oacc_fn_attrib): Add IS_KERNEL arg.
32304 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
32305 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
32306 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
32307 (oacc_validate_dims): Add LEVEL arg, don't return level.
32308 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
32309 oacc_validate_dims.
32310 (execute_oacc_device_lower): Adjust, add more dump output.
32311 * tree-ssa-loop.c (gate_oacc_kernels): Use
32312 oacc_fn_attrib_kernels_p.
32313 * tree-parloops.c (create_parallel_loop): Adjust
32314 set_oacc_fn_attrib call.
32316 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32319 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
32320 (append_compiler_options): Handle -fcilkplus.
32321 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
32323 2016-01-26 Nick Clifton <nickc@redhat.com>
32326 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
32327 been marked as DECL_ONE_ONLY but we do not the means to make it
32328 so, then do not allow it to bind locally.
32330 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32333 * opts.h (parse_sanitizer_options): New prototype.
32334 * opts.c (sanitizer_opts): New array.
32335 (parse_sanitizer_options): New function.
32336 (common_handle_option): Use parse_sanitizer_options.
32338 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
32341 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
32342 alignment adjustment to ...
32343 (ix86_update_stack_boundary): Here. Don't over-align stack for
32345 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
32346 if __tls_get_addr is called.
32348 2016-01-26 Christian Bruel <christian.bruel@st.com>
32350 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
32352 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
32354 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
32356 2016-01-26 Richard Biener <rguenther@suse.de>
32358 PR middle-end/69467
32359 * match.pd: Guard X * CST CMP 0 pattern with single_use.
32361 2016-01-26 Richard Biener <rguenther@suse.de>
32363 PR tree-optimization/69452
32364 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
32365 (move_computations_dom_walker::before_dom_children): Rename
32367 (move_computations_worker): This.
32368 (move_computations): Perform an RPO rather than a DOM walk.
32370 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32373 * combine.c (combine_instructions): For REG_EQUAL note with
32374 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
32375 to the underlying register.
32376 * doc/rtl.texi (REG_EQUAL): Document the behavior of
32377 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
32379 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
32382 * config/aarch64/aarch64-builtins.c
32383 (aarch64_init_simd_builtin_types): Do not set structural
32384 equality to __Poly{8,16,64,128}_t types.
32386 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
32388 PR tree-optimization/69400
32389 * wide-int.cc (wi_pack): Take the precision as argument and
32390 perform canonicalization here rather than in the callers.
32391 Use the main loop to handle all full-width HWIs. Add a
32392 zero HWI if in_len isn't a full result.
32393 (wi::divmod_internal): Update accordingly.
32394 (wi::mul_internal): Likewise. Simplify.
32396 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32397 Sebastian Pop <s.pop@samsung.com>
32399 * graphite-poly.c (apply_poly_transforms): Simplify.
32400 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
32401 (print_isl_map): Same.
32402 (print_isl_union_map): Same.
32403 (print_isl_schedule): New.
32404 (debug_isl_schedule): New.
32405 * graphite-dependences.c (scop_get_reads): Do not call
32406 isl_union_map_add_map that is undocumented isl functionality.
32407 (scop_get_must_writes): Same.
32408 (scop_get_may_writes): Same.
32409 (scop_get_original_schedule): Remove.
32410 (scop_get_dependences): Do not call isl_union_map_compute_flow that
32411 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
32412 (compute_deps): Remove.
32413 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
32414 (debug_schedule_ast): New.
32415 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
32416 set_separate_option.
32417 (graphite_regenerate_ast_isl): Add dump.
32418 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
32419 from scop->transformed_schedule.
32420 (graphite_regenerate_ast_isl): Add more dump.
32421 * graphite-optimize-isl.c (optimize_isl): Set
32422 scop->transformed_schedule. Check whether schedules are equal.
32423 (apply_poly_transforms): Move here.
32424 * graphite-poly.c (apply_poly_transforms): ... from here.
32425 (free_poly_bb): Static.
32426 (free_scop): Static.
32427 (pbb_number_of_iterations_at_time): Remove.
32428 (print_isl_ast): New.
32429 (debug_isl_ast): New.
32430 (debug_scop_pbb): New.
32431 * graphite-scop-detection.c (print_edge): Move.
32432 (print_sese): Move.
32433 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
32434 (build_scop_scattering): Remove.
32435 (create_pw_aff_from_tree): Assert instead of bailing out.
32436 (add_condition_to_pbb): Remove unused code, do not fail.
32437 (add_conditions_to_domain): Same.
32438 (add_conditions_to_constraints): Remove.
32439 (build_scop_context): New.
32440 (add_iter_domain_dimension): New.
32441 (build_iteration_domains): Initialize pbb->iterators.
32442 Call add_conditions_to_domain.
32445 (index_outermost_in_loop): New.
32446 (index_pbb_in_loop): New.
32447 (outermost_pbb_in): New.
32448 (add_in_sequence): New.
32449 (add_outer_projection): New.
32450 (outer_projection_mupa): New.
32451 (add_loop_schedule): New.
32452 (build_schedule_pbb): New.
32453 (build_schedule_loop): New.
32454 (embed_in_surrounding_loops): New.
32455 (build_schedule_loop_nest): New.
32456 (build_original_schedule): New.
32457 (build_poly_scop): Call build_original_schedule.
32458 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
32459 (free_poly_dr): Remove.
32460 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
32461 (free_poly_bb): Remove.
32462 (debug_loop_vec): Remove.
32463 (print_isl_ast): Declare.
32464 (debug_isl_ast): Declare.
32465 (scop_do_interchange): Remove.
32466 (scop_do_strip_mine): Remove.
32467 (scop_do_block): Remove.
32468 (flatten_all_loops): Remove.
32469 (optimize_isl): Remove.
32470 (pbb_number_of_iterations_at_time): Remove.
32471 (debug_scop_pbb): Declare.
32472 (print_schedule_ast): Declare.
32473 (debug_schedule_ast): Declare.
32474 (struct scop): Remove schedule. Add original_schedule,
32475 transformed_schedule.
32476 (free_gimple_poly_bb): Remove.
32477 (print_generated_program): Remove.
32478 (debug_generated_program): Remove.
32479 (unify_scattering_dimensions): Remove.
32480 * sese.c (print_edge): ... here.
32481 (print_sese): ... here.
32482 (debug_edge): ... here.
32483 (debug_sese): ... here.
32484 * sese.h (print_edge): Declare.
32485 (print_sese): Declare.
32486 (dump_edge): Declare.
32487 (dump_sese): Declare.
32489 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32490 Sebastian Pop <s.pop@samsung.com>
32492 * Makefile.in: Set ISLVER in site.exp.
32494 2016-01-25 Jakub Jelinek <jakub@redhat.com>
32496 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
32497 DECL_VALUE_EXPR of new_var even for the non-array case. Look
32498 through DECL_VALUE_EXPR for expansion.
32500 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
32502 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
32503 the frame info after reload completed.
32505 2016-01-25 Jeff Law <law@redhat.com>
32507 PR tree-optimization/69196
32508 PR tree-optimization/68398
32509 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
32510 tree-ssa-threadupdate.c.
32511 (determine_bb_domination_status): Prototype
32512 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
32513 (determine_bb_domination_status): No longer static.
32514 (valid_jump_thread_path): Remove code to detect characteristics
32515 of the jump thread path not associated with correctness.
32516 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
32517 Correct test for thread path length. Count PHIs for real operands as
32518 statements that need to be copied. Do not count ASSERT_EXPRs.
32519 Look at all the blocks in the thread path. Compute and selectively
32520 filter thread paths based on threading through the latch, threading
32521 a multiway branch or crossing a multiway branch.
32523 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32525 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
32526 decl with __attribute__ ((unused)) annotation.
32528 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
32531 * tree-vect-stmts.c (vectorizable_condition): Check vectype
32532 of operands is compatible with a statement vectype.
32534 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
32536 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
32537 improve wording for mixed storage order support.
32539 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
32541 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
32542 (vcvt_u64_f64): Likewise.
32543 (vcvta_s64_f64): Likewise.
32544 (vcvta_u64_f64): Likewise.
32545 (vcvtm_s64_f64): Likewise.
32546 (vcvtm_u64_f64): Likewise.
32547 (vcvtn_s64_f64): Likewise.
32548 (vcvtn_u64_f64): Likewise.
32549 (vcvtp_s64_f64): Likewise.
32550 (vcvtp_u64_f64): Likewise.
32552 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
32554 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
32555 (arc_init): Check validity mll64 option.
32556 (arc_save_restore): Use double load/store instruction.
32557 (arc_expand_movmem): Likewise.
32558 (arc_split_move): Don't split if we have double load/store
32559 instructions. Returns a boolean.
32560 (arc_process_double_reg_moves): Change function to return boolean
32561 instead of a sequence of instructions.
32562 (arc_dwarf_register_span): New function.
32563 * config/arc/arc-protos.h (arc_split_move): Change prototype.
32564 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
32565 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
32566 (*movdf_insn): Likewise.
32567 * config/arc/arc.opt (mll64): New option.
32568 * config/arc/predicates.md (even_register_operand): New predicate.
32569 * doc/invoke.texi (ARC Options): Add mll64 documentation.
32571 2016-01-25 Richard Biener <rguenther@suse.de>
32574 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
32575 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
32577 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
32579 2016-01-25 Richard Biener <rguenther@suse.de>
32581 PR tree-optimization/69376
32582 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
32584 (VN_INFO_ANTI_RANGE_P): New inline.
32585 (VN_INFO_RANGE_TYPE): Likewise.
32586 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
32587 SSA_NAME_ANTI_RANGE_P.
32588 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
32589 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32590 Properly query VN_INFO_RANGE_TYPE.
32592 2016-01-25 Nick Clifton <nickc@redhat.com>
32595 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
32597 2016-01-23 Tom de Vries <tom@codesourcery.com>
32599 PR tree-optimization/69426
32600 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
32603 2016-01-23 Jakub Jelinek <jakub@redhat.com>
32605 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
32606 "the the" with "the" in the comments.
32607 * ipa-devirt.c (build_type_inheritance_graph,
32608 update_type_inheritance_graph): Likewise.
32609 * tree.c (build_function_type_list_1): Likewise.
32610 * cfgloopmanip.c (scale_loop_profile): Likewise.
32611 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
32612 * gimple-ssa-split-paths.c
32613 (find_block_to_duplicate_for_splitting_paths): Likewise.
32614 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
32615 * expr.c (convert_move): Likewise.
32616 * var-tracking.c (vt_stack_adjustments): Likewise.
32617 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
32618 * tree-vrp.c (test_for_singularity): Likewise.
32620 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
32621 directly instead of building a temporary tree.
32624 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
32625 remove <algorithm> include.
32627 2016-01-22 Jakub Jelinek <jakub@redhat.com>
32630 * config/i386/i386.c: Include dojump.h.
32631 (expand_small_movmem_or_setmem,
32632 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
32634 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
32635 if dynamic_check != -1.
32637 2016-01-21 Jeff Law <law@redhat.com>
32639 PR middle-end/69347
32640 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
32641 record_temporary_equivalences. Rewritten to avoid unnecessary calls
32642 into dominated_by_p.
32643 (cprop_into_successor_phis): Avoid unnecessary tests.
32645 2016-01-22 Richard Henderson <rth@redhat.com>
32648 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
32649 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
32651 2016-01-22 Michael Matz <matz@suse.de>
32653 * system.h (string, algorithm): Include only conditionally.
32654 (new): Include always under C++.
32655 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
32656 * final.c (toplevel): Ditto.
32657 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
32658 * genconditions.c (write_header): Make gencondmd.c define
32660 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
32662 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
32663 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
32665 2016-01-22 Christian Bruel <christian.bruel@st.com>
32668 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
32670 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32673 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
32674 define_insn_and_split. Ensure operands[1] and operands[0] do not
32675 get assigned the same register.
32677 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
32679 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
32681 2016-01-22 Christian Bruel <christian.bruel@st.com>
32683 * config/arm/arm-c.c (arm_pragma_target_parse):
32684 Remove warn_builtin_macro_redefined overwrite.
32686 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
32688 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
32689 flag_non_call_exceptions compatibility.
32691 2016-01-22 Jakub Jelinek <jakub@redhat.com>
32694 * dwarf2out.c (add_child_die_after): New function.
32695 (dwarf_qual_info_t): New type.
32696 (dwarf_qual_info): New variable.
32697 (qualified_die_p): New function.
32698 (modified_type_die): For -fdebug-types-section, ensure
32699 canonical order of qualifiers. Put qualified DIEs adjacent
32700 to the corresponding non-qualified type DIE and search there
32701 for existing qualified DIEs.
32703 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
32705 * doc/extend.texi (scalar_storage_order type attribute): Document
32706 restriction on type punning and aliasing, and remove future tense.
32708 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
32711 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
32714 2016-01-21 Jeff Law <law@redhat.com>
32716 PR middle-end/69347
32717 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
32718 useless call to record_temporary_equivalences.
32719 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
32720 allocate 10 slots in the bb_path vector and let it grow as needed.
32721 (fsm_find_control_statement_thread_paths): Similarly for the next_path
32724 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
32726 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
32728 * configure: Regenerate.
32730 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
32732 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
32733 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
32735 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
32737 PR middle-end/66178
32738 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
32739 drop EXPAND_INITIALIZER.
32740 * rtl.h (contains_symbolic_reference_p): Declare.
32741 * rtlanal.c (contains_symbolic_reference_p): New function.
32742 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
32743 a subtraction into a NOT if symbolic constants are involved.
32745 2016-01-21 Anton Blanchard <anton@samba.org>
32746 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32749 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
32751 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
32754 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
32756 * config/microblaze/microblaze.c
32757 (get_branch_target): New.
32758 (insert_wic_for_ilb_runout): New.
32760 (microblaze_machine_dependent_reorg): New.
32761 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
32762 * config/microblaze/microblaze.md
32763 (UNSPEC_IPREFETCH): Define.
32764 (iprefetch): New pattern
32765 * config/microblaze/microblaze.opt
32766 (mxl-prefetch): New flag.
32768 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
32770 * config/microblaze/microblaze.h
32771 (FIXED_REGISTERS): Update in macro.
32772 (CALL_USED_REGISTERS): Update in macro.
32774 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
32776 PR rtl-optimization/68920
32777 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
32780 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
32782 PR rtl-optimization/68990
32783 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
32784 pseudo instead of inheritance ones.
32786 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32787 Nick Clifton <nickc@redhat.com>
32791 * config/mips/mips.c (mips_compute_frame_info): Initialise
32792 args_size and hard_frame_pointer_offset fields of the frame
32793 structure before calling mips_global_pointer.
32795 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
32797 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
32799 * configure: Regenerate.
32801 2016-01-21 Richard Biener <rguenther@suse.de>
32803 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
32805 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
32807 * config/s390/s390.c (s390_asm_declare_function_size): Add code
32808 to actually emit the .size directive.
32810 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
32811 Jakub Jelinek <jakub@redhat.com>
32815 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
32816 args array size by one to avoid buffer overflow.
32818 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
32820 * config/s390/s390.md (pool_section_start): Use switch_to_section
32821 to select proper read-only data section instead of hardcoding
32823 (pool_section_end): Use switch_to_section to match the above.
32825 2016-01-21 Richard Biener <rguenther@suse.de>
32827 PR tree-optimization/69378
32828 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
32829 (set_ssa_val_to): Use it for dominance checks taking into
32830 account not executable edges.
32832 2016-01-21 Jakub Jelinek <jakub@redhat.com>
32835 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
32836 for bitsize instead of GET_MODE_PRECISION (mode).
32838 2016-01-20 Martin Sebor <msebor@redhat.com>
32841 * extend.texi (__sync Builtins): Clarify the semantics of
32842 __sync_fetch_and_OP built-ins on pointers.
32843 (__atomic Builtins): Same.
32845 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32846 Sebastian Pop <s.pop@samsung.com>
32848 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
32849 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
32850 (is_valid_rename): Same.
32851 (translate_isl_ast_to_gimple::get_rename): Same.
32852 (translate_isl_ast_to_gimple::rename_all_uses): Same.
32853 (translate_isl_ast_to_gimple::rename_uses): Same.
32854 (get_new_name): Check for close_phi nodes.
32855 (copy_loop_phi_args): Use phi_node_kind.
32856 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
32857 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
32859 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32860 Sebastian Pop <s.pop@samsung.com>
32862 Revert commit r229783.
32863 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
32864 Remove use of parameter_rename_map.
32865 (copy_def): Remove.
32866 (copy_internal_parameters): Remove.
32867 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
32868 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
32869 (free_sese_info): Do not free parameter_rename_map.
32870 (set_rename): Do not use parameter_rename_map.
32871 (rename_uses): Update call to set_rename.
32872 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
32873 * sese.h (parameter_rename_map_t): Remove.
32874 (struct sese_info_t): Remove field parameter_rename_map.
32876 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32877 Sebastian Pop <s.pop@samsung.com>
32879 * graphite-isl-ast-to-gimple.c: Fix comment.
32880 * graphite-scop-detection.c (defined_in_loop_p): New.
32881 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
32882 names defined in loop.
32884 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32885 Sebastian Pop <s.pop@samsung.com>
32887 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
32888 Discard unstructured if-then-else regions.
32890 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32891 Sebastian Pop <s.pop@samsung.com>
32893 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
32894 (cleanup_loop_iter_dom): Remove.
32895 (build_loop_iteration_domains): Remove.
32896 (build_scop_context): Remove.
32897 (build_scop_iteration_domain): Remove.
32898 (add_loop_constraints): New.
32899 (build_iteration_domains): New.
32900 (build_poly_scop): Call build_iteration_domains.
32902 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32903 Sebastian Pop <s.pop@samsung.com>
32905 * graphite-scop-detection.c
32906 (scop_detection::harmful_loop_in_region): Free dom and loops.
32907 (scop_detection::loop_body_is_valid_scop): Free bbs.
32909 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32910 Sebastian Pop <s.pop@samsung.com>
32912 * graphite-scop-detection.c (record_loop_in_sese): New.
32913 (gather_bbs::before_dom_children): Call record_loop_in_sese.
32914 (build_scops): Remove call to build_sese_loop_nests.
32915 * sese.c (sese_record_loop): Remove.
32916 (build_sese_loop_nests): Remove.
32917 (new_sese_info): Remove region->loops.
32918 (free_sese_info): Same.
32919 * sese.h (sese_contains_loop): Same.
32920 (build_sese_loop_nests): Remove.
32921 (sese_contains_loop): Remove.
32923 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32924 Sebastian Pop <s.pop@samsung.com>
32926 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
32927 loop_is_valid_in_scop.
32928 (scop_detection::harmful_stmt_in_region): Renamed
32929 harmful_loop_in_region.
32930 Call loop_is_valid_in_scop.
32932 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32933 Sebastian Pop <s.pop@samsung.com>
32935 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
32938 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32939 Sebastian Pop <s.pop@samsung.com>
32941 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
32942 * graphite.h (struct poly_bb): Remove field is_reduction.
32943 (PBB_IS_REDUCTION): Remove.
32945 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32946 Sebastian Pop <s.pop@samsung.com>
32948 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
32949 (add_pdr_constraints): Same.
32950 (scop_get_reads): Same.
32951 (scop_get_must_writes): Same.
32952 (scop_get_may_writes): Same.
32953 (scop_get_original_schedule): Same.
32954 (extend_schedule): Same.
32955 (apply_schedule_on_deps): Same.
32956 (carries_deps): Same.
32957 (compute_deps): Same.
32958 (scop_get_dependences): Same.
32959 * graphite-isl-ast-to-gimple.c
32960 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
32961 * graphite-optimize-isl.c (get_schedule_for_band): Same.
32962 (get_schedule_for_band_list): Same.
32963 (get_schedule_map): Same.
32964 (apply_schedule_map_to_scop): Same.
32965 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
32966 (build_loop_iteration_domains): Same.
32967 (add_condition_to_pbb): Same.
32968 (add_param_constraints): Same.
32969 (pdr_add_memory_accesses): Same.
32970 (pdr_add_data_dimensions): Same.
32972 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
32974 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
32977 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
32979 * common.opt (feliminate-dwarf2-dups): Replace references to
32980 "DWARF 2" with just "DWARF".
32981 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
32982 * doc/extend.texi: Likewise.
32983 * doc/cpp.texi: Likewise.
32984 * doc/invoke.texi: Likewise.
32985 (Option Summary): Add -gdwarf to list of Debugging Options.
32986 (Debugging Options): Document -gdwarf.
32987 * doc/contrib.texi: Spell "DWARF" like that.
32989 2016-01-21 Jakub Jelinek <jakub@redhat.com>
32991 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
32992 warning. Fix up formatting.
32994 PR middle-end/67653
32995 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
32996 attempt to mark memory input operand addressable and
32997 call prepare_gimple_addressable in that case. Don't adjust
32998 input_location for diagnostics, use error_at instead.
33000 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
33002 * config/rs6000/ppc-auxv.h: New file.
33003 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
33004 (cpu_is): Likewise.
33005 (cpu_supports): Likewise.
33006 * config/rs6000/rs6000.c: include "ppc-auxv.h".
33007 (cpu_is_info): New variable.
33008 (cpu_supports_info): Likewise.
33009 (tcb_verification_symbol): Likewise.
33010 (cpu_builtin_p): Likewise.
33011 (cpu_expand_builtin): New function.
33012 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
33013 (rs6000_init_builtins): Likewise.
33014 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
33015 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
33016 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
33017 * configure: Regenerate.
33018 * config.in: Likewise.
33019 * doc/extend.texi (PowerPC Built-in Functions): Document
33020 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
33022 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
33025 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
33027 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
33030 2016-01-20 Richard Henderson <rth@redhat.com>
33036 * tree.c (tm_define_builtin): New.
33037 (find_tm_vector_type): New.
33038 (build_tm_vector_builtins): New.
33039 (build_common_builtin_nodes): Call it.
33041 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
33043 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
33044 (arm_fp_ok): Likewise.
33045 (arm_fp): Likewise.
33046 (arm_crypto): Likewise.
33048 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
33049 Richard Biener <rguenther@suse.de>
33051 PR tree-optimization/69328
33052 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
33053 vectors have same number of elements.
33054 (vectorizable_condition): Fix masked version recognition.
33056 2016-01-20 Richard Biener <rguenther@suse.de>
33058 PR tree-optimization/69345
33059 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
33060 (VN_INFO_PTR_INFO): Likewise.
33061 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
33062 info when it is equal between non-dominating SSA names.
33063 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33064 Make sure to look at original SSA infos.
33066 2016-01-20 Jeff Law <law@redhat.com>
33069 * config/m68k/predicates.md (pow2_m1_operand): New predicate
33071 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
33072 (pc_or_label_operand): New predicate.
33073 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
33074 tests for small integers that are 2^n - 1.
33076 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
33078 * doc/invoke.texi (Options Summary): Add '.' after @xref.
33080 2016-01-19 Jeff Law <law@redhat.com>
33082 PR middle-end/69347
33083 * tree-ssa-threadbackwards.c
33084 (fsm_find_control_statement_thread_paths): Do not try to lookup
33085 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
33087 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
33089 * doc/lto.texi: Remove text that says only Gold has linker plugin
33092 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
33094 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
33095 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
33096 the DIE accordingly.
33097 (modified_type_die): Add REVERSE parameter and pass it recursively,
33098 as well as to base_type_die. Adjust presence check accordingly.
33099 (base_type_for_mode): Adjust call to modified_type_die.
33100 (add_type_attribute): Add REVERSE parameter and pass it to
33102 (generic_parameter_die): Adjust call to add_type_attribute.
33103 (add_scalar_info): Likewise.
33104 (add_subscript_info): Likewise.
33105 (gen_array_type_die): Likewise.
33106 (gen_descr_array_type_die): Likewise.
33107 (gen_entry_point_die): Likewise.
33108 (gen_enumeration_type_die): Likewise.
33109 (gen_formal_parameter_die): Likewise.
33110 (gen_subprogram_die): Likewise.
33111 (gen_variable_die ): Likewise.
33112 (gen_const_die): Likewise.
33113 (gen_field_die): Likewise.
33114 (gen_pointer_type_die): Likewise.
33115 (gen_reference_type_die): Likewise.
33116 (gen_ptr_to_mbr_type_die): Likewise.
33117 (gen_inheritance_die): Likewise.
33118 (gen_subroutine_type_die): Likewise.
33119 (gen_typedef_die): Likewise.
33120 (force_type_die): Adjust call to modified_type_die.
33122 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
33124 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
33125 flow throughout the file. Fix broken link to Objective-C 2.0
33127 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
33130 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33132 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
33134 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33137 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
33138 (maybe_record_node): Record cxa_pure_virtual as the only possible
33139 target if there are not ohter candidates.
33140 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
33142 2016-01-19 Richard Biener <rguenther@suse.de>
33144 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
33145 (get_memory_order): Likewise.
33147 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
33149 * tree-vect-stmts.c (vectorizable_store): Check
33152 2016-01-19 David Malcolm <dmalcolm@redhat.com>
33155 * gcc.c (driver::decode_argv): Add call to
33156 init_opts_obstack before init_options_struct.
33157 * opts.c (init_opts_obstack): Remove idempotency.
33158 (init_options_struct): Replace call to init_opts_obstack
33159 with a gcc_assert to verify that it has already been called.
33160 * toplev.c (toplev::main): Add call to init_opts_obstack before
33161 calls to init_options_struct.
33162 (toplev::finalize): Move cleanup of opts_obstack next to
33163 cleanup of save_decoded_options, clearing the latter, and
33164 save_decoded_options_count.
33166 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33169 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
33170 attribute to unconditional. Remove %? from output template.
33172 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33173 Jiong Wang <jiong.wang@arm.com>
33175 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
33176 generated from different expand order.
33178 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33180 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
33181 Add support for CCMP costing.
33183 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33185 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
33186 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
33187 (fccmpe<mode>): Likewise.
33188 (fcmp): Rename to fcmp and globalize pattern.
33190 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
33191 (aarch64_gen_ccmp_next): Add FP support.
33193 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33195 * target.def (gen_ccmp_first): Update documentation.
33196 (gen_ccmp_next): Likewise.
33197 * doc/tm.texi (gen_ccmp_first): Update documentation.
33198 (gen_ccmp_next): Likewise.
33199 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
33200 expand_ccmp_expr_1. Improve comments.
33201 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
33202 (ccmp_ior<mode>): Remove pattern.
33203 (cmp<mode>): Remove expand.
33204 (cmp): Globalize pattern.
33205 (cstorecc4): Use cc_register.
33206 (mov<mode>cc): Remove ccmp_cc_register check.
33207 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
33208 Simplify after removal of CC_DNE/* modes.
33209 (aarch64_ccmp_mode_to_code): Remove.
33210 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
33211 In 'k' case use integer as condition.
33212 (aarch64_nzcv_codes): Remove inverted cases.
33213 (aarch64_code_to_ccmode): Remove.
33214 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
33215 comparison with CC register to be used in folowing CCMP/branch/CSEL.
33216 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
33217 pattern. Return the comparison with CC register. Invert conditions
33218 when bitcode is OR.
33219 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
33220 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
33222 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33224 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
33225 instrumented_version.
33227 2016-01-19 Richard Biener <rguenther@suse.de>
33229 PR tree-optimization/69336
33230 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
33231 handled components with get_ref_base_and_extent.
33232 (equal_mem_array_ref_p): Adjust.
33234 2016-01-19 Jakub Jelinek <jakub@redhat.com>
33237 * shrink-wrap.c: Include valtrack.h.
33238 (move_insn_for_shrink_wrap): Add DEBUG argument. If
33239 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
33240 in between insn and where it will be moved to. Call
33241 dead_debug_insert_temp.
33242 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
33243 first and dead_debug_local_finish at the end.
33244 For uses and defs bitmap, handle all regs in between REGNO and
33245 END_REGNO, not just the first one.
33247 2016-01-19 Richard Biener <rguenther@suse.de>
33249 PR tree-optimization/69352
33250 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
33251 (equal_mem_array_ref_p): Constrain size and max size properly.
33252 Compare the reverse flag.
33254 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
33256 * ira.c (ira): Update regstat data if we deleted insns.
33258 2016-01-19 Jakub Jelinek <jakub@redhat.com>
33260 PR rtl-optimization/68955
33261 PR rtl-optimization/64557
33262 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
33263 here. Fix up formatting.
33264 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
33266 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33269 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
33270 assume that the node has body.
33271 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
33274 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33276 * lto-streamer-out.c (lto_output): Do not stream instrumentation
33279 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33281 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
33282 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
33284 2016-01-19 Martin Jambor <mjambor@suse.cz>
33285 Martin Liska <mliska@suse.cz>
33286 Michael Matz <matz@suse.de>
33288 * Makefile.in (OBJS): Add new source files.
33289 (GTFILES): Add hsa.c.
33290 * common.opt (disable_hsa): New variable.
33291 (-Whsa): New warning.
33292 * config.in (ENABLE_HSA): New.
33293 * configure.ac: Treat hsa differently from other accelerators.
33294 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
33295 $enable_offloading.
33296 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
33297 * doc/install.texi (Configuration): Document --with-hsa-runtime,
33298 --with-hsa-runtime-include, --with-hsa-runtime-lib and
33299 --with-hsa-kmt-lib.
33300 * doc/invoke.texi (-Whsa): Document.
33301 (hsa-gen-debug-stores): Likewise.
33302 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
33303 to invoke offload compiler for hsa acclerator.
33304 * opts.c (common_handle_option): Determine whether HSA offloading
33305 should be performed.
33306 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
33307 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
33308 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
33309 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
33310 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
33311 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
33312 GF_OMP_FOR_KIND_GRID_LOOP.
33313 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
33314 (pp_gimple_stmt_1): Likewise.
33315 * gimple-walk.c (walk_gimple_stmt): Likewise.
33316 * gimple.c (gimple_build_omp_grid_body): New function.
33317 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
33318 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
33319 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
33320 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
33321 GF_OMP_TEAMS_GRID_PHONY.
33322 (gimple_statement_omp_single_layout): Updated comments.
33323 (gimple_build_omp_grid_body): New function.
33324 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
33325 (gimple_omp_for_grid_phony): New function.
33326 (gimple_omp_for_set_grid_phony): Likewise.
33327 (gimple_omp_parallel_grid_phony): Likewise.
33328 (gimple_omp_parallel_set_grid_phony): Likewise.
33329 (gimple_omp_teams_grid_phony): Likewise.
33330 (gimple_omp_teams_set_grid_phony): Likewise.
33331 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
33332 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
33333 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
33334 (BUILT_IN_GOMP_TARGET): Updated type.
33335 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
33336 (adjust_for_condition): New function.
33337 (get_omp_for_step_from_incr): Likewise.
33338 (extract_omp_for_data): Moved parts to adjust_for_condition and
33339 get_omp_for_step_from_incr.
33340 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
33341 (fixup_child_record_type): Bail out if receiver_decl is NULL.
33342 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
33343 (scan_omp_parallel): Do not create child functions for phony
33345 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
33346 (scan_omp_1_op): Checking assert we are not remapping to
33347 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
33348 (parallel_needs_hsa_kernel_p): New function.
33349 (expand_parallel_call): Register apprpriate parallel child
33350 functions as HSA kernels.
33351 (grid_launch_attributes_trees): New type.
33352 (grid_attr_trees): New variable.
33353 (grid_create_kernel_launch_attr_types): New function.
33354 (grid_insert_store_range_dim): Likewise.
33355 (grid_get_kernel_launch_attributes): Likewise.
33356 (get_target_argument_identifier_1): Likewise.
33357 (get_target_argument_identifier): Likewise.
33358 (get_target_argument_value): Likewise.
33359 (push_target_argument_according_to_value): Likewise.
33360 (get_target_arguments): Likewise.
33361 (expand_omp_target): Call get_target_arguments instead of looking
33362 up for teams and thread limit.
33363 (grid_expand_omp_for_loop): New function.
33364 (grid_arg_decl_map): New type.
33365 (grid_remap_kernel_arg_accesses): New function.
33366 (grid_expand_target_kernel_body): New function.
33367 (expand_omp): Call it.
33368 (lower_omp_for): Do not emit phony constructs.
33369 (lower_omp_taskreg): Do not emit phony constructs but create for them
33370 a temporary variable receiver_decl.
33371 (lower_omp_taskreg): Do not emit phony constructs.
33372 (lower_omp_teams): Likewise.
33373 (lower_omp_grid_body): New function.
33374 (lower_omp_1): Call it.
33375 (grid_reg_assignment_to_local_var_p): New function.
33376 (grid_seq_only_contains_local_assignments): Likewise.
33377 (grid_find_single_omp_among_assignments_1): Likewise.
33378 (grid_find_single_omp_among_assignments): Likewise.
33379 (grid_find_ungridifiable_statement): Likewise.
33380 (grid_target_follows_gridifiable_pattern): Likewise.
33381 (grid_remap_prebody_decls): Likewise.
33382 (grid_copy_leading_local_assignments): Likewise.
33383 (grid_process_kernel_body_copy): Likewise.
33384 (grid_attempt_target_gridification): Likewise.
33385 (grid_gridify_all_targets_stmt): Likewise.
33386 (grid_gridify_all_targets): Likewise.
33387 (execute_lower_omp): Call grid_gridify_all_targets.
33388 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
33389 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
33390 (tree_omp_clause): Added union field dimension.
33391 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
33392 * tree.c (omp_clause_num_ops): Added number of arguments of
33393 OMP_CLAUSE__GRIDDIM_.
33394 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
33395 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
33396 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
33397 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
33398 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
33399 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
33400 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
33401 * tree-pass.h (make_pass_gen_hsail): Declare.
33402 (make_pass_ipa_hsa): Likewise.
33403 * ipa-hsa.c: New file.
33404 * lto-section-in.c (lto_section_name): Add hsa section name.
33405 * lto-streamer.h (lto_section_type): Add hsa section.
33406 * timevar.def (TV_IPA_HSA): New.
33407 * hsa-brig-format.h: New file.
33408 * hsa-brig.c: New file.
33409 * hsa-dump.c: Likewise.
33410 * hsa-gen.c: Likewise.
33413 * toplev.c (compile_file): Call hsa_output_brig.
33414 * hsa-regalloc.c: New file.
33416 2016-01-18 Jeff Law <law@redhat.com>
33418 PR tree-optimization/69320
33419 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
33420 ranged object, do nothing if the RHS constant is not [0..1].
33421 (optimize_stmt): Comparing a boolean ranged object against a
33422 constant outside [0..1] results in a compile-time constant.
33424 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
33427 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
33429 * doc/invoke.texi (Invoking GCC): Add new section to menu.
33430 (Option Summary): Update to reflect new section and moved options.
33431 (C++ Dialect Options): Move -fstats to new section.
33432 (Debugging Options): Move all dump, statistics, and other GCC
33433 developer options to new section. Rewrite section introduction
33434 and re-order remaining options to put the more basic ones first.
33435 (Optimization Options): Move -fira-verbose and -flto-report* to
33437 (Developer Options): New section incorporating moved options.
33438 * doc/cppopts.texi (-dM): Update cross-reference.
33440 2016-01-18 Richard Henderson <rth@redhat.com>
33443 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
33444 operands to pseudo only if CSE is expected. Split long immediate
33445 operands only after reload, and for the stack pointer.
33446 (*add<GPI>3_pluslong): Remove.
33447 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
33448 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
33449 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
33450 (*add<GPI>3 peepholes): New.
33451 (*add<GPI>3 splitters): New.
33452 * config/aarch64/constraints.md (Upl): New.
33453 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
33455 2016-01-18 Richard Biener <rguenther@suse.de>
33457 PR tree-optimization/69297
33458 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
33460 (vect_bb_vectorization_profitable_p): Clear visited flag again.
33462 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
33464 PR middle-end/68542
33465 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
33466 of mixind vector and scalar types.
33467 (fold_relational_const): Add handling of vector
33468 comparison with boolean result.
33469 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
33470 comparison of vector operands with boolean result for EQ/NE only.
33471 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
33472 (verify_gimple_cond): Likewise.
33473 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
33476 2016-01-18 Joseph Myers <joseph@codesourcery.com>
33478 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
33481 2016-01-18 Richard Biener <rguenther@suse.de>
33483 PR middle-end/69308
33484 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
33486 2016-01-18 Tom de Vries <tom@codesourcery.com>
33488 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
33490 2016-01-18 Tom de Vries <tom@codesourcery.com>
33492 * omp-low.c (set_oacc_fn_attrib): Make extern.
33493 * omp-low.h (set_oacc_fn_attrib): Declare.
33494 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
33495 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
33496 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
33497 Add and handle function parameter oacc_kernels_p.
33498 (find_reduc_addr, get_omp_data_i_param): New function.
33499 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
33500 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
33501 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
33502 Calculate dominance info. Skip loops that are not in a kernels region
33503 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
33504 (pass_parallelize_loops::execute): Call parallelize_loops with
33505 oacc_kernels_p argument.
33506 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
33507 New member function.
33508 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
33509 * passes.def: Add argument to pass_parallelize_loops instantation.
33511 2016-01-18 Tom de Vries <tom@codesourcery.com>
33513 * tree-parloops.c (pass_parallelize_loops::execute): Allow
33514 pass_parallelize_loops to be run outside the loop pipeline.
33516 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33518 * tree-scalar-evolution.c (follow_copies_to_constant): New.
33519 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
33521 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33524 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
33525 using get_ref_base_and_extent.
33526 (equal_mem_array_ref_p): New.
33527 (hashable_expr_equal_p): Add call to previous.
33529 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33532 * tree-sra.c (disqualified_constants, constant_decl_p): New.
33533 (sra_initialize): Allocate disqualified_constants.
33534 (sra_deinitialize): Free disqualified_constants.
33535 (disqualify_candidate): Update disqualified_constants when appropriate.
33536 (create_access): Scan for constant-pool entries as we go along.
33537 (scalarizable_type_p): Add check against type_contains_placeholder_p.
33538 (maybe_add_sra_candidate): Allow constant-pool entries.
33539 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
33540 (initialize_constant_pool_replacements): New.
33541 (sra_modify_assign): Avoid mangling assignments created by previous,
33542 and don't generate writes into constant pool.
33543 (sra_modify_function_body): Call initialize_constant_pool_replacements.
33545 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
33547 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
33548 andnot instruction.
33549 (scalar_chain::convert_op): Likewise.
33550 * config/i386/i386.md (*andndi3_doubleword): New.
33552 2016-01-18 Richard Biener <rguenther@suse.de>
33554 PR tree-optimization/69170
33555 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
33556 building a vector from scalar results of a pattern stmt.
33558 2016-01-18 Jakub Jelinek <jakub@redhat.com>
33560 * haifa-sched.c (autopref_multipass_init): Work around
33561 -Wmaybe-uninitialized warning.
33563 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
33565 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
33566 against the constant 0.
33568 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33570 PR tree-optimization/68799
33571 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
33572 look up phi candidates in the statement-candidate map.
33573 (phi_add_costs): Likewise.
33574 (record_phi_increments): Likewise.
33575 (phi_incr_cost): Likewise.
33576 (ncd_with_phi): Likewise.
33577 (all_phi_incrs_profitable): Likewise.
33579 2016-01-17 Jakub Jelinek <jakub@redhat.com>
33581 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
33582 -Wmaybe-uninitialized warning.
33584 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
33586 * doc/invoke.texi (Invoking GCC): Add new section to menu.
33587 (Option Summary): Update to reflect new section and moved options.
33588 (C++ Dialect Options): Move -fvtable-verify and related options.
33589 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
33590 and profiling-related options.
33591 (Optimization Options): Move profile generation options and
33592 -fstack-protector and related options.
33593 (Instrumentation Options): New section incorporating moved options.
33594 (Code Generation Options): Move -finstrument-functions and
33595 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
33597 2016-01-16 Tom de Vries <tom@codesourcery.com>
33599 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
33601 2016-01-16 Tom de Vries <tom@codesourcery.com>
33603 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
33605 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
33607 * hash-table.h (hash_table::empty): Turn into an inline wrapper
33608 that checks whether the table is already empty. Rename the
33609 original implementation to...
33610 (hash_table::empty_slot): ...this new private function.
33612 2016-01-15 David Malcolm <dmalcolm@redhat.com>
33614 PR diagnostic/68899
33615 * diagnostic-show-locus.c (layout::print_source_line): Move x
33616 offset of line until after call to
33617 get_line_width_without_trailing_whitespace.
33619 2016-01-15 Jeff Law <law@redhat.com>
33621 PR tree-optimization/69270
33622 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
33623 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
33624 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
33625 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
33626 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
33627 ssa_name_has_boolean_range and constant_boolean_node.
33629 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
33631 PR rtl-optimization/69030
33632 * lra-spills.c (remove_pseudos): Check nrefs and make the function
33634 (spill_pseudos): Delete debug insn for dead pseudo.
33635 (lra_spill): Initiate spill_hard_reg and slots memory separately.
33637 2016-01-15 Jiong Wang <jiong.wang@arm.com>
33639 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
33641 (TYPES_UNOPUS): Likewise.
33642 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
33643 builtin type, from UNOP to UNOPUS.
33644 (lbtruncuv4sf): Likewise.
33645 (lbtruncuv2df): Likewise.
33646 (lrounduv2sf): Likewise.
33647 (lrounduv4sf): Likewise.
33648 (lrounduv2df): Likewise.
33649 (lroundusf): Likewise.
33650 (lroundusf): Likewise.
33651 (lceiluv2sf): Likewise.
33652 (lceiluv4sf): Likewise.
33653 (lceiluv2df): Likewise.
33654 (lceilusf): Likewise.
33655 (lceiludf): Likewise.
33656 (lflooruv2sf): Likewise.
33657 (lflooruv4sf): Likewise.
33658 (lflooruv2df): Likewise.
33659 (lfloorusf): Likewise.
33660 (lfloorudf): Likewise.
33661 (lfrintnuv2sf): Likewise.
33662 (lfrintnuv4sf): Likewise.
33663 (lfrintnuv2df): Likewise.
33664 (lfrintnusf): Likewise.
33665 (lfrintnudf): Likewise.
33666 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
33668 (vcvtq_u32_f32): Likewise.
33669 (vcvtq_u64_f64): Likewise.
33670 (vcvta_u32_f32): Likewise.
33671 (vcvtaq_u32_f32): Likewise.
33672 (vcvtaq_u64_f64): Likewise.
33673 (vcvtm_u32_f32): Likewise.
33674 (vcvtmq_u32_f32): Likewise.
33675 (vcvtmq_u64_f64): Likewise.
33676 (vcvtn_u32_f32): Likwise.
33677 (vcvtnq_u32_f32): Likewise.
33678 (vcvtnq_u64_f64): Likewise.
33679 (vcvtp_u32_f32): Likewise.
33680 (vcvtpq_u32_f32): Likewise.
33681 (vcvtpq_u64_f64): Likewise.
33682 (vcvtmd_u64_f64): Likewise.
33683 (vcvtms_u32_f32): Likewise.
33684 (vcvtad_u64_f64): Likewise.
33685 (vcvtas_u32_f32): Likewise.
33686 (vcvtnd_u64_f64): Likewise.
33687 (vcvtns_u32_f32): Likewise.
33688 (vcvtpd_u64_f64): Likewise.
33689 (vcvtps_u32_f32): Likewise.
33691 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33693 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
33694 CSEL of zero_extended registers.
33696 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33698 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
33699 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
33701 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33703 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
33704 false when argument string is not found in the attributes table
33707 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
33710 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
33711 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
33712 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
33713 precision estimate.
33715 2016-01-15 Richard Biener <rguenther@suse.de>
33717 PR tree-optimization/66856
33718 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
33719 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
33720 (vect_create_new_slp_node): Increment stmt reference count.
33721 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
33722 an SLP tree before swapping operands.
33723 (vect_build_slp_tree): Likewise.
33724 (destroy_bb_vec_info): Free stmt info after SLP instances.
33725 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
33726 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
33727 (STMT_VINFO_NUM_SLP_USES): New macro.
33729 2016-01-15 Richard Biener <rguenther@suse.de>
33732 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
33733 (add_linkage_name): ... here.
33734 (gen_typedef_die): Use add_linkage_name_raw instead of
33735 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
33738 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
33740 * gimplify.c (oacc_default_clause): Decode reference and pointer
33741 types for both kernels and parallel regions.
33743 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
33745 PR middle-end/69246
33746 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
33748 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
33750 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
33751 (convert_scalars_to_vector): Likewise.
33753 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
33755 * doc/extend.texi (Type Traits): Fix grammar.
33757 2016-01-15 Martin Jambor <mjambor@suse.cz>
33759 * tree-inline.c (remap_decl): Use existing dclarations if
33760 remapping a type and prevent_decl_creation_for_types.
33761 (replace_locals_stmt): Do an initial remapping of non-VLA typed
33762 decls first. Do real remapping with
33763 prevent_decl_creation_for_types set.
33764 * tree-inline.h (copy_body_data): New field
33765 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
33768 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
33770 * config/s390/s390.opt (mmvcle): More verbose help text.
33772 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
33774 * config/s390/s390.opt: Add period to -mzvector option text.
33776 2016-01-15 Richard Biener <rguenther@suse.de>
33778 PR tree-optimization/68961
33779 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
33780 of invariants in stores again.
33782 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
33784 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
33786 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
33788 * config/i386/i386.c (ix86_expand_branch): Don't split
33789 DI mode xor instruction to SI mode.
33791 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
33794 * ipa-icf.c (sem_function::merge): Virtual functions may become
33795 reachable even if they address is not taken and there are no
33798 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
33800 * lto-streamer-out.c (subtract_estimated_size): New function.
33801 (get_symbol_initial_value): Use it.
33803 2016-01-15 Christian Bruel <christian.bruel@st.com>
33806 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
33807 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
33808 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
33809 use add_builtin_function_ext_scope instead of add_builtin_function.
33810 (neon_set_p, neon_crypto_set_p): Remove.
33811 (arm_init_builtins): Always call arm_init_neon_builtins and
33812 arm_init_crypto_builtins.
33813 (arm_expand_builtin): Check that builtins are allowed for the arch.
33814 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
33815 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
33816 arm_init_neon_builtins call.
33818 2016-01-15 Richard Biener <rguenther@suse.de>
33820 PR tree-optimization/69117
33821 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
33822 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
33823 of the leader conservatively.
33824 (free_scc_vn): Restore original SSA name infos.
33826 2016-01-14 Jeff Law <law@redhat.com>
33828 PR tree-optimization/69270
33829 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
33830 single bit of precision, verify it's also unsigned.
33831 (record_edge_info): Use constant_boolean_node rather than fold_convert
33832 to convert boolean_true/boolean_false to the right type.
33834 2016-01-14 Richard Henderson <rth@redhat.com>
33837 * loop-doloop.c (record_reg_sets): New.
33838 (doloop_optimize): Reject the transform if the sequence
33839 clobbers registers live at the end of the loop block.
33840 (doloop_optimize_loops): Enable df_live if needed.
33842 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
33844 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
33845 * config/rs6000/rs6000.c: Likewise.
33846 * config/rs6000/rs6000.h: Likewise.
33847 * config/rs6000/rs6000.md: Likewise.
33848 * doc/extend.texi: Likewsie.
33850 2016-01-14 Jeff Law <law@redhat.com>
33852 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
33855 2016-01-14 Richard Henderson <rth@redhat.com>
33859 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
33860 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
33861 instead of builtin_decl_declared_p to test for declaration.
33863 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
33865 * doc/loop.texi (Loop Analysis and Representation): Document
33866 loop_depth function.
33868 2016-01-14 Tom de Vries <tom@codesourcery.com>
33870 PR tree-optimization/68773
33871 * omp-low.c (expand_omp_target): Don't set force_output.
33872 * varpool.c (varpool_node::get_create): Same.
33873 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
33874 offload_funcs with force_output.
33876 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33879 * lra-eliminations.c (move_plus_up): Don't change anything if either
33880 the outer or inner subreg mode is not MODE_INT.
33881 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
33882 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
33884 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
33886 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
33887 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
33888 reduc_uplus_@var{m}): Remove.
33889 * expr.c (expand_expr_real_2): Remove expansion path for
33890 reduc_[us](min|max|plus) optabs.
33891 * optabs-tree.c (scalar_reduc_to_vector): Remove.
33892 * optabs-tree.h (scalar_reduc_to_vector): Remove.
33893 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
33894 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
33895 * tree-vect-loop.c (vectorizable_reduction): Remove test for
33896 reduc_[us](min|max|plus) optabs.
33898 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
33900 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
33901 (reduc_plus_scal_v2sf): New.
33902 (reduc_smax_v2sf): Rename to...
33903 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
33904 (reduc_smin_v2sf): Rename to...
33905 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
33907 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
33909 * alias.c (compare_base_symbol_refs): New function.
33910 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
33913 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33915 PR middle-end/68146
33916 PR tree-optimization/69155
33917 * tree-complex.c: Include cfganal.h.
33918 (phis_to_revisit): New variable.
33919 (extract_component): Add phiarg_p argument. Assert that returned
33920 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
33921 (update_phi_components): Partly rewrite to use loop over real/imag
33922 components instead of code duplication. If extract_component returns
33923 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
33924 create_tmp_reg into the PHI node instead, and mention the phi triplet
33925 in phis_to_revisit.
33926 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
33927 in phis_to_revisit at the end.
33929 2016-01-14 Richard Biener <rguenther@suse.de>
33931 PR tree-optimization/68060
33932 * tree-vect-loop.c (vect_is_simple_reduction): Check the
33933 outer loop reduction is only used in the inner loop before
33934 detecting a double reduction.
33936 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33939 * combine.c (expand_field_assignment): Punt if compute_mode is
33940 unsupported scalar mode.
33942 2016-01-14 Richard Biener <rguenther@suse.de>
33944 PR tree-optimization/66856
33945 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
33946 SLP node only if it built successfully.
33947 (vect_analyze_slp_instance): Adjust.
33949 2016-01-14 Jeff Law <law@redhat.com>
33951 PR tree-optimization/69270
33952 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
33953 (record_edge_info): Use it. Convert boolean_{true,false}_node
33954 to the type of op0.
33956 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
33959 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
33960 use block_ultimate_origin
33961 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
33963 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
33965 * doc/invoke.texi (Submodel Options): Rename section to
33966 "Machine-Dependent Options" to better reflect its content.
33967 Rewrite introductory text to remove archaic CPU names.
33970 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
33972 * doc/invoke.texi (Code Gen Options): Move section up in file,
33973 before target-specific options. Update menu and option summary
33974 to reflect the new section ordering.
33976 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
33978 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
33979 (C++ Dialect Options): Add cross-reference to -std option.
33980 * doc/standards.texi (C++ Language): Document C++14 support.
33982 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
33984 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
33985 for pack/unpack functions for __ibm128.
33986 (PACK_IF): Likewise.
33987 (UNPACK_IF): Likewise.
33989 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
33990 support for __ibm128 pack/unpack functions.
33991 (rs6000_invalid_builtin): Likewise.
33992 (rs6000_init_builtins): Likewise.
33993 (rs6000_opt_masks): Likewise.
33995 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
33996 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
33998 (RS6000_BTM_COMMON): Likewise.
34000 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
34001 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
34002 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
34003 128-bit floating point. Add support for the double values to be
34004 in Altivec registers for TF/IF packing and unpacking, but restrict
34005 TD packing sub-fields to be FPR registers. Don't allow overlapped
34006 register support for packing. Allow pack inputs to be memory
34007 locations. Don't build generator functions for unpack<mode>_dm
34008 and unpack<mode>_nodm.
34009 (unpack<mode>_dm): Likewise.
34010 (unpack<mode>_nodm): Likewise.
34011 (pack<mode>): Likewise.
34013 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
34014 built-in functions to pack/unpack explicit __ibm128 values.
34015 (__builtin_unpack_ibm128): Likewise.
34017 * doc/extend.texi (PowerPC Built-in Functions): Document
34018 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
34020 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
34023 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
34024 Add new arg loc and pass it down as context.
34025 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
34026 to the location to use for the warning.
34027 (check_function_arguments): New arg loc. All callers changed. Pass
34028 it to check_function_nonnull.
34029 * c-common.h (check_function_arguments): Adjust declaration.
34031 2016-01-13 Jakub Jelinek <jakub@redhat.com>
34033 PR tree-optimization/69156
34034 * gimple.c (validate_type): Removed.
34035 (gimple_builtin_call_types_compatible_p): Use
34036 useless_type_conversion_p instead of validate_type.
34037 * value-prof.c (gimple_stringop_fixed_value): Fold
34038 icall_size to correct type.
34040 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34042 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
34045 2016-01-13 Richard Henderson <rth@redhat.com>
34048 * target.def (builtin_tm_load, builtin_tm_store): Remove.
34049 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
34050 (ix86_builtin_tm_store): Remove.
34051 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34052 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34053 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34054 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34055 * doc/tm.texi: Rebuild.
34057 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
34058 (BUILT_IN_TM_MEMCPY_RTWN): New.
34059 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
34060 fallback from vector to integer helpers.
34061 (build_tm_load): Handle vector types directly, instead of
34063 (build_tm_store): Likewise.
34064 (expand_assign_tm): Prepare for register types not handled by
34065 the above. Copy them to memory and use memcpy.
34066 * tree.c (tm_define_builtin): New.
34067 (find_tm_vector_type): New.
34068 (build_tm_vector_builtins): New.
34069 (build_common_builtin_nodes): Call it.
34071 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
34073 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
34074 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
34076 2016-01-13 Tom de Vries <tom@codesourcery.com>
34078 PR tree-optimization/69169
34079 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
34080 handled_struct_type param.
34081 (create_variable_info_for, intra_create_variable_infos): Call
34082 create_variable_info_for_1 with extra arg.
34084 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
34086 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
34087 and "armv8.1-a+crc" entries.
34089 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
34092 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
34093 Change first operand predicate from register_or_constm1_operand
34094 to register_operand.
34095 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
34096 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
34097 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
34098 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
34099 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
34100 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
34101 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
34102 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
34103 comparison with constm1_rtx from vec_prefetch_gen part.
34105 2016-01-13 Richard Biener <rguenther@suse.de>
34107 PR tree-optimization/69013
34108 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
34109 Exchange assert for a test.
34111 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34114 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
34116 2016-01-13 Richard Biener <rguenther@suse.de>
34118 PR tree-optimization/69242
34119 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
34120 assert with a check.
34122 2016-01-13 Richard Biener <rguenther@suse.de>
34124 PR tree-optimization/69186
34125 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34126 Properly guard vect_update_misalignment_for_peel call.
34128 2016-01-12 Jeff Law <law@redhat.com>
34130 PR tree-optimization/pr67755
34131 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
34132 "need_profile_correction".
34133 (thread_block_1): Initialize new field to false by default. If we
34134 have multiple thread paths through a common joiner to different
34135 final targets, then set new field to true.
34136 (compute_path_counts): Only do count adjustment when it's really
34139 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34141 * doc/invoke.texi (Spec Files): Move section down in file, past
34142 all command-line option descriptions.
34144 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34146 PR middle-end/54809
34147 * doc/gty.texi: Remove documentation of mark_hook.
34148 * gengtype.c (struct write_types_data): Remove code to support
34149 mark_hook attribute.
34150 (walk_type): Likewise.
34151 (write_func_for_structure): Likewise.
34153 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34155 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
34156 Directory Options, and -specs= to Overall Options.
34157 (Overall Options): Adjust similarly. Reorder to group related
34158 options together. Make -specs= cross-reference the spec file details.
34159 (Directory Options): Adjust similarly.
34161 2016-01-12 Jeff Law <law@redhat.com>
34163 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
34165 2016-01-12 Olivier Hainque <hainque@adacore.com>
34167 * gcc.c (spec_undefvar_allowed): New global.
34168 (process_command): Set to true when running for --version or --help,
34170 (getenv_spec_function): When the variable is not defined, use the
34171 variable name as the variable value if we're allowed not to issue
34174 2016-01-12 Bin Cheng <bin.cheng@arm.com>
34176 PR tree-optimization/68911
34177 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
34178 information computed for expression "init + nit * step".
34180 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34182 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
34183 about name of GCC executable. Remove deleted node from menu.
34184 (Directory Options) <-B>: Remove cross-reference to deleted node.
34185 (Target Options): Delete section.
34187 2016-01-12 Christian Bruel <christian.bruel@st.com>
34190 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
34191 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
34193 2016-01-12 Jakub Jelinek <jakub@redhat.com>
34196 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
34197 aligned_mem is properly set for AVX512-VL floating point masked
34201 * ifcvt.c (cond_exec_process_if_block): When removing the last
34202 insn from then_bb, remove also any possible barriers that follow it.
34204 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
34208 * config/i386/iamcu.h (SIZE_TYPE): New macro.
34209 (PTRDIFF_TYPE): Likewise.
34210 (WCHAR_TYPE): Likewise.
34211 (WCHAR_TYPE_SIZE): Likewise.
34212 (STDINT_LONG32): Likewise.
34214 2016-01-12 Richard Biener <rguenther@suse.de>
34216 PR tree-optimization/69053
34217 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
34218 convert initial value for cond reductions.
34220 2016-01-12 Richard Biener <rguenther@suse.de>
34222 PR tree-optimization/69007
34223 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
34224 widen_sum after dot_prod and sad.
34226 2016-01-12 Richard Biener <rguenther@suse.de>
34228 PR tree-optimization/69168
34229 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
34230 pattern stmt SLP type.
34231 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
34232 end up unused so cope with that case.
34234 2016-01-12 Richard Biener <rguenther@suse.de>
34236 PR tree-optimization/69157
34237 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
34238 stmts def type only during analyze phase.
34239 (vectorizable_call): Likewise.
34240 (vectorizable_simd_clone_call): Likewise.
34241 (vectorizable_conversion): Likewise.
34242 (vectorizable_assignment): Likewise.
34243 (vectorizable_shift): Likewise.
34244 (vectorizable_operation): Likewise.
34245 (vectorizable_store): Likewise.
34246 (vectorizable_load): Likewise.
34248 2016-01-12 Richard Biener <rguenther@suse.de>
34250 PR tree-optimization/69174
34251 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
34253 (vectorizable_load): Properly compute the number of loads needed
34254 for permuted strided SLP loads and do not spuriously assign
34255 to SLP_TREE_VEC_STMTS.
34257 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
34259 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
34260 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
34261 (MD_EXEC_PREFIX): Remove.
34262 (MD_STARTFILE_PREFIX) Removee.
34263 (FILE_NAME_ABSOLUTE_P): Remove.
34264 (CPP_SPEC): Do not read macros from sys/version.h.
34265 (LINK_COMMAND_SPEC): Remove.
34266 (LOCAL_INCLUDE_DIR): Remove.
34267 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
34268 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
34269 (POST_LINK_SPEC): Define to invoke stubify after linker
34270 (LIBSTDCXX): Remove define
34271 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
34272 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
34273 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
34274 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
34275 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
34276 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
34277 (i386_djgpp_asm_named_section): Add propotype of new procedure
34279 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
34280 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
34281 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
34282 in config/i386/djgpp.h).
34283 (STANDARD_STARTFILE_PREFIX_2): Define identical to
34284 STANDARD_STARTFILE_PREFIX_1.
34285 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
34286 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
34287 installation errors.
34288 (MAX_OFILE_ALIGNMENT): Define to 128.
34289 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
34291 * config/i386/djgpp.c: New file. Add implementation of
34292 i386_djgpp_asm_named_section.
34294 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
34296 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
34297 Add rule for building djgpp.o.
34299 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34301 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
34302 (rtx_is_swappable_p): Reductions are swappable.
34303 (insn_is_swappable_p): V2DF reductions are swappable.
34305 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
34307 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
34308 reloads for other unsupported memory operands.
34310 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
34311 Jim Wilson <jim.wilson@linaro.org>
34314 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
34315 copy_to_mode_reg instead of force_reg.
34317 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34320 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
34321 TARGET_80387 is true.
34323 2016-01-11 Jakub Jelinek <jakub@redhat.com>
34326 * lra-eliminations.c (move_plus_up): Only move plus up
34327 if subreg of the constant can be simplified into constant
34328 and use the simplified subreg of the constant instead of
34329 the original constant.
34331 * fold-const.c (fold_convertible_p): Don't return true
34332 for conversion of VECTOR_TYPE to same sized integral type.
34333 (fold_convert_loc): Fix up formatting. Fold conversion of
34334 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
34335 instead of NOP_EXPR.
34337 PR tree-optimization/69214
34338 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
34339 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
34342 PR tree-optimization/69207
34343 * tree-vect-slp.c (vect_get_constant_vectors): For
34344 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
34345 fold_convertible_p to vector_type's element type, and always
34346 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
34348 2016-01-11 Richard Biener <rguenther@suse.de>
34350 PR tree-optimization/69173
34351 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
34352 fixup the cycle if all stmts are in a pattern.
34354 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
34356 PR middle-end/68999
34357 * alias.c (base_alias_check): Move check for addresses with
34358 alignment ANDs before the call for compare_base_decls.
34359 (memrefs_conflict_p): Return -1 for different decls
34360 that went through alignment adjustments.
34362 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34364 PR rtl-optimization/68796
34365 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
34366 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
34367 and QImode comparisons against zero with CC_NZmode.
34368 * config/aarch64/iterators.md (short_mask): New mode_attr.
34370 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34372 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
34373 (<avx512>_store<mode>_mask): Likewise.
34375 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
34376 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34378 PR rtl-optimization/68841
34379 * ifcvt.c (struct noce_if_info): Add orig_x field.
34380 (bbs_ok_for_cmove_arith): Add to_rename parameter.
34381 Don't record conflicts on to_rename if it's present.
34382 Allow memory destinations in sets.
34383 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
34384 blocks, passing orig_x to the checks.
34385 (noce_process_if_block): Set if_info->orig_x appropriately.
34387 2016-01-11 Tom de Vries <tom@codesourcery.com>
34389 PR tree-optimization/69069
34390 * tree-parloops.c (create_parallel_loop): Add missing phi args.
34392 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
34394 PR rtl-optimization/68920
34395 * config/i386/i386.c (ix86_option_override_internal): Restrict number
34396 of conditional moves for RTL if-conversion to 1 for
34397 TARGET_ONE_IF_CONV_INSN.
34398 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
34399 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
34400 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
34401 parameter to restirct number of conditional moves for
34403 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
34404 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
34407 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
34410 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
34411 onepart vars. Fix typo in comment. Fix reversed condition in
34413 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
34416 * var-tracking.c (dump_onepart_variable_differences): New.
34417 (dataflow_set_different): If a detailed dump is requested,
34418 delay early returns and dump differences between onepart
34419 variables present before and after, and added variables.
34421 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
34424 * expr.c (expand_expr_real_1): For boolean vector constants
34425 with a scalar mode use const_scalar_mask_from_tree.
34426 (const_scalar_mask_from_tree): New.
34427 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
34428 assigned to a mask type to handle constants.
34430 2016-01-11 Martin Jambor <mjambor@suse.cz>
34433 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
34434 useless parameters if we cannot change function signature.
34436 2016-01-11 Martin Jambor <mjambor@suse.cz>
34439 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
34442 2016-01-11 Tom de Vries <tom@codesourcery.com>
34444 PR tree-optimization/69109
34445 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
34448 2016-01-11 Tom de Vries <tom@codesourcery.com>
34450 PR tree-optimization/69108
34451 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
34452 res is not used in a phi.
34454 2016-01-11 Yury Gribov <y.gribov@samsung.com>
34457 * common.opt (frandom-seed): Fix parameter name.
34458 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
34460 2016-01-11 Tom de Vries <tom@codesourcery.com>
34462 PR tree-optimization/69058
34463 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
34466 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
34468 * config/arc/arc.opt (mdiv-rem): Add period to the end.
34469 (mcode-density): Likewise.
34471 2016-01-10 Tom de Vries <tom@codesourcery.com>
34473 PR tree-optimization/69062
34474 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
34475 (parallelize_loops): Don't paralelize loop that has phi with address
34478 2016-01-10 Tom de Vries <tom@codesourcery.com>
34480 PR tree-optimization/69039
34481 * tree-parloops.c (try_create_reduction_list): Only allow single exit
34484 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
34486 PR middle-end/68743
34487 * match.pd: Require target has function_c99_misc before doing
34488 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
34490 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
34492 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
34494 * configure: Regenerate.
34496 2016-01-09 Jakub Jelinek <jakub@redhat.com>
34498 PR middle-end/50865
34499 PR tree-optimization/69097
34500 * fold-const.h (expr_not_equal_to): New prototype.
34501 * fold-const.c: Include stringpool.h and tree-ssanames.h.
34502 (expr_not_equal_to): New function.
34503 * match.pd (X % -Y is the same as X % Y): Don't optimize
34504 unless X is known not to be equal to minimum or Y is known
34505 not to be equal to -1.
34506 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
34507 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
34508 (simplify_stmt_using_ranges): Adjust caller.
34509 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
34510 substitute_and_fold.
34512 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
34514 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
34517 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34519 PR tree-optimization/69167
34520 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
34521 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
34523 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
34525 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
34526 Richard Biener <rguenther@suse.de>
34528 PR tree-optimization/68707
34529 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
34530 instances that can be handled via vect_load_lanes.
34532 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
34534 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
34535 if we can't determine address equivalence.
34536 * alias.c (compare_base_decl): Update for changed return value of
34537 symtab_node::equal_address_to.
34539 2016-01-08 Jason Merrill <jason@redhat.com>
34543 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
34544 * expr.c (store_field): Not here.
34545 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
34546 call with TREE_ADDRESSABLE type.
34547 * tree-cfg.c (verify_gimple_call): Adjust.
34549 2016-01-08 Olivier Hainque <hainque@adacore.com>
34551 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
34554 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
34556 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
34557 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
34558 (reduc_smin_v2sf): Rename to...
34559 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
34560 (reduc_splus_v2sf): Rename to...
34561 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
34563 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34565 PR tree-optimization/69162
34566 * gimplify.c (gimplify_va_arg_expr): Encode original type of
34567 valist argument in another argument.
34568 (gimplify_modify_expr): Adjust for the above change. Cleanup.
34569 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
34570 to determine the va_list type, build a MEM_REF instead of
34571 build_fold_indirect_ref.
34573 PR tree-optimization/69172
34574 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
34577 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
34579 PR tree-optimization/67781
34580 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
34581 and cmpnop in two steps: first the ones not accessed in original
34582 gimple expression in a endian independent way and then the ones not
34583 accessed in the final result in an endian-specific way.
34585 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34587 PR tree-optimization/69083
34588 * tree-vect-slp.c (vect_get_constant_vectors): For
34589 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
34590 element type. If op is fold_convertible_p to vector_type's element
34591 type, use NOP_EXPR instead of VCE.
34593 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
34595 PR rtl-optimization/67778
34596 PR rtl-optimization/68634
34597 PR rtl-optimization/68909
34598 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
34599 block from the stack until done with it. Remove a superfluous
34600 bitmap set. Remove a superfluous bitmap test.
34602 2016-01-07 Martin Sebor <msebor@redhat.com>
34605 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
34606 constraint on the type of arguments.
34608 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
34610 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
34611 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
34612 unaligned_access on the gcc_options set.
34613 * config/arm/arm.c (arm_option_override_internal): Use
34614 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
34616 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
34619 * config/i386/i386.c (ix86_frame_pointer_required): Enable
34620 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
34622 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
34625 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
34628 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
34629 depending on frame_pointer_needed before remaining integer and SSE
34630 registers are saved.
34632 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
34635 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
34637 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
34640 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
34641 Use the "xBm" constraint.
34642 (float<sseintvecmodelower><mode>2<mask_name><round_name):
34644 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
34645 (sse_cvtsi2ssq<round_name>): Likewise.
34646 (sse_cvtss2si<round_name>): Likewise.
34647 (sse_cvtss2siq<round_name>): Likewise.
34648 (sse2_cvtsi2sdq<round_name>): Likewise.
34649 (sse2_cvtsd2si<round_name>): Likewise.
34650 (sse2_cvtsd2siq<round_name>): Likewise.
34651 * config/i386/subst.md (round_nimm_scalar_predicate): New
34654 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
34656 PR middle-end/67639
34657 * varasm.c (make_decl_rtl): Mark invalid register vars as
34660 PR rtl-optimization/66206
34661 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
34662 All callers changed.
34664 2016-01-07 Jakub Jelinek <jakub@redhat.com>
34666 PR tree-optimization/69141
34667 * tree-ssa-pre.c: Include langhooks.h.
34668 (eliminate_dom_walker::before_dom_children): Use
34669 lang_hooks.decl_printable_name instead of
34670 cgraph_node::get ()->name ().
34672 PR middle-end/68960
34673 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
34674 it and DECL_ALIGN too.
34676 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
34678 * config/mips/mips-ftypes.def: Sort to lexicographical order.
34680 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
34683 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
34684 depending on frame_pointer_needed before remaining integer and SSE
34685 registers are saved.
34687 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34689 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
34690 mode iterator with VSX_M2.
34691 (*p9_vecstore_<mode>): Likewise.
34692 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
34693 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
34694 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
34695 (define_split for VSX_LE128 stores): Likewise.
34696 (define_peephole2 for TImode LE swaps): Likewise.
34697 (define_split for VSX_LE128 post-reload stores): Likewise.
34699 2016-01-06 Marek Polacek <polacek@redhat.com>
34702 * convert.c (convert_to_integer_1): Adjust call to
34703 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
34704 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
34705 EXPR instead of ARG.
34706 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
34708 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34711 * doc/extend.texi (RL78 Variable Attributes): New section.
34713 2016-01-05 Marek Polacek <polacek@redhat.com>
34716 * builtins.c (get_memmodel): Use expansion point location rather than
34717 the input location. Call warning_at rather than warning.
34718 (expand_builtin_atomic_compare_exchange): Likewise.
34719 (expand_builtin_atomic_load): Likewise.
34720 (expand_builtin_atomic_store): Likewise.
34721 (expand_builtin_atomic_clear): Likewise.
34723 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
34726 * config/i386/i386.c (ix86_expand_vector_logical_operator):
34727 Replace nonimmediate_operand with vector_operand.
34728 * config/i386/predicates.md (vector_operand): New predicate.
34729 (general_vector_operand): Replace nonimmediate_operand with
34731 * config/i386/sse.md: Replace nonimmediate_operand with
34732 vector_operand and m constraint with Bm constraint on SSE
34733 patterns with 16-byte memory operand.
34734 * config/i386/subst.md (round_nimm_predicate): Replace
34735 nonimmediate_operand with vector_operand.
34736 (round_saeonly_nimm_predicate): Likewise.
34737 (round_saeonly_nimm_scalar_predicate): New.
34739 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
34742 * config/i386/constraints.md (Bm): New constraint.
34743 * config/i386/predicates.md (vector_memory_operand): New
34745 * config/i386/sse.md: Replace xm with xBm in plusminus and
34746 any_logic patterns.
34748 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34751 * doc/extend.texi (V850 Function Attributes): New section.
34752 (V850 Variable Attributes): New section.
34754 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34757 * doc/extend.texi (MicroBlaze Function Attributes): Document
34758 interrupt_handler and fast_interrupt attributes.
34760 2016-01-05 Sergei Trofimovich <siarheit@google.com>
34763 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
34764 for local symbolic operands.
34765 * config/ia64/predicates.md (local_symbolic_operand64): New
34768 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34770 PR rtl-optimization/68651
34771 * combine.c (combine_simplify_rtx): Canonicalize x + x into
34774 2016-01-05 Nathan Sidwell <nathan@acm.org>
34776 * alias.c (compare_base_decls): Use symtab_node::get.
34778 2016-01-05 Nick Clifton <nickc@redhat.com>
34781 * ira-costs.c (copy_cost): Initialise the t_icode field of the
34782 secondary_reload_info structure.
34785 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
34786 decls if weak support is available.
34788 2016-01-04 Martin Sebor <msebor@redhat.com>
34790 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
34792 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
34794 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
34795 OPTION_MASK_P9_DFORM.
34797 * config/rs6000/constraints.md (wo constraint): New constraint for
34800 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
34802 (rs6000_init_hard_regno_mode_ok): Likewise.
34804 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
34807 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
34808 expanders not to have constraints. Add support for ISA 3.0 xxperm
34809 instruction. Add support for fusing xxlor with xxperm.
34810 (altivec_vperm_<mode>_internal): Likewise.
34811 (altivec_vperm_v8hiv16qi): Likewise.
34812 (altivec_vperm_<mode>v16q): Likewise.
34813 (altivec_vperm_<mode>_uns): Likewise.
34814 (vperm_v8hiv4si): Likewise.
34815 (vperm_v16qiv8hi): Likewise.
34817 * doc/md.texi (RS/6000 constraints): Document wo constraint.
34819 2016-01-04 Jakub Jelinek <jakub@redhat.com>
34821 Update copyright years.
34823 * gcc.c (process_command): Update copyright notice dates.
34824 * gcov-dump.c (print_version): Ditto.
34825 * gcov.c (print_version): Ditto.
34826 * gcov-tool.c (print_version): Ditto.
34827 * gengtype.c (create_file): Ditto.
34828 * doc/cpp.texi: Bump @copying's copyright year.
34829 * doc/cppinternals.texi: Ditto.
34830 * doc/gcc.texi: Ditto.
34831 * doc/gccint.texi: Ditto.
34832 * doc/gcov.texi: Ditto.
34833 * doc/install.texi: Ditto.
34834 * doc/invoke.texi: Ditto.
34836 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34838 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
34839 modes larger than TImode as TImode if NEON is not enabled.
34841 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34844 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
34845 mode for %f0-%f31 only if TARGET_FPU.
34847 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34850 * config/sparc/sparc.c (scan_record_type): Take into account subfields
34851 to compute the PACKED_P predicate.
34852 (function_arg_record_value): Minor tweaks.
34854 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
34856 * doc/install.texi (--with-multilib-list): Describe the meaning of the
34857 option for arm*-*-* targets.
34859 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
34861 * doc/extend.texi (Common Function Attributes): Move docs for
34862 MSP430-specific attributes to....
34863 (MSP430 Function Attributes): ...here. Delete the redundant
34864 entries and copy-edit the remaining text.
34865 (MSP430 Variable Attributes): Use uniform format for index
34866 entries and add a cross-reference to the corresponding function
34869 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
34871 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
34873 (x86 Options): Likewise.
34875 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
34879 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
34880 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
34881 to corresponding attribute.
34883 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
34885 * doc/extend.texi (Common Function Attributes) <noplt>: Move
34886 to correct alphabetization of table. Copy-edit and correct
34888 <stack_protect>: Likewise.
34889 <target_clones>: Likewise.
34891 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
34892 Correct punctuation.
34893 (Code Gen Options) <-fno-plt>: Copy-edit.
34895 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
34898 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
34899 SI values. Explicitly convert SI to DI and vice-versa.
34901 2016-01-01 Jakub Jelinek <jakub@redhat.com>
34903 PR tree-optimization/69070
34904 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
34905 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
34908 * ubsan.c (ubsan_instrument_float_cast): Call
34909 initialize_sanitizer_builtins.
34912 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
34914 Copyright (C) 2016 Free Software Foundation, Inc.
34916 Copying and distribution of this file, with or without modification,
34917 are permitted in any medium without royalty provided the copyright
34918 notice and this notice are preserved.