1 2016-12-13 Martin Liska <mliska@suse.cz>
3 * asan.c (asan_mark_poison_p): Remove.
4 (asan_mark_p): New function.
5 (transform_statements): Use the function.
6 (asan_expand_mark_ifn): Do not use masked enum.
7 * asan.h (enum asan_mark_flags): Declare it via a macro.
8 * gimple-pretty-print.c (dump_gimple_call_args): Dump first
10 * gimplify.c (build_asan_poison_call_expr): Use new enum values.
11 (asan_poison_variable): Likewise.
13 2016-12-13 Jakub Jelinek <jakub@redhat.com>
16 * ipa-pure-const.c (cdtor_p): Return true for
17 DECL_STATIC_{CON,DE}STRUCTOR even when it is
18 DECL_LOOPING_CONST_OR_PURE_P.
20 2016-12-12 Jakub Jelinek <jakub@redhat.com>
22 PR tree-optimization/78777
23 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
24 insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
27 * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
30 2016-12-12 Martin Sebor <msebor@redhat.com>
34 * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
35 rather than res.bounded.
36 (get_width_and_precision): Set precision to -1 when negative.
37 (adjust_range_for_overflow): New function.
38 (format_integer): Correct the handling of the space, plus, and pound
39 flags, and the special case of zero precision.
40 Always set res.bounded to true unless either precision or width
41 is specified and unknown.
42 Call adjust_range_for_overflow.
43 Avoid use zero as the shortest value when precision is specified
45 (format_directive): Remove vestigial quoting. Always inform of
46 argument value or range when it's available.
47 (add_bytes): Correct the computation of boundrange used to
48 decide whether a warning is of a "maybe" or "defnitely" kind.
50 2016-12-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
52 * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
54 2016-12-12 Uros Bizjak <ubizjak@gmail.com>
57 * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
58 flag_unsafe_math_optimizations.
59 (X87_ENABLE_FLOAT): Ditto.
61 2016-12-12 Marek Polacek <polacek@redhat.com>
64 * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
65 Case 1; check POINTER_TYPE_P instead.
67 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
69 PR rtl-optimization/78669
70 * ira.c (combine_and_move_insns): When deleting an insn, clear the
71 replace flag for all used regs in that insn.
73 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
75 * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
76 arm_arch_core_flags to ...
77 * common/config/arm/arm-common.c: There.
79 2016-12-12 Eric Botcazou <ebotcazou@adacore.com>
81 * config/sparc/constraints.md (T): Use special memory constraint.
83 (W): Add TARGET_ARCH64 test.
84 * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
85 (*movdf_insn_sp32): Likewise.
86 (*mov<VM64:mode>_insn_sp32): Likewise. Replace 'e' with 'f' in
87 conjunction with offsettable memory references.
89 2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
91 * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
92 to avoid shared structure error.
94 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
97 * config/rs6000/rs6000.c (find_alignment_op): Discard from
98 consideration any artificial definition.
100 2016-12-11 Iain Sandoe <iain@codesourcery.com>
102 * configure.ac (CROSS directory tests): Remove the assumption that
103 Darwin hosts contain suitable target sysroots in "/".
104 * configure: Regenerate.
106 2016-12-11 Iain Sandoe <iain@codesourcery.com>
108 PR rtl-optimization/71496
109 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
110 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
111 reload_macho_picbase_di): Likewise.
113 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
115 * config/pa/pa.c (pa_callee_copies): New function.
116 * config/pa/pa.opt (mcaller-copies): New option.
117 * doc/invoke.texi (mcaller-copies): Document option.
119 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
122 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
123 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
125 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
126 constant shifts larger or equal than 32.
128 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
130 * config/i386/x86-64.h: Append --32 to the assembler options when
131 -m16 is used on non-glibc systems as well.
133 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
136 * config/i386/mmintrin.h (__m64_u): New type
137 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
138 Make the allowed unaligned memory access explicit.
140 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
142 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
143 Generally use cpu generic.
145 2016-12-10 Jakub Jelinek <jakub@redhat.com>
146 Marc Glisse <marc.glisse@inria.fr>
148 PR tree-optimization/78720
149 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
150 is negative, sign extend to @1's type and than AND with C.
152 2016-12-10 Jakub Jelinek <jakub@redhat.com>
155 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
156 non-zero low bound or non-standard element sizes.
159 * lto-streamer-in.c (input_function): In addition to debug stmts
160 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
163 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
165 * config/rs6000/rs6000-passes.def: New file.
166 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
167 * config/rs6000/rs6000.c (rs6000_option_override): Remove
168 registration of machine-specific passes.
169 (pass_analyze_swaps::clone): New function.
170 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
172 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
175 * ipa-cp.c (propagate_vr_accross_jump_function): Call
176 drop_tree_overflow after fold_convert.
178 2016-12-09 Jakub Jelinek <jakub@redhat.com>
181 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
182 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
185 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
188 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
189 GET_MODE_BITSIZE. Return 2.
190 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
191 TARGET_POPCNTD the same as TARGET_CTZ.
192 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
193 (ffs<mode>2): Reimplement.
195 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
197 PR rtl-optimization/78255
198 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
199 NO_FUNCTION_CSE is true.
201 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
204 * ipa-icf.c (sem_function::parse): Don't process functions with
205 oacc decl attributes, as they may be OpenACC routines.
207 2016-12-09 David Malcolm <dmalcolm@redhat.com>
209 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
212 2016-12-09 Nathan Sidwell <nathan@acm.org>
215 * convert.c (convert_to_integer_1): Maybe fold conversions to
216 integral types with fewer bits than its mode.
218 2016-12-09 Martin Liska <mliska@suse.cz>
220 * tree-pretty-print.c (pretty_print_string): Escape non-printable
223 2016-12-09 Jakub Jelinek <jakub@redhat.com>
225 PR tree-optimization/78726
226 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
227 argument. For lhs uses in debug stmts, don't replace lhs with
228 new_lhs, but with a debug temp set to new_lhs opcode op.
229 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
230 OP down to make_new_ssa_for_def.
231 (zero_one_operation): Call make_new_ssa_for_all_defs even when
232 stmts_to_fix is empty, if *def has not changed yet. Pass
233 OPCODE to make_new_ssa_for_all_defs.
235 2016-12-08 Martin Sebor <msebor@redhat.com>
238 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
239 identifier tree nodes.
240 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
241 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
242 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
243 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
244 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
245 * builtins.c (expand_builtin_alloca): Call
246 maybe_warn_alloc_args_overflow.
247 * builtins.def (aligned_alloc, calloc, malloc, realloc):
248 Add attribute alloc_size.
249 (alloca): Add attribute alloc_size and returns_nonnull.
250 * calls.h (maybe_warn_alloc_args_overflow): Declare.
251 * calls.c (alloc_max_size, operand_signed_p): New functions.
252 (maybe_warn_alloc_args_overflow): Define.
253 (initialize_argument_information): Diagnose overflow in functions
254 declared with attaribute alloc_size.
255 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
256 -Walloc-size-larger-than.
258 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
260 PR rtl-optimization/78671
261 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
264 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
266 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
267 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
269 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
272 * config/aarch64/aarch64.c (aarch64_classify_address):
273 Set load_store_pair_p for TImode and TFmode.
275 2016-12-08 David Malcolm <dmalcolm@redhat.com>
277 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
278 regno_reg_rtx resizing logic to...
279 (emit_status::ensure_regno_capacity): ...this new method,
280 and ensure that the buffers are large enough.
281 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
282 rather than ggc_vec_alloc.
283 * function.h (emit_status::ensure_regno_capacity): New method.
285 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
287 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
288 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
289 * doc/invoke.texi (-fsanitize=kernel-address):
290 Don't say that it enables -fsanitize-address-use-after-scope.
292 2016-12-08 Bin Cheng <bin.cheng@arm.com>
295 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
296 sign bit for index step of data reference.
298 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
300 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
301 Handle SYMBOL_SMALL_TLSGD for ILP32.
302 * config/aarch64/aarch64.md : tlsgd_small modified into
303 tlsgd_small_<mode> to support SImode and DImode.
304 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
307 2016-12-08 Andrew Pinski <apinski@cavium.com>
309 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
310 Access the lower part of RTX appropriately.
312 2016-12-07 David Malcolm <dmalcolm@redhat.com>
314 * genpreds.c (write_tm_constrs_h): Update for renaming of
315 rtx_reader_ptr to md_reader_ptr.
316 (write_tm_preds_h): Likewise.
317 (write_insn_preds_c): Likewise.
318 * read-md.c (rtx_reader_ptr): Rename to...
319 (md_reader_ptr): ...this, and convert from an
320 rtx_reader * to a md_reader *.
321 (rtx_reader::set_md_ptr_loc): Rename to...
322 (md_reader::set_md_ptr_loc): ...this.
323 (rtx_reader::get_md_ptr_loc): Rename to...
324 (md_reader::get_md_ptr_loc): ...this.
325 (rtx_reader::copy_md_ptr_loc): Rename to...
326 (md_reader::copy_md_ptr_loc): ...this.
327 (rtx_reader::fprint_md_ptr_loc): Rename to...
328 (md_reader::fprint_md_ptr_loc): ...this.
329 (rtx_reader::print_md_ptr_loc): Rename to...
330 (md_reader::print_md_ptr_loc): ...this.
331 (rtx_reader::join_c_conditions): Rename to...
332 (md_reader::join_c_conditions): ...this.
333 (rtx_reader::fprint_c_condition): ...this.
334 (rtx_reader::print_c_condition): Rename to...
335 (md_reader::print_c_condition): ...this.
336 (fatal_with_file_and_line): Update for renaming of
337 rtx_reader_ptr to md_reader_ptr.
338 (rtx_reader::require_char): Rename to...
339 (md_reader::require_char): ...this.
340 (rtx_reader::require_char_ws): Rename to...
341 (md_reader::require_char_ws): ...this.
342 (rtx_reader::require_word_ws): Rename to...
343 (md_reader::require_word_ws): ...this.
344 (rtx_reader::read_char): Rename to...
345 (md_reader::read_char): ...this.
346 (rtx_reader::unread_char): Rename to...
347 (md_reader::unread_char): ...this.
348 (rtx_reader::peek_char): Rename to...
349 (md_reader::peek_char): ...this.
350 (rtx_reader::read_name): Rename to...
351 (md_reader::read_name): ...this.
352 (rtx_reader::read_escape): Rename to...
353 (md_reader::read_escape): ...this.
354 (rtx_reader::read_quoted_string): Rename to...
355 (md_reader::read_quoted_string): ...this.
356 (rtx_reader::read_braced_string): Rename to...
357 (md_reader::read_braced_string): ...this.
358 (rtx_reader::read_string): Rename to...
359 (md_reader::read_string): ...this.
360 (rtx_reader::read_skip_construct): Rename to...
361 (md_reader::read_skip_construct): ...this.
362 (rtx_reader::handle_constants): Rename to...
363 (md_reader::handle_constants): ...this.
364 (rtx_reader::traverse_md_constants): Rename to...
365 (md_reader::traverse_md_constants): ...this.
366 (rtx_reader::handle_enum): Rename to...
367 (md_reader::handle_enum): ...this.
368 (rtx_reader::lookup_enum_type): Rename to...
369 (md_reader::lookup_enum_type): ...this.
370 (rtx_reader::traverse_enum_types): Rename to...
371 (md_reader::traverse_enum_types): ...this.
372 (rtx_reader::rtx_reader): Rename to...
373 (md_reader::md_reader): ...this, and update for renaming of
374 rtx_reader_ptr to md_reader_ptr.
375 (rtx_reader::~rtx_reader): Rename to...
376 (md_reader::~md_reader): ...this, and update for renaming of
377 rtx_reader_ptr to md_reader_ptr.
378 (rtx_reader::handle_include): Rename to...
379 (md_reader::handle_include): ...this.
380 (rtx_reader::handle_file): Rename to...
381 (md_reader::handle_file): ...this.
382 (rtx_reader::handle_toplevel_file): Rename to...
383 (md_reader::handle_toplevel_file): ...this.
384 (rtx_reader::get_current_location): Rename to...
385 (md_reader::get_current_location): ...this.
386 (rtx_reader::add_include_path): Rename to...
387 (md_reader::add_include_path): ...this.
388 (rtx_reader::read_md_files): Rename to...
389 (md_reader::read_md_files): ...this.
390 * read-md.h (class rtx_reader): Split into...
391 (class md_reader): ...new class.
392 (rtx_reader_ptr): Rename to...
393 (md_reader_ptr): ...this, and convert to a md_reader *.
394 (class noop_reader): Update base class to be md_reader.
395 (class rtx_reader): Reintroduce as a subclass of md_reader.
396 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
397 (read_char): Update for renaming of rtx_reader_ptr to
399 (unread_char): Likewise.
400 * read-rtl.c (rtx_reader_ptr): New global.
401 (rtx_reader::apply_iterator_to_string): Rename to...
402 (md_reader::apply_iterator_to_string): ...this.
403 (rtx_reader::copy_rtx_for_iterators): Rename to...
404 (md_reader::copy_rtx_for_iterators): ...this.
405 (rtx_reader::read_conditions): Rename to...
406 (md_reader::read_conditions): ...this.
407 (rtx_reader::record_potential_iterator_use): Rename to...
408 (md_reader::record_potential_iterator_use): ...this.
409 (rtx_reader::read_mapping): Rename to...
410 (md_reader::read_mapping): ...this.
411 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
413 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
414 than directly accessing m_string_obstack.
415 (rtx_reader::rtx_reader): New ctor.
416 (rtx_reader::~rtx_reader): New dtor.
418 2016-12-07 Martin Sebor <msebor@redhat.com>
424 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
426 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
427 (check_memop_sizes): Same.
428 (expand_builtin_memcpy): Call check memop_sizes.
429 (expand_builtin_mempcpy): Same.
430 (expand_builtin_memset): Same,
431 (expand_builtin_bzero): Same.
432 (expand_builtin_memory_chk): Call check_sizes.
433 (expand_builtin_strcpy): Same.
434 (expand_builtin_strncpy): Same.
435 (maybe_emit_sprintf_chk_warning): Same.
436 (expand_builtin): Handle strcat and strncat.
437 (fini_object_sizes): Reset pointers.
438 (compute_object_size): New function.
439 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
440 Avoid issuing warnings also issued during built-in expansion.
441 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
443 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
446 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
447 V2DImode elements are SUBREG's convert the result into DImode
448 rather than failing in emit_move_insn.
450 2016-12-07 Jakub Jelinek <jakub@redhat.com>
452 * builtins.c (fold_builtin_strstr): Removed.
453 (fold_builtin_2): Don't call fold_builtin_strstr.
454 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
455 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
456 (gimple_fold_builtin_strstr): New function.
457 (gimple_fold_builtin): Call it.
458 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
461 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
462 var to lhs of new_stmt right before noreturn handling rather than to
463 lhs of e->call_stmt early.
465 2016-12-07 David Malcolm <dmalcolm@redhat.com>
467 * read-md.c (rtx_reader::require_char): New method.
468 (require_char_ws): Convert from function to...
469 (rtx_reader::require_char_ws): ...method.
470 (rtx_reader::require_word_ws): New method.
471 * read-md.h (rtx_reader::require_char): New method decl.
472 (require_char_ws): Remove global decl in favor of...
473 (rtx_reader::require_char_ws): ...new method decl.
474 (rtx_reader::require_word_ws): New method decl.
475 (rtx_reader::peek_char): New method decl.
477 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
479 PR rtl-optimization/78617
480 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
481 registers, also setting hard registers mapped to pseudo registers.
483 2016-12-07 David Malcolm <dmalcolm@redhat.com>
485 * cfgexpand.c (pass_expand::execute): Move stack initializations
486 to rtl_data::init_stack_alignment and call it.
487 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
488 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
490 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
492 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
493 (ira): Move initialization of crtl->is_leaf earlier.
495 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
497 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
498 (movtf_aarch64): Likewise.
499 * config/aarch64/aarch64.c (aarch64_classify_address):
500 Use correct intersection of offsets.
501 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
502 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
503 Use 7-bit signed scaled mode for modes > 16 bytes.
505 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
507 PR rtl-optimization/78561
508 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
509 constant_pool_empty_p in place of get_pool_size_upper_bound.
510 (rs6000_stack_info): Likewise.
511 (rs6000_emit_prologue): Likewise.
512 (rs6000_elf_declare_function_name): Likewise.
513 (rs6000_set_up_by_prologue): Likewise.
514 (rs6000_can_eliminate): Likewise.
515 * output.h (get_pool_size_upper_bound): Delete.
516 (constant_pool_empty_p): New.
517 * varasm.c (get_pool_size_upper_bound): Delete
518 (constant_pool_empty_p): New.
520 2016-12-07 Bin Cheng <bin.cheng@arm.com>
522 PR tree-optimization/78691
523 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
524 Require integral type for the outer expression.
526 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
528 * config/aarch64/aarch64.c
529 (aarch64_builtin_support_vector_misalignment): New.
530 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
532 2016-12-06 David Malcolm <dmalcolm@redhat.com>
535 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
536 Conditionalize the string comparison on Pmode == DImode.
538 2016-12-06 Tom de Vries <tom@codesourcery.com>
540 PR tree-optimization/67955
541 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
542 (stmt_kills_ref_p): Use it.
544 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
547 * calls.c (expand_call): Move back call to prepare_call_address.
549 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
552 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
553 ?* constraints for the ISA 3.0 patterns, so the register allocator
554 is more likely to allocate QImode/HImode to vector registers for
555 conversion to floating point unless a reload is needed.
556 (zero_extendhi<mode>2): Likewise.
557 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
558 first alternative which is converting QImode/HImode to floating
559 point and the QImode/HImode value is in a vector register, and
560 does not allocate the second pseudo register. Remove zero
561 extending into traditional floating point registers, since the
562 instruction used only works on traditional altivec registers.
563 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
565 2016-12-06 David Malcolm <dmalcolm@redhat.com>
567 * config/i386/i386.c: Include print-rtl.h.
568 (selftest::ix86_test_dumping_memory_blockage): New function.
569 (selftest::ix86_run_selftests): Call it.
570 * print-rtl-function.c (print_rtx_function): Create an
571 rtx_reuse_manager and use it.
572 * print-rtl.c: Include "rtl-iter.h".
573 (rtx_writer::rtx_writer): Add reuse_manager param.
574 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
575 (uses_rtx_reuse_p): New function.
576 (rtx_reuse_manager::preprocess): New function.
577 (rtx_reuse_manager::has_reuse_id): New function.
578 (rtx_reuse_manager::seen_def_p): New function.
579 (rtx_reuse_manager::set_seen_def): New function.
580 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
581 prefix the first time in_rtx is seen, and print reuse_rtx
583 (print_inline_rtx): Supply NULL for new reuse_manager param.
584 (debug_rtx): Likewise.
585 (print_rtl): Likewise.
586 (print_rtl_single): Likewise.
587 (rtx_writer::print_rtl_single_with_indent): Likewise.
588 * print-rtl.h: Include bitmap.h when building for host.
589 (rtx_writer::rtx_writer): Add reuse_manager param.
590 (rtx_writer::m_rtx_reuse_manager): New field.
591 (class rtx_reuse_manager): New class.
592 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
593 param and use it when constructing rtx_writer.
594 (selftest::test_dumping_rtx_reuse): New function.
595 (selftest::rtl_tests_c_tests): Call it.
596 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
597 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
598 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
599 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
601 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
604 * lra-lives.c (process_bb_lives): Update biggest mode for
605 implicitly used hard reg.
607 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
609 * config/i386/predicates.md (general_gr_operand): New predicate.
610 * config/i386/i386.md (TImode and DImode push_operand splitter):
611 Use general_gr_operand. Macroize using DWI mode macro.
612 (TImode and DImode nonimmediate_operand splitter): Use
613 nonimmediate_gr_operand and general_gr_operand. Macroize using
615 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
616 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
617 and general_gr_operand.
618 (XFmode nonimmediate_operand splitter): Ditto.
619 (DFmode nonimmediate_operand splitter): Ditto.
620 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
622 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
624 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
625 alphabetical order with respect to other ARMv8 processors.
626 * config/arm/arm-tables.opt: Regenerate.
627 * config/arm/arm-tune.md: Likewise.
629 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
631 * config/mips/mips.c (mips_expand_builtin_insn): Check input
632 ranges of literal integer arguments.
634 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
637 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
638 destroy_predicate_vecs.
639 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
641 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
644 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
645 argument type to a pred_chain.
646 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
648 (flatten_out_predicate_chains): Remove.
649 (uninit_uses_cannot_happen): Rename from
650 uninit_ops_invalidate_phi_use.
651 Change logic so that we are checking that the PHI use will
652 invalidate _ALL_ possibly uninitialized operands.
653 (is_use_properly_guarded): Rename call to
654 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
656 2016-12-06 Tamar Christina <tamar.christina@arm.com>
658 * gcc/config/aarch64/arm_neon.h
659 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
660 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
661 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
662 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
663 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
664 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
665 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
666 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
667 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
668 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
669 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
670 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
671 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
672 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
674 2016-12-06 Jakub Jelinek <jakub@redhat.com>
677 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
678 plus offset is non-zero. For maybe_nonzero_address decl base0,
679 require indirect_base0.
682 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
683 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
684 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
685 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
686 and arguments have no side-effects, return 0.
687 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
690 * fold-const-call.c (fold_const_call): Handle
691 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
693 PR tree-optimization/78675
694 * tree-vect-loop.c (vectorizable_live_operation): For
695 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
696 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
698 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
701 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
702 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
703 (copy_insn_1) <CLOBBER>: Likewise.
705 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
708 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
709 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
710 comparing signed to unsigned values.
711 (FUNCTION_ARG_REGNO_P): Likewise.
713 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
714 Stefan Freudenberger <stefan@reservoir.com>
716 PR tree-optimization/78646
717 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
718 addition used for the memory base expression should have the type
721 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
724 * config.gcc (*-*-uclinux*): Enable posix threads.
726 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
728 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
729 * config/i386/avx512dqintrin.h: Ditto.
730 * config/i386/avx512fintrin.h: Ditto.
731 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
732 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
733 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
734 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
735 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
736 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
738 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
739 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
740 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
741 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
742 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
743 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
744 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
745 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
746 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
748 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
750 * combine.c: Revert r243162.
752 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
754 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
755 X tests a single bit.
757 2016-12-05 Nathan Sidwell <nathan@acm.org>
759 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
760 (diagnostic_action_after_output): ... here.
761 (diagnostic_report_diagnostic): Call it for non-notes.
762 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
763 (diagnostic_check_max_errors): Declare.
765 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
767 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
768 (ENDFILE_SPEC): Likewise.
770 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
772 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
773 * config/arc/arc.c (arc_unspec_offset): New function.
774 (arc_finalize_pic): Change.
775 (arc_emit_call_tls_get_addr): Likewise.
776 (arc_legitimize_tls_address): Likewise.
777 (arc_legitimize_pic_address): Likewise.
778 (insn_is_tls_gd_dispatch): Remove.
779 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
780 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
781 (tls_gd_dispatch): Likewise.
783 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
785 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
788 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
790 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
791 (sparc_split_reg_mem_legitimate): ...this.
792 (sparc_split_reg_mem): Declare.
793 (sparc_split_mem_reg): Likewise.
794 (sparc_split_regreg_legitimate): Rename to...
795 (sparc_split_reg_reg_legitimate): ...this.
796 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
797 (sparc_split_reg_mem_legitimate): ...this.
798 (sparc_split_reg_mem): New function.
799 (sparc_split_mem_reg): Likewise.
800 (sparc_split_regreg_legitimate): Rename to...
801 (sparc_split_reg_reg_legitimate): ...this.
802 (sparc_split_reg_reg): New function.
803 * config/sparc/sparc.md (lra): Remove "none" value.
804 (enabled): Adjust to above change.
805 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
806 (DImode splitters): Adjust to above renamings and use new functions.
807 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
808 (DFmode splitters): Adjust to above renamings and use new functions.
809 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
810 constraint in conjunction with e.
811 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
812 alternative and reorder others.
813 (VM64:mode splitters): Adjust to above renamings and use new functions.
815 2016-12-04 Martin Sebor <msebor@redhat.com>
818 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
819 identifier tree nodes.
820 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
821 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
822 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
823 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
824 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
825 * builtins.def (aligned_alloc, calloc, malloc, realloc):
826 Add attribute alloc_size.
827 (alloca): Add attribute alloc_size and returns_nonnull.
829 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
832 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
833 (dimode_scalar_chain::compute_convert_gain): Ditto.
834 (dimode_scalar_chain::convert_insn): Ditto.
836 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
838 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
839 cases to build a lowpart SUBREG.
841 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
842 David S. Miller <davem@davemloft.net>
844 * config/sparc/constraints.md (U): Adjust comment.
845 * config/sparc/sparc.md (lra): New attribute.
846 (enabled): For base instructions, if the lra attribute is set,
847 return 1 if it is in keeping with TARGET_LRA.
848 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
849 constraint and duplicate them with U replaced by r.
850 (*movdf_insn_sp32): Likewise.
851 (*mov<VM64:mode>_insn_sp32): Likewise.
852 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
854 2016-12-02 Jeff Law <law@redhat.com>
856 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
857 variable main_variant.
859 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
861 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
862 default on PowerPC linux systems.
864 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
866 PR rtl-optimization/78638
867 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
868 GET_MODE (op). Fix this.
870 2016-12-02 David Malcolm <dmalcolm@redhat.com>
873 * selftest.c (selftest::assert_strndup_eq): Rename to...
874 (selftest::assert_xstrndup_eq): ...this, and remove call to
876 (selftest::test_strndup): Rename to...
877 (selftest::test_xstrndup): ...this, updating for above renaming.
878 (selftest::test_libiberty): Update for renaming.
880 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
883 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
884 subversion id 242679 that causes the wrong store instruction to be
885 generated if a DImode is in an Altivec register using REG+REG
888 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
891 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
892 and corresponding post-reload splitter.
894 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
896 * config/aarch64/aarch64.h (machine_function): Add
897 reg_is_wrapped_separately field.
898 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
899 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
901 (aarch64_save_callee_saves): Don't save registers that are wrapped
903 (aarch64_restore_callee_saves): Don't restore registers that are
905 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
906 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
907 (aarch64_get_separate_components): New function.
908 (aarch64_get_next_set_bit): Likewise.
909 (aarch64_components_for_bb): Likewise.
910 (aarch64_disqualify_components): Likewise.
911 (aarch64_emit_prologue_components): Likewise.
912 (aarch64_emit_epilogue_components): Likewise.
913 (aarch64_set_handled_components): Likewise.
914 (aarch64_process_components): Likewise.
915 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
916 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
917 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
918 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
919 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
920 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
922 2016-12-02 Martin Jambor <mjambor@suse.cz>
924 * passes.def: Move pass_rebuild_cgraph_edges to the end of
925 pass_build_ssa_passes.
927 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
929 * config/alpha/alpha.md (exception_receiver): Copy
930 alpha_gp_ave_rtx return value.
932 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
934 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
935 for several include directories that may be relative to sysroot.
936 * config/i386/x-mingw32 (gplus_includedir): Define.
937 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
938 (native_system_includedir): Likewise.
939 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
940 override if TARGET_SYSTEM_ROOT is defined.
941 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
943 2016-12-02 Jakub Jelinek <jakub@redhat.com>
946 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
947 (dimode_scalar_chain::compute_convert_gain): Likewise.
948 (dimode_scalar_chain::convert_insn): Likewise.
949 * config/i386/i386.md (*one_cmpldi2_doubleword): New
950 define_insn_and_split.
951 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
954 * rtl.c (copy_rtx): Don't clear used flag here.
955 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
957 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
958 'E' in format, copy all vectors.
959 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
960 * valtrack.c (cleanup_auto_inc_dec): Likewise.
961 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
963 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
964 Thomas Preud'homme <thomas.preudhomme@arm.com>
966 * config/arm/arm-builtins.c (arm_builtins): Define
967 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
968 (bdesc_2arg): Add line for cmse_nonsecure_caller.
969 (arm_init_builtins): Handle cmse_nonsecure_caller.
970 (arm_expand_builtin): Likewise.
971 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
973 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
974 Thomas Preud'homme <thomas.preudhomme@arm.com>
976 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
977 (cmse_nonsecure_call_clear_caller_saved): New.
978 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
979 (arm_function_ok_for_sibcall): Disable sibcalls for
981 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
982 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
983 (call_value): Likewise.
984 (nonsecure_call_internal): New.
985 (nonsecure_call_value_internal): New.
986 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
987 (*nonsecure_call_value_reg_thumb1_v5): New.
988 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
989 (*nonsecure_call_value_reg_thumb2): New.
990 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
992 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
993 Thomas Preud'homme <thomas.preudhomme@arm.com>
995 * config/arm/arm.c (gimplify.h): New include.
996 (arm_handle_cmse_nonsecure_call): New.
997 (arm_attribute_table): Added cmse_nonsecure_call.
998 (arm_comp_type_attributes): Deny compatibility of function types
999 with without the cmse_nonsecure_call attribute.
1000 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
1002 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1003 Thomas Preud'homme <thomas.preudhomme@arm.com>
1005 * config/arm/arm.c (output_return_instruction): Clear
1007 (thumb2_expand_return): Likewise.
1008 (thumb1_expand_epilogue): Likewise.
1009 (thumb_exit): Likewise.
1010 (arm_expand_epilogue): Likewise.
1011 (cmse_nonsecure_entry_clear_before_return): New.
1012 (comp_not_to_clear_mask_str_un): New.
1013 (compute_not_to_clear_mask): New.
1014 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
1015 * config/arm/thumb2.md (*thumb2_return): Disable for
1016 cmse_nonsecure_entry functions.
1017 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
1018 cmse_nonsecure_entry functions.
1020 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1021 Thomas Preud'homme <thomas.preudhomme@arm.com>
1023 * config/arm/arm.c (use_return_insn): Change to return with bxns
1024 when cmse_nonsecure_entry.
1025 (output_return_instruction): Likewise.
1026 (arm_output_function_prologue): Likewise.
1027 (thumb_pop): Likewise.
1028 (thumb_exit): Likewise.
1029 (thumb2_expand_return): Assert that entry functions always have simple
1031 (arm_expand_epilogue): Handle entry functions.
1032 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
1033 (arm_asm_declare_function_name): New.
1034 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
1035 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
1036 use arm_asm_declare_function_name.
1038 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1039 Thomas Preud'homme <thomas.preudhomme@arm.com>
1041 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
1042 (arm_attribute_table): Added cmse_nonsecure_entry
1043 (arm_compute_func_type): Handle cmse_nonsecure_entry.
1044 (cmse_func_args_or_return_in_stack): New.
1045 (arm_handle_cmse_nonsecure_entry): New.
1046 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
1047 (IS_CMSE_ENTRY): Likewise.
1048 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
1050 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1051 Thomas Preud'homme <thomas.preudhomme@arm.com>
1053 * config.gcc (extra_headers): Added arm_cmse.h.
1054 * config/arm/arm-arches.def (ARM_ARCH):
1055 (armv8-m): Add FL2_CMSE.
1056 (armv8-m.main): Likewise.
1057 (armv8-m.main+dsp): Likewise.
1058 * config/arm/arm-c.c
1059 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
1060 * config/arm/arm-flags.h: Define FL2_CMSE.
1061 * config/arm.c (arm_arch_cmse): New.
1062 (arm_option_override): New error for unsupported cmse target.
1063 * config/arm/arm.h (arm_arch_cmse): New.
1064 * config/arm/arm.opt (mcmse): New.
1065 * config/arm/arm_cmse.h: New file.
1066 * doc/invoke.texi (ARM Options): Add -mcmse.
1067 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
1068 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
1070 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1072 * config/avr/avr.c: Fix coding rule glitches.
1074 2016-12-02 Martin Jambor <mjambor@suse.cz>
1076 * hsa.c (hsa_callable_function_p): Return false for artificial
1079 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
1081 PR rtl-optimization/78561
1082 * varasm.c (recompute_pool_offsets): New.
1083 (output_constant_pool): Call it.
1085 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
1087 PR rtl-optimization/78561
1088 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
1089 get_pool_size to get_pool_size_upper_bound.
1090 (rs6000_stack_info): Likewise.
1091 (rs6000_emit_prologue): Likewise.
1092 (rs6000_elf_declare_function_name): Likewise.
1093 (rs6000_set_up_by_prologue): Likewise.
1094 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
1095 * output.h (get_pool_size): Rename to...
1096 (get_pool_size_upper_bound): ...This.
1097 * varasm.c (get_pool_size): Rename to...
1098 (get_pool_size_upper_bound): ...This.
1100 2016-12-02 Bin Cheng <bin.cheng@arm.com>
1102 * match.pd: Add new pattern:
1103 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
1105 2016-12-02 Nathan Sidwell <nathan@acm.org>
1107 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
1110 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
1113 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
1116 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1118 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
1121 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1123 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
1124 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
1125 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
1126 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
1127 avr_mcu_types.flash_size to compute default value.
1128 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
1129 mcu->flash_size to compute value for spec.
1131 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1133 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
1134 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
1135 about linker description to avoid progmem altogether.
1136 [absdata]: Point to -mabsdata option.
1138 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1140 PR rtl-optimization/78547
1141 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
1142 DECL_INCOMING_RTL is not shared.
1143 * config/i386/i386.c (convert_scalars_to_vectors): If any
1144 insns have been converted, adjust all parameter's DEC_RTL and
1145 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
1148 PR rtl-optimization/78575
1149 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
1150 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
1151 if not already wrapped in a subreg. Make sure df_insn_rescan does not
1152 affect further iterations.
1154 2016-12-02 Martin Liska <mliska@suse.cz>
1157 * sreal.c (sreal::to_int): Make absolute value before shifting.
1158 (sreal::operator/): Likewise.
1159 (sreal_verify_negative_division): New test.
1160 (void sreal_c_tests): Call the new test.
1161 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
1163 (sreal::normalize_down): Likewise.
1165 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1167 * combine.c (combine_simplify_rtx): Suppress replacement of
1168 "(and (reg) (const_int bit))" with "if_then_else".
1170 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1173 * config/s390/s390.md ("extzv")
1174 ("*extzv<mode><clobbercc_or_nocc>")
1175 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
1176 ("*<risbg_n>_ior_and_sr_ze")
1177 ("*extract1bitdi<clobbercc_or_nocc>")
1178 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
1179 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
1180 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
1181 to validate the arguments of zero_extract and sign_extract.
1183 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1186 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
1188 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1190 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
1192 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
1195 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1197 * config/s390/vector.md (vec_halfhalf): New mode iterator.
1198 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
1199 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
1200 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
1201 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
1202 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
1203 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
1204 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
1205 ("vec_unpacku_lo_v4si"): New pattern definitions.
1206 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
1209 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1211 * config/s390/s390-protos.h (s390_reverse_condition): New
1213 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
1215 (s390_reverse_condition): New function.
1216 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
1219 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1221 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
1222 (CCVHUANY): Remove modes.
1223 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
1225 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
1226 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
1228 (s390_branch_condition_mask): Adjust to use the new cc consumer
1229 modes. The new modes allow for proper reversal in the middle-end.
1230 (s390_expand_vec_compare_cc): Determine the proper cc producer and
1231 consumer modes for a comparison.
1232 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
1233 throughout the file.
1234 * config/s390/vx-builtins.md: Likewise.
1236 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1238 * asan.c (asan_global_struct): Refactor.
1239 (create_odr_indicator): New function.
1240 (asan_needs_odr_indicator_p): Likewise.
1241 (is_odr_indicator): Likewise.
1242 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
1244 (asan_protect_global): Do not protect odr indicators.
1246 2016-12-01 Jeff Law <law@redhat.com>
1248 * tree-ssa-threadedge.c
1249 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
1250 propagation of operands if there are no operands.
1252 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1254 PR tree-optimization/78586
1255 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
1256 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
1257 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
1258 type is INTEGER_TYPE or POINTER_TYPE.
1260 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
1263 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
1264 (vextuhrx): Likewise.
1265 (vextuwlx): Likewise.
1266 (vextuwrx): Likewise.
1268 2016-12-01 David Malcolm <dmalcolm@redhat.com>
1270 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
1271 early_dwarf_finished.
1273 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
1274 David S. Miller <davem@davemloft.net>
1276 * config/sparc/sparc.opt (mlra): New target option.
1277 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
1278 (sparc_lra_p): ...this. New function.
1279 (D_MODES, DF_MODES): Add missing cast.
1280 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1281 provide these insns when flag_pic.
1282 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
1283 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
1284 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
1285 embmedany_textulo, embmedany_textlo): Likewise.
1286 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
1288 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
1292 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
1294 2016-12-01 Richard Biener <rguenther@suse.de>
1295 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1297 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
1298 memset if len-oldlen != 0.
1299 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
1301 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
1303 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
1305 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
1307 * config/avr/avr.c: Fix coding rule glitches.
1309 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
1311 PR tree-optimization/78598
1312 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
1315 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
1317 PR rtl-optimization/78596
1318 * combine.c (simplify_comparison): Cast to unsigned to avoid
1319 left shifting of negative value.
1321 2016-12-01 Matthias Klose <doko@ubuntu.com>
1323 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
1325 2016-12-01 Richard Biener <rguenther@suse.de>
1327 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
1328 treat arrays with same type as objects that cannot overlap.
1330 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
1332 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
1333 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
1334 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
1336 2016-12-01 Jakub Jelinek <jakub@redhat.com>
1339 * dwarf2out.c (loc_descr_plus_const): For negative offset use
1340 uint_loc_descriptor instead of int_loc_descriptor and perform negation
1341 in unsigned HOST_WIDE_INT type.
1342 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
1345 * config/rs6000/rs6000.c (rs6000_frame_related): Call
1346 set_used_flags (pat) before any simplifications. Clear used flag on
1347 PARALLEL copy. Don't guard add_reg_note call. Call
1348 copy_rtx_if_shared on pat before storing it into
1349 REG_FRAME_RELATED_EXPR.
1351 2016-12-01 Alan Modra <amodra@gmail.com>
1353 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
1354 look inside UNSPEC_VSX_XXSPLTW vec.
1356 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
1358 PR rtl-optimization/78607
1359 * combine.c (try_combine): Emit a barrier after a unconditional trap.
1361 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
1364 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
1365 element is not a constant or in a register, force it to a
1369 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
1370 that will be set to a vector element to be in a register.
1371 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
1372 the wrong multiplier to convert the element number to a byte
1375 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
1377 PR tree-optimization/77856
1378 * lra-constraints.c (inherit_in_ebb): Check original regno for
1379 invalid invariant regs too. Set only clobbered hard regs for the
1380 invalid invariant regs.
1382 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
1384 Commit files forgotten in r242966.
1386 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
1387 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
1388 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
1389 prefix check to find wrap-around value, instead use MCU flash size.
1390 For 8k flash devices, update link_pmem_wrap spec string to
1391 add --pmem-wrap-around=8k.
1392 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
1394 (LINK_SPEC): ...to here.
1396 2016-11-30 David Malcolm <dmalcolm@redhat.com>
1399 * selftest.c (selftest::assert_strndup_eq): New function.
1400 (selftest::test_strndup): New function.
1401 (selftest::test_libiberty): New function.
1402 (selftest::selftest_c_tests): Call test_libiberty.
1404 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1406 PR rtl-optimization/78610
1407 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
1410 2016-11-30 Bin Cheng <bin.cheng@arm.com>
1412 PR tree-optimization/78574
1413 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
1414 header PHI that doesn't define biv.
1416 2016-11-30 Jakub Jelinek <jakub@redhat.com>
1418 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
1421 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
1422 sharing the SUBREG rtx between move and following insn.
1424 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
1425 for REG_EQUIV argument.
1427 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
1429 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
1431 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
1434 * real.c (real_hash): Add cast to avoid left
1435 shifting of negative values.
1437 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1440 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
1441 from a subreg in operands[1] and don't call REGNO on a non-reg
1442 expression when deciding to force operands[2] into a reg.
1444 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
1445 Andrew Burgess <andrew.burgess@embecosm.com>
1447 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
1448 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
1449 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
1450 * config/arc/arc700.md: Add define_bypass for store/load.
1452 2016-11-30 Martin Liska <mliska@suse.cz>
1454 * cgraph.c (symbol_table::initialize): Initialize
1455 ipa_clones_dump_file.
1456 (cgraph_node::remove): Report to ipa_clones_dump_file.
1457 * cgraph.h: Add new argument (suffix) to cloning methods.
1458 * cgraphclones.c (dump_callgraph_transformation): New function.
1459 (cgraph_node::create_clone): New argument.
1460 (cgraph_node::create_virtual_clone): Likewise.
1461 (cgraph_node::create_version_clone): Likewise.
1462 * dumpfile.c: Add .ipa-clones dump file.
1463 * dumpfile.h (enum tree_dump_index): Add TDI_clones
1464 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
1465 to dump_callgraph_transformation.
1467 2016-11-30 Martin Liska <mliska@suse.cz>
1470 * asan.c (asan_expand_mark_ifn): Properly
1471 select a VAR_DECL from FRAME.* component reference.
1473 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1475 PR rtl-optimization/78583
1476 * simplify-rtx.c (simplify_truncation): Add check missing from the
1479 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1481 PR rtl-optimization/78590
1482 * combine.c (change_zero_ext): Transform zero_extend of subregs only
1483 if the subreg_reg is a scalar integer mode.
1485 2016-11-30 Jakub Jelinek <jakub@redhat.com>
1487 PR tree-optimization/78586
1488 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
1489 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
1490 Don't build_int_cst min/max twice. Formatting fix.
1492 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
1494 PR rtl-optimization/78588
1495 * combine.c (if_then_else_cond): Also guard against BLKmode.
1496 * rtlanal.c (num_sign_bit_copies1): Add assert.
1498 2016-11-29 Jeff Law <law@redhat.com>
1500 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
1503 * lra-constraints.c (check_and_process_move): Constrain the
1504 range of DCLASS and SCLASS to avoid false positive out of bounds
1505 array index warning.
1507 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1509 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
1511 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1513 PR preprocessor/78569
1514 * input.c (get_substring_ranges_for_loc): Fail gracefully if
1515 line directives were present.
1517 2016-11-30 Matthias Klose <doko@ubuntu.com>
1519 * doc/install.texi: Document configure options --enable-objc-gc
1520 and --with-target-bdw-gc.
1522 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1525 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
1526 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
1527 residing in traditional altivec registers can be stored
1530 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
1533 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
1534 overhead loop start between a call and its CALL_ARG_LOCATION
1537 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
1539 * config/bfin/linux.h (CPP_SPEC): Define.
1541 2016-11-29 Martin Sebor <msebor@redhat.com>
1543 PR tree-optimization/78512
1544 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
1545 * config/rs6000/linux.h: Same.
1546 * config/rs6000/linux64.h: Same.
1547 * config/sol2.h: Same.
1548 * config/sol2.c (solaris_printf_pointer_format): Remove.
1549 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
1550 * doc/tm.texi: Regenerate.
1551 * gimple-ssa-sprintf.c (format_pointer): Rempove.
1552 (pass_sprintf_length::compute_format_length): Return bool.
1553 (pass_sprintf_length::handle_gimple_call): Adjust.
1554 * target.def (printf_pointer_format): Remove.
1555 * targhooks.c (default_printf_pointer_format): Remove.
1556 (linux_printf_pointer_format): Same.
1557 * targhooks.h (default_printf_pointer_format): Remove.
1558 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
1560 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
1562 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
1564 (SWI1248_AVX512BWDQ): Ditto.
1565 (SWI1248_AVX512BW): Ditto.
1566 (k<any_logic:code><mode>): Ditto.
1567 (kandn<mode>): Ditto.
1568 (kxnor<mode>): Ditto.
1569 (knot<mode>): Ditto.
1570 (*k<any_lshift:code><mode>): Ditto.
1571 (kortestzhi, kortestchi): Ditto.
1572 (kunpckhi, kunpcksi, kunpckdi): Ditto.
1574 2016-11-29 Andrew Pinski <apinski@cavium.com>
1576 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
1579 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
1582 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
1583 to stack before call mcount.
1584 (tilegx_can_use_return_insn_p): Clean up code.
1586 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1588 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
1590 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1596 * spellcheck.c (selftest::test_find_closest_string): Verify that
1597 we don't offer the goal string as a suggestion.
1598 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
1599 offer the goal string as a suggestion.
1602 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
1604 * config/arc/arc.c (arc_override_options): Avoid selection of
1605 compact casesi for ARCv2.
1607 2016-11-29 Richard Biener <rguenther@suse.de>
1609 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
1610 PHIs after a regular stmt.
1611 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
1614 2016-11-29 Martin Liska <mliska@suse.cz>
1616 PR gcov-profile/78582
1617 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
1618 to prevent PHI argument clash.
1620 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
1622 * config/arc/arc.opt (marclinux): Fix typo.
1623 (marclinux_prof): Likewise.
1625 2016-11-29 Jiong Wang <jiong.wang@arm.com>
1627 * target.def (stack_protect_runtime_enabled_p): New.
1628 * function.c (expand_function_end): Guard stack_protect_epilogue with
1629 targetm.stack_protect_runtime_enabled_p.
1630 * cfgexpand.c (pass_expand::execute): Likewise.
1631 * calls.c (expand_call): Likewise.
1632 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
1633 * doc/tm.texi: Regenerate.
1635 2016-11-29 Richard Biener <rguenther@suse.de>
1638 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
1640 2016-11-29 Janus Weil <janus@gcc.gnu.org>
1642 * doc/contrib.texi: Add a few missing gfortran contributors.
1644 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
1646 * combine.c (change_zero_ext): Also handle extends from a subreg
1647 to a mode bigger than that of the operand of the subreg.
1649 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
1652 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
1653 stack_restore_tie insn instead of stack_tie, for the SVR4 and
1655 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
1657 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1659 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
1660 head_components and tail_components.
1661 (spread_components): New algorithm.
1662 (emit_common_tails_for_components): Clear head_components and
1664 (insert_prologue_epilogue_for_components): Write extra output to the
1665 dump file for sibcalls and abnormal exits.
1667 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1669 PR rtl-optimization/78342
1670 * combine.c: Include "cfghooks.h".
1671 (try_combine): If we create an unconditional trap, break the basic
1672 block in two just after it, and remove the edge between; also, set
1673 the *new_direct_jump_p flag so that cleanup_cfg is run.
1675 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1677 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
1680 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
1682 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
1683 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
1684 output template string.
1685 (*anddi_1): Use multi-line output template string.
1688 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1691 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
1692 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
1693 note has been removed.
1694 * postreload.c (reload_combine_recognize_pattern): If
1695 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
1697 2016-11-28 Martin Sebor <msebor@redhat.com>
1700 * gimple-ssa-sprintf.c (target_max_value): Remove.
1701 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
1702 (get_width_and_precision): New function.
1703 (format_integer, format_floating, get_string_length, format_string):
1704 Correct handling of width and precision with unknown value.
1705 (format_directive): Add warning.
1706 (pass_sprintf_length::compute_format_length): Allow for precision
1707 to consist of a sole period with no asterisk or digits after it.
1709 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1711 PR rtl-optimization/78546
1712 * simplify-rtx.c (neg_const_int): When negating most negative
1713 number in mode wider than HOST_BITS_PER_WIDE_INT, use
1714 simplify_const_unary_operation to produce CONST_DOUBLE or
1716 (simplify_plus_minus): Handle the case where neg_const_int
1717 doesn't return a CONST_INT.
1719 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
1722 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
1723 left shifting of negative values.
1725 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1728 * tree-nested.c (convert_local_reference_stmt): After adding
1729 shared (FRAME.NN) clause to omp parallel, task or target,
1730 add it also to all outer omp parallel, task or target constructs.
1732 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
1734 * config/i386/i386.md (UNSPEC_KMASKOP): New.
1735 (UNSPEC_KMOV): Remove.
1736 (kmovw): Expand to plain HImode move.
1737 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
1738 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
1739 Remove corresponding clobber-removing splitter.
1740 (*anddi_1): Remove mask register alternatives.
1744 (*<any_or:code><mode>_1): Ditto.
1745 (*<any_or:code>qi_1): Ditto.
1746 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
1747 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
1748 Remove corresponding splitter to operation with general registers.
1749 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
1750 (*andn<SWI12:mode>): New pattern.
1751 (*kxnor<mode>): Remove general register alternatives. Tag pattern
1752 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
1753 with general registers.
1754 (knot<mode>): New insn pattern.
1755 (*one_cmpl<mode>2_1): Remove mask register alternatives.
1756 (one_cmplqi2_1): Ditto.
1757 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
1758 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
1759 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
1760 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
1761 to generate kmaskop shift.
1762 (vec_unpacks_hi_<mode>): Ditto.
1763 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
1764 Use CODE_FOR_kandhi.
1765 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
1766 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
1767 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
1769 2016-11-28 Richard Biener <rguenther@suse.de>
1771 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
1772 to SSA names via extract_range_from_ssa_name if allowed.
1774 2016-11-28 Richard Biener <rguenther@suse.de>
1776 PR tree-optimization/78542
1777 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
1780 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
1782 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
1783 isolates a single bit, even if the condition involves subregs.
1785 2016-11-28 Tamar Christina <tamar.christina@arm.com>
1787 * config/aarch64/aarch64-simd-builtins.def
1788 (BSL_P): Added di and v2di mode.
1789 * config/aarch64/arm_neon.h
1790 (vsriq_n_p64, vsri_n_p64): Added poly type.
1791 (vextq_p64, vext_p64): Likewise.
1792 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
1794 2016-11-28 Tamar Christina <tamar.christina@arm.com>
1796 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
1797 (TYPES_GETREGP): Likewise.
1798 (TYPES_SHIFTINSERTP): Likewise.
1799 (TYPES_COMBINEP): Likewise.
1800 (TYPES_STORE1P): Likewise.
1801 * config/aarch64/aarch64-simd-builtins.def
1802 (combine): Added poly generator.
1803 (get_dregoi): Likewise.
1804 (get_dregci): Likewise.
1805 (get_dregxi): Likewise.
1809 * config/aarch64/arm_neon.h
1810 (poly64x1x2_t, poly64x1x3_t): New.
1811 (poly64x1x4_t, poly64x2x2_t): Likewise.
1812 (poly64x2x3_t, poly64x2x4_t): Likewise.
1813 (poly64x1_t): Likewise.
1814 (vcreate_p64, vcombine_p64): Likewise.
1815 (vdup_n_p64, vdupq_n_p64): Likewise.
1816 (vld2_p64, vld2q_p64): Likewise.
1817 (vld3_p64, vld3q_p64): Likewise.
1818 (vld4_p64, vld4q_p64): Likewise.
1819 (vld2_dup_p64, vld3_dup_p64): Likewise.
1820 (vld4_dup_p64, vsli_n_p64): Likewise.
1821 (vsliq_n_p64, vst1_p64): Likewise.
1822 (vst1q_p64, vst2_p64): Likewise.
1823 (vst3_p64, vst4_p64): Likewise.
1824 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
1825 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
1826 (vget_lane_p64, vgetq_lane_p64): Likewise.
1827 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
1828 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
1829 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
1830 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
1831 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
1832 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
1833 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
1834 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
1835 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
1836 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
1837 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
1838 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
1839 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
1840 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
1841 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
1842 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
1843 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
1844 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
1845 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
1846 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
1847 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
1848 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
1849 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
1850 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
1851 (vset_lane_p64, vsetq_lane_p64): Likewise.
1852 (vget_low_p64, vget_high_p64): Likewise.
1853 (vcombine_p64, vst2_lane_p64): Likewise.
1854 (vst3_lane_p64, vst4_lane_p64): Likewise.
1855 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
1856 (vst4q_lane_p64, vget_lane_p64): Likewise.
1857 (vget_laneq_p64, vset_lane_p64): Likewise.
1858 (vset_laneq_p64, vcopy_lane_p64): Likewise.
1859 (vcopy_laneq_p64, vdup_n_p64): Likewise.
1860 (vdupq_n_p64, vdup_lane_p64): Likewise.
1861 (vdup_laneq_p64, vld1_p64): Likewise.
1862 (vld1q_p64, vld1_dup_p64): Likewise.
1863 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
1864 (vmov_n_p64, vmovq_n_p64): Likewise.
1865 (vst3q_p64, vst4q_p64): Likewise.
1866 (vld1_lane_p64, vld1q_lane_p64): Likewise.
1867 (vst1_lane_p64, vst1q_lane_p64): Likewise.
1868 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
1869 (vdupq_laneq_p64): Likewise.
1871 2016-11-28 Tamar Christina <tamar.christina@arm.com>
1873 * config/arm/arm_neon.h (vget_lane_p64): New.
1875 2016-11-28 Iain Sandoe <iain@codesourcery.com>
1878 * configure.ac (with_ld64): Use portable method to extract the
1879 major part of the version number.
1880 * configure: Regenerated.
1882 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1884 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
1885 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
1886 intmax_t couldn't be determined.
1887 (format_integer): Make {,u}intmax_type_node no longer static,
1888 initialize them only when needed. For z and t use
1889 signed_or_unsigned_type_for instead of assuming size_t and
1890 ptrdiff_t have the same precision.
1893 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
1894 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
1895 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
1896 vector instead of traversing m_classes hash table. Release
1898 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
1900 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
1901 add it also to m_classes_vec vector.
1902 (sem_item_optimizer::remove_symtab_node,
1903 sem_item_optimizer::build_hash_based_classes,
1904 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
1905 (sem_item_optimizer::subdivide_classes_by_equality,
1906 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
1907 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
1908 instead of traversing m_classes hash table. Formatting fixes.
1909 (sem_item_optimizer::traverse_congruence_split,
1910 sem_item_optimizer::do_congruence_step_for_index,
1911 sem_item_optimizer::do_congruence_step): Formatting fixes.
1912 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
1913 vector instead of traversing m_classes hash table.
1914 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
1915 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
1916 instead of traversing m_classes hash table.
1918 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
1920 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
1921 X is not unused after.
1923 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
1925 PR rtl-optimization/78120
1926 * rtlanal.c (insn_rtx_cost): Revert previous change.
1928 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
1931 * config/avr/avr.md (SPLIT34): New mode iterator.
1932 (bitop): New code iterator.
1933 (*iorhi3.ashift8-*). New insn-and-split patterns.
1934 (*movhi): Post-reload split reg = 0.
1935 [!MOVW]: Post-reload split reg = reg.
1936 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
1937 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
1938 (iorhi3, iorpsi3, iorsi3): Same.
1939 (xorhi3, xorpsi3, xorsi3): Same.
1940 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
1941 costs to *iorhi3.ashift8-* patterns.
1943 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1944 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1947 * config.in: Regenerate
1948 * config/darwin-driver.c (darwin_driver_init): Emit a version string
1950 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
1951 * config/darwin.opt(asm_macosx_version_min): New.
1952 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
1953 * configure: Regenerate
1954 * configure.ac: Check for mmacosx-version-min handling.
1956 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1959 * config/i386/i386.c (ix86_code_end): Note that we emitted code
1960 where the function might otherwise appear empty for picbase thunks.
1961 (ix86_output_function_epilogue): If we find a zero-sized function
1962 assume that reaching it is UB and trap. If we find a trailing label
1964 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
1965 find a zero-sized function assume that reaching it is UB and trap.
1966 If we find a trailing label, append a nop.
1968 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1971 * config/darwin-sections.def (picbase_thunk_section): New.
1972 * config/darwin.c (darwin_init_sections): Set up picbase thunk
1973 section. (darwin_rodata_section, darwin_objc2_section,
1974 machopic_select_section, darwin_asm_declare_constant_name,
1975 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
1976 coalesced with newer linkers.
1977 (darwin_override_options): Decide on usage of coalesed sections
1978 on the basis of the target linker version.
1979 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
1980 * config/darwin.opt (mtarget-linker): New.
1981 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
1982 a coalesced section, instead use a thunks section.
1984 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1987 * configure.ac (with-ld64): New var, set for Darwin, set on
1988 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
1989 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
1990 * config/darwin10.h(DEF_LD64): Update for this target version.
1991 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
1992 (DEF_LD64): Update for this target version.
1993 * configure: Regenerated.
1994 * config.in: Regenerated.
1996 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1999 * config/darwin.c (imachopic_indirection_name): Make data
2000 section indirections linker-visible.
2001 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
2002 constant labels linker-visible.
2004 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2006 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
2007 (free_lang_data): Remove assignment to ptrdiff_type_node.
2009 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2011 PR rtl-optimization/78526
2012 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
2013 beyond val's precision.
2015 PR rtl-optimization/78527
2016 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
2017 out of bounds shift count.
2019 2016-11-25 Martin Liska <mliska@suse.cz>
2022 * doc/invoke.texi (-fprofile-use): Fix reference to a section
2023 where -fprofile-generate is documented.
2025 2016-11-25 Martin Liska <mliska@suse.cz>
2027 PR gcov-profile/78086
2028 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
2029 not supported by a target. Set priority to 100 if possible.
2030 (build_gcov_exit_decl): Likewise.
2032 2016-11-25 Richard Biener <rguenther@suse.de>
2035 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
2036 unary, binary and single RHSs.
2037 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
2039 2016-11-25 Bin Cheng <bin.cheng@arm.com>
2044 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
2045 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
2046 and set it to result code if transformation is valid. Use code EQ
2047 directly in last simplification case.
2049 2016-11-25 Richard Biener <rguenther@suse.de>
2051 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
2052 before valueizing return stmts.
2054 2016-11-24 Richard Biener <rguenther@suse.de>
2056 PR tree-optimization/78343
2057 * passes.def: Add CD-DCE pass after loop splitting.
2058 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
2059 SCEV init/finalize ...
2060 (perform_tree_ssa_dce): ... here. Deal with being
2061 executed inside the loop pipeline in aggressive mode.
2063 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2065 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
2067 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2069 PR tree-optimization/77673
2070 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
2071 (init_symbolic_number): Initialize src field from src parameter.
2072 (perform_symbolic_merge): Select most dominated statement as the
2073 source statement. Set src field of resulting n structure from the
2074 input src with the lowest address.
2075 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
2076 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
2077 of load from src field rather than insertion statement. Cancel
2078 optimization if statement analyzed is not dominated by the insertion
2080 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
2081 dominance information.
2083 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
2086 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2088 2016-11-25 Martin Jambor <mjambor@suse.cz>
2090 PR tree-optimization/70965
2091 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
2093 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
2096 * config/i386/i386.c (i386_excess_precision): Do not return
2097 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2098 EXCESS_PRECISION_TYPE_STANDARD.
2099 * target.def (excess_precision): Document that targets should
2100 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2101 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
2102 Fix typo in first sentence.
2103 * doc/tm.texi: Regenerate.
2105 2016-11-25 Richard Biener <rguenther@suse.de>
2107 PR tree-optimization/78396
2108 * tree-vectorizer.c (vectorize_loops): When the if-converted
2109 body contains masked loads or stores do not attempt to
2110 basic-block-vectorize it.
2112 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2113 Alan Hayward <alan.hayward@arm.com>
2114 David Sherwood <david.sherwood@arm.com>
2116 * function.h (spill_slot_alignment): Declare.
2117 * function.c (spill_slot_alignment): New function.
2118 * lra-spills.c (slot): Add align and size fields.
2119 (assign_mem_slot): Use them in the call to assign_stack_local.
2120 (add_pseudo_to_slot): Update the fields.
2121 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
2123 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2124 Alan Hayward <alan.hayward@arm.com>
2125 David Sherwood <david.sherwood@arm.com>
2127 * stor-layout.c (layout_type): Allow the caller to set the mode of
2128 a float type. Only choose one here if the mode is still VOIDmode.
2129 * tree.c (build_common_tree_nodes): Set the type mode of decimal
2130 floats before calling layout_type.
2131 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
2133 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2135 * tree-tailcall.c (find_tail_calls): Allow calls to reference
2136 local variables if all references are known to be direct.
2138 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2139 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2142 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
2143 non null and it's precision matches precision of lhs's type.
2145 2016-11-24 Martin Sebor <msebor@redhat.com>
2147 PR tree-optimization/78476
2148 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
2150 (handle_gimple_call): Adjust signature.
2151 (try_substitute_return_value): Remove calls to bounded functions
2152 with zero buffer size whose result is known.
2153 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
2155 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2157 * varasm.c (assemble_start_function): Wrap align_log definition in
2158 ASM_OUTPUT_MAX_SKIP_ALIGN.
2160 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
2162 * config/i386/i386.md (wide AND insn to QImode splitter): Use
2163 explicit mode macros.
2164 (wide OR insn to QImode splitter): Ditto.
2166 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
2168 PR rtl-optimization/77541
2169 * lra-constraints.c (struct input_reload): Add field match_p.
2170 (get_reload_reg): Check modes of input reloads to generate unique
2171 value reload pseudo.
2172 (match_reload): Add input reload pseudo for the current insn.
2174 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2176 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
2177 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
2178 architecture levels.
2179 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
2180 the aarch64_fp16_type_node, not all HFmode types.
2181 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
2182 (aarch64_scalar_mode_supported_p): Likewise.
2183 (aarch64_excess_precision): New.
2184 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
2185 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
2186 (TARGET_C_EXCESS_PRECISION): Likewise.
2188 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2190 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
2191 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2193 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2195 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
2196 (<optab>dihf2): Likewise.
2197 (aarch64_fp16_<optab><mode>hf2): New.
2199 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
2202 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
2204 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2206 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
2207 Enable REE at -O2 and higher.
2208 * config/sparc/sparc.c (sparc_option_override): Disable it by default
2211 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2215 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
2216 (new_temp_expr_table): Initialise reg_vars_cnt.
2217 (free_temp_expr_table): Release reg_vars_cnt.
2218 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
2220 (find_replaceable_in_bb): Use the above to record register variable
2221 write occurrences and cancel replacement across them.
2223 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2225 PR rtl-optimization/78437
2226 * ree.c (get_uses): New function.
2227 (combine_reaching_defs): When a copy is needed, return false if any
2228 reaching use of the source register reads it in a mode larger than
2229 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
2231 2016-11-24 Martin Liska <mliska@suse.cz>
2233 * gimple-pretty-print.c (dump_edge_probability): New function.
2234 (dump_gimple_switch): Dump label edge probabilities.
2235 (dump_gimple_cond): Likewise.
2236 (dump_gimple_label): Dump
2237 (dump_gimple_bb_header): Dump basic block frequency.
2238 (pp_cfg_jump): Replace e->dest argument with e.
2239 (dump_implicit_edges): Likewise.
2240 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
2241 Use gimple_bb (at) instead of at->bb.
2243 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
2245 * common.opt (flimit-function-alignment): New.
2246 * doc/invoke.texi (-flimit-function-alignment): Document.
2247 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
2248 * final.c (shorten_branches): Set it.
2249 * varasm.c (assemble_start_function): Limit alignment if
2252 2016-11-24 Richard Biener <rguenther@suse.de>
2254 PR tree-optimization/71595
2255 * cfgloopmanip.h (remove_path): Add irred_invalidated and
2256 loop_closed_ssa_invalidated parameters, defaulted to NULL.
2257 * cfgloopmanip.c (remove_path): Likewise, pass them along to
2258 called functions. Only fix irred flags if the caller didn't
2260 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
2261 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
2264 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
2266 PR rtl-optimization/78120
2267 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
2268 cases, and additionally test against max_seq_cost for speed
2270 (noce_process_if_block): Compute an estimate for the original cost when
2271 optimizing for speed, using the minimum of then and else block costs.
2273 PR rtl-optimization/78120
2274 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
2276 PR rtl-optimization/78120
2277 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
2279 2016-11-24 Bin Cheng <bin.cheng@arm.com>
2281 * match.pd: Refine type conversion in result expr for below pattern:
2282 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
2284 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2287 * tree.h (wi::fits_to_boolean_p): New predicate.
2288 (wi::fits_to_tree_p): Use it for boolean types.
2289 * tree.c (int_fits_type_p): Likewise.
2291 2016-11-24 Martin Liska <mliska@suse.cz>
2293 * print-tree.c (struct bucket): Remove.
2294 (print_node): Add new argument which drives whether a tree node
2295 is printed briefly or not.
2296 (debug_tree): Replace a custom hash table with hash_set<T>.
2297 * print-tree.h (print_node): Add the argument.
2299 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
2301 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
2303 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
2306 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
2307 if it is at least NREGS wide.
2309 2016-11-23 Joseph Myers <joseph@codesourcery.com>
2311 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
2312 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
2313 TFmode, IFmode and KFmode.
2315 2016-11-23 Joseph Myers <joseph@codesourcery.com>
2317 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
2320 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
2322 * combine.c (change_zero_ext): Only change the mode of a hard register
2323 destination if can_change_dest_mode holds for that.
2325 2016-11-23 Jeff Law <law@redhat.com>
2327 * varasm.c (assemble_name): Increase buffer size for name.
2329 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
2331 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
2333 * doc/extend.texi: Constify first argument to __builtin_object_size.
2335 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2337 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
2338 to be used. Add brackets around macro argument.
2340 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
2342 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
2344 2016-11-23 Jakub Jelinek <jakub@redhat.com>
2347 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
2348 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
2350 2016-11-23 Jakub Jelinek <jakub@redhat.com>
2353 * omp-low.c (build_outer_var_ref): Change lastprivate argument
2354 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
2355 on worksharing constructs, treat it like clauses on simd construct.
2357 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
2358 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
2359 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
2360 of true as last argument to build_outer_var_ref.
2362 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
2364 * config/i386/i386.md (*movqi_internal): Calculate mode
2365 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
2366 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
2367 (*k<logic><mode>): Calculate mode attribute depending on
2368 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
2369 (*andqi_1): Calculate mode attribute of alternative 3 depending
2370 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
2371 (kandn<mode>): Calculate mode attribute of alternative 2 depending
2372 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
2373 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
2374 iterator. Calculate mode attribute of alternative 1 depending
2375 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
2376 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
2377 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
2379 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2382 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
2383 * tree-vrp.c (extract_range_basic): Handle case for
2384 CFN_BUILT_IN_STRLEN.
2386 2016-11-23 Jeff Law <law@redhat.com>
2388 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
2390 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
2391 in boolean context warning.
2393 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
2395 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2398 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
2399 (arm_fp16_type_node): ...This, make visibile.
2400 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
2402 (arm_init_simd_builtin_types): Likewise.
2403 (arm_init_fp16_builtins): Likewise.
2404 * config/arm/arm.c (arm_excess_precision): New.
2405 (arm_floatn_mode): Likewise.
2406 (TARGET_C_EXCESS_PRECISION): Likewise.
2407 (TARGET_FLOATN_MODE): Likewise.
2408 (arm_promoted_type): Only promote arm_fp16_type_node.
2409 * config/arm/arm.h (arm_fp16_type_node): Declare.
2411 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2413 * config/arm/arm.c (arm_convert_to_type): Delete.
2414 (TARGET_CONVERT_TO_TYPE): Delete.
2415 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
2416 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
2417 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
2418 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
2419 are in fast math mode, and have no single step hardware instruction.
2420 (extendhfdf2): Only expand through SFmode if we don't have a
2421 single-step hardware instruction.
2422 * config/arm/vfp.md (*truncdfhf2): New.
2423 (extendhfdf2): Likewise.
2425 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2427 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
2430 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2432 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
2433 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
2434 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
2435 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
2436 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
2437 * doc/tm.texi: Regenerate.
2438 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
2440 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2442 * toplev.c (init_excess_precision): Delete most logic.
2443 * tree.c (excess_precision_type): Rewrite to use
2444 TARGET_EXCESS_PRECISION.
2445 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
2446 more generic fashion.
2447 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
2448 __STDC_WANT_IEC_60559_TYPES_EXT__.
2450 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2452 * common.opt (fpermitted-flt-eval-methods): New.
2453 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
2454 * flag_types.h (permitted_flt_eval_methods): New.
2456 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2458 * config/m68k/m68k.c (m68k_excess_precision): New.
2459 (TARGET_C_EXCESS_PRECISION): Define.
2461 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2463 * config/s390/s390.c (s390_excess_precision): New.
2464 (TARGET_C_EXCESS_PRECISION): Define.
2466 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2468 * config/i386/i386.c (ix86_excess_precision): New.
2469 (TARGET_C_EXCESS_PRECISION): Define.
2471 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2473 * target.def (excess_precision): New hook.
2474 * target.h (flt_eval_method): New.
2475 (excess_precision_type): Likewise.
2476 * targhooks.c (default_excess_precision): New.
2477 * targhooks.h (default_excess_precision): New.
2478 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
2479 * doc/tm.texi: Regenerate.
2481 2016-11-23 Martin Sebor <msebor@redhat.com>
2484 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
2485 set the minimum number of bytes for an unknown string to zero.
2487 2016-11-23 Martin Jambor <mjambor@suse.cz>
2488 Martin Liska <mliska@suse.cz>
2490 * hsa-builtins.def: New file.
2491 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
2492 * builtins.def: Include hsa-builtins.def.
2493 (DEF_HSA_BUILTIN): New macro.
2494 * dumpfile.h (OPTGROUP_OPENMP): Define.
2495 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
2496 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
2497 GF_OMP_FOR_GRID_GROUP_ITER.
2498 (gimple_omp_for_grid_phony): Added checking assert.
2499 (gimple_omp_for_set_grid_phony): Likewise.
2500 (gimple_omp_for_grid_intra_group): New function.
2501 (gimple_omp_for_set_grid_intra_group): Likewise.
2502 (gimple_omp_for_grid_group_iter): Likewise.
2503 (gimple_omp_for_set_grid_group_iter): Likewise.
2504 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
2505 previosuly only distribute loop was permitted.
2506 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
2507 (grid_get_kernel_launch_attributes): Support multiple HSA grid
2509 (grid_expand_omp_for_loop): Likewise and also support standalone
2510 distribute constructs. New parameter INTRA_GROUP, updated both users.
2511 (grid_expand_target_grid_body): Support standalone distribute
2513 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
2514 (pass_data_expand_omp_ssa): Likewise.
2515 (pass_data_omp_device_lower): Likewsie.
2516 (pass_data_lower_omp): Likewise.
2517 (pass_data_diagnose_omp_blocks): Likewise.
2518 (pass_data_oacc_device_lower): Likewise.
2519 (pass_data_omp_target_link): Likewise.
2520 (grid_lastprivate_predicate): New function.
2521 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
2523 (lower_omp_for): Support standalone distribute constructs.
2524 (grid_prop): New type.
2525 (grid_safe_assignment_p): Check for assignments to group_sizes, new
2527 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
2529 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
2530 optimization info messages.
2531 (grid_find_single_omp_among_assignments): Likewise.
2532 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
2533 (grid_parallel_clauses_gridifiable): New function.
2534 (grid_inner_loop_gridifiable_p): Likewise.
2535 (grid_dist_follows_simple_pattern): Likewise.
2536 (grid_gfor_follows_tiling_pattern): Likewise.
2537 (grid_call_permissible_in_distribute_p): Likewise.
2538 (grid_handle_call_in_distribute): Likewise.
2539 (grid_dist_follows_tiling_pattern): Likewise.
2540 (grid_target_follows_gridifiable_pattern): Support standalone
2541 distribute constructs.
2542 (grid_var_segment): New enum.
2543 (grid_mark_variable_segment): New function.
2544 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
2545 if a new argument says so.
2546 (grid_process_grid_body): New function.
2547 (grid_eliminate_combined_simd_part): Likewise.
2548 (grid_mark_tiling_loops): Likewise.
2549 (grid_mark_tiling_parallels_and_loops): Likewise.
2550 (grid_process_kernel_body_copy): Support standalone distribute
2552 (grid_attempt_target_gridification): New grid variable holding overall
2553 gridification state. Support standalone distribute constructs and
2555 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
2556 * hsa.h (hsa_bb): Add method method append_phi.
2557 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
2558 occurences in all files too.
2559 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
2560 (is_a_helper <hsa_insn_br *>::test): New function.
2561 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
2562 branch instructions.
2563 (hsa_insn_signal): Make a direct descendant of
2564 hsa_insn_basic. Add memorder constructor parameter and
2565 m_memory_order and m_signalop member variables.
2566 (hsa_insn_queue): Changed constructor parameters to common form.
2567 Added m_segment and m_memory_order member variables.
2568 (hsa_summary_t): Add private member function
2569 process_gpu_implementation_attributes.
2570 (hsa_function_summary): Rename m_binded_function to
2572 (hsa_insn_basic_p): Remove typedef.
2573 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
2574 (hsa_op_reg_p): Remove typedef.
2575 (hsa_function_representation): Change hsa_op_reg_p into plain
2577 (hsa_insn_phi): Removed new and delete operators.
2578 (hsa_insn_br): Likewise.
2579 (hsa_insn_cbr): Likewise.
2580 (hsa_insn_sbr): Likewise.
2581 (hsa_insn_cmp): Likewise.
2582 (hsa_insn_mem): Likewise.
2583 (hsa_insn_atomic): Likewise.
2584 (hsa_insn_signal): Likewise.
2585 (hsa_insn_seg): Likewise.
2586 (hsa_insn_call): Likewise.
2587 (hsa_insn_arg_block): Likewise.
2588 (hsa_insn_comment): Likewise.
2589 (hsa_insn_srctype): Likewise.
2590 (hsa_insn_packed): Likewise.
2591 (hsa_insn_cvt): Likewise.
2592 (hsa_insn_alloca): Likewise.
2593 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
2594 (process_gpu_implementation_attributes): New function.
2595 (link_functions): Move some functionality into it. Adjust after
2596 renaming m_binded_functions to m_bound_functions.
2597 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
2598 to the list of instructions with no output registers.
2599 (get_in_type): Return this if it is a register of
2601 (hsa_get_declaration_name): Moved to...
2602 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
2603 temporary string on an obstack instead from ggc.
2604 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
2605 down to two overloads.
2606 (hsa_allocp_operand_address): Removed.
2607 (hsa_allocp_operand_immed): Likewise.
2608 (hsa_allocp_operand_reg): Likewise.
2609 (hsa_allocp_operand_code_list): Likewise.
2610 (hsa_allocp_operand_operand_list): Likewise.
2611 (hsa_allocp_inst_basic): Likewise.
2612 (hsa_allocp_inst_phi): Likewise.
2613 (hsa_allocp_inst_mem): Likewise.
2614 (hsa_allocp_inst_atomic): Likewise.
2615 (hsa_allocp_inst_signal): Likewise.
2616 (hsa_allocp_inst_seg): Likewise.
2617 (hsa_allocp_inst_cmp): Likewise.
2618 (hsa_allocp_inst_br): Likewise.
2619 (hsa_allocp_inst_sbr): Likewise.
2620 (hsa_allocp_inst_call): Likewise.
2621 (hsa_allocp_inst_arg_block): Likewise.
2622 (hsa_allocp_inst_comment): Likewise.
2623 (hsa_allocp_inst_queue): Likewise.
2624 (hsa_allocp_inst_srctype): Likewise.
2625 (hsa_allocp_inst_packed): Likewise.
2626 (hsa_allocp_inst_cvt): Likewise.
2627 (hsa_allocp_inst_alloca): Likewise.
2628 (hsa_allocp_bb): Likewise.
2630 (hsa_init_data_for_cfun): Initialize obstack.
2631 (hsa_deinit_data_for_cfun): Release memory of the obstack.
2632 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
2633 (hsa_op_reg::operator new): Likewise.
2634 (hsa_op_address::operator new): Likewise.
2635 (hsa_op_code_list::operator new): Likewise.
2636 (hsa_op_operand_list::operator new): Likewise.
2637 (hsa_insn_basic::operator new): Likewise.
2638 (hsa_insn_phi::operator new): Likewise.
2639 (hsa_insn_br::operator new): Likewise.
2640 (hsa_insn_sbr::operator new): Likewise.
2641 (hsa_insn_cmp::operator new): Likewise.
2642 (hsa_insn_mem::operator new): Likewise.
2643 (hsa_insn_atomic::operator new): Likewise.
2644 (hsa_insn_signal::operator new): Likewise.
2645 (hsa_insn_seg::operator new): Likewise.
2646 (hsa_insn_call::operator new): Likewise.
2647 (hsa_insn_arg_block::operator new): Likewise.
2648 (hsa_insn_comment::operator new): Likewise.
2649 (hsa_insn_srctype::operator new): Likewise.
2650 (hsa_insn_packed::operator new): Likewise.
2651 (hsa_insn_cvt::operator new): Likewise.
2652 (hsa_insn_alloca::operator new): Likewise.
2653 (hsa_init_new_bb): Likewise.
2654 (hsa_bb::append_phi): New function.
2655 (gen_hsa_phi_from_gimple_phi): Use it.
2656 (get_symbol_for_decl): Fix dinstinguishing between
2657 global and local functions. Put local variables into a segment
2658 according to their attribute or static flag, if there is one.
2659 (hsa_insn_br::hsa_insn_br): New.
2660 (hsa_insn_br::operator new): Likewise.
2661 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
2662 (query_hsa_grid_nodim): New function.
2663 (multiply_grid_dim_characteristics): Likewise.
2664 (gen_get_num_threads): Likewise.
2665 (gen_get_num_teams): Reimplemented.
2666 (gen_get_team_num): Likewise.
2667 (gen_hsa_insns_for_known_library_call): Updated calls to the above
2669 (get_memory_order_name): Removed.
2670 (get_memory_order): Likewise.
2671 (hsa_memorder_from_tree): New function.
2672 (gen_hsa_ternary_atomic_for_builtin): Renamed to
2673 gen_hsa_atomic_for_builtin, can also create signals.
2674 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
2675 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
2676 (hsa_insn_atomic): Fix function comment.
2677 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
2678 ancestor constructor and initialization of new member variables.
2679 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
2681 (hsa_get_host_function): Handle functions with no bound CPU
2682 implementation. Fix binded to bound.
2683 (get_brig_function_name): Likewise.
2684 (HSA_SORRY_ATV): Remove semicolon after macro.
2685 (HSA_SORRY_AT): Likewise.
2686 (omp_simple_builtin::generate): Add missing semicolons.
2687 (hsa_insn_phi::operator new): Removed.
2688 (hsa_insn_br::operator new): Likewise.
2689 (hsa_insn_cbr::operator new): Likewise.
2690 (hsa_insn_sbr::operator new): Likewise.
2691 (hsa_insn_cmp::operator new): Likewise.
2692 (hsa_insn_mem::operator new): Likewise.
2693 (hsa_insn_atomic::operator new): Likewise.
2694 (hsa_insn_signal::operator new): Likewise.
2695 (hsa_insn_seg::operator new): Likewise.
2696 (hsa_insn_call::operator new): Likewise.
2697 (hsa_insn_arg_block::operator new): Likewise.
2698 (hsa_insn_comment::operator new): Likewise.
2699 (hsa_insn_srctype::operator new): Likewise.
2700 (hsa_insn_packed::operator new): Likewise.
2701 (hsa_insn_cvt::operator new): Likewise.
2702 (hsa_insn_alloca::operator new): Likewise.
2703 (get_symbol_for_decl): Accept CONST_DECLs, put them to
2705 (gen_hsa_addr): Also process CONST_DECLs.
2706 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
2708 (gen_hsa_unary_operation): Make sure the function does
2709 not use bittype source type for firstbit and lastbit operations.
2710 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
2712 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
2714 (emit_branch_insn): Renamed to emit_cond_branch_insn.
2715 Emit the width stored in the class.
2716 (emit_generic_branch_insn): New function.
2717 (emit_insn): Call emit_generic_branch_insn.
2718 (emit_signal_insn): Remove obsolete comment. Update
2719 member variable name, pick a type according to profile.
2720 (emit_alloca_insn): Remove obsolete comment.
2721 (emit_atomic_insn): Likewise.
2722 (emit_queue_insn): Get segment and memory order from the IR object.
2723 (hsa_brig_section): Make allocate_new_chunk, chunks
2724 and cur_chunk provate, add a default NULL parameter to add method.
2725 (hsa_brig_section::add): Added a new parameter, store pointer to
2726 output data there if it is non-NULL.
2727 (emit_function_directives): Use this new parameter instead of
2728 calculating the pointer itself, fix function comment.
2729 (hsa_brig_emit_function): Add forgotten endian conversion.
2730 (hsa_output_kernels): Remove unnecessary building of
2731 kernel_dependencies_vector_type.
2732 (emit_immediate_operand): Declare.
2733 (emit_directive_variable): Also emit initializers of CONST_DECLs.
2734 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
2735 (verify_function_arguments): Properly detect variadic
2737 * hsa-dump.c (hsa_width_specifier_name): New function.
2738 (dump_hsa_insn_1): Dump generic branch instructions, update signal
2739 member variable name. Special dumping for queue objects.
2740 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
2741 m_binded_functions to m_bound_functions. Copy externally visible flag
2743 (ipa_hsa_write_summary): Likewise.
2744 (ipa_hsa_read_section): Likewise.
2746 2016-11-23 Richard Biener <rguenther@suse.de>
2748 PR tree-optimization/78396
2749 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
2750 vectorize try vectorizing an if-converted body using BB vectorization.
2752 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
2753 Alan Hayward <alan.hayward@arm.com>
2754 David Sherwood <david.sherwood@arm.com>
2756 * rtlanal.c (subreg_get_info): Use more local variables.
2757 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
2758 occupies at least one register. Assume that full hard registers
2759 have consistent endianness. Share previously-duplicated if block.
2760 Rework the main handling so that it operates on independently-
2761 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
2762 to check lowpart offsets, without trying to find an equivalent
2763 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
2764 as a final register-endianness correction.
2766 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
2772 * combine.c (make_compound_operation_int): Do not convert a subreg of
2773 a non-constant logical shift right to a zero_extract. Handle the case
2774 where some zero bits have been shifted into the range covered by that
2777 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
2778 Alan Hayward <alan.hayward@arm.com>
2779 David Sherwood <david.sherwood@arm.com>
2781 * rtl.h (subreg_size_offset_from_lsb): Declare.
2782 (subreg_offset_from_lsb): New function.
2783 (subreg_size_lowpart_offset): Declare.
2784 (subreg_lowpart_offset): Turn into an inline function.
2785 (subreg_size_highpart_offset): Declare.
2786 (subreg_highpart_offset): Turn into an inline function.
2787 * emit-rtl.c (subreg_size_lowpart_offset): New function.
2788 (subreg_size_highpart_offset): Likewise
2789 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
2791 2016-11-23 Richard Biener <rguenther@suse.de>
2793 PR tree-optimization/78482
2794 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
2795 (remove_forwarder_block_with_phi): When merging with a loop
2796 header creates a new latch reset number of iteration information
2799 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
2801 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
2802 (*ashrsi3_extend0): ...this. Accept constant integers.
2803 (*ashrsi3_extend2): Rename to...
2804 (*ashrsi3_extend1): ...this.
2805 (*ashrsi3_extend2): New pattern.
2806 (*lshrsi3_extend1): Accept constant integers.
2807 (*lshrsi3_extend2): Fix condition on operand 2.
2809 2016-11-23 Martin Liska <mliska@suse.cz>
2811 * config/i386/i386.c: Initialize function pointer to NULL.
2813 2016-11-23 Bin Cheng <bin.cheng@arm.com>
2815 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
2816 for A == C1 ? A : C2 to below.
2817 * match.pd: Move from above to here:
2818 (cond (eq (convert1? x) c1) (convert2? x) c2)
2819 -> (cond (eq x c1) c1 c2).
2821 2016-11-23 Bin Cheng <bin.cheng@arm.com>
2823 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
2824 for A cmp C1 ? A : C2 to below, also simplify remaining code.
2825 * match.pd: Move and extend simplification from above to here:
2826 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
2827 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
2828 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
2830 2016-11-23 Martin Liska <mliska@suse.cz>
2831 Martin Jambor <mjambor@suse.cz>
2833 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
2835 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
2838 * opts.c (finish_options): Set -fsyntax-only if running self tests.
2840 2016-11-23 Richard Biener <rguenther@suse.de>
2843 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
2844 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
2846 2016-11-23 Richard Biener <rguenther@suse.de>
2849 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
2852 2016-11-23 Richard Biener <rguenther@suse.de>
2853 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
2855 PR tree-optimization/78154
2856 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
2857 returns it's argument and the argument is nonnull.
2858 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
2859 ATT_RETNONNULL_NOTHROW_LEAF.
2860 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
2861 ATTR_RETNONNULL_NOTHROW_LEAF.
2862 (BUILT_IN_STPCPY): Likewise.
2863 (BUILT_IN_STPNCPY): Likewise.
2864 (BUILT_IN_MEMPCPY_CHK): Likewise.
2865 (BUILT_IN_STPCPY_CHK): Likewise.
2866 (BUILT_IN_STPNCPY_CHK): Likewise.
2867 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
2868 (BUILT_IN_STRNCAT): Likewise.
2869 (BUILT_IN_STRNCPY): Likewise.
2870 (BUILT_IN_MEMSET_CHK): Likewise.
2871 (BUILT_IN_STRCAT_CHK): Likewise.
2872 (BUILT_IN_STRCPY_CHK): Likewise.
2873 (BUILT_IN_STRNCAT_CHK): Likewise.
2874 (BUILT_IN_STRNCPY_CHK): Likewise.
2876 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2878 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
2879 * fold-const.h (tree_expr_nonzero_p) : Declare.
2880 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
2882 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
2884 * system.h (HAVE_DESIGNATED_INITIALIZERS,
2885 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
2886 "defined" in macros.
2887 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
2888 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
2889 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
2891 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
2894 * config/avr/constraints.md (Csp): Widen range to [-11..6].
2895 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
2896 of RCALLs in prologue to 3.
2898 2016-11-22 Michael Collison <michael.collison@arm.com>
2900 * config/aarch64/aarch64-protos.h
2901 (aarch64_and_split_imm1, aarch64_and_split_imm2)
2902 (aarch64_and_bitmask_imm): New prototypes
2903 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
2904 New overloaded function to create bit mask covering the
2905 lowest to highest bits set.
2906 (aarch64_and_split_imm2): New overloaded functions to create bit
2907 mask of zeros between first and last bit set.
2908 (aarch64_and_bitmask_imm): New function to determine if a integer
2909 is a valid two instruction "and" operation.
2910 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
2911 allowing wider range of constants with "and" operations.
2912 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
2913 "and" operator from matching restricted constant range used for
2914 ior and xor operators.
2915 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
2916 for constants in "and" operantions.
2917 (UsP constraint): New DImode constraint for constants
2918 in "and" operations.
2919 * config/aarch64/iterators.md (lconst2): New mode iterator.
2920 (LOGICAL2): New code iterator.
2921 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
2923 (aarch64_logical_and_operand): New predicate allowing extended
2924 constants for "and" operations.
2926 2016-11-22 Walter Lee <walt@tilera.com>
2928 * config/tilegx/tilegx.md (trap): New pattern.
2929 * config/tilepro/tilepro.md (trap): Likewise.
2931 2016-11-22 Walter Lee <walt@tilera.com>
2933 * config/tilegx/tilegx.md (*zero_extract): Use
2934 define_insn_and_split instead of define_insn; Handle pos + size >
2936 (*sign_extract): Likewise.
2938 2016-11-22 Marek Polacek <polacek@redhat.com>
2940 PR tree-optimization/78455
2941 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
2943 2016-11-22 Ian Lance Taylor <iant@golang.org>
2947 * godump.c (go_format_type): Always pass alignment as 1 when
2948 calling go_append_padding at end of struct/union.
2950 2016-11-22 Jakub Jelinek <jakub@redhat.com>
2953 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
2954 _mm512_setzero_hi): Removed.
2955 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
2956 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
2957 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
2958 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
2959 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
2960 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
2961 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
2962 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
2963 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
2964 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
2965 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
2966 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
2967 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
2968 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
2969 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
2970 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
2971 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
2972 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
2973 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
2974 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
2975 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
2976 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
2977 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
2978 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
2979 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
2980 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
2981 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
2982 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
2983 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
2984 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
2985 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
2986 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
2987 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
2988 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
2989 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
2990 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
2991 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
2992 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
2993 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
2994 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
2995 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
2996 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
2997 _mm512_setzero_qi or _mm512_setzero_hi.
2998 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
2999 _mm512_maskz_dbsad_epu8): Formatting fixes.
3000 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
3001 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
3002 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
3003 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
3004 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
3005 _mm512_setzero_qi or _mm512_setzero_hi.
3007 2016-11-22 Nathan Sidwell <nathan@acm.org>
3009 * gcc-ar.c (main): Fix indentation.
3010 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
3011 * ggc-page.c (move_ptes_to_front): Fix formatting.
3012 * hsa-dump.c (dump_has_cfun): Fix indentation.
3013 * sel-sched-ir.h: Remove trailing blank lines.
3015 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3016 Alexander Monakov <amonakov@ispras.ru>
3018 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
3019 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
3020 (omp_clause_code_name): Add _simt_ name.
3021 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
3022 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
3023 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
3024 (scan_omp_simd): New function.
3025 (scan_omp_1_stmt): Use it in target regions if needed.
3026 (omp_max_vf): Don't max with omp_max_simt_vf.
3027 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
3028 OMP_CLAUSE__SIMT_ is present.
3029 (lower_rec_input_clauses): Compute maybe_simt from presence of
3031 (lower_lastprivate_clauses): Likewise.
3032 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
3033 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
3034 * internal-fn.def (GOMP_USE_SIMT): New internal function.
3035 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
3037 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
3039 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
3040 (expand_GOMP_SIMT_VF): New.
3041 (expand_GOMP_SIMT_LAST_LANE): New.
3042 (expand_GOMP_SIMT_ORDERED_PRED): New.
3043 (expand_GOMP_SIMT_VOTE_ANY): New.
3044 (expand_GOMP_SIMT_XCHG_BFLY): New.
3045 (expand_GOMP_SIMT_XCHG_IDX): New.
3046 * internal-fn.def (GOMP_SIMT_LANE): New.
3047 (GOMP_SIMT_VF): New.
3048 (GOMP_SIMT_LAST_LANE): New.
3049 (GOMP_SIMT_ORDERED_PRED): New.
3050 (GOMP_SIMT_VOTE_ANY): New.
3051 (GOMP_SIMT_XCHG_BFLY): New.
3052 (GOMP_SIMT_XCHG_IDX): New.
3053 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
3054 (create_omp_child_function): ...here. Set "omp target entrypoint"
3055 or "omp declare target" attribute based on is_gimple_omp_offloaded.
3056 (omp_max_simt_vf): New. Use it...
3057 (omp_max_vf): ...here.
3058 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
3059 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
3060 (lower_omp_ordered): Likewise, for "ordered" lowering.
3061 (expand_omp_simd): Add SIMT transforms.
3062 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
3063 (execute_omp_device_lower): New.
3064 (pass_data_omp_device_lower): New.
3065 (pass_omp_device_lower): New pass.
3066 (make_pass_omp_device_lower): New.
3067 * passes.def (pass_omp_device_lower): Position new pass.
3068 * tree-pass.h (PROP_gimple_lomp_dev): Define.
3069 (make_pass_omp_device_lower): Declare.
3071 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3074 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
3075 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
3077 (_mm_maskz_load_epi64): Likewise.
3078 (_mm_setzero_hi): Removed.
3079 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
3081 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
3082 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
3083 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
3084 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
3085 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
3086 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
3087 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
3088 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
3089 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3090 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
3091 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
3093 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
3094 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
3095 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
3096 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
3097 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
3098 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
3099 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
3100 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
3101 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
3102 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
3103 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
3104 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3105 instead of _mm_setzero_hi.
3106 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
3107 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
3108 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
3109 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
3110 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
3111 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
3112 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
3113 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
3114 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
3115 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
3116 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
3117 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
3118 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
3119 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
3120 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
3121 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
3122 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
3123 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
3124 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
3125 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
3126 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
3127 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
3128 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
3129 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
3130 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3131 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
3133 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3134 instead of _mm_setzero_hi.
3135 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
3136 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
3137 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
3138 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3139 _mm_setzero_si128 instead of _mm_setzero_di.
3140 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
3141 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
3142 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
3143 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
3144 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
3145 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
3146 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
3147 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
3148 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
3149 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
3150 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
3151 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
3152 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
3153 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
3154 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
3155 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
3156 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
3157 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
3158 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
3159 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
3160 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
3161 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
3162 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
3163 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
3164 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
3165 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
3166 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
3167 _mm512_maskz_insertf32x8): Formatting fixes.
3168 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3169 _mm_setzero_si128 instead of _mm_setzero_di.
3170 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
3171 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
3172 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
3173 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
3174 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
3175 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
3176 _mm_setzero_si128 instead of _mm_setzero_di.
3177 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
3179 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
3180 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
3181 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
3182 _mm_setzero_si128 instead of _mm_setzero_hi.
3183 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
3184 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
3185 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
3186 instead of _mm_setzero_di.
3187 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
3188 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
3190 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
3191 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
3193 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
3195 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
3196 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
3197 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
3199 2016-11-22 Carl Love <cel@us.ibm.com>
3201 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
3202 equal and vector compare not equal. The vector compares take two
3203 arguments of type vector bool char, vector bool short, vector bool int,
3204 vector bool long long with the same return type.
3205 * doc/extend.texi: Update built-in documentation file for the new
3208 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
3210 * Makefile.in ($(lang_checks_parallelized)): Fix detection
3213 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3215 * config.gcc: Allow new rmprofile value for configure option
3216 --with-multilib-list.
3217 * config/arm/t-rmprofile: New file.
3218 * doc/install.texi (--with-multilib-list): Document new rmprofile value
3221 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3224 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
3225 register operand in alternatives 4,5,6.
3227 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3230 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
3231 in save register mask if it is needed.
3233 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3235 PR tree-optimization/78436
3236 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
3237 (shift_bytes_in_array, shift_bytes_in_array_right,
3238 merged_store_group::apply_stores): Formatting fixes.
3239 (clear_bit_region): Likewise. Use memset.
3240 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
3241 instead of EXPR and inerted instead of inserted. Use memset instead
3242 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
3246 * expmed.c (expand_divmod): Use wide_int for computation of
3247 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
3248 Use size <= HOST_BITS_PER_WIDE_INT instead of
3249 HOST_BITS_PER_WIDE_INT >= size.
3251 PR tree-optimization/78445
3252 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
3253 any_complicated_phi, version loop even if flag_tree_loop_if_convert
3254 is 1. Formatting fix.
3256 2016-11-22 Martin Liska <mliska@suse.cz>
3259 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
3260 (sem_function::get_hash): Use the new field.
3261 (sem_function::parse): Remove an argument from ctor.
3262 (sem_variable::parse): Likewise.
3263 (sem_variable::get_hash): Use the new field.
3264 (sem_item_optimizer::read_section): Use new ctor and set hash.
3265 * ipa-icf.h: _hash is removed from sem_item::sem_item,
3266 sem_variable::sem_variable, sem_function::sem_function.
3268 2016-11-21 Jeff Law <law@redhat.com>
3271 * config/cris/cris.md: Don't call copy_to_mode_reg unless
3272 can_create_pseudo_p is true.
3274 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3277 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
3278 *rotldi3_insert_7): New define_insns.
3280 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3282 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
3283 so that DImode can be allocated to FP/vector registers in more
3284 cases, and we can avoid direct move operations. If the register
3285 needs reloading, prefer GPRs over FP/vector registers. In the
3286 case of FPR vs. Altivec registers, prefer FPR registers unless we
3287 have the ISA 3.0 reg+offset scalar instructions.
3288 (movdi_internal64): Likewise.
3290 2016-11-21 Jakub Jelinek <jakub@redhat.com>
3293 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
3294 for tmp simd array if DECL_NAME (parm) is NULL.
3296 2016-11-20 Jeff Law <law@redhat.com>
3299 * config/m68k/predicates.md (swap_peephole_relational_operator): New
3301 * config/m68k/m68k.md (relational tests against 65535/65536): New
3304 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3306 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
3308 2016-11-21 Martin Sebor <msebor@redhat.com>
3310 * doc/invoke.texi (-fprintf-return-value): Document that option
3311 is enabled by default.
3313 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3315 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
3316 for-loop declaration of loop variable.
3317 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
3318 * config/avr/avr.c (avr_popcount_each_byte)
3319 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
3320 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
3321 (avr_expand_epilogue, avr_function_arg_advance)
3322 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
3323 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
3324 (avr_adjust_reg_alloc_order, output_reload_in_const)
3325 (avr_conditional_register_usage, avr_find_unused_d_reg)
3326 (avr_map_decompose, avr_fold_builtin): Same.
3328 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3330 * config/avr/avr.c (avr_popcount): Remove static function.
3331 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
3333 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
3335 * arm.opt (mapcs-float): Delete option.
3336 * arm.c (arm_option_override): Remove hunk relating to
3338 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
3340 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
3342 * tree-tailcall.c (process_assignment): Simplify the check for
3343 a valid copy, allowing the source to be a local variable as
3344 well as an SSA name.
3345 (find_tail_calls): Allow copies between local variables to follow
3346 the call. Allow the result to be stored in any local variable,
3347 even if it's an aggregate.
3348 (eliminate_tail_call): Check whether the result is an SSA name
3349 before updating its SSA_NAME_DEF_STMT.
3351 2016-11-21 David Malcolm <dmalcolm@redhat.com>
3353 PR preprocessor/78324
3354 * input.c (get_substring_ranges_for_loc): Fail gracefully if
3355 -ftrack-macro-expansion has a value other than 2.
3357 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3359 PR rtl-optimization/78400
3360 * shrink-wrap.c (try_shrink_wrapping_separate): Call
3361 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
3362 and df_update_exit_block_uses.
3364 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3367 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
3368 new default-enabled warning..
3369 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
3370 (BT_PTR_CONST_STRING): Updated.
3371 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
3372 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
3373 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
3374 (strftime): Update builtin function.
3375 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
3376 * tree.h (const_tm_ptr_type_node): New type node.
3377 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
3378 const_tm_ptr_type_node.
3380 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3382 PR tree-optimization/78413
3383 * tree-if-conv.c (versionable_outer_loop_p): Require that both
3384 inner and outer loop latches have single predecessors.
3386 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3389 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
3390 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
3392 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3394 * rtl.h: Adjust prototype.
3395 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
3396 (dead_or_set_regno_p): Likewise.
3398 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3400 * rtl.h: Adjust prototype.
3401 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
3403 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3405 * function.c (contains): Change argument type to rtx_insn *.
3406 (prologue_contains): Likewise.
3407 (epilogue_contains): Likewise.
3408 (prologue_epilogue_contains): Likewise.
3409 * function.h: Adjust prototype.
3411 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3413 * optabs.c (emit_libcall_block): Change argument type to
3415 * optabs.h: Adjust prototype.
3417 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3419 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
3420 (fixup_reorder_chain): Adjust.
3421 * cfgrtl.h: Adjust prototype.
3423 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3425 * rtl.h: Adjust prototype.
3426 * rtlanal.c (replace_label_in_insn): Change argument type to
3429 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3431 * config/v850/v850.c (expand_prologue): Adjust.
3432 (expand_epilogue): Likewise.
3433 * expr.c (init_expr_target): Likewise.
3434 * genrecog.c (print_subroutine): Always make the argument type
3436 * recog.h: Adjust prototype.
3438 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3440 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
3441 up variables to make some rtx_insn *.
3442 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
3443 * config/arc/arc.c: Likewise.
3444 * config/arm/arm.c: Likewise.
3445 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
3446 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
3448 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
3450 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3452 * config/arm/arm.c (legitimize_pic_address): Change to use
3453 rtx_insn * as the type of variables.
3454 (arm_pic_static_addr): Likewise.
3455 (arm_emit_movpair): Likewise.
3456 * config/c6x/c6x.c (reorg_split_calls): Likewise.
3457 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
3458 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
3459 * config/frv/frv.md: Likewise.
3460 * config/i386/i386-protos.h: Likewise.
3461 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
3462 (ix86_split_fp_branch): Likewise.
3463 (predict_jump): Likewise.
3464 * config/ia64/ia64.c: Likewise.
3465 * config/mcore/mcore.c: Likewise.
3466 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
3467 * config/s390/s390.c: Likewise.
3468 * config/s390/s390.md: Likewise.
3469 * config/spu/spu.md: Likewise.
3470 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
3471 * lower-subreg.c (resolve_simple_move): Likewise.
3473 2016-11-20 Jeff Law <law@redhat.com>
3476 * reload.h (struct target_reload): Make x_double_reg_address_ok
3478 * reload.c (find_reloads_address): Check if double_reg_address_ok
3479 is true for the mode of the memory reference.
3480 * reload1.c (init_reload): Initialize double_reg_address_ok for
3483 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
3486 * tree-ssa-uninit.c: Define new global max_phi_args.
3487 (compute_uninit_opnds_pos): Use max_phi_args.
3488 (prune_uninit_phi_opnds): Same.
3489 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
3490 missing NUM_PREDS in function comment.
3491 (can_one_predicate_be_invalidated_p): New.
3492 (can_chain_union_be_invalidated_p): New.
3493 (flatten_out_predicate_chains): New.
3494 (uninit_ops_invalidate_phi_use): New.
3495 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
3497 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
3499 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
3500 * match.pd (A /[ex] B CMP C): New simplifications.
3502 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
3504 * match.pd (0 / X, X / X, X % X): New simplifications.
3506 2016-11-19 Jakub Jelinek <jakub@redhat.com>
3508 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
3509 when checking if callee's isa flags are subset of caller's isa flags.
3510 Fix comment wording.
3512 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
3513 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
3514 instead and using = 0 instead of &= 0.
3516 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
3517 ix86_add_new_builtins): Formatting fixes.
3518 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
3519 (ix86_get_builtin): Likewise.
3521 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
3522 don't initialize it, don't use it for the case where it isn't
3523 provable %{z} nor using the same argument, instead move merge
3524 argument into a new pseudo and use that as target. Formatting fixes.
3526 2016-11-19 Jeff Law <law@redhat.com>
3529 * config/m68k/m68k.md (bsetdreg): New pattern.
3530 (bchgdreg, bclrdreg): Likewise.
3532 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
3535 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
3536 instead of force_reg.
3537 (sh_expand_setmem): Likewise.
3539 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
3541 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
3543 2016-11-18 Walter Lee <walt@tilera.com>
3545 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
3546 end-of-bundle marker for consecutive barriers.
3548 2016-11-18 Walter Lee <walt@tilera.com>
3550 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
3552 2016-11-18 Jakub Jelinek <jakub@redhat.com>
3555 * multiple_target.c (get_attr_len): Start with argnum and increment
3556 argnum on every arg. Use strchr in a loop instead of counting commas
3558 (get_attr_str): Increment argnum for every comma in the string.
3559 (separate_attrs): Use for instead of while loop, simplify.
3560 (expand_target_clones): Rename defenition argument to definition.
3561 Free attrs and attr_str even when diagnosing errors. Temporarily
3562 change input_location around targetm.target_option.valid_attribute_p
3563 calls. Don't emit warning or errors if that function fails.
3565 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
3568 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
3569 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
3570 abbrev_opt_base_type_end only by increasing die_abbrev, before
3572 (optimize_abbrev_table): Don't change abbrev numbers of
3573 base types and CU or optimize implicit consts in them if
3574 calc_base_type_die_sizes has been called during build_abbrev_table.
3575 (calc_base_type_die_sizes): If abbrev_opt_start, set
3576 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
3578 2016-11-18 Jeff Law <law@redhat.com>
3581 * config/m68k/m68k.c (moveq feeding equality comparison): New
3583 * config/m68k/predicates.md (addq_subq_operand): New predicate.
3584 (equality_comparison_operator): Likewise.
3586 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
3588 * rtlanal.c (load_extend_op): Move to...
3589 * rtl.h: ...here and make inline.
3591 2016-11-18 Terry Guo <terry.guo@arm.com>
3592 Thomas Preud'homme <thomas.preudhomme@arm.com>
3594 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
3595 * config/arm/arm-opts.h: Include arm-flags.h.
3596 (struct arm_arch_core_flag): Define.
3597 (arm_arch_core_flags): Define.
3598 * config/arm/arm-protos.h: Include arm-flags.h
3599 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
3600 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
3601 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
3602 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
3603 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
3604 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
3605 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
3606 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
3607 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
3608 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
3609 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
3610 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
3611 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
3612 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
3613 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
3614 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
3615 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
3616 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
3617 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
3618 ARM_FSET_CPU_SUBSET): Move to ...
3619 * config/arm/arm-flags.h: This new file.
3620 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
3621 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
3622 (TARGET_MODE_SPECS): Define.
3623 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
3625 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
3627 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
3628 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
3629 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
3630 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
3631 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
3632 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
3633 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
3634 missing and make value unsigned.
3635 (arm_feature_set): Use unsigned entries instead of unsigned long.
3637 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
3639 Re-apply after PR bootstrap/77359 is fixed:
3640 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3642 * explow.c (get_dynamic_stack_size): Take known alignment of stack
3643 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
3646 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
3649 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
3650 variables in functions calling alloca. Also update the ASCII
3652 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
3653 (STACK_DYNAMIC_OFFSET): Likewise.
3654 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
3655 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
3658 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
3659 Alan Hayward <alan.hayward@arm.com>
3660 David Sherwood <david.sherwood@arm.com>
3662 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
3663 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
3664 (add_const_value_attribute): Likewise.
3665 * explow.c (plus_constant): Likewise.
3666 * expmed.c (expand_mult, make_tree): Likewise.
3667 * expr.c (convert_modes): Likewise.
3668 * loop-doloop.c (doloop_optimize): Likewise.
3669 * postreload.c (reload_cse_simplify_set): Likewise.
3670 * simplify-rtx.c (simplify_const_unary_operation): Likewise
3671 (simplify_binary_operation_1, simplify_const_binary_operation):
3673 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
3674 * wide-int.h: Update documentation to recommend rtx_mode_t
3675 instead of std::make_pair.
3677 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
3678 Alan Hayward <alan.hayward@arm.com>
3679 David Sherwood <david.sherwood@arm.com>
3681 * tree.h (SET_DECL_MODE): New macro.
3682 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
3683 (expand_gimple_basic_block): Likewise.
3684 * function.c (split_complex_args): Likeise.
3685 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3686 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
3687 * stor-layout.c (layout_decl, relayout_decl): Likewise.
3688 (finish_bitfield_representative): Likewise.
3689 * tree.c (make_node_stat): Likewise.
3690 * tree-inline.c (remap_ssa_name): Likewise.
3691 (tree_function_versioning): Likewise.
3692 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
3693 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
3694 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3695 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
3696 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
3697 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
3698 * varasm.c (make_debug_expr_from_rtl): Likewise.
3700 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
3702 PR rtl-optimization/71785
3703 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
3704 (duplicate_computed_gotos): New function.
3705 (pass_duplicate_computed_gotos::execute): Rewrite.
3707 2016-11-17 Jeff Law <law@redhat.com>
3710 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
3711 barrier prior to deallocating the stack.
3713 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
3715 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
3716 to make better use of cmem loads in the case where a single bit is
3718 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
3720 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
3722 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
3724 (isa_names_table): Handle new features.
3726 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
3727 Andrew Senkevich <andrew.senkevich@intel.com>
3729 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
3730 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
3731 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
3732 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
3733 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
3734 * config/i386/avx5124fmapsintrin.h: New file.
3735 * config/i386/avx5124vnniwintrin.h: Ditto.
3736 * config/i386/constraints.md (h): New constraint.
3737 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
3738 * config/i386/driver-i386.c (host_detect_local_cpu):
3739 Detect avx5124fmaps, avx5124vnniw.
3740 * config/i386/i386-builtin-types.def: Add types
3741 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
3742 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
3743 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
3744 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
3745 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
3746 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
3747 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
3748 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
3749 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
3750 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
3751 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
3752 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
3753 __builtin_ia32_vp4dpwssds_mask): New.
3754 * config/i386/i386-c.c (ix86_target_macros_internal):
3755 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
3756 * config/i386/i386-modes.def: Fixed comment typos, added new
3757 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
3758 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
3760 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
3761 (ix86_option_override_internal): Handle new options.
3762 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
3764 (ix86_expand_builtin): Handle new builtins.
3765 (ix86_additional_allocno_class_p): New.
3766 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
3767 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
3768 (reg_class): Add MOD4_SSE_REGS.
3769 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
3770 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
3771 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
3772 avx5124vnniwintrin.h.
3773 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
3774 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
3775 (define_mode_iterator IMOD4): New.
3776 (define_mode_attr imod4_narrow): Ditto.
3777 (define_insn "mov<mode>"): Ditto.
3778 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
3779 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
3780 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
3781 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
3782 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
3783 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
3784 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
3785 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
3786 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
3787 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
3788 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
3789 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
3790 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
3791 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
3792 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
3793 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
3794 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
3795 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
3796 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
3797 * genmodes.c (mode_size_inline): Extend return type.
3798 * machmode.h (mode_size, mode_base_align): Extend type.
3800 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
3803 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
3804 the appropriate checks for SFmode/DFmode load/stores in GPR
3806 (fusion_addis_mem_combo_store): Likewise.
3807 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
3808 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
3809 d-form instructions for traditional Altivec registers.
3810 (emit_fusion_p9_load): Likewise.
3811 (emit_fusion_p9_store): Likewise.
3812 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
3813 early clobber from scratch register. Do not match if the register
3814 being stored is the scratch register.
3815 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
3816 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
3817 instructions for traditional Altivec registers.
3818 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3819 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3820 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3822 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
3825 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
3826 being live in the function and lr needing to be saved. Distinguish
3827 between already saved pushable registers and registers to push.
3828 Check for LR being an available pushable register.
3830 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3832 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
3833 string input is a string constant.
3834 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
3835 via cmpstrnsi even if neither string is constant.
3837 2016-11-17 Jakub Jelinek <jakub@redhat.com>
3840 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
3841 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
3842 instead, return false if it is NULL, or doesn't fit into uhwi, or
3843 is larger or equal to targetm.max_anchor_offset.
3845 2016-11-17 Pip Cet <pipcet@gmail.com>
3846 Eric Botcazou <ebotcazou@adacore.com>
3848 PR rtl-optimization/78355
3849 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
3850 needs to deal with unaligned accesses.
3851 * doc/tm.texi: Regenerate.
3852 * lra-constraints.c (simplify_operand_subreg): Only invoke
3853 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
3855 2016-11-17 David Malcolm <dmalcolm@redhat.com>
3857 * input.c (selftest::test_lexer_string_locations_long_line): New
3859 (selftest::test_lexer_string_locations_raw_string_multiline): New
3861 (selftest::input_c_tests): Call the new functions, via
3862 for_each_line_table_case.
3864 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3866 * config/aarch64/aarch64.md (mov<mode>): Call
3867 aarch64_split_dimode_const_store on DImode constant stores.
3868 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
3870 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
3873 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3874 Richard Biener <rguenther@suse.de>
3876 PR tree-optimization/77848
3877 * tree-if-conv.c (tree_if_conversion): Always version loops unless
3878 the user specified -ftree-loop-if-convert.
3880 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
3883 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
3884 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
3885 *thumb2_strd_base_neg): Recognize insn regardless of
3886 current_tune->prefer_ldrd_strd.
3887 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
3890 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
3892 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
3895 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
3897 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
3899 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
3900 * config/arc/arc-cpus.def (quarkse_em): Add.
3901 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
3902 * config/arc/arc-opts.h (FPX_QK): Define.
3903 * config/arc/arc-tables.opt: Regenerate.
3904 * config/arc/arc.c (gen_compare_reg): Change.
3905 (arc_register_move_cost): Avoid Dy,Dx moves.
3906 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
3907 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
3908 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
3910 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
3911 (fix_truncsfsi2_fpu): Rename.
3912 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
3913 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
3914 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
3915 * config/arc/t-multilib: Regenerate.
3917 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
3919 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
3921 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
3922 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
3923 (avr_rtx_costs_1, extra_constraint_Q): Same.
3924 (avr_address_cost): Use SUBREG_P if possible.
3926 2016-11-17 Richard Biener <rguenther@suse.de>
3929 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
3930 non-local goto into CFG.
3932 2016-11-17 Richard Biener <rguenther@suse.de>
3934 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
3935 backward compatibility.
3936 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
3937 * tree-if-conv.c (pass_if_conversion::gate): Do not test
3938 flag_tree_loop_if_convert_stores.
3939 (pass_if_conversion::execute): Likewise.
3941 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3943 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
3944 const_double code before calling aarch64_float_const_zero_rtx_p.
3946 2016-11-17 Richard Biener <rguenther@suse.de>
3948 PR tree-optimization/78306
3949 * ipa-inline-analysis.c (initialize_inline_failed): Do not
3950 inhibit inlining if function calls cilk_spawn.
3951 (can_inline_edge_p): Likewise.
3953 2016-11-17 Richard Biener <rguenther@suse.de>
3956 * fold-const.c (negate_expr_p): Fix multiplication case.
3958 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
3961 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
3963 (TARGET_INIT_LIBFUNCS): Delete definition and...
3964 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
3967 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
3969 * config/netbsd-stdint.h: New.
3970 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
3971 (x86_64-*-netbsd*): Likewise.
3973 2016-11-16 Andrew PInski <apinski@cavium.com>
3975 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
3976 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
3977 flag_aarch64_verbose_cost instead of checking for details dump.
3978 (aarch64_rtx_costs_wrapper): Likewise.
3980 2016-11-16 Jakub Jelinek <jakub@redhat.com>
3982 PR rtl-optimization/78378
3983 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
3984 inner only if pos is 0. Fix up formatting.
3986 2016-11-17 Alan Modra <amodra@gmail.com>
3988 PR rtl-optimization/78325
3989 PR rtl-optimization/70890
3990 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
3993 2016-11-16 Jason Merrill <jason@redhat.com>
3995 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
3997 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3998 Richard Biener <rguenther@suse.de>
4000 PR tree-optimization/77848
4001 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
4002 an outer loop, only save basic block aux information for the inner
4004 (versionable_outer_loop_p): New function.
4005 (tree_if_conversion): Version the outer loop instead of the inner
4006 one if the pattern will be recognized for outer-loop
4009 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
4011 * gcc/bb-reorder.c: Remove 'toplev.h' include.
4012 (pass_partition_blocks::gate): No longer check
4013 user_defined_section_attribute, instead check the function decl
4014 for a section attribute.
4015 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
4016 set user_defined_section_attribute.
4017 * gcc/final.c (rest_of_handle_final): Likewise.
4018 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
4019 * gcc/toplev.h: Remove declaration of
4020 user_defined_section_attribute.
4022 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4024 * config/mips/mips.md (casesi_internal_mips16_<mode>):
4025 Explicitly switch between JR and JRC for the table jump. Adjust
4028 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4030 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
4031 `insn_count' to 11 rather than 16.
4033 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4035 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
4036 `ltu' rather than `leu' operation in the RTL pattern
4038 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4040 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
4041 missing <d> instruction prefixes throughout. Correct
4044 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4046 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
4047 rather than R_MIPS_JALR relocation in microMIPS code. Do not
4048 cancel short delay slots in PIC call relaxation.
4050 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
4052 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
4053 general register with general register or ARM constant into SP
4056 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4059 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
4060 that loop->header == body_bb if broken_loop.
4062 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
4064 * tree-ssa-math-opts.c (bswap_replace): Remove test
4065 of SLOW_UNALIGNED_ACCESS.
4067 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
4069 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
4070 is selected. Pass -mgomp to offload compiler in OpenMP case.
4071 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
4072 declaration from nvptx.c.
4073 (nvptx_gen_shuffle): Declare.
4074 (nvptx_output_set_softstack): Declare.
4075 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
4076 (need_softstack_decl): New variable.
4077 (need_unisimt_decl): New variable.
4078 (diagnose_openacc_conflict): New. Use it...
4079 (nvptx_option_override): ...here. Handle TARGET_GOMP.
4080 (nvptx_encode_section_info): Handle "shared" attribute.
4081 (write_as_kernel): Restrict to OpenACC target regions.
4082 (init_softstack_frame): New.
4083 (nvptx_init_unisimt_predicate): New.
4084 (write_omp_entry): New. Use it...
4085 (nvptx_declare_function_name): ...here to emit OpenMP target region
4086 entrypoints. Handle TARGET_SOFT_STACK. Call
4087 nvptx_init_unisimt_predicate.
4088 (nvptx_output_set_softstack): New.
4089 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
4090 (nvptx_gen_shuffle): Export.
4091 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
4093 (nvptx_print_operand): Fix handling of instruction predicates.
4094 (nvptx_get_unisimt_master): New helper function.
4095 (nvptx_get_unisimt_predicate): Ditto.
4096 (nvptx_call_insn_is_syscall_p): Ditto.
4097 (nvptx_unisimt_handle_set): Ditto.
4098 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
4099 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
4100 (nvptx_handle_shared_attribute): New. Use it...
4101 (nvptx_attribute_table): ... here (new entry).
4102 (nvptx_record_offload_symbol): Handle NULL attributes.
4103 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
4104 (nvptx_simt_vf): New.
4105 (TARGET_SIMT_VF): Define.
4106 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
4107 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
4108 -muniform-simt option is active.
4109 (STACK_SIZE_MODE): Define.
4110 (FIXED_REGISTERS): Adjust.
4111 (SOFTSTACK_SLOT_REGNUM): New.
4112 (SOFTSTACK_PREV_REGNUM): New.
4113 (REGISTER_NAMES): Adjust.
4114 (struct machine_function): New fields.
4115 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
4116 (UNSPEC_VOTE_BALLOT): Ditto.
4117 (UNSPEC_LANEID): Ditto.
4118 (UNSPECV_NOUNROLL): Ditto.
4119 (atomic): New attribute.
4120 (predicable): New attribute. Generate predicated forms via
4122 (br_true): Mark as not predicable.
4124 (br_true_uni): Ditto.
4125 (br_false_uni): Ditto.
4127 (trap_if_true): Ditto.
4128 (trap_if_false): Ditto.
4129 (nvptx_fork): Ditto.
4130 (nvptx_forked): Ditto.
4131 (nvptx_joining): Ditto.
4132 (nvptx_join): Ditto.
4133 (nvptx_barsync): Ditto.
4134 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
4135 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
4136 (allocate_stack_<mode>): Remove unused pattern.
4137 (set_softstack_insn): New pattern.
4138 (restore_stack_block): Handle for TARGET_SOFT_STACK.
4139 (nvptx_vote_ballot): New pattern.
4140 (omp_simt_lane): Ditto.
4141 (omp_simt_last_lane): Ditto.
4142 (omp_simt_ordered): Ditto.
4143 (omp_simt_vote_any): Ditto.
4144 (omp_simt_xchg_bfly): Ditto.
4145 (omp_simt_xchg_idx): Ditto.
4146 (nvptx_nounroll): Ditto.
4147 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
4148 (atomic_exchange<mode>): Ditto.
4149 (atomic_fetch_add<mode>): Ditto.
4150 (atomic_fetch_addsf): Ditto.
4151 (atomic_fetch_<logic><mode>): Ditto.
4152 * config/nvptx/nvptx.opt (msoft-stack): New option.
4153 (muniform-simt): Ditto.
4155 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
4156 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
4157 * doc/invoke.texi (msoft-stack): Document.
4158 (muniform-simt): Document
4160 * doc/tm.texi: Regenerate.
4161 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
4162 * target.def: Define it.
4163 * target-insns.def (omp_simt_lane): New.
4164 (omp_simt_last_lane): New.
4165 (omp_simt_ordered): New.
4166 (omp_simt_vote_any): New.
4167 (omp_simt_xchg_bfly): New.
4168 (omp_simt_xchg_idx): New.
4170 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4172 * config/mips/mips-protos.h (mips_set_text_contents_type): New
4174 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
4175 (ASM_OUTPUT_CASE_END): Likewise.
4176 * config/mips/mips.c (mips_set_text_contents_type): New function.
4177 (mips16_emit_constants): Record the pool's initial label number
4178 with the `consttable' insn. Emit a `consttable_end' insn at the end.
4179 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
4180 for `consttable' insns.
4181 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
4182 for `consttable_end' insns.
4183 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
4184 (consttable): Add operand.
4185 (consttable_end): New insn.
4187 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
4189 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
4190 * tree-if-conv.c (tree_if_conversion): Make public.
4191 * * tree-if-conv.h: New file.
4192 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
4193 dynamic alias checks for epilogues.
4194 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
4195 * tree-vect-loop.c: include tree-if-conv.h.
4196 (new_loop_vec_info): Add zeroing orig_loop_info field.
4197 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
4198 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
4199 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
4200 using passed argument.
4201 (vect_transform_loop): Check if created epilogue should be returned
4202 for further vectorization with less vf. If-convert epilogue if
4203 required. Print vectorization success for epilogue.
4204 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
4205 if it is required, pass loop_vinfo produced during vectorization of
4206 loop body to vect_analyze_loop.
4207 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4209 (LOOP_VINFO_ORIG_LOOP_INFO): New.
4210 (LOOP_VINFO_EPILOGUE_P): New.
4211 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
4212 (vect_do_peeling): Change prototype to return epilogue.
4213 (vect_analyze_loop): Add argument of loop_vec_info type.
4214 (vect_transform_loop): Return created loop.
4216 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
4218 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
4219 component as used also if LR_REGNO is a live input to the bb.
4220 * df-scan.c (df_get_entry_block_def_set): Return immediately after
4221 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
4222 (df_get_exit_block_use_set): Ditto.
4223 * df.h (df_scan_flags): New enum.
4224 * shrink-wrap.c (try_shrink_wrapping_separate): Set
4225 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
4226 df_update_entry_block_defs and df_update_exit_block_uses
4227 at the start; clear the flag and call those functions at the end.
4229 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4230 Alan Hayward <alan.hayward@arm.com>
4231 David Sherwood <david.sherwood@arm.com>
4233 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
4234 nb_iterations to the number of latch iterations rather than the
4235 number of loop iterations.
4237 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4238 Alan Hayward <alan.hayward@arm.com>
4239 David Sherwood <david.sherwood@arm.com>
4241 * combine.c (maybe_swap_commutative_operands): New function.
4242 (combine_simplify_rtx): Use it.
4243 (change_zero_ext): Likewise.
4244 (make_compound_operation_int): New function, split out of...
4245 (make_compound_operation): ...here. Use
4246 maybe_swap_commutative_operands for both.
4248 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
4250 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
4251 (neon-vfpv3): New FPU, currently an alias for 'neon'.
4252 * arm/arm-tables.opt: Regenerated.
4253 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
4255 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
4256 and 'neon' are aliases for specific implementations.
4258 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4259 Alan Hayward <alan.hayward@arm.com>
4260 David Sherwood <david.sherwood@arm.com>
4262 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
4263 and use it in the final call to gen_rtx_fmt_ee.
4264 (expand_vec_cond_expr): Update accordingly.
4265 (expand_vec_cmp_expr): Likewise.
4267 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4268 Alan Hayward <alan.hayward@arm.com>
4269 David Sherwood <david.sherwood@arm.com>
4271 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
4273 2016-11-16 Richard Biener <rguenther@suse.de>
4276 * gimplify.c (gimplify_function_tree): Do not instrument
4277 GNU extern inline functions.
4279 2016-11-16 Martin Liska <mliska@suse.cz>
4282 * gimplify.c (gimplify_switch_expr): Always save previous
4283 gimplify_ctxp->live_switch_vars.
4285 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
4287 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
4288 zero_extract operations to allow a movb to occur.
4289 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
4290 * testsuite/gcc.target/arc/movb-2.c: Likewise.
4291 * testsuite/gcc.target/arc/movb-5.c: Likewise.
4292 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
4295 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4296 Alan Hayward <alan.hayward@arm.com>
4297 David Sherwood <david.sherwood@arm.com>
4299 * expr.c (emit_group_load_1): Tighten check for whether an
4300 access involves only one operand of a CONCAT. Use extract_bit_field
4301 for constants if the bit range does span the whole operand.
4303 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4304 Alan Hayward <alan.hayward@arm.com>
4305 David Sherwood <david.sherwood@arm.com>
4307 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
4309 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4310 Alan Hayward <alan.hayward@arm.com>
4311 David Sherwood <david.sherwood@arm.com>
4313 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
4314 all three iteration counts with an any_* test. Use a single update
4315 for each count. Fix the calculation of nb_iterations_estimate.
4317 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4319 * config/pdp11/pdp11.c: Include dbxout.h.
4321 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4323 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
4325 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4328 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
4329 proper ranges for an SBFX instruction.
4330 (extzv_t2): Likewise for UBFX.
4332 2016-11-16 Richard Biener <rguenther@suse.de>
4334 PR tree-optimization/78348
4335 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
4336 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
4337 (classify_partition): Set PKIND_MEMCPY if dependence analysis
4338 revealed no dependency, PKIND_MEMMOVE otherwise.
4340 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4343 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
4344 it points to non-NULL tree, use it instead of ubsan_create_data.
4345 (instrument_si_overflow): Handle vector signed integer overflow
4347 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
4348 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
4349 vector IFN_UBSAN_CHECK_*.
4350 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
4351 pass it through to ubsan_build_overflow_builtin.
4352 (expand_neg_overflow, expand_mul_overflow): Likewise.
4353 (expand_vector_ubsan_overflow): New function.
4354 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
4355 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
4356 (expand_arith_overflow): Adjust expand_*_overflow callers.
4358 2016-11-16 Matthias Klose <doko@ubuntu.com>
4360 * doc/install.texi: Remove references to java/libjava.
4362 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
4364 * tree-ssa-coalesce.c (register_default_def): Remove
4365 register_ssa_partition.
4366 (create_outofssa_var_map): Likewise.
4367 * tree-ssa-live.c (register_ssa_partition_check): Remove.
4368 * tree-ssa-live.h (register_ssa_partition): Likewise.
4370 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
4372 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
4373 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
4374 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
4375 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
4376 rtx when all sub-rtx are also permanent.
4377 (attr_eq): Simplify.
4378 (attr_copy_rtx): Remove.
4379 (make_canonical, get_attr_value): Use attr_equal_p.
4380 (copy_boolean): Rehash NOT.
4381 (simplify_test_exp_in_temp,
4382 optimize_attrs): Remove call to attr_copy_rtx.
4383 (attr_alt_intersection, attr_alt_union,
4384 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
4385 (make_automaton_attrs): Use attr_eq.
4387 2016-11-15 Matthias Klose <doko@ubuntu.com>
4389 * doc/install.texi: Remove references to java/libjava.
4390 * doc/sourcebuild.texi: Likewise.
4391 * doc/invoke.texi: Likewise.
4392 * doc/standards.texi: Likewise.
4394 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4395 Alan Hayward <alan.hayward@arm.com>
4396 David Sherwood <david.sherwood@arm.com>
4398 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
4400 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4401 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4402 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4403 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4404 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4405 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4406 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4408 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4409 Alan Hayward <alan.hayward@arm.com>
4410 David Sherwood <david.sherwood@arm.com>
4412 * dce.c (check_argument_store): Pass the size instead of
4413 the memory reference.
4414 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
4416 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4417 Alan Hayward <alan.hayward@arm.com>
4418 David Sherwood <david.sherwood@arm.com>
4420 * alias.c (canon_rtx): Use simplify_gen_binary.
4422 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4423 Alan Hayward <alan.hayward@arm.com>
4424 David Sherwood <david.sherwood@arm.com>
4426 * rtl.h (load_extend_op): Declare.
4427 * rtlanal.c (load_extend_op): New function.
4428 (nonzero_bits1): Use it.
4429 (num_sign_bit_copies1): Likewise.
4430 * cse.c (cse_insn): Likewise.
4431 * fold-const.c (fold_single_bit_test): Likewise.
4432 (fold_unary_loc): Likewise.
4433 * fwprop.c (free_load_extend): Likewise.
4434 * postreload.c (reload_cse_simplify_set): Likewise.
4435 (reload_cse_simplify_operands): Likewise.
4436 * combine.c (try_combine): Likewise.
4437 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
4438 subreg_lowpart_p checks.
4440 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4441 Alan Hayward <alan.hayward@arm.com>
4442 David Sherwood <david.sherwood@arm.com>
4444 * combine.c (simplify_shift_const_1): Use the number of bits
4445 in the inner mode to determine the range of the shift.
4446 When handling shifts of vectors, skip any rules that apply
4449 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4450 Alan Hayward <alan.hayward@arm.com>
4451 David Sherwood <david.sherwood@arm.com>
4453 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
4456 2016-11-15 Matthias Klose <doko@ubuntu.com>
4458 * doc/install.texi: Remove references to gcj/libjava.
4459 * doc/invoke.texi: Likewise.
4461 2016-11-15 Jeff Law <law@redhat.com>
4463 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
4464 parameter. Callers changed.
4465 (check-subpath_and_update_thread_path): Extracted from
4466 fsm_find_control_statement_thread_paths.
4467 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
4468 (handle_phi, handle_assignment): Allow any constant node, not
4471 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
4473 * config/arc/arc-arch.h: New file.
4474 * config/arc/arc-arches.def: Likewise.
4475 * config/arc/arc-cpus.def: Likewise.
4476 * config/arc/arc-options.def: Likewise.
4477 * config/arc/t-multilib: Likewise.
4478 * config/arc/genmultilib.awk: Likewise.
4479 * config/arc/genoptions.awk: Likewise.
4480 * config/arc/arc-tables.opt: Likewise.
4481 * config/arc/driver-arc.c: Likewise.
4482 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
4483 * common/config/arc/arc-common.c (arc_handle_option): Trace
4485 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
4486 options; check for supported cpu against arc-cpus.def file.
4487 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
4488 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
4489 * config/arc/arc-c.def: Add emacs local variables.
4490 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
4491 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
4492 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
4493 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
4494 (DEFAULT_arc_fpu_build): Define.
4495 (DEFAULT_arc_mpy_option): Define.
4496 * config/arc/arc-protos.h (arc_init): Delete.
4497 * config/arc/arc.c (arc_cpu_name): New variable.
4498 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
4499 (arc_arc700, arc_arc600, arc_arc601): New variable.
4500 (arc_init): Add static; remove selection of default tune value,
4501 cleanup obsolete error messages.
4502 (arc_override_options): Make use of .def files for selecting the
4503 right cpu and option configurations.
4504 * config/arc/arc.h (stdbool.h): Include.
4505 (TARGET_CPU_DEFAULT): Define.
4506 (CPP_SPEC): Remove mcpu=NPS400 handling.
4507 (arc_cpu_to_as): Declare.
4508 (EXTRA_SPEC_FUNCTIONS): Define.
4509 (OPTION_DEFAULT_SPECS): Likewise.
4510 (ASM_DEFAULT): Remove.
4511 (ASM_SPEC): Use arc_cpu_to_as.
4512 (DRIVER_SELF_SPECS): Remove deprecated options.
4513 (arc_base_cpu): Declare.
4514 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
4515 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
4517 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
4518 * config/arc/arc.md (attr_cpu): Remove.
4519 * config/arc/arc.opt (mno-mpy): Deprecate.
4520 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
4521 (mcpu=ARCHS): Remove.
4522 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
4524 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
4525 (arc_fpu): Use new defines.
4526 (mpy-option): Change to use numeric or string like inputs.
4527 * config/arc/t-arc (driver-arc.o): New target.
4528 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
4529 * config/arc/t-arc-newlib: Delete.
4530 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
4531 * doc/invoke.texi (ARC): Update arc options.
4533 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
4535 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
4536 insn at the beginning of the constant pool.
4537 (mips_insert_insn_pseudos): New function.
4538 (mips_machine_reorg2): Call it.
4539 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
4540 UNSPEC_INSN_PSEUDO enum values.
4541 (insn_pseudo, consttable): New insns.
4543 2016-11-15 Michael Matz <matz@suse.de>
4545 PR missed-optimization/77881
4546 * combine.c (simplify_comparison): Remove useless subregs
4547 also inside the loop, not just after it.
4548 (make_compound_operation): Recognize some subregs as being
4551 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4552 Alan Hayward <alan.hayward@arm.com>
4553 David Sherwood <david.sherwood@arm.com>
4555 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
4558 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4560 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
4561 for using xxinsertw and vinsert{b,h} on ISA 3.0.
4563 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
4564 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
4565 vinsert{b,h} on ISA 3.0.
4567 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
4569 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
4570 and cmpnop in two steps: first the ones not accessed in original gimple
4571 expression in a endian independent way and then the ones not accessed
4572 in the final result in an endian-specific way.
4573 (bswap_replace): Stop doing big endian adjustment.
4575 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
4577 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
4578 (*ashl<mode>3_doubleword): Ditto.
4580 2016-11-14 Martin Liska <mliska@suse.cz>
4582 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
4584 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
4585 Richard Biener <rguenther@suse.de>
4587 * doc/invoke.texi (fgimple): Document.
4588 * dumpfile.h (TDF_GIMPLE): Add.
4589 * dumpfile.c (dump_options): Add gimple.
4590 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
4592 (dump_gimple_label): Likewise.
4593 (dump_gimple_phi): Likewise.
4594 (dump_gimple_bb_header): Likewise.
4595 (dump_phi_nodes): Likewise.
4596 (pp_cfg_jump): Likewise. Pass in dump flags.
4597 (dump_implicit_edges): Adjust.
4598 * passes.c (pass_init_dump_file): Do not dump function header
4600 * tree-cfg.c (dump_function_to_file): Dump function return type
4601 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
4603 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
4604 (dump_generic_node): Likewise.
4605 * function.h (struct function): Add pass_startwith member.
4606 * passes.c (execute_one_pass): Implement startwith.
4607 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
4608 and assign proper version for parsed ssa names.
4609 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
4610 * internal-fn.c (expand_PHI): New function.
4611 * internal-fn.h (expand_PHI): Declared here.
4612 * internal-fn.def: New defination for PHI.
4613 * tree-cfg.c (lower_phi_internal_fn): New function.
4614 (build_gimple_cfg): Call it.
4615 (verify_gimple_call): Condition for passing label as arg in internal
4617 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
4618 present PHIs with arguments.
4620 2016-11-14 Martin Liska <mliska@suse.cz>
4623 * common.opt: Add prefer-atomic as a new enum value for
4625 * coretypes.h: Likewise.
4626 * doc/invoke.texi: Document the new option value.
4627 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
4628 * tree-profile.c (tree_profiling): Select default value
4629 of -fprofile-update when 'prefer-atomic' is selected.
4631 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4633 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
4634 (cortex_a57_alu_shift): ...here.
4636 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4638 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
4640 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4641 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4642 (<optab>si3_insn_uxtw): Likewise.
4643 (<optab><mode>3_insn): Likewise.
4644 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
4645 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
4646 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
4647 (<optab><mode>): Likewise.
4648 (insv<mode>): Likewise.
4649 (andim_ashift<mode>_bfiz): Likewise.
4650 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
4651 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
4652 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
4653 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
4654 (exynos_m1_alu_p): Likewise.
4655 * config/arm/types.md: Add bfx.
4656 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
4658 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4660 * config/aarch64/aarch64.c (cortexa57_vector_cost):
4661 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
4663 2016-11-14 Richard Biener <rguenther@suse.de>
4665 PR tree-optimization/78312
4666 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
4667 flow-sensitive info.
4669 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
4672 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
4673 * config/avr/avr.opt (-mabsdata): New option.
4674 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
4675 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
4676 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
4677 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
4678 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
4679 spec depending on AVR_ISA_LDS.
4680 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
4682 2016-11-13 Jakub Jelinek <jakub@redhat.com>
4684 * match.pd: Don't try to compare addresses of variables with
4687 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
4689 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
4690 (propagate_vr_accross_jump_function): Handle unary expressions.
4691 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
4692 (load_from_param_1): New.
4693 (load_from_unmodified_param): Factor common part into load_from_param_1.
4694 (load_from_param): New.
4695 (compute_complex_assign_jump_func): Handle unary expressions.
4696 (update_jump_functions_after_inlining): Likewise.
4697 (ipa_write_jump_function): Likewise.
4698 (ipa_read_jump_function): Likewise.
4700 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4703 * doc/invoke.texi: Document Wrestrict.
4704 * pretty-print.c (pp_format): Add case for "Z" specifier.
4705 (test_pp_format): Test "Z" specifier.
4707 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
4709 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
4710 original function needs a static chain.
4712 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
4715 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
4718 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4721 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
4722 return early if !optional_tbtab.
4724 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
4726 PR rtl-optimization/59461
4727 * doc/rtl.texi (paradoxical subregs): Add missing word.
4728 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
4729 in modes with precision larger than that of last_set_mode.
4730 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
4731 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
4732 REGs to paradoxical SUBREGs.
4733 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
4734 larger than a word before invoking LOAD_EXTEND_OP on it.
4736 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4739 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
4740 element order for little endian ordering.
4742 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
4743 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
4746 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
4749 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
4750 when calculating operand 2.
4751 (rotate to rotatex zext splitter): Ditto.
4753 2016-11-11 Jeff Law <law@redhat.com>
4755 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
4757 (stmt_uses_name_in_undefined_way): New function, extracted from
4758 find_implicit_erroneous_behavior and extended for div/mod case.
4759 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
4760 find_explicit_erroneous_behavior and extended for div/mod case.
4761 (find_implicit_erroneous_behavior): Use new helper function.
4762 (find_explicit_erroneous_behavior): Use new helper function.
4764 2016-11-11 Richard Biener <rguenther@suse.de>
4766 PR tree-optimization/71575
4767 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
4770 2016-11-11 Richard Biener <rguenther@suse.de>
4773 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
4774 about uninitialized destination arg of BIT_INSERT_EXPR.
4776 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
4779 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
4780 terminology. Expand to remove ambiguity.
4782 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4784 PR rtl-optimization/78232
4785 * combine.c (try_combine): Add a big comment about why reusing i2dest
4787 (change_zero_ext): Do not call simplify_gen_binary, do the
4788 simplifications manually.
4790 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4792 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
4793 enable HImode and QImode to go in vector registers by default if
4794 the -mvsx-small-integer option is enabled.
4795 (rs6000_secondary_reload_simple_move): Likewise.
4796 (rs6000_preferred_reload_class): Don't force integer constants to
4797 be loaded into vector registers that we can easily make into
4798 memory (or being created in the GPRs and moved over with direct move).
4799 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
4800 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
4801 vector extraction on ISA 3.0 when the scalar integer can be
4802 allocated in vector registers. Generate the VEC_SELECT directy,
4803 and don't use UNSPEC's to avoid having the scalar type in a vector
4804 register. Make the expander target registers, and let the
4805 combiner fold in results storing to memory, if the machine
4807 (vsx_extract_<mode>_di): Likewise.
4808 (vsx_extract_<mode>_p9): Likewise.
4809 (vsx_extract_<mode>_di_p9): Likewise.
4810 (vsx_extract_<mode>_store_p9): Likewise.
4811 (vsx_extract_si): Likewise.
4812 (vsx_extract_<mode>_p8): Likewise.
4813 (p9_lxsi<wd>zx): Delete, no longer used.
4814 (p9_stxsi<wd>x): Likewise.
4815 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
4816 integers in vector registers for ISA 3.0.
4817 (QHI): Update comment.
4818 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
4819 vector extract instructions in sign/zero extend.
4820 (zero_extendhi<mode>): Likewise.
4821 (extendqi<mode>): Likewise.
4822 (extendhi<mode>2): Likewise.
4823 (HImode splitter for load/sign extend in vector register): Likewise.
4824 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
4825 optimizing floating point conversions to/from small data types and
4826 rewrite it to support QImode/HImode being allowed in vector
4827 registers on ISA 3.0.
4828 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
4829 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
4830 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
4831 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
4832 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
4833 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
4834 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
4835 VSPLITISW on ISA 2.07.
4836 (movhi_internal): Combine movhi_internal and movqi_internal into
4837 one mov<mode>_internal with an iterator. Add support for QImode
4838 and HImode being allowed in vector registers. Make large number
4839 of attributes and constraints easier to read.
4840 (movqi_internal): Likewise.
4841 (mov<mode>_internal): Likewise.
4842 (movdi_internal64): Fix constraint to allow loading -16..15 with
4843 VSPLITISW on ISA 2.07.
4844 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
4847 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
4849 PR rtl-optimization/78241
4850 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
4851 but emit initial peel copy if niter expr is not reliable.
4853 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4855 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
4856 (maybe_record_trace_start): If the CFI is different on the new and
4857 old paths, print out both to the dump file before ICEing.
4859 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
4861 * target.def (additional_allocno_class_p): New.
4862 * hooks.h (hook_bool_reg_class_t_false): New prototype.
4863 * hooks.c (hook_bool_reg_class_t_false): New.
4864 * ira.c (setup_allocno_and_important_classes): Use the new hook.
4865 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
4866 * doc/tm.texi: Update.
4868 2016-11-10 Jason Merrill <jason@redhat.com>
4870 * gengtype.c (new_structure): Append to structures list.
4871 (find_structure): Likewise.
4873 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
4875 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
4876 this_dir is 2. Check for this_dir non-zero before dir != this_dir
4879 2016-11-10 Jakub Jelinek <jakub@redhat.com>
4881 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
4882 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
4884 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
4885 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
4886 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
4887 teams distribute parallel for simd even to distribute and teams
4888 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
4889 OMP_CLAUSE_DEPEND_SINK case.
4890 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
4891 (omp_no_lastprivate): Removed.
4892 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
4893 (gimplify_omp_for): Likewise.
4894 (computable_teams_clause): Fail for automatic vars from current
4895 function not yet seen in bind expr.
4896 * langhooks.c (lhd_omp_scalar_p): New function.
4897 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
4898 * varpool.c (varpool_node::get_create): Set node->offloading
4899 even for DECL_EXTERNAL decls.
4900 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
4901 (LANG_HOOKS_OMP_SCALAR_P): Define.
4902 (LANG_HOOKS_DECLS): Use it.
4904 2016-11-10 Martin Liska <mliska@suse.cz>
4907 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
4908 only when SWITCH_BODY is a BIND_EXPR.
4910 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
4913 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
4914 on the context only when it has no DIE yet.
4916 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
4918 * arm.h (target_cpus): Delete.
4919 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
4920 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
4921 (all_architectures): Likewise.
4922 (arm_option_override): Adjust use of CPU enums.
4923 (arm_sched_reorder): Likewise.
4924 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
4925 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
4926 * arm/genopt.sh (processor_type): Prefix enumeration entries with
4928 * arm-tables.opt: Regenerated.
4930 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
4932 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
4934 * config/aarch64/aarch64-tune.md: Regenerated.
4935 * config/arm/arm-cores.def (falkor): New core.
4936 * config/arm/arm-tables.opt: Regenerated.
4937 * config/arm/arm-tune.md: Regenerated.
4938 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
4939 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
4940 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
4941 (ARM Options/-mtune): Likewise.
4943 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
4946 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
4948 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
4949 (propagate_vr_accross_jump_function): Likewise.
4950 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
4951 (load_from_param_1): New.
4952 (load_from_unmodified_param): Factor common part into load_from_param_1.
4953 (load_from_param): New.
4954 (compute_complex_assign_jump_func): Handle unary expressions.
4955 (ipa_write_jump_function): Likewise.
4956 (ipa_read_jump_function): Likewise.
4958 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
4960 * simplify-rtx.c (simplify_binary_operation_1): Simplify
4961 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
4962 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
4965 2016-11-09 David Malcolm <dmalcolm@redhat.com>
4967 * print-rtl-function.c: Include varasm.h.
4968 (print_any_param_name): New function.
4969 (print_param): New function.
4970 (print_rtx_function): Call print_param for each argument.
4971 * print-rtl.c (rtx_writer::finish_directive): New function.
4972 * print-rtl.h (rtx_writer::finish_directive): New decl.
4974 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
4977 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
4978 operand 0 as earlyclobber.
4979 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
4981 2016-11-09 Martin Liska <mliska@suse.cz>
4983 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
4985 2016-11-09 Jakub Jelinek <jakub@redhat.com>
4988 * builtins.c (expand_builtin_memcmp): Formatting fix.
4990 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
4991 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
4992 or of them, renumber other enumerators.
4993 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
4994 * doc/invoke.texi: Document -fsanitize=shift-base and
4995 -fsanitize-shift-exponent, document -fsanitize=shift as
4996 having those 2 suboptions.
4998 2016-11-09 Richard Biener <rguenther@suse.de>
5000 * fold-const.c (tree_swap_operands_p): Remove unused arg.
5001 * fold-const.c (tree_swap_operands_p): Likewise.
5002 (fold_binary_loc): Adjust.
5003 (fold_ternary_loc): Likewise.
5004 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
5005 * gimple-fold.c (fold_stmt_1): Likewise.
5006 * gimple-match-head.c (gimple_resimplify2): Likewise.
5007 (gimple_resimplify3): Likewise.
5008 (gimple_simplify): Likewise.
5009 * tree-ssa-dom.c (record_equality): Likewise.
5010 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
5011 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5012 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
5014 2016-11-09 Richard Biener <rguenther@suse.de>
5016 * tree-ssa-dom.c (canonicalize_comparison): Remove.
5017 (optimize_stmt): Remove redundant pre-propagation canonicalization
5018 of comparison operand order.
5020 2016-11-09 Martin Liska <mliska@suse.cz>
5022 * fold-const-call.c (fold_const_call): Fix the folding.
5024 2016-11-09 Richard Biener <rguenther@suse.de>
5026 * common.opt (flag_evaluation_order): Remove.
5027 * expr.c (expand_operands): Remove code guarded by
5028 flag_evaluation_order.
5029 * fold-const.c (reorder_operands_p): Remove, it always returns
5031 (negate_expr_p): Remove calls to reorder_operands_p.
5032 (fold_negate_expr): Likewise.
5033 (tree_swap_operands_p): Likewise.
5034 (fold_binary_loc): Likewise.
5036 2016-11-09 Andreas Schwab <schwab@suse.de>
5039 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
5040 insns operating on a register.
5042 2016-11-09 Richard Biener <rguenther@suse.de>
5044 PR tree-optimization/78007
5045 * tree-vect-stmts.c (vectorizable_bswap): New function.
5046 (vectorizable_call): Call vectorizable_bswap for
5047 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
5049 2016-11-09 Richard Biener <rguenther@suse.de>
5051 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5052 Look at the DR_BASE_ADDRESS object for forcing alignment.
5054 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5056 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
5057 (propagate_vr_accross_jump_function): Likewise.
5058 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5059 (load_from_param_1): New.
5060 (load_from_unmodified_param): Factor common part into load_from_param_1.
5061 (load_from_param): New.
5062 (compute_complex_assign_jump_func): Handle unary expressions.
5063 (ipa_write_jump_function): Likewise.
5064 (ipa_read_jump_function): Likewise.
5066 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5069 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
5070 Also fold constant passed as argument while computing value range.
5071 (propagate_constants_accross_call): Pass param type.
5072 * ipa-prop.c: export ipa_get_callee_param_type.
5073 * ipa-prop.h: export ipa_get_callee_param_type.
5075 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
5077 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
5078 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
5080 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
5082 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
5083 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
5084 ASAN_STACK_MAGIC_MIDDLE.
5085 (asan_global_struct): Increase the size of fields.
5086 (asan_add_global): Add new field constructor.
5087 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
5088 __asan_version_mismatch_check_v8.
5090 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
5092 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
5095 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
5098 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
5099 Handle ASHIFT and LSHIFTRT.
5100 (dimode_scalar_chain::compute_convert_gain): Ditto.
5101 (dimode_scalar_chain::convert_insn): Ditto.
5103 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5105 * gimple-ssa-store-merging.c: Include selftest.h
5106 (verify_array_eq): New function.
5107 (verify_shift_bytes_in_array): Likewise.
5108 (verify_shift_bytes_in_array_right): Likewise.
5109 (verify_clear_bit_region): Likewise.
5110 (verify_clear_bit_region_be): Likewise.
5111 (store_merging_c_tests): Likewise.
5112 * selftest.h (store_merging_c_tests): Declare prototype.
5113 * selftest-run-tests.c (selftest::run_tests): Run
5114 store_merging_c_tests.
5116 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5118 * config/arm/arm.opt (mold-rtx-costs): Delete.
5119 (mnew-generic-costs): Delete.
5120 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
5121 * config/arm/arm.c (arm_rtx_costs_1): Delete.
5122 (arm_size_rtx_costs): Likewise.
5123 (arm_slowmul_rtx_costs): Likewise.
5124 (arm_fastmul_rtx_costs): Likewise.
5125 (arm_xscale_rtx_costs): Likewise.
5126 (arm_9e_rtx_costs): Likewise.
5127 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
5128 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
5129 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
5130 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
5131 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
5132 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
5133 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
5134 arm_cortex_m7_tune):
5135 Delete rtx_costs field.
5136 (arm_new_rtx_costs): Rename to...
5137 (arm_rtx_costs_internal): ... This.
5138 (arm_rtx_costs): Remove old way of doing rtx costs.
5140 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5142 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
5143 (arm_fastmul_tune): Likewise.
5144 (arm_strongarm_tune): Likewise.
5145 (arm_xscale_tune): Likewise.
5146 (arm_9e_tune): Likewise.
5147 (arm_marvell_pj4_tune): Likewise.
5148 (arm_v6t2_tune): Likewise.
5149 (arm_v6m_tune): Likewise.
5150 (arm_fa726te_tune): Likewise.
5152 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5154 PR tree-optimization/78234
5155 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
5158 2016-11-08 Martin Liska <mliska@suse.cz>
5161 * dbgcnt.def: Add new debug counter asan_use_after_scope.
5162 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
5163 with a value expr. Do not add artificial variables to
5164 live_switch_vars. Use the debug counter.
5165 (gimplify_target_expr): Use the debug counter.
5166 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
5167 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
5168 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
5170 2016-11-08 Richard Biener <rguenther@suse.de>
5172 * tree-vect-stmts.c (get_group_load_store_type): If the
5173 access is aligned do not trigger peeling for gaps.
5174 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
5175 force alignment of vars with DECL_USER_ALIGN.
5177 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
5179 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
5181 2016-11-08 Richard Biener <rguenther@suse.de>
5183 PR tree-optimization/78205
5184 * tree-vect-stmts.c (vectorizable_load): Move check whether
5185 we may run into gaps when BB vectorizing SLP permutations ...
5186 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
5187 here where we can do a more precise check.
5189 2016-11-08 Richard Biener <rguenther@suse.de>
5191 PR tree-optimization/78224
5192 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
5193 Split the fallthru edge in case its successor may have PHIs.
5194 Do not free dominance info.
5196 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5199 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5200 EH info even for bzhi and pdep/pext.
5202 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
5204 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
5205 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
5207 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5209 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
5211 * config/rs6000/vector.md (div<mode>3): Ditto.
5213 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
5215 * configure.ac (.hidden): Change to conftest_s string. Provide string
5217 (gcc_cv_ld_hidden): Yes for AIX.
5218 * configure: Regenerate.
5220 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
5222 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
5223 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
5224 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
5225 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5226 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
5227 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
5229 (rs6000_xcoff_visibility): New.
5230 (rs6000_xcoff_declare_function_name): Add visibility support.
5231 (rs6000_xcoff_asm_globalize_decl_name): New.
5232 (rs6000_xcoff_asm_output_aligned_decl_common): New.
5233 (rs6000_asm_weaken_decl): New.
5234 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
5235 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
5238 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
5241 * incpath.c (remove_dup): Also silently ignore EPERM.
5243 2016-11-07 Martin Jambor <mjambor@suse.cz>
5245 * tree.c (verify_type_variant): Use pointer comparison to check that
5246 TYPE_SIZE_UNIT match.
5248 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5251 * dse.c (dse_step5): Call scan_reads even if just
5252 insn_info->frame_read. Improve and fix dump file messages.
5255 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
5256 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
5258 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5261 * match.pd: Add following two patterns:
5262 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
5263 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
5265 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
5267 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
5268 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
5269 * rtl.h (duplicate_reg_notes): Declare.
5270 * rtlanal.c (duplicate_reg_note): New function.
5272 PR rtl-optimization/77309
5273 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
5274 don't assume an equality comparison for plain COMPARE.
5275 (simplify_comparison): Pass a more accurate code to
5276 make_compound_operation.
5278 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
5280 * target.def (compute_pressure_classes): New target hook.
5281 * doc/tm.texi.in: Document it.
5282 * doc/tm.texi: Regenerate.
5283 * ira.c (setup_pressure_classes): Call target hook if defined.
5285 2016-11-07 David Malcolm <dmalcolm@redhat.com>
5287 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
5289 (rtx_writer::print_rtx): In compact mode, omit trailing operands
5290 that have the default values.
5291 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
5293 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
5294 label string from expected dump.
5295 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
5298 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5301 * alias.c (nonoverlapping_memrefs_p): If one decl is
5302 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
5304 2016-11-07 Richard Biener <rguenther@suse.de>
5307 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5310 2016-11-07 Richard Biener <rguenther@suse.de>
5312 PR tree-optimization/78218
5313 * gimple-ssa-store-merging.c
5314 (pass_store_merging::terminate_all_aliasing_chains):
5315 Drop unused argument, fix alias check to also consider uses.
5316 (pass_store_merging::execute): Adjust.
5318 2016-11-07 Richard Biener <rguenther@suse.de>
5320 PR tree-optimization/78228
5321 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
5324 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5327 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
5328 aarch64_simd_shift_imm_<mode> predicate for operand 1.
5329 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
5330 to restrict them to an appropriate range and add FAIL check if the
5331 region they specify is out of range. Delete useless constraint
5333 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
5334 2 and 3 to restrict their range and add pattern predicate.
5336 2016-11-07 Martin Liska <mliska@suse.cz>
5338 * asan.c (enum asan_check_flags): Move the enum to header file.
5339 (asan_init_shadow_ptr_types): Make type creation more generic.
5340 (shadow_mem_size): New function.
5341 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
5342 Rewritten stack unpoisoning code.
5343 (build_shadow_mem_access): Add new argument return_address.
5344 (instrument_derefs): Instrument local variables if use after scope
5345 sanitization is enabled.
5346 (asan_store_shadow_bytes): New function.
5347 (asan_expand_mark_ifn): Likewise.
5348 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
5349 * asan.h (enum asan_mark_flags): Moved here from asan.c
5350 (asan_protect_stack_decl): Protect all declaration that need
5352 (asan_sanitize_use_after_scope): New function.
5353 (asan_no_sanitize_address_p): Likewise.
5354 * cfgexpand.c (partition_stack_vars): Consider
5355 asan_sanitize_use_after_scope in condition.
5356 (expand_stack_vars): Likewise.
5357 * common.opt (-fsanitize-address-use-after-scope): New option.
5358 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
5359 Explain the parameter.
5360 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
5361 * gimplify.c (build_asan_poison_call_expr): New function.
5362 (asan_poison_variable): Likewise.
5363 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
5364 variables that have address taken.
5365 (gimplify_decl_expr): Likewise.
5366 (gimplify_target_expr): Likewise for C++ temporaries.
5367 (sort_by_decl_uid): New function.
5368 (gimplify_expr): Unpoison all variables for a label we can jump
5369 from outside of a scope.
5370 (gimplify_switch_expr): Unpoison variables defined in the switch
5372 (gimplify_function_tree): Clear asan_poisoned_variables.
5373 (asan_poison_variables): New function.
5374 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
5375 * internal-fn.c (expand_ASAN_MARK): New function.
5376 * internal-fn.def (ASAN_MARK): Declare.
5377 * opts.c (finish_options): Handle -fstack-reuse if
5378 -fsanitize-address-use-after-scope is enabled.
5379 (common_handle_option): Enable address sanitization if
5380 -fsanitize-address-use-after-scope is enabled.
5381 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
5383 * params.h: Likewise.
5384 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
5385 * sanitizer.def: Define __asan_poison_stack_memory and
5386 __asan_unpoison_stack_memory functions.
5387 * asan.c (asan_mark_poison_p): New function.
5388 (transform_statements): Handle asan_mark_poison_p calls.
5389 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
5391 2016-11-07 Tamar Christina <tamar.christina@arm.com>
5394 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
5396 2016-11-07 Martin Liska <mliska@suse.cz>
5398 * tree-profile.c (gimple_gen_time_profiler): Set proper type
5399 to time_profiler_counter_ptr.
5401 2016-11-07 Richard Biener <rguenther@suse.de>
5403 PR tree-optimization/37150
5404 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
5406 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
5407 (vect_analyze_slp_cost_1): Account for the real number of
5408 permutations emitted and for dead loads.
5409 (vect_transform_slp_perm_load): Add n_perms parameter counting
5410 the number of emitted permutations.
5411 * tree-vect-stmts.c (vectorizable_load): Adjust.
5413 2016-11-07 Richard Biener <rguenther@suse.de>
5415 PR tree-optimization/78189
5416 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
5417 alignment computation.
5419 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
5421 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
5423 2016-11-05 Martin Sebor <msebor@redhat.com>
5425 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
5428 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
5432 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
5434 2016-11-04 Jakub Jelinek <jakub@redhat.com>
5437 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
5438 doesn't have rtl set.
5440 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5442 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
5443 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
5444 rs6000_gimple_fold_builtin.
5445 (rs6000_gimple_fold_builtin): New function. Add handling for
5446 early expansion of vector addition builtins.
5448 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
5450 * expr.h (copy_blkmode_from_reg): Delete.
5451 * expr.c (copy_blkmode_from_reg): Make static.
5453 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
5455 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
5456 * combine.c (LOAD_EXTEND_OP): Delete.
5457 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
5458 * cse.c (LOAD_EXTEND_OP): Delete.
5459 * fold-const.c (LOAD_EXTEND_OP): Likewise.
5460 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
5461 * postreload.c (LOAD_EXTEND_OP): Delete.
5462 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
5463 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
5464 (find_reloads): Likewise.
5465 * reload1.c (eliminate_regs_1): Likewise.
5466 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
5467 (num_sign_bit_copies1): Likewise.
5469 2016-11-04 David Malcolm <dmalcolm@redhat.com>
5471 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
5472 (selftest::ix86_test_dumping_hard_regs): New function.
5473 (selftest::ix86_run_selftests): New function.
5474 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
5475 selftest::ix86_run_selftests.
5476 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
5477 * doc/tm.texi: Regenerate
5478 * selftest-rtl.h: New file.
5479 * rtl-tests.c: Include "selftest-rtl.h".
5480 (selftest::assert_rtl_dump_eq): Make non-static.
5481 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
5482 (selftest::test_dumping_regs): Update comment.
5483 * selftest-run-tests.c: Include "target.h".
5484 (selftest::run_tests): If non-NULL, call
5485 targetm.run_target_selftests.
5486 * target.def (run_target_selftests): New hook.
5488 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5490 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
5491 representative core for this architecture.
5492 * config/arm/arm-cores.def (cortex-m33): Define new processor.
5493 * config/arm/arm-tables.opt: Regenerate.
5494 * config/arm/arm-tune.md: Likewise.
5495 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
5496 valid -mcpu options.
5497 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
5499 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5501 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
5502 representative core for this architecture.
5503 * config/arm/arm-cores.def (cortex-m23): Define new processor.
5504 * config/arm/arm-tables.opt: Regenerate.
5505 * config/arm/arm-tune.md: Likewise.
5506 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
5507 this tuning parameters apply to in the comment.
5508 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
5509 valid -mcpu options.
5510 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
5512 2016-11-04 Bin Cheng <bin.cheng@arm.com>
5514 * fold-const.c (fold_cond_expr_with_comparison): Remove call
5515 to pedantic_non_lvalue_loc. Remove useless code for lvalue
5516 where cond_expr can't be a lvalue.
5518 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
5520 * config/arc/arc.c (arc_process_double_reg_moves): Use
5522 * config/arc/arc.md (movsi_insn): Disable unsupported move
5523 instructions for ARCv2 cores.
5524 (movdi): Use prepare_move_operands.
5525 (movsf, movdf): Use move_dest_operand predicate.
5526 * config/arc/constraints.md (Chs): Enable when barrel shifter is
5528 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
5529 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
5531 (dexcl_3op_peep2_insn_nores): Likewise.
5532 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
5533 (LINK_COMMAND_SPEC): Remove.
5535 2016-11-04 Richard Biener <rguenther@suse.de>
5538 * loop-invariant.c (find_exits): Record entering inner
5539 loops as possibly exiting to handle infinite sub-loops.
5540 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
5541 (fill_always_executed_in_1): Honor infinite child loops.
5543 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5546 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
5547 has already been adjusted for endianness, so don't adjust it any
5551 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
5552 ICmode unless we have standard PowerPC floating point.
5553 * config/rs6000/rs6000.md (FP iterator): Likewise.
5554 (FMOVE128 iterator): Likewise.
5556 2016-11-03 Jakub Jelinek <jakub@redhat.com>
5557 Alexandre Oliva <aoliva@redhat.com>
5558 Jason Merrill <jason@redhat.com>
5562 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
5564 * langhooks.c (lhd_type_dwarf_attribute): New function.
5565 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
5566 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
5567 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
5568 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
5569 (check_qualified_type, check_aligned_type): Call it.
5570 * dwarf2out.c (modified_type_die): Don't use type_main_variant
5571 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
5572 check_base_type and check_lang_type.
5573 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
5574 return early. For pointer-to-data-member add DW_AT_use_location
5576 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
5578 (gen_type_die_with_usage): Don't use type_main_variant
5579 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
5580 check_base_type and check_lang_type. Formatting fixes. Call
5581 get_debug_type langhook.
5583 2016-11-03 Jason Merrill <jason@redhat.com>
5585 * tree.c (check_lang_type): New.
5586 (check_qualified_type): Use it.
5587 (check_aligned_type): Use it.
5588 * tree.h: Declare it.
5590 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
5592 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
5593 (arm*-freebsd*): Likewise.
5594 (arm*-*-netbsdelf*): Likewise.
5595 (arm*-*-linux*): Likewise.
5596 (arm*-*-uclinux*eabi*): Likewise.
5597 (arm*-*-phoenix*): Likewise.
5598 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
5599 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
5600 specified. Default to arm6 if target_cpu_cname is not set.
5601 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
5602 default cpu has been correctly configured.
5603 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
5604 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
5605 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
5606 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
5607 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
5608 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
5609 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
5611 2016-11-03 Jiong Wang <jiong.wang@arm.com>
5613 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
5614 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
5615 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
5616 (output_cfa_loc): Support DW_CFA_val_expression.
5617 (output_cfa_loc_raw): Likewise.
5618 (output_cfi): Likewise.
5619 (output_cfi_directive): Likewise.
5620 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
5621 (dw_cfi_oprnd2_desc): Likewise.
5622 (mem_loc_descriptor): Recognize new pattern generated for value
5625 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
5627 PR rtl-optimization/78186
5628 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
5629 well, when converting to IOR.
5631 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
5633 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
5634 (vec_interleave_highv8qi): Likewise.
5636 2016-11-03 Martin Liska <mliska@suse.cz>
5638 * profile.c (instrument_values): Fix coding style.
5639 (branch_prob): Use renamed function.
5640 * tree-profile.c (init_ic_make_global_vars): Likewise.
5641 (gimple_init_edge_profiler): Rename to
5642 gimple_init_gcov_profiler.
5643 tree_time_profiler_counter variable declaration.
5644 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
5646 * value-prof.h: Remove an argument.
5648 2016-11-03 Richard Biener <rguenther@suse.de>
5650 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
5651 symtab_node::get_create.
5653 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5655 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
5656 Move comments into more natural position.
5658 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
5660 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
5661 (PTRDIFF_TYPE): Define as int.
5663 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5665 * ccmp.c (expand_ccmp_expr_1): Adjust.
5666 (expand_ccmp_expr): Likewise.
5667 (expand_ccmp_next): Likewise.
5668 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
5669 (aarch64_gen_ccmp_first): Likewise.
5670 * doc/tm.texi: Regenerate.
5671 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
5672 (gen_ccmp_next): Likewise.
5674 2016-11-03 Bin Cheng <bin.cheng@arm.com>
5676 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
5677 (vect_is_simple_reduction): Swap cond_reduction by inversion.
5679 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
5681 * config/i386/i386.c (ix86_init_libfuncs): New. Call
5682 darwin_rename_builtins here.
5683 (ix86_expand_divmod_libfunc): New.
5684 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
5685 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
5687 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5688 Nathan Sidwell <nathan@acm.org>
5690 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
5692 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
5694 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
5696 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
5697 to format MODE_INT and MODE_PARTIAL_INT literals.
5699 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
5702 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
5703 NULL if TARGET_SPE_ABI.
5705 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5707 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
5708 clear padding bits even when they're less than a byte.
5710 2016-11-02 Richard Biener <rguenther@suse.de>
5712 * gimple-ssa-store-merging.c: Include gimplify-me.h.
5713 (imm_store_chain_info::output_merged_stores): Force base_addr
5714 to be proper GIMPLE for a MEM_REF address.
5715 (pass_store_merging::execute): Restrict negative bitpos
5716 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
5717 check. Take into account non-NULL_TREE offset if the base
5718 is already addressable.
5720 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
5722 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
5724 (aarch64_be_crypto_sha1hv4si): New pattern.
5726 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
5728 * config/aarch64/aarch64.md (add<mode>3): Remove
5729 redundant code. Don't split frame based additions.
5731 2016-11-02 Richard Biener <rguenther@suse.de>
5733 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
5734 redundant val and dest members.
5735 (store_immediate_info::store_immediate_info): Adjust.
5736 (merged_store_group::merged_store_group): Adjust.
5737 (merged_store_group::apply_stores): Likewise.
5738 (struct imm_store_chain_info): Add base_addr field.
5739 (imm_store_chain_info::imm_store_chain_info): New constructor.
5740 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
5741 (imm_store_chain_info::output_merged_store): Likewise. Use
5742 addr_base which is already the address.
5743 (imm_store_chain_info::output_merged_stores): Likewise.
5744 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
5745 imm_store_chain_info instead of base. Fix alias check.
5746 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
5747 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
5748 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
5749 use the address of the base and adjust for other changes.
5751 2016-11-02 Martin Liska <mliska@suse.cz>
5753 * fold-const-call.c (host_size_t_cst_p): Test whether
5754 t is convertible to size_t.
5756 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5758 PR tree-optimization/78170
5759 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
5760 introduced by native_encode_expr on little-endian as well.
5762 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5764 PR tree-optimization/78162
5765 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
5768 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5770 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
5772 (aarch64_next_callee_save): Likewise.
5773 (aarch64_pushwb_single_reg): Likewise.
5774 (aarch64_gen_storewb_pair): Likewise.
5775 (aarch64_push_regs): Likewise.
5776 (aarch64_gen_loadwb_pair): Likewise.
5777 (aarch64_pop_regs): Likewise.
5778 (aarch64_gen_store_pair): Likewise.
5779 (aarch64_gen_load_pair): Likewise.
5780 (aarch64_save_callee_saves): Likewise.
5781 (aarch64_restore_callee_saves): Likewise.
5783 2016-11-02 Richard Biener <rguenther@suse.de>
5785 PR tree-optimization/78035
5786 PR tree-optimization/77964
5787 * gimple-pretty-print.c (pp_points_to_solution): Print
5788 vars_contains_interposable.
5789 * tree-ssa-alias.c: Include varasm.h.
5790 (ptrs_compare_unequal): Check vars_contains_interposable and
5791 decl_binds_to_current_def_p.
5792 (dump_points_to_solution): Dump vars_contains_interposable.
5793 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
5795 * tree-ssa-structalias.c: Include varasm.h.
5796 (set_uids_in_ptset): Record whether vars contains a
5797 not decl_binds_to_current_def_p variable in vars_contains_interposable.
5798 (ipa_escaped_pt): Update initializer.
5800 2016-11-02 Richard Biener <rguenther@suse.de>
5802 PR tree-optimization/78047
5803 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
5804 fake field at offset zero conservatively regarding to may_have_pointers.
5806 2016-11-02 Richard Biener <rguenther@suse.de>
5808 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
5809 infer_value_range on stmt ops and update value-ranges.
5810 Dump visited stmts and blocks.
5811 (evrp_dom_walker::push_value_range): Dump changes.
5812 (evrp_dom_walker::pop_value_range): Likewise.
5813 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
5815 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5817 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
5819 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
5821 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5823 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
5824 and adjust for that.
5825 * cfgrtl.h (delete_insn_chain): Adjust prototype.
5827 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5829 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
5831 (transcode_memory_rtx): Likewise.
5832 (move_to_acc): Likewise.
5833 (move_from_acc): Likewise.
5834 (move_acc_to_reg): Likewise.
5835 (move_to_x): Likewise.
5836 (move_to_hl): Likewise.
5837 (move_to_de): Likewise.
5838 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
5839 (rs6000_emit_savres_rtx): Likewise.
5840 (rs6000_emit_prologue): Likewise.
5841 * reorg.c (update_reg_unused_notes): Likewise.
5842 * rtl.h (remove_note): Adjust prototype.
5843 * rtlanal.c (remove_note): Make argument type rtx_insn *.
5845 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5847 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
5848 variables so some can be rtx_insn *.
5849 (alpha_emit_xfloating_libcall): Likewise.
5850 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
5851 (mips_legitimize_tls_address): Likewise.
5852 * optabs.c (expand_binop): Likewise.
5853 * reload1.c (gen_reload): Likewise.
5855 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5857 * reorg.c (relax_delay_slots): Split up the trial variable.
5859 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5861 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
5862 of variables rtx_insn *.
5863 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
5864 (legitimize_tls_address): Likewise.
5865 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5866 (bfin_gen_bundles): Likewise.
5867 * config/c6x/c6x.c (reorg_split_calls): Likewise.
5868 (c6x_reorg): Likewise.
5869 * config/frv/frv.c (frv_reorder_packet): Likewise.
5870 * config/i386/i386.c (ix86_split_idivmod): Likewise.
5871 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
5872 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
5873 * config/mn10300/mn10300.c: Likewise.
5874 * config/rl78/rl78.c: Likewise.
5875 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
5876 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
5877 (sh_expand_cmpnstr): Likewise.
5878 (sh_expand_strlen): Likewise.
5879 (sh_expand_setmem): Likewise.
5880 * config/sh/sh.md: Likewise.
5881 * emit-rtl.c (emit_pattern_before): Likewise.
5882 * except.c: Likewise.
5883 * final.c: Likewise.
5886 2016-11-01 Jason Merrill <jason@redhat.com>
5888 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
5889 a COND_EXPR with constant condition.
5891 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5893 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
5894 and its initialization.
5896 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5898 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
5901 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5903 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
5904 argument, don't call add_linkage_name if it is true.
5905 (gen_variable_die): For C++ inline static data members, consider the
5906 initial call when old_die is NULL to be declaration and call
5907 add_name_and_src_coords_attributes in that case with true as
5908 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
5909 (gen_member_die): For C++ inline static data members, emit a
5910 definition DIE right away in DW_TAG_compile_unit context.
5912 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
5915 * config/pa/pa.md: Add new shift/add patterns to handle
5916 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
5918 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
5920 * config/xtensa/xtensa-protos.h
5921 (xtensa_use_return_instruction_p): New prototype.
5922 * config/xtensa/xtensa.c (xtensa_current_frame_size,
5923 xtensa_callee_save_size): Remove.
5924 (struct machine_function): Add new fields: current_frame_size,
5925 callee_save_size, frame_laid_out and epilogue_done.
5926 (compute_frame_size, xtensa_expand_prologue,
5927 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
5928 cfun->machine->callee_save_size and xtensa_current_frame_size
5929 with cfun->machine->current_frame_size.
5930 (compute_frame_size): Update cfun->machine->frame_laid_out and
5931 don't update frame layout after reload completion.
5932 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
5933 instead of zeroing xtensa_current_frame_size.
5934 (xtensa_use_return_instruction_p): New function.
5935 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
5937 (INITIAL_ELIMINATION_OFFSET): Use return value of
5938 compute_frame_size instead of xtensa_current_frame_size value.
5939 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
5940 function xtensa_use_return_instruction_p instead of inline code.
5942 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5944 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
5945 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
5946 * dwarf2out.c (rnglist_idx): New variable.
5947 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
5948 (DEBUG_RNGLISTS_SECTION): Define.
5949 (ranges_base_label): New variable.
5950 (size_of_die) <case dw_val_class_range_list>: If using
5951 DW_FORM_rnglistx, count size of uleb128 of range list index.
5952 (value_format) <case dw_val_class_range_list>: For
5953 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
5954 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
5955 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
5956 (add_ranges_num): Remove useless prototype. Don't multiply
5957 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
5958 for new fields added to dw_ranges struct.
5959 (add_ranges): Add maybe_new_sec argument and pass it
5960 through to add_ranges_num.
5961 (note_rnglist_head): New function.
5962 (add_ranges_by_labels): Pass true as maybe_new_sec to
5963 add_ranges_num, call note_rnglist_head on the head of the list.
5964 (output_ranges): Add function comment. Switch to
5965 .debug_ranges section here and emit .Ldebug_ranges0 label.
5966 (index_rnglists, output_rnglists): New functions.
5967 (gen_subprogram_die): Formatting fixes.
5968 (add_high_low_attributes): Don't divide offsets
5969 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
5970 first list element or when pointing into the middle of
5971 a list. Pass true as second argument to add_ranges on the
5972 first block fragment after cold/hot section switch.
5973 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
5974 section instead of .debug_ranges. Initialize
5975 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
5976 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
5977 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
5978 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
5979 Call output_rnglists for -gdwarf-5.
5980 (dwarf2out_c_finalize): Clear rnglist_idx.
5982 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
5984 * combine.c (simplify_compare_const): Add gcc_fallthrough.
5986 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
5987 Tamar Christina <tamar.christina@arm.com>
5989 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
5990 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
5991 (vmaxnmq_f32): Likewise.
5992 (vminnm_f32): Likewise.
5993 (vminnmq_f32): Likewise.
5994 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
5996 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
5999 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
6001 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
6002 binary floating point types supported by the hardware except for
6004 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
6005 vector instruction for optimizing extracting a SImode from a
6006 V4SImode vector and converting it to floating point.
6007 (vsx_xvcvuxwdp_df): Likewise.
6008 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
6009 registers to be any VSX register. Move stores to the end of the
6011 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
6012 to optimize extracting a SImode from a V4SImode vector and
6013 converting it to a binary floating point type supported by the
6014 hardware. Use the vector converts instead of extracting the
6015 element, sign extending it, and then converting it to double.
6016 Other floating point types than double first convert to double,
6017 then the double is converted to that type.
6018 (vsx_extract_si_<uns>float_<mode>): Likewise.
6020 2016-10-31 Andrew Pinski <apinski@cavium.com>
6022 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
6023 Rewrite handling of part num to handle the case where
6024 multiple implementers share the same part num.
6026 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6027 Jakub Jelinek <jakub@redhat.com>
6029 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
6030 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
6032 2016-10-31 Jakub Jelinek <jakub@redhat.com>
6034 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
6035 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
6036 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
6037 (is_cu_die, is_unit_die): Likewise.
6038 (should_move_die_to_comdat, break_out_comdat_types): Adjust
6039 comments for DWARF5 DW_UT_type units.
6040 (output_compilation_unit_header): Add UT argument, output
6041 start of DWARF5 .debug_info section header.
6042 (output_comp_unit): Add dwo_id argument. Adjust
6043 output_compilation_unit_header caller, for DW_UT_split_compile
6044 emit dwo_id field, otherwise padding1. Emit padding2 field.
6045 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
6046 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
6047 (output_skeleton_debug_sections): Add dwo_id argument, for
6048 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
6049 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
6050 DW_UT_type or DW_UT_split_type units rather than .debug_types.
6051 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
6052 DW_TAG_compile_unit for skeleton unit die. Don't add
6053 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
6054 address to output_comp_unit and output_skeleton_debug_sections.
6056 * dwarf2out.c (debug_line_str_section): New variable.
6057 (debug_line_str_hash): Likewise.
6058 (DEBUG_LINE_STR_SECTION): Define.
6059 (set_indirect_string): Handle DW_FORM_line_strp like
6061 (find_string_form): Fix up formatting.
6062 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
6064 (output_die): Handle DW_FORM_line_strp.
6065 (DWARF5_USE_DEBUG_LINE_STR): Define.
6066 (output_line_string): New function.
6067 (output_file_names): Add -gdwarf-5 support.
6068 (output_line_info): Likewise.
6069 (init_sections_and_labels): Initialize debug_line_str_section.
6070 (output_indirect_string): Change 2nd argument from void *
6071 to enum dwarf_form form, compare with form rather than
6073 (output_indirect_strings): Pass DW_FORM_strp to
6074 output_indirect_string traversion.
6075 (dwarf2out_finish): Output .debug_line_str strings.
6076 (dwarf2out_c_finalize): Clear debug_line_str_section and
6077 debug_line_str_hash.
6079 2016-10-31 Tom Tromey <tom@tromey.com>
6082 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
6083 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
6084 DW_OP_GNU_push_tls_address case.
6085 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
6087 2016-10-31 Jakub Jelinek <jakub@redhat.com>
6089 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
6090 for frame_offset_rel bit.
6091 (struct array_descr_info): Add rank field.
6092 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
6093 and placeholder_seen fields.
6094 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
6095 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
6096 DW_OP_pick 1 into DW_OP_over.
6097 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
6098 gen_variant_part): Clear placeholder_{arg,seen}.
6099 (loc_list_from_tree_1): Drop const from context argument.
6100 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
6101 (loc_list_for_address_of_addr_expr_of_indirect_ref,
6102 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
6104 (add_scalar_info): Drop const from context argument. Handle
6105 context->placeholder_arg.
6106 (add_bound_info): Drop const from context argument.
6107 (gen_descr_array_type_die): Drop const from ctx variable.
6108 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
6109 attribute and use a single DW_TAG_generic_subrange instead of
6110 7 DW_TAG_subrange_type for assumed rank arrays.
6112 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
6113 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
6114 from bool to 1-bit uchar bitfield. Add num_assigned and
6115 offset_emitted bitfields.
6116 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
6117 for dw_val_class_lineptr and dw_val_class_macptr. Handle
6118 dw_val_class_loclistsptr.
6119 (new_addr_loc_descr): Fix up formatting.
6120 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
6121 (add_AT_low_high_pc): Fix up formatting.
6122 (add_AT_loclistsptr): New function.
6123 (AT_lbl): Allow dw_val_class_loclistsptr.
6124 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
6125 Handle dw_val_class_loclistsptr.
6126 (loc_list_idx): New variable.
6127 (output_loclists_offsets, assign_location_list_indexes): New
6129 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
6130 add size_of_uleb128 of the index. Drop never used
6131 dwarf_split_debug_info AT_index handling. Handle
6132 dw_val_class_loclistsptr.
6133 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
6134 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
6135 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
6136 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
6137 DW_FORM_loclistx indexes.
6138 (output_attr_index_or_value): Fix up formatting. Don't handle
6139 dw_val_class_loc_list here.
6140 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
6141 For dw_val_class_loc_list call output_loc_list_offset rather than
6142 output_attr_index_or_value.
6143 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
6144 or .debug_loclists.dwo section name for debug_loc_section.
6145 (resolve_addr_in_expr): Formatting fix.
6146 (index_location_lists): Likewise.
6147 (dwarf2out_finish): If there are any location lists, for
6148 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
6149 index_location_lists only if have_location_lists. Call
6150 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
6151 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
6152 -gsplit-dwarf also emit offset table.
6154 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
6155 (size_of_die, value_format, output_die): Use
6156 DW_FORM_data16 for 128-bit dw_val_class_const_double or
6157 dw_val_class_wide_int.
6159 * dwarf2out.c (dwarf_op): Renamed to ...
6160 (dwarf_OP): ... this.
6161 (convert_descriptor_to_mode, scompare_loc_descriptor,
6162 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6163 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
6165 (dwarf_AT, dwarf_TAG): New functions.
6166 (check_die): Disallow DW_AT_call_all_calls next to
6167 DW_AT_GNU_all_call_sites.
6168 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
6169 and attributes instead of the corresponding GNU tag and attributes.
6170 (gen_subprogram_die): Likewise. Emit call site information even
6171 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
6172 DW_AT_defaulted in comment.
6173 (resolve_addr): Handle DW_AT_call_origin attribute on
6174 DW_TAG_call_site DIE like DW_AT_abstract_origin on
6175 DW_TAG_GNU_call_site DIE.
6177 * dwarf2out.c (dwarf_op): New function.
6178 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
6179 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
6180 (output_loc_operands, output_loc_operands_raw): Likewise.
6181 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
6182 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
6183 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
6184 if dwarf_version < 5.
6185 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
6187 (scompare_loc_descriptor, ucompare_loc_descriptor,
6188 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6189 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
6190 optimize_location_into_implicit_ptr): Likewise. Only punt for
6191 !dwarf_strict if dwarf_version < 5.
6192 (string_cst_pool_decl): Adjust comment.
6193 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
6195 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
6196 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6197 (struct dw_val_node): Add val_file_implicit field.
6198 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
6199 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
6200 output_die): Handle dw_val_class_const_implicit,
6201 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6202 (abbrev_die_table): Change into va_gc vec.
6203 (abbrev_die_table_allocated, abbrev_die_table_in_use,
6204 ABBREV_DIE_TABLE_INCREMENT): Remove.
6205 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
6206 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
6208 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
6209 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
6211 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
6213 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
6215 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
6217 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
6218 unit. Call optimize_abbrev_table.
6219 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
6220 abbrev_die_table being a va_gc vec.
6222 PR tree-optimization/77860
6223 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
6224 also integral complex and vector constants.
6226 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
6227 optimize_macinfo_range, save_macinfo_strings): Replace
6228 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
6229 (output_macinfo): Likewise. Emit .debug_macro* rather than
6230 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
6231 (init_sections_and_labels): Use .debug_macro* labels rather than
6232 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
6233 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
6234 or DW_AT_GNU_macros for -gdwarf-5.
6236 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
6238 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
6240 2016-09-11 Le-Chun Wu <lcwu@google.com>
6241 Mark Wielaard <mjw@redhat.com>
6243 * common.opt (Wshadow=global): New option. Default for -Wshadow.
6244 (Wshadow=local): New option.
6245 (Wshadow-local): Hidden alias for -Wshadow=local.
6246 (Wshadow=compatible-local): New option.
6247 (Wshadow-compatible-local): Hidden alias for
6248 -Wshadow=compatible-local.
6249 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
6250 Wshadow=compatible-local.
6252 2016-10-31 Bin Cheng <bin.cheng@arm.com>
6254 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
6255 Check slp defs for COND_EXPR by swapping/inverting operands if the
6256 new parameter SWAP indicates so.
6257 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
6258 is isomorphic to the first stmt via swapping/inverting. Store swap
6259 information in the new parameter SWAP.
6260 (vect_build_slp_tree): New local array SWAP and pass it to function
6261 vect_build_slp_tree_1. Cleanup result handling code for function
6262 call to vect_get_and_check_slp_defs. Skip operand swapping if the
6263 order of operands has been fixed as indicated by SWAP[i].
6265 2016-10-31 Bin Cheng <bin.cheng@arm.com>
6267 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
6268 unnecessary data dependence check after visited store stmt.
6270 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6272 PR tree-optimization/71915
6273 PR tree-optimization/71490
6274 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
6276 (find_basis_for_base_expr): Require stride types to match when
6278 (alloc_cand_and_find_basis): Record the stride type.
6279 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
6280 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
6281 the expressions having those types.
6282 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
6283 (create_mul_ssa_cand): Likewise.
6284 (create_mul_imm_cand): Likewise.
6285 (create_add_ssa_cand): Likewise.
6286 (create_add_imm_cand): Likewise.
6287 (legal_cast_p_1): Change interface to accept types rather than the
6288 expressions having those types.
6289 (legal_cast_p): Pass types to legal_cast_p_1.
6290 (slsr_process_cast): Pass stride type to
6291 alloc_cand_and_find_basis.
6292 (slsr_process_copy): Likewise.
6293 (dump_candidate): Display stride type when a cast exists.
6294 (create_add_on_incoming_edge): Introduce a cast when necessary for
6296 (analyze_increments): Change the code checking for invalid casts
6297 to rely on the stride type, and update the documentation and
6298 example. Change the code checking for pointer multiplies to rely
6300 (insert_initializers): Introduce a cast when necessary for the
6301 stride type. Use the stride type for the type of the initializer.
6303 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6305 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
6307 2016-10-29 Jakub Jelinek <jakub@redhat.com>
6309 PR rtl-optimization/77919
6310 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
6311 into memory if both modes are complex and their inner modes have the
6312 same precision. If the two modes are different complex modes, convert
6313 each part separately and generate a new CONCAT.
6315 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
6317 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
6319 2016-10-29 Jakub Jelinek <jakub@redhat.com>
6322 * gimple-ssa-store-merging.c
6323 (imm_store_chain_info::output_merged_store): Use build_aligned_type
6324 instead of SET_TYPE_ALIGN on shared integral type.
6326 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
6328 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
6329 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
6332 2016-10-28 Jeff Law <law@redhat.com>
6334 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
6335 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
6337 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6339 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
6341 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6343 * target.def (min_arithmetic_precision): New hook.
6344 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
6345 * doc/tm.texi: Regenerate.
6346 * internal-fn.c (expand_arith_overflow): Adjust handling of target
6347 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
6348 * targhooks.c (default_min_arithmetic_precision): New function.
6349 * targhooks.h (default_min_arithmetic_precision): Declare.
6350 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
6351 (sparc_min_arithmetic_precision): New function.
6353 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
6356 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
6357 Swap commutative operands in new RTL if needed. Handle zero_ext
6359 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
6362 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6363 Kugan Vivekanandarajah <kuganv@linaro.org>
6364 Jim Wilson <jim.wilson@linaro.org>
6366 PR tree-optimization/43721
6367 * target.def: New hook expand_divmod_libfunc.
6368 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
6369 * doc/tm.texi: Regenerate.
6370 * internal-fn.def: Add new entry for DIVMOD ifn.
6371 * internal-fn.c (expand_DIVMOD): New.
6372 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
6374 (widen_mul_stats): Add new field divmod_calls_inserted.
6375 (target_supports_divmod_p): New.
6376 (divmod_candidate_p): Likewise.
6377 (convert_to_divmod): Likewise.
6378 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
6379 renumber_gimple_stmt_uids at beginning of function. Call
6380 convert_to_divmod and record stats for divmod.
6381 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
6382 TARGET_EXPAND_DIVMOD_LIBFUNC.
6383 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
6386 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6387 Segher Boessenkool <segher@kernel.crashing.org>
6389 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
6390 swapping the arms of the branch.
6391 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
6392 sequence for the generic signed-signed-signed case.
6394 2016-10-28 Jeff Law <law@redhat.com>
6396 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
6398 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
6400 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
6402 PR rtl-optimization/78029
6403 * function.c (prologue_contains, epilogue_contains): New functions.
6404 (record_prologue_seq, record_epilogue_seq): New functions.
6405 * function.h (prologue_contains, epilogue_contains,
6406 record_prologue_seq, record_epilogue_seq): New declarations.
6407 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
6408 mixing prologue and epilogue insns.
6409 (init_deps): Initialize the new fields in struct deps_desc.
6410 * sched-int.h (struct deps_desc): New fields last_prologue,
6411 last_epilogue, and last_logue_was_epilogue.
6412 * shrink-wrap.c (emit_common_heads_for_components): Record all
6413 emitted prologue and epilogue insns.
6414 (emit_common_tails_for_components): Ditto.
6415 (insert_prologue_epilogue_for_components): Ditto.
6417 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6420 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
6421 * common.opt (fstore-merging): New Optimization option.
6422 * opts.c (default_options_table): Add entry for
6423 OPT_ftree_store_merging.
6424 * fold-const.h (can_native_encode_type_p): Declare prototype.
6425 * fold-const.c (can_native_encode_type_p): Define.
6426 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
6427 (PARAM_MAX_STORES_TO_MERGE): Likewise.
6428 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
6429 * passes.def: Insert pass_tree_store_merging.
6430 * tree-pass.h (make_pass_store_merging): Declare extern
6432 * gimple-ssa-store-merging.c: New file.
6433 * doc/invoke.texi (Optimization Options): Document
6435 (--param documentation): Document store-merging-allow-unaligned
6436 and max-stores-to-merge.
6438 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
6441 * gimplify.c (gimplify_init_constructor): Move emit of constructor
6442 assignment to earlier in the if/else logic.
6444 2016-10-28 Richard Biener <rguenther@suse.de>
6448 * fold-const.c (make_bit_field_ref): Only adjust alias set
6449 when the original alias set was zero.
6451 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6453 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
6454 (s390_adjust_loops): New function.
6455 (s390_reorg): Invoke s390_adjust_loops.
6456 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
6457 ("osc_break"): New insn definition.
6459 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6461 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
6462 * config.gcc: Support alternate archXX cpu levels with
6463 --with-arch= and --with-tune=.
6464 * config/s390/linux.h: Translate new archXX cpu levels to the
6465 original names when calling GAS.
6466 * config/s390/tpf.h: Likewise.
6467 * doc/invoke.texi: Document the alternate cpu level names.
6469 2016-10-28 Jakub Jelinek <jakub@redhat.com>
6471 PR rtl-optimization/77919
6472 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
6473 MEM if mode1 is not a complex mode.
6475 PR rtl-optimization/78132
6476 * ree.c (combine_reaching_defs): Give up if copy_needed and
6477 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
6479 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
6481 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
6483 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
6485 * config/rs6000/constraints.md (wH constraint): Add new
6486 constraints for allowing 32-bit integers (and eventually 8/16-bit
6487 integers) into the vector registers.
6488 (wI constraint): Likewise.
6489 (wJ constraint): Likewise.
6490 (wK constraint): Likewise.
6491 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
6492 -mvsx-small-integer as a default option for ISA 2.07
6494 (POWERPC_MASKS): Likewise.
6495 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
6496 switch to turn off small integer support in vector registers.
6497 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
6498 test for -mupper-regs-di, since it is already done with the
6499 reg_add[mode].scalar_in_vsx_p. Add support for the switch
6500 -mvsx-small-integer.
6501 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
6503 (rs6000_setup_reg_addr_masks): Likewise.
6504 (rs6000_init_hard_regno_mode_ok): Likewise.
6505 (rs6000_option_override_internal): Add consistency checks for
6506 -mvsx-small-integer.
6507 (rs6000_secondary_reload_simple_move): SImode is a simple move if
6508 -mvsx-small-integer.
6509 (rs6000_secondary_reload): Use std::swap.
6510 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
6511 VSX_REGS for small integers in vector registers, since there is no
6512 D-FORM address mode for such types.
6513 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
6514 (rs6000_opt_masks): Add -mvsx-small-integer.
6515 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
6517 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
6518 extracts can be done on ISA 2.07.
6519 (vsx_extract_<mode>): Add support for small integers in vsx
6521 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
6522 longer support V4SImode in this pattern.
6523 (vsx_extract_si): New insn to support extraction of SImode in ISA
6524 2.07 using either xxextractuw or vspltw.
6525 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
6526 longer support V4SImode in this pattern.
6527 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
6528 wJ, and wK constraints.
6529 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
6530 storing SDmode with VSX instructions.
6531 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
6532 GPR load and before the FPR and VSX loads. Remove ??, ! from the
6533 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
6534 small integers in vector registers.
6535 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
6536 load and before the FPR and VSX loads. Remove ??, ! from the
6537 constraints. Add VEXTSW2D support for small integers in vector
6539 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
6540 integers in vector registers.
6541 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
6542 move instead of using an UNSPEC.
6543 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
6544 integers in vector registers.
6545 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
6546 move instead of using an UNSPEC.
6547 (movsi_internal1): Add support for -mvsx-small-integer. Align
6548 columns so that it is more readable.
6549 (SImode splitter for ISA 3.0 constants): Add splitter for
6550 -128..127 constants that can easily be constructed on ISA 3.0.
6551 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
6554 2016-10-27 Jakub Jelinek <jakub@redhat.com>
6557 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
6560 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
6562 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
6563 PIC_OFFSET_TABLE_REGNUM twice.
6565 2016-10-27 Bin Cheng <bin.cheng@arm.com>
6567 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
6568 support for constant operand for OP.
6570 2016-10-27 Jakub Jelinek <jakub@redhat.com>
6572 * dwarf2out.c (gen_member_die): Only reparent_child instead of
6573 splice_child_die if child doesn't have DW_AT_specification attribute.
6575 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
6577 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
6578 (TARGET_HAVE_LDREXBH): Likewise.
6579 (TARGET_HAVE_LDACQ): Likewise.
6581 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
6583 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
6584 logic to to decide whether to copy over old value to register for new
6586 * config/arm/sync.md: Add comments explaning why mode and code
6587 attribute are not defined in iterators.md
6588 (thumb1_atomic_op_str): New code attribute.
6589 (thumb1_atomic_newop_str): Likewise.
6590 (thumb1_atomic_fetch_op_str): Likewise.
6591 (thumb1_atomic_fetch_newop_str): Likewise.
6592 (thumb1_atomic_fetch_oldop_str): Likewise.
6593 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
6594 mirror the more restrictive constraints of the Thumb-1 insns after
6595 split compared to Thumb-2 counterpart insns.
6596 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
6597 in sync with non atomic version.
6598 (atomic_nand<mode>): Likewise.
6599 (atomic_fetch_<sync_optab><mode>): Likewise.
6600 (atomic_fetch_nand<mode>): Likewise.
6601 (atomic_<sync_optab>_fetch<mode>): Likewise.
6602 (atomic_nand_fetch<mode>): Likewise.
6603 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
6604 in sync with atomic version.
6605 (thumb1_subsi3_insn): Likewise.
6606 (thumb1_andsi3_insn): Likewise.
6607 (thumb1_iorsi3_insn): Likewise.
6608 (thumb1_xorsi3_insn): Likewise.
6610 2016-10-27 Nick Clifton <nickc@redhat.com>
6612 * plugin.c (register_plugin_info): Produce an error message if the
6613 plugin is not found in the hash table.
6615 2016-10-27 Bin Cheng <bin.cheng@arm.com>
6617 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
6620 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
6623 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
6624 define builtin functions from the bdesc_spe_predicates or
6625 bdesc_spe_evsel arrays if the builtin mask is not compatible with
6626 the current compiler configuration.
6627 (paired_init_builtins): Modify loop to not define define builtin
6628 functions from the bdesc_paried_preds array if the builtin mask is
6629 not compatible with the current compiler configuration.
6630 (altivec_init_builtins): Modify loops to not define the
6631 __builtin_altivec_stxvl function nor the builtin functions from
6632 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
6633 builtin mask is not compatible with the current compiler
6636 2016-10-26 Jeff Law <law@redhat.com>
6638 * config/sh/sh.c (output_branch): Add missing fallthru comments.
6639 (gen_shl_and): Likewise.
6640 * config/sh/sh.md (movsicc): Add missing fallthru comments.
6642 * config/mips/mips.c (mips16_constant_cost): Add missing
6644 (mips16_build_call_stub): Increase buffer size. Adjust
6647 2016-10-26 David Malcolm <dmalcolm@redhat.com>
6649 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
6650 INSN_UIDs for all insns in compact mode.
6651 (rtx_writer::print_rtx): Likewise.
6652 * print-rtl.h (rtx_writer::flag_compact): Update comment.
6653 * rtl-tests.c (selftest::test_dumping_insns): Update expected
6654 output to include INSN_UID.
6655 (selftest::test_uncond_jump): Likewise.
6657 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
6659 * haifa-sched.c (call_used_regs_num): Rename to...
6660 (call_saved_regs_num): ...this.
6661 (fixed_regs_num): New variable.
6662 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
6664 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
6666 2016-10-26 David Malcolm <dmalcolm@redhat.com>
6668 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
6670 * print-rtl.c (outfile): Delete global.
6671 (sawclose): Likewise.
6673 (in_call_function_usage): Likewise.
6674 (flag_compact): Likewise.
6675 (flag_simple): Likewise.
6676 (rtx_writer::rtx_writer): New ctor.
6677 (print_rtx_operand_code_0): Convert to...
6678 (rtx_writer::print_rtx_operand_code_0): ...this.
6679 (print_rtx_operand_code_e): Convert to...
6680 (rtx_writer::print_rtx_operand_code_e): ...this.
6681 (print_rtx_operand_codes_E_and_V): Convert to...
6682 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
6683 (print_rtx_operand_code_i): Convert to...
6684 (rtx_writer::print_rtx_operand_code_i): ...this.
6685 (print_rtx_operand_code_r): Convert to...
6686 (rtx_writer::print_rtx_operand_code_r): ...this.
6687 (print_rtx_operand_code_u): Convert to...
6688 (rtx_writer::print_rtx_operand_code_u): ...this.
6689 (print_rtx_operand): Convert to...
6690 (rtx_writer::print_rtx_operand): ...this.
6691 (print_rtx): Convert to...
6692 (rtx_writer::print_rtx): ...this.
6693 (print_inline_rtx): Rewrite in terms of class rtx_writer.
6694 (debug_rtx): Likewise.
6695 (print_rtl): Convert to...
6696 (rtx_writer::print_rtl): ...this.
6697 (print_rtl): Reimplement in terms of class rtx_writer.
6698 (print_rtl_single): Rewrite in terms of class rtx_writer.
6699 (print_rtl_single_with_indent): Convert to..
6700 (rtx_writer::print_rtl_single_with_indent): ...this.
6701 (print_simple_rtl): Rewrite in terms of class rtx_writer.
6702 * print-rtl.h (flag_compact): Delete decl.
6703 (class rtx_writer): New class.
6704 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
6707 2016-10-26 Jeff Law <law@redhat.com>
6709 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
6712 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
6713 (check_if_valid_sleep_operand): Add missing fallthru comment.
6714 (arc_register_move_cost): Increase buffer size.
6715 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
6717 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
6719 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
6720 comment. Add gcc_unreachable for path that should never happen.
6722 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
6725 2016-10-26 Jakub Jelinek <jakub@redhat.com>
6726 Martin Liska <mliska@suse.cz>
6729 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
6730 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
6731 on outer context if any.
6733 2016-10-26 Jakub Jelinek <jakub@redhat.com>
6735 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
6736 by increment rather than double it.
6737 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
6738 emit a space before args[4].
6739 (END): Don't emit a space before with_arg.
6741 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
6743 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
6744 Baseline only alternatives to (i) hold store atomic success value in a
6745 return register rather than a scratch register, (ii) use a low register
6746 for it and to (iii) ensure the cbranchsi insn generated by the split
6747 respect the constraints of Thumb-1 cbranchsi4_insn and
6749 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
6750 constraints must match those in atomic_compare_and_swap.
6751 (cbranchsi4_scratch): Likewise.
6753 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
6755 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
6756 variable. Add the new parameter to the insn generator. Set that
6757 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
6758 return value from the negation of that parameter for Thumb-1, keeping
6759 the logic unchanged otherwise except for using bdst as the destination
6760 register of the compare_and_swap insn.
6761 (arm_split_compare_and_swap): Add explanation about how is the value
6762 returned to the function comment. Rename scratch variable to
6763 neg_bval. Adapt initialization of variables holding operands to the
6764 new operand numbers. Use return register to hold result of store
6765 exclusive for Thumb-1, scratch register otherwise. Construct the
6766 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
6767 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
6768 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
6769 for strongly ordered compare_and_swap.
6770 * config/arm/predicates.md (cc_register_operand): New predicate.
6771 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
6772 match_operand with the new predicate to accept either the CC flag or a
6773 destination register for the boolean return value, restricting it to
6774 CC flag only via constraint. Adapt operand numbers accordingly.
6776 2016-10-26 Jeff Law <law@redhat.com>
6778 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
6780 * config/frv/frv.c (comparison_string): Do not fall through after
6783 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
6785 (expand_one_builtin): Add missing break.
6787 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
6788 (m32c_legitimate_address_p): Likewise.
6790 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
6792 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
6794 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
6797 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
6800 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
6802 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
6804 (rl78_asm_ctor_dtor): Increase buffer size.
6806 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
6808 (xstormy16_asm_output_constructor): Likewise.
6810 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
6813 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
6814 comment to silence warning.
6816 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
6817 (spu_legitimate_address_p): Fix logic error and add missing fallthru
6820 2016-10-26 Michael Matz <matz@suse.de>
6822 PR tree-optimization/78060
6823 PR tree-optimization/78061
6824 PR tree-optimization/78088
6825 * tree-ssa-loop-split.c (easy_exit_values): New function.
6826 (tree_ssa_split_loops): Use it.
6827 (compute_new_first_bound): Change order of operations,
6828 fix invalid use of types.
6830 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
6832 gen-pass-instances.awk is sensitive to the order in which
6833 passes are added; passes that appear later have to be added first.
6837 * config/avr/avr-passes.def: Swap order of directives for
6838 gen-pass-instances.awk.
6840 2016-10-25 Jeff Law <law@redhat.com>
6842 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
6843 (vax_notice_update_cc): Likewise.
6845 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
6847 * config.gcc (sparc*-*-solaris2*): Adjust.
6848 (sparc64-*-linux*): Likewise.
6849 * config/sparc/default-64.h: Rename to...
6850 * config/sparc/default64.h: ...this.
6851 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
6853 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
6854 * config/sparc/sparc.h: Minor tweaks.
6855 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
6856 TARGET_ARCH32 throughout. Minor various tweaks throughout.
6858 2016-10-25 David Malcolm <dmalcolm@redhat.com>
6860 * input.c (fcache::file_patch): Add comment about lifetime.
6861 (selftest::cpp_reader_ptr): New class.
6862 (selftest::lexer_test): Convert m_parser from cpp_reader *
6863 to a cpp_reader_ptr, and move m_tempfile to after it.
6864 (selftest::lexer_test::lexer_test): Update for above reordering.
6865 (lexer_test::~lexer_test): Move cleanup of m_parser to
6866 cpp_reader_ptr's dtor.
6868 2016-10-25 David Malcolm <dmalcolm@redhat.com>
6870 * toplev.c (toplev::main): Remove call to
6871 location_adhoc_data_fini.
6873 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
6875 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
6876 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
6878 2016-10-25 David Malcolm <dmalcolm@redhat.com>
6880 * ggc-tests.c (forcibly_ggc_collect): Rename to...
6881 (selftest::forcibly_ggc_collect): ...this, and remove "static".
6882 (test_basic_struct): Update for above renaming.
6883 (test_length): Likewise.
6884 (test_union): Likewise.
6885 (test_finalization): Likewise.
6886 (test_deletable_global): Likewise.
6887 (test_inheritance): Likewise.
6888 (test_chain_next): Likewise.
6889 (test_user_struct): Likewise.
6890 (test_tree_marking): Likewise.
6891 * selftest-run-tests.c (selftest::run_tests): Call
6892 selftest::forcibly_ggc_collect at the end of the selftests.
6893 * selftest.h (selftest::forcibly_ggc_collect): New decl.
6895 2016-10-25 Jakub Jelinek <jakub@redhat.com>
6898 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
6899 * optabs.c (expand_vec_cond_expr): For comparison codes
6900 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
6901 (expand_vec_cmp_expr): For comparison codes
6902 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
6903 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
6904 Add enum tree_code argument.
6905 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
6907 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
6908 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
6910 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
6911 NE_EXPR, attempt to use vcondeq_optab as fallback.
6912 * tree-vect-generic.c (expand_vector_comparison,
6913 expand_vector_divmod, expand_vector_condition): Adjust
6914 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
6915 * tree-vect-stmts.c (vectorizable_condition,
6916 vectorizable_comparison): Likewise.
6917 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
6918 check_bool_pattern, search_type_for_mask_1): Likewise.
6919 * expr.c (do_store_flag): Likewise.
6920 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
6921 @code{vcondeq@var{m}@var{n}}): Document.
6922 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
6925 2016-10-25 Jeff Law <law@redhat.com>
6927 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
6929 (v850_output_aligned_bss): Add missing break.
6931 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
6933 2016-10-25 Martin Liska <mliska@suse.cz>
6936 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
6937 statements as they can also contain possibly a freeing call.
6939 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
6940 Martin Liska <mliska@suse.cz>
6943 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
6944 * ipa-icf.c (sem_function::get_hash): Add target optimization
6947 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
6950 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
6951 Remove partial overlap check for shift by 1.
6952 (ashldi3_neon): Likewise.
6954 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
6956 * config/arm/constraints.md (Q constraint): Document its use for
6958 (Pf constraint): New constraint for relaxed, consume or relaxed memory
6960 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
6961 alternatives to allow any register when memory model matches Pf and
6962 thus lda is used, but only low registers otherwise. Use unpredicated
6963 output template for Thumb-1 targets.
6964 (atomic_store<mode>): Likewise for stl.
6965 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
6966 whose output template does not have predication.
6967 (arm_load_acquire_exclusive<mode>): Likewise.
6968 (arm_load_exclusivesi): Likewise.
6969 (arm_load_acquire_exclusivesi): Likewise.
6970 (arm_store_release_exclusive<mode>): Likewise.
6971 (arm_store_exclusive<mode>): Use unpredicated output template for
6974 2016-10-25 Jakub Jelinek <jakub@redhat.com>
6976 * internal-fn.def (LAUNDER): New internal function.
6977 * internal-fn.c (expand_LAUNDER): New function.
6979 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
6980 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
6982 New avr target pass to work around performance loss by PR fix.
6986 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
6987 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
6988 * config/avr/predicates.md (extend_operator): New.
6989 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
6990 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
6991 (make_avr_pass_casesi): New prototypes.
6992 * config/avr/avr.c (print-rtl.h): Include it.
6993 (pass_data avr_pass_data_casesi): Data for new pass.
6994 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
6995 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
6996 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
6997 (avr_optimize_casesi): New functions.
6999 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
7000 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
7004 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
7006 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7008 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
7009 DW_AT_rvalue_reference attributes.
7011 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
7013 * doc/invoke.text (Wint-in-bool-context): Update documentation.
7014 * value-prof.c (stringop_block_profile): Fix a warning.
7016 2016-10-24 Martin Sebor <msebor@redhat.com>
7019 * builtins.c (string_length): New function.
7020 (c_strlen): Use string_length. Correctly handle wide strings.
7021 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
7023 (target_int_max): Call target_max_value.
7024 (format_result::knownrange): New data member.
7025 (fmtresult::fmtresult): Define default constructor.
7026 (format_integer): Use it and set format_result::knownrange.
7027 Handle global constants.
7028 (format_floating_max): Add third argument.
7029 (format_floating): Recompute maximum value for %a for each argument.
7030 (get_string_length): Use fmtresult default ctor.
7031 (format_string): Set format_result::knownrange.
7032 (format_directive): Check format_result::knownrange.
7033 (add_bytes): Same. Correct caret placement in diagnostics.
7034 (pass_sprintf_length::compute_format_length): Set
7035 format_result::knownrange.
7036 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
7038 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7040 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
7041 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
7043 2016-10-24 Ximin Luo <infinity0@pwned.gg>
7046 * dwarf2out.c (file_table_relative_p): Remove.
7047 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
7048 also for absolute paths.
7049 * doc/tm.texi: Update.
7050 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
7051 * target.def (force_at_comp_dir): Remove hook.
7052 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
7054 2016-10-24 Richard Biener <rguenther@suse.de>
7056 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
7057 backedges when identifying the single predecessor to take
7058 conditional info from. Use SCEV to get at ranges for loop IVs.
7059 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
7060 avoid false warning.
7062 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
7065 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
7066 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
7067 (avr_address_tiny_absdata_p): New static function.
7068 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
7069 it to determine validity of constant addresses.
7070 (avr_attribute_table) [absdata]: New variable attribute...
7071 (avr_handle_absdata_attribute): ...and handler.
7072 (avr_decl_absdata_p): New static function.
7073 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
7074 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
7075 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
7077 2016-10-24 Richard Biener <rguenther@suse.de>
7079 PR tree-optimization/78076
7080 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
7081 also on the loop tree root.
7083 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7085 * config/i386/i386.c (ix86_fold_builtin): Handle
7086 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
7087 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
7088 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
7089 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
7091 2016-10-24 Martin Liska <mliska@suse.cz>
7094 * opts.c (finish_options): Skip conditionally.
7096 2016-10-23 Martin Sebor <msebor@redhat.com>
7099 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
7100 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
7102 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7104 * config/sparc/sparc.md (cpu_feature): Minor tweak.
7105 (enabled): Likewise.
7106 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
7107 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
7108 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
7109 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
7110 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
7111 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
7113 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7115 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
7116 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
7118 2016-10-21 Andrew Pinski <apinski@cavium.com>
7120 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
7122 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
7123 implementer_id to unsigned char.
7124 Change part_no to unsigned int.
7125 (AARCH64_BIG_LITTLE): New define.
7126 (INVALID_IMP): New define.
7127 (INVALID_CORE): New define.
7128 (cpu_data): Change the last element's implementer_id and part_no to
7130 (valid_bL_string_p): Rewrite to ..
7131 (valid_bL_core_p): this for integers instead of strings.
7132 (parse_field): New function.
7133 (contains_string_p): Rewrite to ...
7134 (contains_core_p): this for integers and only for the part_no.
7135 (host_detect_local_cpu): Rewrite handling of implementation and
7136 par num to be integers; simplifying the code.
7138 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
7140 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
7141 value range for pointers in more cases.
7143 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7145 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
7146 Add extra argument to allow emitting the move immediate.
7147 Use add/sub with positive immediate.
7148 (aarch64_add_constant): Add inline function.
7149 (aarch64_add_sp): Likewise.
7150 (aarch64_sub_sp): Likewise.
7151 (aarch64_expand_prologue): Call aarch64_sub_sp.
7152 (aarch64_expand_epilogue): Call aarch64_add_sp.
7153 Decide when to leave out move.
7154 (aarch64_output_mi_thunk): Call aarch64_add_constant.
7156 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7158 * config/aarch64/aarch64.c (aarch64_layout_frame):
7159 Align FP callee-saves.
7161 2016-10-21 Jakub Jelinek <jakub@redhat.com>
7163 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
7164 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
7166 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
7167 _rdseed64_step): Likewise.
7168 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
7171 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
7172 and tree-ssanames.h.
7173 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
7174 with INTEGER_CST argument.
7175 (ix86_gimple_fold_builtin): New function.
7176 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7178 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
7179 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
7180 (ranges_table_allocated, ranges_table_in_use,
7181 ranges_by_label_allocated, ranges_by_label_in_use,
7182 RANGES_TABLE_INCREMENT): Removed.
7183 (add_ranges_num): Use vec_safe_push into ranges_table.
7184 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
7185 (output_ranges): Adjust for ranges_table and ranges_by_label
7186 conversion from arrays to vec.
7187 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
7188 conversion from arrays to vec.
7189 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
7190 ranges_table_in_use, ranges_by_label_allocated and
7191 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
7193 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
7194 if needed. Re-add origin_die variable and its initialization.
7196 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
7197 even for -fstack-reuse=none, or for volatile vars etc.
7199 2016-10-21 David Malcolm <dmalcolm@redhat.com>
7201 * print-rtl-function.c (flag_compact): Move extern decl to...
7202 * print-rtl.h (flag_compact): ...here.
7203 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
7204 (ASSERT_RTL_DUMP_EQ): New macro.
7205 (selftest::test_dumping_regs): New function.
7206 (selftest::test_dumping_insns): New function.
7207 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
7209 (selftest::rtl_tests_c_tests): Call the new test functions.
7211 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7213 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
7214 (outgoing_edges_match): Likewise.
7215 (try_crossjump_to_edge): Likewise.
7216 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7217 (rtl_tidy_fallthru_edge): Likewise.
7218 * rtl.h (tablejump_p): Adjust prototype.
7219 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
7221 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7223 * rtl.h (label_ref_label): New function.
7224 (set_label_ref_label): New function.
7225 (LABEL_REF_LABEL): Delete.
7226 * alias.c (rtx_equal_for_memref_p): Adjust.
7227 * cfgbuild.c (make_edges): Likewise.
7228 (purge_dead_tablejump_edges): Likewise.
7229 * cfgexpand.c (convert_debug_memory_address): Likewise.
7230 * cfgrtl.c (patch_jump_insn): Likewise.
7231 * combine.c (distribute_notes): Likewise.
7232 * cse.c (hash_rtx_cb): Likewise.
7233 (exp_equiv_p): Likewise.
7234 (fold_rtx): Likewise.
7235 (check_for_label_ref): Likewise.
7236 * cselib.c (rtx_equal_for_cselib_1): Likewise.
7237 (cselib_hash_rtx): Likewise.
7238 * emit-rtl.c (mark_label_nuses): Likewise.
7239 * explow.c (convert_memory_address_addr_space_1): Likewise.
7240 * final.c (output_asm_label): Likewise.
7241 (output_addr_const): Likewise.
7242 * gcse.c (add_label_notes): Likewise.
7243 * genconfig.c (walk_insn_part): Likewise.
7244 * genrecog.c (validate_pattern): Likewise.
7245 * ifcvt.c (cond_exec_get_condition): Likewise.
7246 (noce_emit_store_flag): Likewise.
7247 (noce_get_alt_condition): Likewise.
7248 (noce_get_condition): Likewise.
7249 * jump.c (maybe_propagate_label_ref): Likewise.
7250 (mark_jump_label_1): Likewise.
7251 (redirect_exp_1): Likewise.
7252 (rtx_renumbered_equal_p): Likewise.
7253 * lra-constraints.c (operands_match_p): Likewise.
7254 * print-rtl.c (print_value): Likewise.
7255 * reload.c (find_reloads): Likewise.
7256 * reload1.c (set_label_offsets): Likewise.
7257 * reorg.c (get_branch_condition): Likewise.
7258 * rtl-tests.c (test_uncond_jump): Likewise.
7259 * rtl.c (rtx_equal_p_cb): Likewise.
7260 (rtx_equal_p): Likewise.
7261 * rtlanal.c (reg_mentioned_p): Likewise.
7262 (rtx_referenced_p): Likewise.
7263 (get_condition): Likewise.
7264 * varasm.c (const_hash_1): Likewise.
7265 (compare_constant): Likewise.
7266 (const_rtx_hash_1): Likewise.
7267 (output_constant_pool_1): Likewise.
7269 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7272 * reload.c (find_valid_class_1): Allow regclass if atleast one
7273 regno in regclass is ok. Compute and use rclass size based on
7274 actually available regnos for mode in rclass.
7276 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
7278 * config/sparc/sparc-modes.def (CCV): New.
7280 * config/sparc/predicates.md (v_comparison_operator): New.
7281 (icc_comparison_operator): Add support for CCV/CCXV.
7282 (xcc_comparison_operator): Likewise.
7283 * config/sparc/sparc.c (output_cbranch): Likewise.
7284 (sparc_print_operand): Likewise.
7285 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
7286 (uaddvdi4): New expander.
7287 (addvdi4): Likewise.
7288 (uaddvdi4_sp32): New instruction.
7289 (addvdi4_sp32): Likewise.
7290 (uaddvsi4): New expander.
7291 (addvsi4): Likewise.
7292 (cmp_ccc_plus_sltu_set): New instruction.
7293 (cmp_ccv_plus): Likewise.
7294 (cmp_ccxv_plus): Likewise.
7295 (cmp_ccv_plus_set): Likewise.
7296 (cmp_ccxv_plus_set): Likewise.
7297 (cmp_ccv_plus_sltu_set): Likewise.
7298 (uaddvdi4): New expander.
7299 (subvdi4): Likewise.
7300 (usubdi4_sp32): New instruction.
7301 (subvdi4_sp32): Likewise.
7302 (usubvsi4): New expander.
7303 (subvsi4): Likewise.
7304 (cmpsi_minus_sltu_set): New instruction.
7305 (cmp_ccv_minus): Likewise.
7306 (cmp_ccxv_minus): Likewise.
7307 (cmp_ccv_minus_set): Likewise.
7308 (cmp_ccxv_minus_set): Likewise.
7309 (cmp_ccv_minus_sltu_set): Likewise.
7310 (unegvdi3): New expander.
7311 (negvdi3): Likewise.
7312 (unegdi3_sp32): New instruction.
7313 (negvdi3_sp32): Likewise.
7314 (unegvsi3): New expander.
7315 (negvsi3): Likewise.
7316 (cmp_ccc_neg_sltu_set): New instruction.
7317 (cmp_ccv_neg): Likewise.
7318 (cmp_ccxv_neg): Likewise.
7319 (cmp_ccv_neg_set): Likewise.
7320 (cmp_ccxv_neg_set): Likewise.
7321 (cmp_ccv_neg_sltu_set): Likewise.
7323 * tree-ssa-loop-split.c: Remove trailing spaces.
7324 * match.pd: Likewise.
7326 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7328 PR rtl-optimization/78038
7329 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
7330 be deduced to set REG through the RTL structure.
7331 (make_defs_and_copies_lists): Return false on a failing get_defs call.
7333 2016-10-21 Richard Biener <rguenther@suse.de>
7335 PR tree-optimization/78051
7336 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
7337 and mark replaced if folding did something.
7339 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
7341 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
7342 and "protected" in visibility types.
7343 (rs6000_xcoff_declare_function_name): Fix formatting.
7344 (rs6000_xcoff_declare_object_name): Fix formatting.
7346 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
7348 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
7349 and IX86_BUILTIN_HUGE_VALQ here ...
7350 (ix86_expand_builtin): ... not here.
7352 2016-10-20 Jakub Jelinek <jakub@redhat.com>
7354 * doc/gty.texi (for_user): Use @item next to @findex.
7356 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
7359 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
7360 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
7361 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
7362 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
7363 __builtin_ia32_lzcnt_u16.
7364 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
7365 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
7366 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
7367 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
7368 (bmi_tzcnt_<mode>): New expander.
7369 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
7370 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
7371 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
7372 (lzcnt_<mode>): New expander.
7373 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
7374 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
7375 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
7376 (UINT64_FTYPE_UINT64): New.
7377 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
7378 (__builtin_ia32_lzcnt_u16): New description.
7379 (__builtin_ia32_lzcnt_u32): Ditto.
7380 (__builtin_ia32_lzcnt_u64): Ditto.
7381 (__builtin_ctzs): Remove description.
7382 (__builtin_ia32_tzcnt_u16): New description.
7383 (__builtin_ia32_tzcnt_u32): Ditto.
7384 (__builtin_ia32_tzcnt_u64): Ditto.
7385 * config/i386/i386.c (ix86_expand_args_builtin): Handle
7386 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
7388 2016-10-20 Martin Liska <mliska@suse.cz>
7391 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
7392 comparison with STMT_UID_NOT_IN_RANGE.
7393 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
7396 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
7398 * compare-elim.c (conforming_compare): Accept UNSPECs.
7399 (find_comparison_dom_walker::before_dom_children): Deal with
7400 instructions both using and killing the flags register.
7401 (equivalent_reg_at_start): New function extracted from...
7402 (try_eliminate_compare): ...here. Use it and add support for
7403 registers and UNSPECs as second operand of the compare.
7404 * config/visium/visium-modes.def (CCV): New.
7405 * config/visium/predicates.md (visium_v_comparison_operator): New.
7406 (visium_branch_operator): Deal with CCV mode.
7407 * config/visium/visium.c (visium_select_cc_mode): Likewise.
7408 (output_cbranch): Likewise.
7409 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
7410 (uaddv<mode>4): New expander.
7411 (addv<mode>4): Likewise.
7412 (add<mode>3_insn_set_carry): New instruction.
7413 (add<mode>3_insn_set_overflow): Likewise.
7414 (addsi3_insn_set_overflow): Likewise.
7415 (usubv<mode>4): New expander.
7416 (subv<mode>4): Likewise.
7417 (sub<mode>3_insn_set_carry): New instruction.
7418 (sub<mode>3_insn_set_overflow): Likewise.
7419 (subsi3_insn_set_overflow): Likewise.
7420 (unegv<mode>3): New expander.
7421 (negv<mode>3): Likewise.
7422 (neg<mode>2_insn_set_overflow): New instruction.
7423 (addv_tst<mode>): Likewise.
7424 (subv_tst<mode>): Likewise.
7425 (negv_tst<mode>): Likewise.
7426 (cbranch<mode>4_addv_insn): New splitter and instruction.
7427 (cbranch<mode>4_subv_insn): Likewise.
7428 (cbranch<mode>4_negv_insn): Likewise.
7430 2016-10-20 Richard Biener <rguenther@suse.de>
7432 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
7433 Handle decls possibly not bound.
7434 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
7435 nothing_id for decls that might not be bound if we are interested
7437 (get_constraint_for_component_ref): Deal with that.
7439 2016-10-20 Michael Matz <matz@suse.de>
7442 * common.opt (-fsplit-loops): New flag.
7443 * passes.def (pass_loop_split): Add.
7444 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
7445 (enable_fdo_optimizations): Add loop splitting.
7446 * timevar.def (TV_LOOP_SPLIT): Add.
7447 * tree-pass.h (make_pass_loop_split): Declare.
7448 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
7449 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
7450 * tree-ssa-loop-split.c: New file.
7451 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
7452 * doc/invoke.texi (fsplit-loops): Document.
7453 * doc/passes.texi (Loop optimization): Add paragraph about loop
7456 2016-10-20 Richard Biener <rguenther@suse.de>
7458 * cgraphunit.c (analyze_functions): Set node->definition to
7459 false to signal symbol removal to debug_hooks->late_global_decl.
7460 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
7461 WPA signal symbol removal to the debuginfo machinery.
7462 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
7463 using early_finised to guard the we're called for symbol
7464 removal case look at the symtabs definition flag.
7465 (gen_variable_die): Remove redundant check.
7467 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7469 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
7471 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7473 PR tree-optimization/53979
7474 * match.pd ((a ^ b) | a -> a | b): New pattern.
7476 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
7478 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
7479 config/pa/pa64-hpux-lib.h.
7480 (PA_CRTBEGIN_HACK): Likewise.
7481 (DTOR_LIST_BEGIN): Likewise.
7483 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
7485 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
7486 register only if "in" and "out" are different registers.
7488 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
7490 * omp-low.c (pass_oacc_device_lower::gate): New method.
7491 (execute): Always call execute_oacc_device_lower.
7493 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7495 PR tree-optimization/77916
7496 PR tree-optimization/77937
7497 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
7499 (insert_initializers): Requirement of initializer for -1 should be
7500 based on pointer-typedness of the candidate basis.
7502 2016-10-19 Bin Cheng <bin.cheng@arm.com>
7504 PR tree-optimization/78005
7505 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
7506 upper (included) bound for niters of prolog loop.
7507 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
7508 Compute niters of scalar loop above which vectorized loop is
7509 preferred, as well as the upper (included) bound for the niters.
7510 (vect_do_peeling): Record niter bound for loops accordingly.
7512 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
7515 * tree-core.h (enum tree_index): Put the complex types after their
7517 * tree-streamer.c (verify_common_node_recorded): New function.
7518 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
7520 2016-10-19 Martin Liska <mliska@suse.cz>
7522 * cgraph.h (cgraph_edge::binds_to_current_def_p):
7523 Replace NULL with false as a return value.
7525 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
7527 PR tree-optimization/78024
7528 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
7529 don't clear BB_VISITED after processing.
7531 2016-10-19 Richard Biener <rguenther@suse.de>
7533 * domwalk.c (dom_walker::walk): Use RPO order.
7535 2016-10-19 Richard Biener <rguenther@suse.de>
7537 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
7539 (evrp_dom_walker::~evrp_dom_walker): Free it.
7540 (evrp_dom_walker::stmts_to_remove): Add.
7541 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
7542 whose output we fully propagate for removal. Propagate
7543 into BB destination PHI arguments.
7544 (execute_early_vrp): Remove queued stmts. Dump value ranges
7545 before stmt removal.
7547 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
7549 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
7550 * passes.def: Add two instances of pass_walloca.
7551 * tree-pass.h (make_pass_walloca): New.
7552 * gimple-ssa-warn-alloca.c: New file.
7553 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
7554 -Wvla-larger-than= options.
7556 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
7558 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
7559 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
7561 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
7563 * config/rs6000/altivec.h (vec_xl_len): New macro.
7564 (vec_xst_len): New macro.
7565 (vec_cmpnez): New macro.
7566 (vec_cntlz_lsbb): New macro.
7567 (vec_cnttz_lsbb): New macro.
7568 (vec_xlx): New macro.
7569 (vec_xrx): New macro.
7570 (vec_all_nez): New C++ predicate template.
7571 (vec_any_eqz): New C++ predicate template.
7572 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
7573 conditional compilation.
7574 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
7575 conditional compilation.
7576 (vec_all_nez): New macro.
7577 (vec_any_eqz): New macro.
7578 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
7580 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
7582 * config/rs6000/vector.md (VI): Moved this mode iterator
7583 definition from altivec.md to vector.md.
7584 (UNSPEC_NEZ_P): New value.
7585 (vector_ne_<mode>_p): New expansion for implementation of
7586 vec_all_ne and vec_any_eq built-in functions.
7587 (vector_nez_<mode>_p): New expansion for implementation of
7588 vec_all_nez and vec_any_eqz built-in functions.
7589 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
7590 and vec_any_eq built-in function.
7591 (cr6_test_for_zero): New commentary to explain this expansion.
7592 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
7593 (cr6_test_for_lt): New commentary to explain this expansion.
7594 (cr6_test_for_lt_reverse): New commentary to explain this
7596 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7597 overloaded function prototypes for vec_all_ne, vec_all_nez,
7598 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
7599 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
7601 (altivec_resolve_overloaded_builtin): Modify the handling of
7602 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
7603 the compiler is configured to support TARGET_P9_VECTOR.
7604 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
7605 to explain the special processing that is given to predicate
7606 built-ins introduced using this macro.
7607 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
7608 the special processing given to predicate built-ins introduced
7610 (BU_VSX_P): Likewise.
7611 (BU_P8V_AV_P): Likewise.
7612 (BU_P9V_AV_P): Likewise.
7613 (BU_P9V_AV_X): New macro.
7614 (BU_P9V_64BIT_AV_X): New macro.
7615 (BU_P9V_VSX_3): New macro.
7616 (BU_P9V_OVERLOAD_P): New macro.
7617 (LXVL): New BU_P9V_64BIT_VSX_2.
7618 (VEXTUBLX): New BU_P9V_AV_2.
7619 (VEXTUBRX): Likewise.
7620 (VEXTUHLX): Likewise.
7621 (VEXTUHRX): Likewise.
7622 (VEXTUWLX): Likewise.
7623 (VEXTUWRX): Likewise.
7624 (STXVL): New BU_P9V_64BIT_AV_X.
7625 (VCLZLSBB): New BU_P9V_AV_1.
7626 (VCTZLSBB): Likewise.
7627 (CMPNEB): New BU_P9V_AV_2.
7632 (VCMPNEB_P): New BU_P9V_AV_P.
7633 (VCMPNEH_P): Likewise.
7634 (VCMPNEW_P): Likewise.
7635 (VCMPNED_P): Likewise.
7636 (VCMPNEFP_P): Likewise.
7637 (VCMPNEDP_P): Likewise.
7638 (CMPNEZB): New BU_P9V_AV_2.
7639 (CMPNEZH): Likewise.
7640 (CMPNEZW): Likewise.
7641 (VCMPNEZB_P): New BU_P9V_AV_P.
7642 (VCMPNEZH_P): Likewise.
7643 (VCMPNEZW_P): Likewise.
7644 (LXVL): New BU_P9V_OVERLOAD_2.
7645 (STXVL): New BU_P9V_OVERLOAD_3.
7646 (VEXTULX): New BU_P9V_OVERLOAD_2.
7647 (VEXTURX): Likewise.
7649 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
7650 (VCMPNE_P): Likewise.
7651 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
7652 (VCTZLSBB): Likewise.
7653 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
7654 comment to explain mode used for scratch register.
7655 (altivec_expand_stxvl_builtin): New function.
7656 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
7657 (altivec_init_builtins): Add initialized variable
7658 void_ftype_v16qi_pvoid_long and use this type to define the
7659 built-in function __builtin_altivec_stxvl.
7660 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
7661 (UNSPEC_STXVL): New value.
7662 (UNSPEC_VCLZLSBB): New value.
7663 (UNSPEC_VCTZLSBB): New value.
7664 (UNSPEC_VEXTUBLX): New value.
7665 (UNSPEC_VEXTUHLX): New value.
7666 (UNSPEC_VEXTUWLX): New value.
7667 (UNSPEC_VEXTUBRX): New value.
7668 (UNSPEC_VEXTUHRX): New value.
7669 (UNSPEC_VEXTUWRX): New value.
7670 (UNSPEC_VCMPNEB): New value.
7671 (UNSPEC_VCMPNEZB): New value.
7672 (UNSPEC_VCMPNEH): New value.
7673 (UNSPEC_VCMPNEZH): New value.
7674 (UNSPEC_VCMPNEW): New value.
7675 (UNSPEC_VCMPNEZW): New value.
7676 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
7677 vector of integer modes.
7678 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
7679 vector of float or double modes.
7680 (*vector_nez_<mode>_p): New insn for vector test all not equal or
7682 (lxvl): New expand for load VSX vector with length.
7683 (*lxvl): New insn for load VSX vector with length.
7684 (stxvl): New expand for store VSX vector with length.
7685 (*stxvl): New insn for store VSX vector with length.
7686 (vcmpneb): New insn for vector of byte compare not equal.
7687 (vcmpnezb): New insn for vector of byte compare not equal or zero.
7688 (vcmpneh): New insn for vector of half word compare not equal.
7689 (vcmpnezh): New insn for vector of half word compare not equal or
7691 (vcmpnew): New insn for vector of word compare not equal.
7692 (vcmpne<VSs>): New insn for vector of float or double compare not
7694 (vcmpnezw): New insn for vector of word compare not equal or zero.
7695 (vclzlsbb): New insn for vector count leading zero
7696 least-significant bits byte.
7697 (vctzlsbb): New insn for vector count trailing zero least
7698 signficant bits byte.
7699 (vextublx): New insn for vector extract unsigned byte left
7701 (vextubrx): New insn for vector extract unsigned byte right
7703 (vextuhlx): New insn for vector extract unsigned half word left
7705 (vextuhrx): New insn for vector extract unsigned half word right
7707 (vextuwlx): New insn for vector extract unsigned word left
7709 (vextuwrx): New insn for vector extract unsigned word right
7711 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
7712 clarify intent of this constant.
7713 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
7714 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
7715 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
7716 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
7717 and vec_xrx functions.
7719 2016-10-18 Andrew Pinski <apinski@cavium.com>
7722 * predict.c (is_exit_with_zero_arg): New function.
7723 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
7726 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
7729 * config/i386/i386.c (legitimize_tls_address)
7730 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
7731 convert dest to Pmode if different than Pmode.
7733 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7735 PR tree-optimization/77916
7736 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
7737 stopgap fix, as pointers with -1 increment are still broken.
7739 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
7741 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
7742 mapping class decoration from here...
7743 (rs6000_xcoff_encode_section): ...to here.
7745 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
7746 if shrink-wrapping and optimizing for speed.
7748 2016-10-18 Richard Biener <rguenther@suse.de>
7750 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
7751 not visited but non-executable predecessors. Return taken edge.
7752 Simplify conditions and refactor propagation vs. folding step.
7754 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
7756 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
7757 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
7758 (rs6000_get_separate_components): Assert we do not have those
7759 strategies selected.
7761 2016-10-18 Richard Biener <rguenther@suse.de>
7763 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
7764 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
7766 (substitute_and_fold_dom_walker): Adjust constructor.
7767 (substitute_and_fold_dom_walker::before_dom_children): Remove
7768 do_dce flag and handling (always true).
7769 (substitute_and_fold): Likewise.
7770 * tree-vrp.c (vrp_finalize): Adjust.
7771 (execute_early_vrp): Remove final BB_VISITED clearing.
7772 * tree-ssa-ccp.c (ccp_finalize): Adjust.
7773 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7774 * ira.c (ira): Call clear_bb_flags.
7776 2016-10-18 Richard Biener <rguenther@suse.de>
7778 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
7779 get at the operand to look at with TREE_OPERAND for generic
7782 2016-10-18 David Malcolm <dmalcolm@redhat.com>
7784 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
7786 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
7787 (write_test_expr): Use rtx_reader_ptr for calls to
7789 (write_attr_value): Likewise.
7790 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
7791 call to print_md_ptr_loc.
7792 (write_one_condition): Likewise for calls to print_c_condition.
7793 * genconstants.c: Include "statistics.h" and "vec.h".
7794 (main): Update for conversion to member functions.
7795 * genemit.c (emit_c_code): Use rtx_reader_ptr for
7796 call to print_md_ptr_loc.
7797 * genenums.c: Include "statistics.h" and "vec.h".
7798 (main): Update for conversion of traverse_enum_types to a method.
7799 * genmddeps.c: Include "statistics.h" and "vec.h".
7800 * genoutput.c (process_template): Use rtx_reader_ptr for call to
7802 * genpreds.c (write_predicate_subfunction): Likewise.
7803 (write_predicate_expr): Likewise for calls to print_c_condition.
7804 * genrecog.c (print_test): Likewise.
7805 * gensupport.c (process_rtx): Likewise for calls to
7806 copy_md_ptr_loc and join_c_conditions.
7807 (alter_test_for_insn): Likewise for call to join_c_conditions.
7808 (process_substs_on_one_elem): Likewise.
7809 (gen_mnemonic_setattr): Update for move of string_obstack to a
7810 field of rtx_reader.
7811 (mnemonic_htab_callback): Likewise. Fix formatting.
7812 (gen_mnemonic_attr): Likewise.
7813 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
7814 to print_c_condition.
7815 * read-md.c: Include "statistics.h" and "vec.h".
7816 (string_obstack): Convert this global to field "m_string_obstack"
7817 of class rtx_reader.
7818 (ptr_locs): Likewise, as "m_ptr_locs".
7819 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
7820 (joined_conditions): Likewise, as "m_joined_conditions".
7821 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
7822 (md_constants): Likewise, as "m_md_constants".
7823 (enum_types): Likewise, as "m_enum_types".
7824 (set_md_ptr_loc): Convert to...
7825 (rtx_reader::set_md_ptr_loc): ...member function.
7826 (get_md_ptr_loc): Convert to...
7827 (rtx_reader::get_md_ptr_loc): ...member function.
7828 (copy_md_ptr_loc): Convert to...
7829 (rtx_reader::copy_md_ptr_loc): ...member function.
7830 (fprint_md_ptr_loc): Convert to...
7831 (rtx_reader::fprint_md_ptr_loc): ...member function.
7832 (print_md_ptr_loc): Convert to...
7833 (rtx_reader::print_md_ptr_loc): ...member function.
7834 (join_c_conditions): Convert to...
7835 (rtx_reader::join_c_conditions): ...member function.
7836 (fprint_c_condition): Convert to...
7837 (rtx_reader::fprint_c_condition): ...member function.
7838 (print_c_condition): Convert to...
7839 (rtx_reader::print_c_condition): ...member function.
7840 (read_name): Convert to...
7841 (rtx_reader::read_name): ...member function.
7842 (read_escape): Convert to...
7843 (rtx_reader::read_escape): ...member function.
7844 (read_quoted_string): Convert to...
7845 (rtx_reader::read_quoted_string): ...member function.
7846 (read_braced_string): Convert to...
7847 (rtx_reader::read_braced_string): ...member function.
7848 (read_string): Convert to...
7849 (rtx_reader::read_string): ...member function.
7850 (read_skip_construct): Convert to...
7851 (rtx_reader::read_skip_construct): ...member function.
7852 (handle_constants): Convert to...
7853 (rtx_reader::handle_constants): ...member function.
7854 (traverse_md_constants): Convert to...
7855 (rtx_reader::traverse_md_constants): ...member function.
7856 (handle_enum): Convert to...
7857 (rtx_reader::handle_enum): ...member function.
7858 (lookup_enum_type): Convert to...
7859 (rtx_reader::lookup_enum_type): ...member function.
7860 (traverse_enum_types): Convert to...
7861 (rtx_reader::traverse_enum_types): ...member function.
7862 (rtx_reader::rtx_reader): Move initializations
7863 of various former global data from rtx_reader::read_md_files to
7864 here, as fields, along with the call to unlock_std_streams.
7865 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
7867 (rtx_reader::read_md_files): Move initializations of various
7868 global data from here to the ctor.
7869 * read-md.h (read_name): Convert to...
7870 (rtx_reader::read_name): ...member function.
7871 (rtx_reader::read_escape): New method decl.
7872 (read_quoted_string): Convert to...
7873 (rtx_reader::read_quoted_string): ...member function.
7874 (rtx_reader::read_braced_string): New method decl.
7875 (read_string): Convert to...
7876 (rtx_reader::read_string): ...member function.
7877 (rtx_reader::read_skip_construct): New method decl.
7878 (rtx_reader::set_md_ptr_loc): New method decl.
7879 (rtx_reader::get_md_ptr_loc): New method decl.
7880 (copy_md_ptr_loc): Convert to...
7881 (rtx_reader::copy_md_ptr_loc): ...member function.
7882 (fprint_md_ptr_loc): Convert to...
7883 (rtx_reader::fprint_md_ptr_loc): ...member function.
7884 (print_md_ptr_loc): Convert to...
7885 (rtx_reader::print_md_ptr_loc): ...member function.
7886 (rtx_reader::lookup_enum_type): New method decl.
7887 (rtx_reader::traverse_enum_types): New method decl.
7888 (rtx_reader::handle_constants): New method decl.
7889 (traverse_md_constants): Convert to...
7890 (rtx_reader::traverse_md_constants): ...member function.
7891 (rtx_reader::handle_enum): New method decl.
7892 (rtx_reader::join_c_conditions): New method decl.
7893 (fprint_c_condition): Convert to...
7894 (rtx_reader::fprint_c_condition): ...member function.
7895 (print_c_condition): Convert to...
7896 (rtx_reader::print_c_condition): ...member function.
7897 (rtx_reader::apply_iterator_to_string): New method decl.
7898 (rtx_reader::copy_rtx_for_iterators): New method decl.
7899 (rtx_reader::read_conditions): New method decl.
7900 (rtx_reader::record_potential_iterator_use): New method decl.
7901 (rtx_reader::read_mapping): New method decl.
7902 (rtx_reader::read_rtx): New method decl.
7903 (rtx_reader::read_rtx_code): New method decl.
7904 (rtx_reader::read_rtx_operand): New method decl.
7905 (rtx_reader::read_nested_rtx): New method decl.
7906 (rtx_reader::read_rtx_variadic): New method decl.
7907 (rtx_reader::get_string_obstack): New method.
7908 (rtx_reader::get_md_constants): New method.
7909 (string_obstack): Convert global variable decl to...
7910 (rtx_reader::m_string_obstack): ...this new field.
7911 (rtx_reader::m_ptr_locs): New field.
7912 (rtx_reader::m_ptr_loc_obstack): New field.
7913 (rtx_reader::m_joined_conditions): New field.
7914 (rtx_reader::m_joined_conditions_obstack): New field.
7915 (rtx_reader::m_md_constants): New field.
7916 (rtx_reader::m_enum_types): New field.
7917 * read-rtl.c (apply_iterator_to_string): Convert to...
7918 (rtx_reader::apply_iterator_to_string): ...member function.
7919 (copy_rtx_for_iterators): Convert to...
7920 (rtx_reader::copy_rtx_for_iterators): ...member function.
7921 (add_condition_to_string): Use rtx_reader_ptr for
7922 calls join_c_conditions.
7923 (apply_iterators): Use rtx_reader_ptr for calls to
7924 join_c_conditions and copy_rtx_for_iterators.
7925 (read_conditions): Convert to...
7926 (rtx_reader::read_conditions): ...member function.
7927 (record_potential_iterator_use): Convert to...
7928 (rtx_reader::record_potential_iterator_use): ...member function.
7929 (read_mapping): Convert to...
7930 (rtx_reader::read_mapping): ...member function.
7931 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
7932 (read_rtx): Convert to...
7933 (rtx_reader::read_rtx): ...member function.
7934 (read_rtx_code): Convert to...
7935 (rtx_reader::read_rtx_code): ...member function.
7936 (read_rtx_operand): Convert to...
7937 (rtx_reader::read_rtx_operand): ...member function. Update for move
7938 of string_obstack to a field.
7939 (read_nested_rtx): Convert to..
7940 (rtx_reader::read_nested_rtx): ...member function.
7941 (read_rtx_variadic): Convert to..
7942 (rtx_reader::read_rtx_variadic): ...member function.
7944 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
7946 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
7948 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
7950 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
7951 for pointer type too.
7952 (ipcp_update_vr): set_ptr_nonnull for pointer.
7954 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
7956 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
7957 pt_solution_singleton_p.
7958 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
7959 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
7960 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
7961 pointer nonnull computed by VRP.
7962 Also Conservatively set pt.null to 1.
7963 (pt_solution_reset): Conservatively set pt.null to 1.
7964 (pt_solution_singleton_or_null_p): Renamed from
7965 pt_solution_singleton_p.
7966 * tree-ssanames.h (set_ptr_nonnull): Declare.
7967 (get_ptr_nonnull): Likewise.
7968 * tree-ssanames.c (set_ptr_nonnull): New.
7969 (get_ptr_nonnull): Likewise.
7970 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
7971 (evrp_dom_walker::before_dom_children): Likewise.
7973 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
7975 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7976 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7977 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7978 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7979 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
7980 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7981 (rs6000_option_override_internal): Clear it if ABI_AIX.
7982 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7983 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
7985 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7987 * gimple-ssa-strength-reduction.c (record_increment): Remove
7990 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
7992 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
7993 that the result is non-zero if it is true.
7994 (maybe_expand_shift): New wrapper around expand_shift_1.
7995 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
7997 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7999 PR tree-optimization/77916
8000 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
8001 Don't allow a MINUS_EXPR for pointer arithmetic for either known
8003 (record_increment): Increments of -1 for unknown strides just use
8004 a multiply initializer like other negative values.
8005 (analyze_increments): Remove stopgap solution for -1 increment
8006 applied to pointer arithmetic.
8008 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
8010 * dominance.c (dom_info::dom_info): Add new constructor for region
8011 which is vector of basic blocks.
8012 (dom_init): New method to initialize members common for both
8014 (dom_info::dom_info): Invoke dom_init for partial initialization.
8015 (dom_info::get_idom): Add check to corner cases on basic blocks which
8017 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
8018 to detect unreachable bbs.
8019 (dom_info::calc_idoms): Likewise.
8020 (compute_dom_fast_query_in_region): New function.
8021 (calculate_dominance_info_for_region): Likewise.
8022 (free_dominance_info_for_region): Likewise.
8023 * dominance.h: Add prototypes for introduced region-based functions
8024 * tree-if-conv.c (build_region): New function.
8025 (if_convertible_loop_p_1): Invoke local version of post-dominators
8026 calculation before basic block predication with subsequent freeing
8027 post-dominator info.
8028 (tree_if_conversion): Remove free of post-dominator info
8029 (pass_if_conversion::execute): Delete detection of infinite loops
8030 and fake edges to exit block since post-dominator calculation is
8031 performed per if-converted loop only.
8033 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
8036 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8037 register explicitly.
8038 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
8039 optimizing for size.
8041 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8043 * config/aarch64/aarch64.c: Delete inclusion of
8044 cortex-a57-fma-steering.h.
8045 (aarch64_override_options): Delete call
8046 to aarch64_register_fma_steering.
8047 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
8048 * config/aarch64/cortex-a57-fma-steering.h: Delete.
8049 * config/aarch64/aarch64-passes.def: New file.
8050 * config/aarch64/cortex-a57-fma-steering.c
8051 (aarch64_register_fma_steering): Delete definition.
8052 (make_pass_fma_steering): Remove static qualifier.
8053 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
8054 (cortex-a57-fma-steering.o): Remove dependency on
8055 cortex-a57-fma-steering.h.
8057 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8059 * explow.c (validize_mem): Do not modify the argument in-place.
8061 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
8063 * tree-streamer.c (record_common_node): Explicitly list expected
8066 2016-10-17 Richard Biener <rguenther@suse.de>
8068 PR tree-optimization/77988
8069 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
8071 2016-10-17 Marek Polacek <polacek@redhat.com>
8073 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
8075 2016-10-17 Richard Biener <rguenther@suse.de>
8077 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
8080 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8082 PR tree-optimization/71636
8083 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
8085 2016-10-17 Richard Biener <rguenther@suse.de>
8087 * gimplify.c (gimplify_function_tree): Do not move the outer
8090 2016-10-17 Jakub Jelinek <jakub@redhat.com>
8092 * langhooks.h (struct lang_hooks_for_decls): Remove
8093 function_decl_explicit_p, function_decl_deleted_p and
8094 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
8095 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
8096 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8097 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
8098 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
8099 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
8100 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8101 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
8102 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
8103 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
8104 * langhooks.c (lhd_decl_dwarf_attribute): New function.
8105 * dwarf2out.c (gen_subprogram_die): Use
8106 lang_hooks.decls.decl_dwarf_attribute instead of
8107 lang_hooks.decls.function_decl_*.
8109 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8113 * common.opt (-ftrampolines): New option.
8114 * doc/invoke.texi (Code Gen Options): Document it.
8115 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
8116 * doc/tm.texi: Regenerate.
8117 * builtins.def: Add init_descriptor and adjust_descriptor.
8118 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
8119 on platforms with descriptors.
8120 (expand_builtin_init_descriptor): New function.
8121 (expand_builtin_adjust_descriptor): Likewise.
8122 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
8123 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
8124 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
8125 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
8126 Set STATIC_CHAIN_REG_P on the static chain register, if any.
8127 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
8128 (expand_call): Likewise. Move around call to prepare_call_address
8129 and pass all flags to it.
8130 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
8131 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
8132 (gimple_call_set_by_descriptor): New setter.
8133 (gimple_call_by_descriptor_p): New getter.
8134 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
8135 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
8136 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
8137 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8138 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
8139 * rtl.h (STATIC_CHAIN_REG_P): New macro.
8140 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
8141 * target.def (custom_function_descriptors): New POD hook.
8142 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
8143 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
8144 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
8145 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
8146 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
8147 (build_common_builtin_nodes): Initialize init_descriptor and
8149 * tree-nested.c: Include target.h.
8150 (struct nesting_info): Add 'any_descr_created' field.
8151 (get_descriptor_type): New function.
8152 (lookup_element_for_decl): New function extracted from...
8153 (create_field_for_decl): Likewise.
8154 (lookup_tramp_for_decl): ...here. Adjust.
8155 (lookup_descr_for_decl): New function.
8156 (convert_tramp_reference_op): Deal with descriptors.
8157 (build_init_call_stmt): New function extracted from...
8158 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
8159 * defaults.h (FUNCTION_ALIGNMENT): Define.
8160 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
8161 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8162 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8163 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
8164 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8166 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8168 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
8169 constants in CONST_VECTORs.
8171 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8173 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
8174 register as destination of bmask.
8175 (vector_init_bshuffle): Likewise.
8176 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
8177 (bmaskdi_vis): Enable only in 64-bit mode.
8179 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8181 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
8182 make LR a separately shrink-wrapped component unless savres_strategy
8183 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
8184 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
8185 wrapping when not both {SAVE,REST}_INLINE_GPRS.
8187 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8189 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
8190 and keep looping on failure.
8192 2016-10-14 David Malcolm <dmalcolm@redhat.com>
8194 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
8196 (print_rtx_function): Update example in comment for...
8197 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
8198 non-virtual pseudos with a '%' sigil followed by the regno, offset
8199 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
8200 pseudo is dumped as "%0".
8202 2016-10-14 Jakub Jelinek <jakub@redhat.com>
8205 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
8208 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
8210 * config/sparc/sparc-passes.def: New file.
8211 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
8212 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
8213 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
8215 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8217 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
8218 loop peel to loops with exit test at the beginning.
8220 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8222 PR rtl-optimization/68212
8223 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
8224 frequency when computing scale factor for peeled copies.
8225 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
8226 values for switch/peel blocks/edges.
8228 2016-10-14 Pedro Alves <palves@redhat.com>
8230 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
8232 2016-10-14 Catherine Moore <clm@codesourcery.com>
8234 * config/mips/mips.c (mips_prepare_pch_save): Initialize
8235 micromips_globals to zero.
8237 2016-10-14 Richard Biener <rguenther@suse.de>
8239 PR tree-optimization/77979
8240 * tree-vrp.c (compare_name_with_value): Handle released SSA names
8241 in the equivalency sets.
8242 (compare_names): Likewise.
8244 2016-10-14 Martin Liska <mliska@suse.cz>
8246 * builtins.h(target_char_cst_p): Declare the function.
8247 * builtins.c (fold_builtin_memchr): Remove.
8248 (target_char_cst_p): Move the function from gimple-fold.c.
8249 (fold_builtin_3): Do not call the function.
8250 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
8251 (gimple_fold_builtin): Call the function.
8252 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
8254 2016-10-14 Martin Liska <mliska@suse.cz>
8256 * builtins.c (fold_builtin_strcmp): Remove function.
8257 (fold_builtin_strncmp): Likewise.
8258 (fold_builtin_2): Remove call of the function.
8259 (fold_builtin_3): Likewise.
8260 * fold-const-call.c (fold_const_call): Add constant folding
8261 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
8262 * fold-const-call.h (build_cmp_result): Declare the function.
8263 * gimple-fold.c (gimple_load_first_char): New function.
8264 (gimple_fold_builtin_string_compare): Likewise.
8265 (gimple_fold_builtin): Call the function.
8267 2016-10-14 Nathan Sidwell <nathan@acm.org>
8269 * gcov-io.c (gcov_open): Deconstify 'mode'.
8271 2016-10-14 Martin Liska <mliska@suse.cz>
8273 * fold-const.c (c_getstr): Support of properly \0-terminated
8274 string constants. New argument is added.
8275 * fold-const.h: New argument is added.
8277 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8279 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
8281 (aarch64_print_hint_for_core): Likewise.
8282 (aarch64_print_hint_for_arch): Likewise.
8283 (aarch64_validate_march): Use it. Fix indentation in type signature.
8284 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
8285 (aarch64_validate_mtune): Likewise.
8286 (aarch64_handle_attr_arch): Likewise.
8287 (aarch64_handle_attr_cpu): Likewise.
8288 (aarch64_handle_attr_tune): Likewise.
8290 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8292 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
8295 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
8297 * config/m68k/m68k.c (m68k_option_override): Check
8298 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
8299 instead of stack_limit_rtx.
8301 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8303 * dwarf2out.c (gen_member_die): Handle inline static data member
8306 2016-10-13 Nathan Sidwell <nathan@acm.org>
8308 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
8309 gcov_var.mode. Remove unnecessary fstat.
8311 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
8314 * function.c (thread_prologue_and_epilogue_insns): Call all
8315 make_*logue_seq in the same order as traditional. Call them
8316 all a second time if shrink_wrapped_separate.
8318 2016-10-13 Marek Polacek <polacek@redhat.com>
8320 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8321 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
8324 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8326 PR tree-optimization/77937
8327 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
8328 to infinite when we have a pointer with an increment of -1.
8330 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8332 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
8334 * memmodel.h: This file.
8335 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
8336 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
8337 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
8338 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
8339 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
8340 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
8341 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
8342 compare-elim.c, config/aarch64/aarch64-builtins.c,
8343 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
8344 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
8345 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
8346 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
8347 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
8348 config/darwin.c, config/epiphany/epiphany.c,
8349 config/epiphany/mode-switch-use.c,
8350 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
8351 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
8352 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
8353 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8354 config/m68k/m68k.c, config/mcore/mcore.c,
8355 config/microblaze/microblaze.c, config/mmix/mmix.c,
8356 config/mn10300/mn10300.c, config/moxie/moxie.c,
8357 config/msp430/msp430.c, config/nds32/nds32-cost.c,
8358 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
8359 config/nds32/nds32-memory-manipulation.c,
8360 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
8361 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
8362 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
8363 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
8364 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
8365 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
8366 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8367 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8368 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
8369 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
8370 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
8371 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
8372 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
8373 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
8374 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
8375 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
8376 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
8377 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
8378 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
8379 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
8380 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
8381 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
8382 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
8383 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
8384 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
8385 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
8386 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
8387 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
8388 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
8389 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
8390 var-tracking.c, varasm.c: Include memmodel.h.
8391 * genattrtab.c (write_header): Include memmodel.h in generated file.
8392 * genautomata.c (main): Likewise.
8393 * gengtype.c (open_base_files): Likewise.
8394 * genopinit.c (main): Likewise.
8395 * genconditions.c (write_header): Include memmodel.h earlier in
8397 * genemit.c (main): Likewise.
8398 * genoutput.c (output_prologue): Likewise.
8399 * genpeep.c (main): Likewise.
8400 * genpreds.c (write_insn_preds_c): Likewise.
8401 * genrecog.c (write_header): Likewise.
8402 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
8404 2016-10-13 David Malcolm <dmalcolm@redhat.com>
8406 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
8407 for new "compact" param of print_rtx_function. Check for "cinsn"
8409 * print-rtl-function.c (flag_compact): New decl.
8410 (print_rtx_function): Add param "compact" and use it to set
8411 flag_compact, adding a description of the effect to the leading
8412 comment, and updating the example output.
8413 * print-rtl.c (flag_compact): New variable.
8414 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
8416 (print_rtx_operand_code_i): When printing source locations, wrap
8417 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
8418 (print_rtx_operand_code_r): Don't print regnos for hard regs and
8419 virtuals in compact mode.
8420 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
8421 apart from in LABEL_REFs.
8422 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
8423 Don't print basic block ids in compact mode.
8424 (print_rtx): In compact mode, prefix the code of insns with "c",
8425 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
8426 * print-rtl.h (print_rtx_function): Add "compact" param.
8428 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
8430 * arm.h (TARGET_VFP): Delete.
8431 (TARGET_VFPD32): Remove references to TARGET_VFP.
8432 (TARGET_VFP3, TARGET_VFP5): Likewise.
8433 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
8434 (TARGET_NEON_FP16): Likewise.
8435 (TARGET_FMA): Likewise.
8436 (TARGET_CRYPTO): Likewise.
8437 (TARGET_NEON): Likewise.
8438 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8439 (FUNCTION_ARG_REGNO_P): Likewise.
8440 * arm.c (arm_option_check_internal): Likewise.
8441 (arm_option_override): Likewise.
8442 (use_return_insn): Likewise.
8443 (arm_function_value_regno_p): Likewise.
8444 (arm_apply_result_size): Likewise.
8445 (use_vfp_abi): Likewise.
8446 (arm_legitimate_address_outer_p): Likewise.
8447 (thumb2_legitimate_address_p): Likewise.
8448 (arm_legitimate_index_p): Likewise.
8449 (thumb2_legitimate_index_p): Likewise.
8450 (arm_legitimate_address): Likewise.
8451 (arm_get_vfp_saved_size): Likewise.
8452 (arm_emit_vfp_multi_reg_pop): Likewise.
8453 (arm_get_frame_offsets): Likewise.
8454 (arm_save_coproc_regs): Likewise.
8455 (arm_hard_regno_mode_ok): Likewise.
8456 (arm_expand_epilogue_apcs_frame): Likewise.
8457 (arm_expand_epilogue): Likewise.
8458 (arm_file_start): Likewise.
8459 (arm_conditional_register_usage): Likewise.
8460 (arm_validize_comparison): Use vfp_compare_operand directly.
8461 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
8462 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
8464 (arm_atomic_assign_expand_fenv): Likewise.
8465 * arm.md (divsf3): Likewise.
8466 (arm_negsi2): Likewise.
8468 (arm_movdi): Likewise.
8469 (arm_movt): Likewise.
8470 (cbranchsf4): Change predicate to vfp_compare_operand.
8471 (cbranchdf4): Change predicate to vfp_compare_operand.
8472 (cstorehf4): Change predicate to vfp_compare_operand.
8473 (cstoresf4): Change predicate to vfp_compare_operand.
8474 (cstoredf4): Change predicate to vfp_compare_operand.
8475 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
8476 (movhi_insn_arch4, movhi_bytes): Likewise.
8477 * constraints.md (Dt): Likewise.
8479 * iterators.md (SDF): Likewise.
8480 * predicates.md (arm_float_compare_operand): Delete.
8481 (const_double_vcvt_power_of_two_reciprocal): Remove references to
8483 (const_double_vcvt_power_of_two): Likewise.
8484 * thumb2.md thumb2_movsi_insn): Likewise.
8485 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
8486 (movhf_vfp): Likewise.
8487 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
8488 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
8489 (movsf_vfp, thumb2_movsf_vfp): Likewise.
8490 (movdf_vfp, thumb2_movdf_vfp): Likewise.
8491 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
8492 (subsf3_vfp, divsf3_vfp): Likewise.
8493 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
8494 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
8495 (mulsf3negsfsubsf_vfp): Likewise.
8496 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
8497 (floatunssisf2, sqrtsf2_vfp): Likewise.
8498 (movcc_vfp): Likewise.
8499 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
8500 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
8501 (push_multi_vfp): Likewise.
8502 (set_fpscr, get_fpscr): Likewise.
8503 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
8505 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
8507 * arm.h (TARGET_VFP): Unconditionally define to 1.
8508 (arm_fpu_desc): Remove 'model' field.
8509 (TARGET_FPU_MODEL): Delete.
8510 * arm.c (all_fpus): Don't initialize the model field.
8511 (arm_can_inline_p): Don't check the FPU model.
8512 * arm-fpus.def: Remove redundant model field from all FPU
8515 2016-10-13 Richard Biener <rguenther@suse.de>
8518 * genmatch.c (struct capture): Add value_match member.
8519 (commutate): Preserve value_match.
8520 (lower_opt_convert): Likewise.
8521 (lower_cond): Likewise.
8522 (replace_id): Likewise.
8523 (struct dt_operand): Add value_match member.
8524 (decision_tree::cmp_node): Compare it.
8525 (decision_tree::insert_operand): Honor it when finding and
8526 when appending a DT_MATCH.
8527 (dt_operand::gen_match_op): Generate a type check after
8528 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
8529 (parser::get_internal_capture_id): New helper.
8530 (parser::finish_match_operand): New function lowering @@<id>.
8531 (parser::parse_capture): Parse @@<id> as value-match.
8532 (parser::parse_expr): Use get_internal_capture_id.
8533 (parser::parse_simplify): Call finish_match_operand.
8534 (walk_captures): New helper.
8535 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
8537 ((X /[ex] A) * A -> X): Likewise.
8538 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
8539 convert[12] and value-matching.
8540 ((A | B) & (A | C) -> A | (B & C)): Likewise.
8541 ((X | Y) | Y -> X | Y): Likewise.
8542 ((X ^ Y) ^ Y -> X): Likewise.
8543 (A - (A & B) -> ~B & A): Likewise.
8544 ((T)(P + A) - (T)P -> (T) A): Likewise.
8545 ((T)P - (T)(P + A) -> -(T) A): Likewise.
8546 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
8547 * doc/match-and-simplify.texi: Amend capture section.
8549 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
8551 * config/arc/arc.md (umul_600): Remove predicated variant.
8552 (umul64_600): Likewise.
8554 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
8556 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
8558 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8560 * tree-vect-loop.c (loop_niters_no_overflow): New func.
8561 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
8562 no-overflow information to vect_do_peeling_for_loop_bound and
8563 vect_gen_vector_loop_niters.
8565 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8567 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
8570 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8572 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
8573 adjust_vec automatically.
8574 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
8575 param exit_bb to guard_to.
8576 (slpeel_checking_verify_cfg_after_peeling):
8577 (set_prologue_iterations):
8578 (create_lcssa_for_virtual_phi): New func which is factored out from
8579 slpeel_tree_peel_loop_to_edge.
8580 (slpeel_tree_peel_loop_to_edge):
8581 (iv_phi_p): New func.
8582 (vect_can_advance_ivs_p): Call iv_phi_p.
8583 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
8584 new gimple stmts in basic block.
8585 (vect_gen_niters_for_prolog_loop): Rename to...
8586 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
8587 adjust implementation.
8588 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
8589 sizetype if necessary.
8590 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
8591 it to external function.
8592 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
8593 (vect_gen_vector_loop_niters_mult_vf): New.
8594 (slpeel_update_phi_nodes_for_loops): New.
8595 (slpeel_update_phi_nodes_for_guard1): Reimplement.
8596 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
8597 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
8598 * tree-vect-loop.c (vect_build_loop_niters): Move to file
8599 tree-vect-loop-manip.c
8600 (vect_generate_tmps_on_preheader): Delete.
8601 (vect_transform_loop): Rename vectorization_factor to vf. Call
8602 vect_do_peeling instead of vect_do_peeling-* functions.
8603 * tree-vectorizer.h (vect_do_peeling): New decl.
8604 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
8605 (vect_do_peeling_for_loop_bound): Delete.
8606 (vect_do_peeling_for_alignment): Delete.
8608 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8610 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
8611 duplicated loop after its preheader and after the original loop.
8613 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8615 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
8616 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
8618 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8620 * tree-vect-loop.c (vectorizable_live_operation): Support handling
8621 for live variable outside loop but not in lcssa form.
8623 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8625 * cfg.c (reset_original_copy_tables): New func.
8626 * cfg.h (reset_original_copy_tables): New decl.
8628 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8631 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
8633 * varasm.c (default_binds_local_p_3): Formatting fix.
8635 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8637 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
8639 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
8640 Remove useless code.
8642 2016-10-13 Martin Liska <mliska@suse.cz>
8644 PR tree-optimization/77943
8645 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
8646 a different EH landing pads.
8648 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8651 * hooks.h (hook_tree_void_null): Declare.
8652 * hooks.c (hook_tree_void_null): New function.
8653 * langhooks.c (lhd_return_null_tree_v): Remove.
8654 * langhooks-def.h (lhd_return_null_tree_v): Remove.
8655 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
8656 set y to const0_rtx.
8657 * function.c (stack_protect_epilogue): Likewise.
8658 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
8659 if TARGET_THREAD_SSP_OFFSET is defined.
8660 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8661 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8662 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8663 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8664 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8665 (ix86_stack_protect_guard): New function.
8667 2016-10-13 Richard Biener <rguenther@suse.de>
8669 * dwarf2out.c (tree_add_const_value_attribute): Do not try
8670 rtl_for_decl_init during early phase.
8671 (gen_variable_die): Do not create locations during early phase.
8672 (gen_label_die): Likewise.
8673 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
8676 2016-10-12 Richard Biener <rguenther@suse.de>
8678 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
8679 try_add_new_range and made to eturn new range.
8680 (evrp_dom_walker::before_dom_children): Push op1 value range before
8681 pushing op0 value range.
8683 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8685 PR tree-optimization/77937
8686 * gimple-ssa-strength-reduction.c (analyze_increments): Use
8687 POINTER_TYPE_P on the candidate type to determine whether
8688 candidates in this chain require pointer arithmetic.
8690 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
8692 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
8693 correction if the type is smaller than a word.
8694 (visium_select_cc_mode): Add ... fall through ... comment.
8696 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8698 * config/rs6000/rs6000.c (machine_function): Add new fields
8699 gpr_is_wrapped_separately and lr_is_wrapped_separately.
8700 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
8701 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
8702 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
8703 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
8704 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
8705 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
8706 (rs6000_get_separate_components): New function.
8707 (rs6000_components_for_bb): New function.
8708 (rs6000_disqualify_components): New function.
8709 (rs6000_emit_prologue_components): New function.
8710 (rs6000_emit_epilogue_components): New function.
8711 (rs6000_set_handled_components): New function.
8712 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
8713 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
8714 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
8715 (rs6000_emit_epilogue): Don't emit GPR restores if
8716 gpr_is_wrapped_separately for that register. Don't make a
8717 REG_CFA_RESTORE note for registers we did not restore, either.
8719 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8721 * function.c (thread_prologue_and_epilogue_insns): Call
8722 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
8723 if it has possibly changed. Compute the split_prologue_seq and
8724 epilogue_seq later, too.
8725 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
8726 (dump_components): New function.
8727 (struct sw): New struct.
8729 (init_separate_shrink_wrap): New function.
8730 (fini_separate_shrink_wrap): New function.
8731 (place_prologue_for_one_component): New function.
8732 (spread_components): New function.
8733 (disqualify_problematic_components): New function.
8734 (emit_common_heads_for_components): New function.
8735 (emit_common_tails_for_components): New function.
8736 (insert_prologue_epilogue_for_components): New function.
8737 (try_shrink_wrapping_separate): New function.
8738 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
8740 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8742 * regrename.c (build_def_use): Invalidate chains that have a
8743 REG_CFA_RESTORE on some instruction.
8745 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8747 * dce.c (delete_unmarked_insns): Don't delete instructions with
8748 a REG_CFA_RESTORE note.
8750 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8752 * common.opt (-fshrink-wrap-separate): New flag.
8753 * doc/invoke.texi: Document it.
8754 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
8755 * doc/tm.texi: Regenerate.
8756 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
8757 * target.def (shrink_wrap): New hook vector.
8758 (get_separate_components, components_for_bb, disqualify_components,
8759 emit_prologue_components, emit_epilogue_components,
8760 set_handled_components): New hooks.
8762 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8764 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
8765 vector return by reference only if -Wpsabi.
8766 (rs6000_pass_by_reference): Similarly, for argument passing.
8768 2016-10-12 David Malcolm <dmalcolm@redhat.com>
8770 * function-tests.c: Include "print-rtl.h".
8771 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
8772 function, and verify what is dumped.
8773 * print-rtl-function.c (print_edge): New function.
8774 (begin_any_block): New function.
8775 (end_any_block): New function.
8776 (can_have_basic_block_p): New function.
8777 (print_rtx_function): Track the basic blocks of insns in the
8778 chain, wrapping those that are within blocks within "(block)"
8779 directives. Remove the "(cfg)" directive.
8781 2016-10-12 David Malcolm <dmalcolm@redhat.com>
8783 * selftest.c (selftest::read_file): New function.
8784 (selftest::test_read_file): New function.
8785 (selftest::selftest_c_tests): Call test_read_file.
8786 * selftest.h (selftest::read_file): New decl.
8788 2016-10-12 Richard Biener <rguenther@suse.de>
8791 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
8794 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
8796 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
8798 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
8799 dwarf2out_assembly_start.
8801 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
8803 * Makefile.in (SELFTEST_FLAGS): New variable.
8804 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
8806 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
8809 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
8811 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
8812 dumped in RTL dumps.
8814 2016-10-12 Martin Liska <mliska@suse.cz>
8816 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
8817 (gimple_fold_builtin_memory_op): Use the function.
8818 (gimple_fold_builtin_strchr): Likewise.
8819 (gimple_fold_builtin_strcat): Likewise.
8820 (gimple_build): Likewise.
8822 2016-10-12 Nathan Sidwell <nathan@acm.org>
8824 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
8826 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
8828 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
8829 equivalent 32-bit constant (modulo 2**32) when that yields
8830 smaller instructions.
8831 (size_of_int_loc_descriptor): Update accordingly.
8833 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
8835 * dwarf2out.c (dwarf2out_early_global_decl): For nested
8836 functions, call dwarf2out_decl on the parent function first.
8838 2016-10-12 Richard Biener <rguenther@suse.de>
8840 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
8843 2016-10-12 Richard Biener <rguenther@suse.de>
8845 * tree-ssa-propagate.c
8846 (substitute_and_fold_dom_walker::before_dom_children): Do not
8847 ignore ASSERT_EXPRs but only preserve them.
8848 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
8849 that have been propagated into.
8850 (vrp_finalize): Enable DCE for substitute_and_fold.
8852 2016-10-12 Richard Biener <rguenther@suse.de>
8854 PR tree-optimization/77920
8855 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
8856 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
8857 (simplify_abs_using_ranges): Likewise.
8858 (simplify_conversion_using_ranges): Likewise.
8859 (simplify_stmt_using_ranges): Adjust.
8861 2016-10-12 Jakub Jelinek <jakub@redhat.com>
8863 PR tree-optimization/77929
8864 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
8865 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
8867 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8870 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
8871 needs a base register for arg 1.
8873 2016-10-12 Jakub Jelinek <jakub@redhat.com>
8875 * common.opt (Wimplicit-fallthrough) Turn into alias to
8876 -Wimplicit-fallthrough=3. Remove EnabledBy.
8877 (Wimplicit-fallthrough=): New option.
8878 * gimplify.c (warn_implicit_fallthrough_r): Use
8879 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
8880 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
8881 to -Wimplicit-fallthrough=3.
8882 (-Wimplicit-fallthrough=): Document.
8884 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
8886 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
8887 and GEU in DImode if TARGET_SUBXC.
8888 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
8889 (seqdi<W:mode>_zero_subxc): Delete.
8890 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
8891 (neg_seqdi<W:mode>_zero_vis3): Delete.
8892 (plus_seqdi<W:mode>_zero): Likewise.
8893 (minus_seqdi<W:mode>_zero): Likewise.
8894 (plus_plus_sltu<W:mode>): Accept only register.
8895 (addx<W:mode>): Likewise.
8896 (plus_sltu<W:mode>_vis3): Likewise.
8897 (plus_plus_sltu<W:mode>_vis3): Likewise.
8898 (neg_sgeu<W:mode>_vis3): Delete.
8899 (minus_sgeu<W:mode>_vis3): Likewise.
8900 (addxc<W:mode>): Accept only registers.
8901 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
8902 (minus_neg_sltu<W:mode>_subxc): Accept only register.
8903 (neg_plus_sltu<W:mode>_subxc): Likewise.
8904 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
8905 (minus_minus_sltu<W:mode>_subxc): Accept only register.
8906 (sgeu<W:mode>_insn_subxc): Delete.
8907 (plus_sgeu<W:mode>_subxc): Likewise.
8908 (subxc<W:mode>): Accept only register.
8909 (scc splitter): Split always GEU again.
8911 2016-10-11 Jeff Law <law@redhat.com>
8913 PR tree-optimization/77424
8914 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
8915 dead conditionals. Assert that all e->aux fields are NULL.
8917 2016-10-11 David Malcolm <dmalcolm@redhat.com>
8919 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
8920 operand-printing "switch" statement into...
8921 (print_rtx_operand_code_0): ...this new function, ...
8922 (print_rtx_operand_code_e): ...this new function, ...
8923 (print_rtx_operand_codes_E_and_V): ...this new function, ...
8924 (print_rtx_operand_code_i): ...this new function, ...
8925 (print_rtx_operand_code_r): ...this new function, ...
8926 (print_rtx_operand_code_u): ...this new function, ...
8927 (print_rtx_operand): ...and this new function.
8929 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
8931 * config/alpha/alpha-passes.def: New file.
8932 * config/alpha/t-alpha: New file.
8933 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
8934 (make_pass_handle_trap_shadows): New prototype.
8935 (make_pass_align_insns): Ditto.
8936 * config/alpha/alpha.c (alpha_option_override): Don't register
8938 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
8940 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8943 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
8944 distinct __ibm128 IBM extended double type if long doubles are
8945 128-bits and the default format for long double is IEEE 128-bit.
8947 2016-10-11 Richard Biener <rguenther@suse.de>
8949 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
8950 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
8951 (verify_die): New function.
8952 (dwarf2out_finish): Call it.
8953 (output_line_info): Handle case of -gsplit-dwarf without
8954 DWARF2_ASM_LINE_DEBUG_INFO.
8956 2016-10-11 Richard Biener <rguenther@suse.de>
8959 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
8960 sub-chains of BLOCK_VARS and gimple_bind_vars.
8962 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8964 * config/i386/znver1.md : Fix imov/imovx load type reservations.
8966 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
8968 * config/sparc/sparc.opt (msubxc): New option.
8969 * doc/invoke.texi (SPARC options): Document it and tidy up.
8970 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
8971 * doc/tm.texi: Regenerate.
8972 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
8974 (CCX_NOOV): Rename into...
8978 * config/sparc/predicates.m (fcc_register_operand): Simplify.
8979 (fcc0_register_operand): Likewise.
8980 (icc_register_operand): New.
8981 (icc_or_fcc_register_operand): Simplify.
8982 (nz_comparison_operator): New.
8983 (c_comparison_operator): Likewise.
8984 (noov_compare_operator): Rename into...
8985 (icc_comparison_operator): ...this. Use above predicates.
8986 (noov_compare64_operator): Rename into...
8987 (v9_comparison_operator): ...this and tidy up.
8988 (fcc_comparison_operator): New.
8989 (icc_or_fcc_comparison_operator): Likewise.
8990 (v9_register_compare_operator): Rename info...
8991 (v9_register_comparison_operator): ...this.
8992 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8993 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
8995 (sparc_fixed_condition_code_regs): New function.
8996 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
8997 renaming and add support for CCC/CCXC.
8998 (output_cbranch): Likewise.
8999 (sparc_print_operand): Likewise.
9000 (gen_v9_scc): Remove obsolete assertion.
9001 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
9002 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
9003 (output_cbcond): Remove bogus handling of CC modes.
9004 (sparc_register_move_cost): Return 100 for NO_REGS.
9005 * config/sparc/sparc.md (W): New mode iterator.
9006 (length): Adjust for noov_compare64_operator renaming.
9007 (cmpsi_sne): New instruction.
9008 (cmpdi_sne): Likewise.
9009 (seqdi_special): Delete.
9010 (seqdi_special): Likewise.
9011 (snesi<P:mode>_special): Likewise.
9012 (snedi_special): Likewise.
9013 (snedi_special_vis3): Likewise.
9014 (snesi patterns): Use W iterator.
9015 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
9016 (sltu patterns): Likewise.
9017 (sgeu patterns): Likewise.
9018 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
9019 (normal_branch): Use icc_comparison_operator predicate.
9020 (inverted_branch): Likewise.
9021 (cbcond_sp32): Use comparison_operator predicate.
9022 (cbcond_sp64): Likewise.
9023 (normal_int_branch_sp64): Adjust for renaming
9024 (inverted_int_branch_sp64): Likewise.
9025 (mov<I:mode>_cc_reg_sp64): Likewise.
9026 (movsf_cc_reg_sp6): Likewise.
9027 (movdf_cc_reg_sp64): Likewise.
9028 (movtf_cc_reg_hq_sp64): Likewise.
9029 (movtf_cc_reg_sp64): Likewise.
9030 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
9031 (movsf_cc_v9): Likewise.
9032 (movdf_cc_v9): Likewise.
9033 (movtf_cc_hq_v9): Likewise.
9034 (movtf_cc_v9): Likewise.
9035 (adddi3): Call gen_adddi3_sp32.
9036 (adddi3_insn_sp32): Rename to...
9037 (adddi3_sp32): ...this. Accept only register_operand as operand #1
9038 and use CCCmode for the carry.
9039 (addx_extend_sp32): Use CCCmode for the carry.
9040 (addx_extend_sp64): Delete.
9041 (adddi3_extend_sp32): Use CCCmode for the carry.
9042 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
9043 (subdi3): Call gen_subdi3_sp32.
9044 (subdi3_insn_sp32): Rename to...
9045 (subdi3_sp32): ...this and use CCmode for the carry.
9046 (subx_extend_sp32): Use CCCmode for the carry.
9047 (subx_extend_sp64): Delete.
9048 (subdi3_extend_sp32): Use CCmode for the carry.
9049 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
9050 (negdi3): Call gen_negdi3_sp32.
9051 (negdi3_sp32): Use CCCmode for the carry.
9052 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
9053 (cmp_nz_ashift_1): Use CCNZ mode.
9054 (cmp_nz_set_ashift_1): Likewise.
9055 (ctrapsi4): Use comparison_operator predicate.
9056 (ctrapdi4): Likewise.
9057 (trapsi_insn): Use icc_comparison_operator predicate.
9058 (trapdi_insn): Likewise.
9059 (edge8 patterns): Use CCNZmode.
9060 (edge16 patterns): Likewise.
9061 (edge32 patterns): Likewise.
9063 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9065 * config/visium/visium-modes.def (CC_NOOV): Rename into...
9067 (CC_BTST): Rename into...
9069 * config/visium/predicates.md (real_add_operand): New.
9070 (visium_btst_operator): Rename into...
9071 (visium_equality_comparison_operator): ...this.
9072 (visium_noov_operator): Rename into...
9073 (visium_nz_comparison_operator): ...this.
9074 (visium_c_comparison_operator): New.
9075 (visium_branch_operator): Adjust and deal with all CC modes.
9076 * config/visium/visium.c (visium_adjust_cost): Adjust.
9077 (visium_split_double_add): Use the *_set_carry patterns.
9078 (visium_select_cc_mode): Add support for CCC mode and adjust.
9079 (output_cbranch): Adjust and use the carry-based operators for
9080 floating-point comparisons.
9081 * config/visium/visium.md (flags_subst_arith): Adjust.
9082 (addsi3_insn_set_carry): New instruction.
9083 (subsi3_insn_set_carry): Likewise.
9084 (negsi2_insn_set_carry): Likewise.
9086 (cmp<mode>_sne): Likewise.
9087 (cbranch<mode>4): Use ordered_comparison_operator.
9088 (cbranch<mode>4_insn): Likewise.
9089 (cbranchsi4_btst_insn): Adjust.
9091 2016-10-11 Tom de Vries <tom@codesourcery.com>
9094 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
9097 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9099 * tree.h (build_complex_type): Add second parameter with default.
9100 * tree.c (build_complex_type): Add NAMED second parameter and adjust
9101 recursive call. Create a TYPE_DECL only if NAMED is true.
9102 (build_common_tree_nodes): Pass true in calls to build_complex_type.
9104 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
9106 New avr-passes.def to register AVR specific passes.
9108 * config/avr/avr-passes.def: New file.
9109 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
9110 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
9111 (make_avr_pass_recompute_note): New proto.
9112 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
9113 (avr_pass_recompute_notes): Use anonymous namespace.
9114 (avr_register_passes): Remove function...
9115 (avr_option_override): ...and its call.
9117 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
9119 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
9120 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
9121 PTF_AVOID_BRANCHLIKELY_SPEED for others.
9122 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
9124 * config/mips/mips.c (mips_option_override): Enable the branch
9125 likely depending on the tune flags and optimization level.
9126 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
9127 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
9128 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
9129 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
9131 2016-10-11 Richard Biener <rguenther@suse.de>
9133 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
9134 (output_function): Properly stream the whole block tree.
9135 * lto-streamer-in.c (input_function): Likewise.
9137 2016-10-11 Marek Polacek <polacek@redhat.com>
9139 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
9141 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9143 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
9144 (evrp_dom_walker::before_dom_children): Infer and push new value
9145 ranges for x in y < x.
9147 2016-10-10 Joseph Myers <joseph@codesourcery.com>
9150 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
9151 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
9152 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9153 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9154 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
9155 (IA64_NO_LIBGCC_TFMODE): Likewise.
9157 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9159 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
9162 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
9164 * config.gcc: Add aarch64-*-freebsd* support.
9165 * config.host: Likewise.
9166 * config/aarch64/aarch64-freebsd.h: New file.
9167 * config/aarch64/t-aarch64-freebsd: Ditto.
9169 2016-10-10 Jeff Law <law@redhat.com>
9171 PR tree-optimization/71947
9172 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
9173 B with A within a single statement.
9175 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9177 PR tree-optimization/77824
9178 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
9179 zero cost for copies.
9180 (find_candidates_dom_walker::before_dom_children): Replace
9181 MODIFY_EXPR with SSA_NAME.
9182 (replace_mult_candidate): Likewise.
9183 (replace_profitable_candidates): Likewise.
9185 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9187 * config/s390/s390.h: Wrap more macros args in brackets and fix
9189 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
9191 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
9193 2016-10-10 Andreas Schwab <schwab@suse.de>
9196 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
9197 pseudo is not DImode.
9199 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
9201 * common/config/arc/arc-common.c (arc_option_optimization_table):
9202 Remove compact casesi option.
9203 * config/arc/arc.c (arc_override_options): Use compact casesi
9204 option only for pre-ARCv2 cores.
9205 * doc/invoke.texi (mcompact-casesi): Update text.
9207 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9209 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
9210 Add macro to say we can efficiently handle overlapping unaligned
9212 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
9213 poor code for processors older than p8.
9215 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
9217 * gen-pass-instances.awk: Remove GNUism.
9219 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9221 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
9222 NULL of (*ipcp_transformations)][node->uid].
9224 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
9226 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
9227 (MALLOC_ABI_ALIGNMENT): Define.
9229 2016-10-09 Jakub Jelinek <jakub@redhat.com>
9231 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
9232 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
9233 VAR_OR_FUNCTION_DECL_P macros.
9234 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
9235 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
9236 chkp_find_bounds_1): Likewise.
9237 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
9238 * hsa-gen.c (get_symbol_for_decl): Likewise.
9239 * cgraphunit.c (check_global_declaration, analyze_functions,
9240 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
9242 * gimple-fold.c (can_refer_decl_in_current_unit_p,
9243 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
9245 * tree.c (set_decl_section_name, copy_node_stat,
9246 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
9247 merge_dllimport_decl_attributes, handle_dll_attribute,
9248 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
9249 verify_type): Likewise.
9250 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
9251 find_explicit_erroneous_behavior): Likewise.
9252 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
9253 * ipa.c (process_references): Likewise.
9254 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
9255 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
9256 notice_global_symbol, assemble_variable, mark_decl_referenced,
9257 build_constant_desc, output_constant_def_contents, do_assemble_alias,
9258 make_decl_one_only, default_section_type_flags,
9259 categorize_decl_for_section, default_encode_section_info): Likewise.
9260 * trans-mem.c (requires_barrier): Likewise.
9261 * gimple-expr.c (mark_addressable): Likewise.
9262 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
9263 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
9264 expand_debug_expr): Likewise.
9265 * tree-dump.c (dequeue_and_dump): Likewise.
9266 * ubsan.c (instrument_bool_enum_load): Likewise.
9267 * tree-pretty-print.c (print_declaration): Likewise.
9268 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9269 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
9270 * asan.c (asan_protect_global, instrument_derefs): Likewise.
9271 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
9272 pass_build_ssa::execute): Likewise.
9273 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
9274 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
9276 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
9278 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
9279 can_be_nonlocal, remap_decls, copy_debug_stmt,
9280 initialize_inlined_parameters, add_local_variables,
9281 reset_debug_binding, replace_locals_op): Likewise.
9282 * dse.c (can_escape): Likewise.
9283 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
9285 * tree-diagnostic.c (default_tree_printer): Likewise.
9286 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
9287 unpack_ts_decl_with_vis_value_fields,
9288 lto_input_ts_decl_common_tree_pointers): Likewise.
9289 * builtins.c (builtin_save_expr, fold_builtin_expect,
9290 readonly_data_expr): Likewise.
9291 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
9292 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
9294 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
9295 * gimplify.c (force_constant_size, gimplify_bind_expr,
9296 gimplify_decl_expr, gimplify_var_or_parm_decl,
9297 gimplify_compound_lval, gimplify_init_constructor,
9298 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
9299 gimplify_type_sizes): Likewise.
9300 * cgraphbuild.c (record_reference, record_type_list, mark_address,
9301 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
9302 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
9303 remove_unused_locals): Likewise.
9304 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
9305 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
9306 * function.c (instantiate_expr, instantiate_decls_1,
9307 setjmp_vars_warning, add_local_decl): Likewise.
9308 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
9310 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
9311 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
9312 optimize_va_list_gpr_fpr_size): Likewise.
9313 * tree-nrv.c (pass_nrv::execute): Likewise.
9314 * tsan.c (instrument_expr): Likewise.
9315 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
9316 * vtable-verify.c (verify_bb_vtables): Likewise.
9317 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
9318 get_ref_base_and_extent): Likewise.
9319 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
9321 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
9322 analyze_all_variable_accesses): Likewise.
9323 * tree-nested.c (get_nonlocal_debug_decl,
9324 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
9325 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
9326 get_local_debug_decl, convert_local_omp_clauses,
9327 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
9329 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
9330 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
9331 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
9332 dbxout_symbol, dbxout_common_check): Likewise.
9333 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
9334 string_constant): Likewise.
9335 * hsa.c (hsa_get_declaration_name): Likewise.
9336 * passes.c (rest_of_decl_compilation): Likewise.
9337 * tree-ssanames.c (make_ssa_name_fn): Likewise.
9338 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
9339 pack_ts_decl_with_vis_value_fields,
9340 write_ts_decl_common_tree_pointers): Likewise.
9341 * stor-layout.c (place_field): Likewise.
9342 * symtab.c (symtab_node::maybe_create_reference,
9343 symtab_node::verify_base, symtab_node::make_decl_local,
9344 symtab_node::copy_visibility_from,
9345 symtab_node::can_increase_alignment_p): Likewise.
9346 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
9347 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
9348 fortran_common, add_location_or_const_value_attribute,
9349 add_scalar_info, add_linkage_name, set_block_abstract_flags,
9350 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
9351 optimize_one_addr_into_implicit_ptr,
9352 optimize_location_into_implicit_ptr): Likewise.
9353 * gimple-low.c (record_vars_into): Likewise.
9354 * ipa-visibility.c (update_vtable_references): Likewise.
9355 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
9357 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
9358 DFS::DFS_write_tree_body, write_symbol): Likewise.
9359 * langhooks.c (lhd_warn_unused_global_decl,
9360 lhd_set_decl_assembler_name): Likewise.
9361 * attribs.c (decl_attributes): Likewise.
9362 * except.c (output_ttype): Likewise.
9363 * varpool.c (varpool_node::get_create, ctor_for_folding,
9364 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
9365 * fold-const.c (fold_unary_loc): Likewise.
9366 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
9367 ipa_find_agg_cst_from_init): Likewise.
9368 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
9369 expand_omp_target, lower_omp_regimplify_p,
9370 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
9371 find_link_var_op): Likewise.
9372 * tree-chrec.c (chrec_contains_symbols): Likewise.
9373 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
9374 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
9375 execute_fixup_cfg): Likewise.
9377 PR tree-optimization/77901
9378 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
9379 if ranges[i].exp is SSA_NAME when looking for >= and only when
9380 ranges[i].exp is NULL or SSA_NAME when looking for the other
9383 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9385 * ipa-cp.c (ipcp_alignment_lattice): Remove.
9386 (ipcp_param_lattices): Remove field alignment.
9387 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
9388 (set_all_contains_variable): Remove call to
9389 ipcp_alignment_lattice::set_to_bottom.
9390 (initialize_node_lattices): Likewise.
9391 (propagate_alignment_accross_jump_function): Remove.
9392 (propagate_constants_accross_call): Remove call to
9393 propagate_alignment_accross_jump_function.
9394 (ipcp_store_alignment_results): Remove.
9395 (ipcp_driver): Remove call to ipcp_store_alignment_results.
9396 (propagate_bits_accross_jump_function): Handle ancestor jump function.
9397 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
9398 pretty-printing of alignment jump function.
9399 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
9400 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
9401 alignments and remove computing ipa_alignment jump function.
9402 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
9403 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
9404 (ipa_read_jump_function): Remove reading of ipa_alignment.
9405 (write_ipcp_transformation_info): Remove streaming for alignment
9406 propagation summary.
9407 (read_ipcp_transformation_info): Remove reading of alignment
9408 propagation summary.
9409 (ipcp_update_alignments): Remove.
9410 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
9412 (ipcp_transform_function): Remove call to ipcp_update_alignments()
9413 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
9414 * ipa-prop.h (ipa_alignment): Remove.
9415 (ipa_jump_func): Remove field alignment.
9416 (ipcp_transformation_summary): Remove field alignments.
9417 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
9418 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
9419 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
9421 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
9423 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
9425 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
9427 (visium_expand_fp_cstore): Likewise.
9429 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9431 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
9432 * diagnostic.c (warning_at_rich_loc_n): New function.
9433 (diagnostic_n_impl_richloc): Likewise.
9434 (diagnostic_n_impl): Move most of the function to
9435 diagnostic_n_impl_richloc and call it.
9437 2016-10-08 Jakub Jelinek <jakub@redhat.com>
9439 * gen-pass-instances.awk: Rewritten.
9440 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
9441 $(PASSES_EXTRA) after passes.def to the script.
9442 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
9443 * config/i386/i386-passes.def: New file.
9444 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
9445 make_pass_stv): Declare.
9446 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
9448 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
9450 (pass_stv::clone, pass_stv::set_pass_param): New methods.
9451 (pass_stv::timode_p): New non-static data member.
9452 (ix86_option_override): Don't register passes here.
9454 * doc/invoke.texi: Document accepting Else, fallthrough.
9456 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
9459 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
9460 FALLTHRU comment styles.
9462 2016-10-07 Andrew Pinski <apinski@cavium.com>
9464 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
9465 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
9466 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
9468 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
9470 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
9472 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
9473 (AARCH64_ARCH): Likewise.
9474 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
9476 (AARCH64_CORE): Likewise.
9477 (AARCH64_ARCH): Likewise.
9478 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
9479 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
9480 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
9481 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
9482 (AARCH64_ARCH): Likewise.
9483 (AARCH64_CORE): Likewise.
9484 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
9485 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
9486 (AARCH64_CORE): Likewise.
9487 (AARCH64_ARCH): Likewise.
9489 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9491 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
9492 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
9493 floating point type infrastructre, and -mfloat128 that enables the
9494 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
9495 if -mfloat128-type. Define __ibm128 to be long double by default.
9496 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
9497 the IEEE 128-bit floating point type infrastructure should
9498 automatically be enabled.
9499 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
9500 instead of -mfloat128 to enable KFmode.
9501 (rs6000_option_override_internal): Split the option -mfloat128
9502 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
9503 systems, automatically set -mfloat128-type, but don't enable it on
9504 other operating systems. Move setting the long double size and
9505 IEEE quad support before the IEEE 128-bit floating point changes.
9506 (rs6000_init_builtins): Do not create a unique type for __ibm128
9507 if long double is IBM extended double, instead rely on __ibm128
9508 being defined as 'long double'. If -mfloat128-type and not
9509 -mfloat128, create the KFmode type with an undocumented __ieee128
9511 (rs6000_init_libfuncs): Use -mfloat128-type instead of
9512 -mfloat128 for tests about the types, but keep tests for
9513 -mfloat128 to enable the keyword support.
9514 (rs6000_complex_function_value): Likewise.
9515 (rs6000_scalar_mode_supported_p): Likewise.
9516 (rs6000_floatn_mode): Likewise.
9517 (rs6000_c_mode_for_suffix): Likewise.
9518 (rs6000_opt_masks): Add -mfloat128-type.
9519 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
9520 -mfloat128-type being split from -mfloat128. Add
9521 -mfloat128-hardware, which was missing.
9522 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
9523 -mfloat128 and -mfloat128-type:
9524 (-mfloat128-type): Likewise.
9525 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
9526 that 64-bit Linux systems with enable -mfloat128-type by default
9528 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
9529 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
9530 -mfloat128-type instead of -mfloat128.
9531 (FLOAT128_2REG_P): Likewise.
9532 (MASK_FLOAT128_TYPE): Likewise.
9533 (ALTIVEC_ARG_MAX_RETURN): Likewise.
9534 (RS6000_BTM_FLOAT128): Likewise.
9535 (TARGET_FLOAT128): Poison old identifiers.
9536 (OPTION_MASK_FLOAT128): Likewise.
9537 (MASK_FLOAT128): Likewise.
9538 * config/rs6000/rs6000.md (FP): Likewise.
9539 (FLOAT128): Likewise.
9540 (fix_trunc<mode>di2): Likewise.
9541 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
9542 (floatdi<mode>2): Likewise.
9543 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
9544 (neg<mode>2, FLOAT128 iterator): Likewise.
9545 (abs<mode>2, FLOAT128 iterator): Likewise.
9546 (ieee_128bit_negative_zero): Likewise.
9547 (ieee_128bit_vsx_neg<mode>2): Likewise.
9548 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
9549 (ieee_128bit_vsx_abs<mode>2): Likewise.
9550 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9551 (ieee_128bit_vsx_nabs<mode>2): Likewise.
9552 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9553 (extendiftf2): Likewise.
9554 (extendifkf2): Likewise.
9555 (extendtfkf2): Likewise.
9556 (trunciftf2): Likewise.
9557 (truncifkf2): Likewise.
9558 (trunckftf2): Likewise.
9559 (trunctfif2): Likewise.
9560 (extendkftf2): Likewise.
9561 (trunctfkf2): Likewise.
9563 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9565 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
9566 before merging in bytes to pass down to real_from_target.
9568 2016-10-07 Richard Biener <rguenther@suse.de>
9570 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
9572 (substitute_and_fold_dom_walker::before_dom_children):
9573 Substitute and fold before pass specific folding to avoid
9574 feeding that with SSA names that will be later released.
9575 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
9576 introduced by folding and visited by evaluate_stmt called during
9578 (likely_value): Likewise.
9579 (evaluate_stmt): Likewise.
9580 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
9581 (simplify_div_or_mod_using_ranges): Likewise.
9582 (simplify_min_or_max_using_ranges): Likewise.
9583 (simplify_abs_using_ranges): Likewise.
9584 (simplify_conversion_using_ranges): Likewise.
9585 (simplify_float_conversion_using_ranges): Likewise.
9586 (simplify_stmt_using_ranges): Likewise.
9588 2016-10-07 Marek Polacek <polacek@redhat.com>
9590 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
9591 FALLTHROUGH_LABEL_P here...
9592 (warn_implicit_fallthrough_r): ...not here.
9594 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
9596 PR tree-optimization/77880
9597 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
9600 2016-10-07 Marek Polacek <polacek@redhat.com>
9603 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
9605 2016-10-07 Richard Biener <rguenther@suse.de>
9607 * bitmap.h: Document constraints on bitmap modification while
9610 2016-10-07 Richard Biener <rguenther@suse.de>
9612 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
9613 * bitmap.h (bmp_iter_set): When advancing to the next element
9614 check that we didn't remove the current one.
9615 (bmp_iter_and): Likewise.
9616 (bmp_iter_and_compl): Likewise.
9617 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
9618 we currently iterate on but keep a one-level queue.
9619 * sched-deps.c (remove_from_deps): Do not clear current bit
9620 but keep a one-level queue.
9622 2016-10-07 Jakub Jelinek <jakub@redhat.com>
9624 PR tree-optimization/77664
9625 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
9626 for the other ranges.
9627 (optimize_range_tests_diff): Fix up formatting.
9628 (optimize_range_tests_var_bound): New function.
9629 (optimize_range_tests): Use it.
9631 2016-10-07 Martin Liska <mliska@suse.cz>
9633 * coverage.c (build_gcov_exit_decl): Fix priority what
9634 should be really 99.
9636 2016-10-07 Richard Biener <rguenther@suse.de>
9638 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
9639 vars in gimple_bind_vars but not in BLOCK_VARS.
9641 2016-10-07 Richard Biener <rguenther@suse.de>
9643 PR tree-optimization/77879
9644 * tree-ssa-structalias.c (handle_const_call): Properly handle
9646 (handle_pure_call): Likewise.
9648 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9650 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
9651 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
9654 2016-10-06 Andrew Pinski <apinski@cavium.com>
9656 * config/aarch64/aarch64-cores.def: Add a comment before each
9659 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
9661 PR tree-optimization/77862
9662 * tree-vrp.c (add_equivalence): Use get_value_range so that
9663 num_vr_values is checked before accessing vr_values.
9665 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
9667 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
9670 2016-10-05 Jeff Law <law@redhat.com>
9672 PR tree-optimization/71661
9673 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
9674 removal of a forwarder exposes a new natural loop.
9676 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
9678 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
9679 Introduce ssesuffix variable.
9680 (<mask_codefor><code><mode>3<mask_name>): Ditto.
9681 (*<code><mode>3): Ditto.
9683 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
9685 * postreload.c (reload_cse_simplify): Skip also USE when detecting
9688 2016-10-06 Richard Biener <rguenther@suse.de>
9690 PR tree-optimization/77855
9691 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
9692 instead of removing the current item while iterating over the set
9695 2016-10-06 James Clarke <jrtc27@jrtc27.com>
9696 Eric Botcazou <ebotcazou@adacore.com>
9699 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
9700 (classify_registers): Don't set it
9701 (function_arg_slotno): Don't initialize and test it. Tidy up.
9703 2016-10-06 Richard Biener <rguenther@suse.de>
9705 PR tree-optimization/77839
9706 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
9709 2016-10-06 Martin Liska <mliska@suse.cz>
9711 * gcc.c: Set -fprofile-update=atomic when profiling is
9712 enabled and -pthread is set. Warn when one combines
9713 -pthread and -fprofile-update=single for an app using
9716 2016-10-06 Martin Liska <mliska@suse.cz>
9719 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
9720 * gimple-ssa-strength-reduction.c (slsr_process_cast):
9721 Initialize a pointer to NULL.
9722 (slsr_process_copy): Likewise.
9723 * input.c (location_get_source_line): Likewise.
9724 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9726 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
9728 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
9729 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
9730 (ix86_handle_option): Deleted handle of OPT_mpcommit.
9731 * config.gcc: Deleted pcommitintrin.h
9732 * config/i386/pcommitintrin.h: Deleted file.
9733 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
9734 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
9736 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
9738 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
9739 (PTA_PCOMMIT): Deleted define.
9740 (ix86_option_override_internal): Deleted handle of option.
9741 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
9742 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
9743 __builtin_ia32_pcommit): Deleted.
9744 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
9745 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
9746 (pcommit): Deleted instruction.
9747 * config/i386/i386.opt: Mention -mpcommit deprecation.
9748 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
9750 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
9753 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
9754 Remove wrong assert.
9755 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
9756 Use <round_constraint> as operand 1 constraint.
9758 2016-10-05 Jakub Jelinek <jakub@redhat.com>
9761 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
9762 (ubsan_instrument_float_cast): And not here.
9765 * ubsan.c (ubsan_ids): New GTY(()) array.
9766 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
9767 instead of static local counters.
9769 2016-10-05 Martin Sebor <msebor@redhat.com>
9772 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
9773 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
9774 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
9775 (default_printf_pointer_format): Define function.
9776 * targhooks.c (linux_printf_pointer_format): Define new function.
9777 * targhooks.h (linux_printf_pointer_format): Declare.
9778 (gnu_libc_printf_pointer_format): Remove declaration.
9780 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9782 * fold-const.c (native_encode_real): Fix logic for selecting offset
9783 to write to when BYTES_BIG_ENDIAN.
9785 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
9787 * builtins.c (fold_builtin_strchr): Remove function.
9788 (fold_builtin_strrchr): Likewise.
9789 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
9790 * gimple-fold.c (target_char_cst_p): New function.
9791 (gimple_fold_builtin_strchr) Add more foldings.
9792 (gimple_fold_builtin): Add index, strrchr, rindex cases.
9794 2016-10-05 Richard Biener <rguenther@suse.de>
9797 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
9798 capture ids in c-exprs.
9800 2016-10-05 Richard Biener <rguenther@suse.de>
9803 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
9804 with types_match for GIMPLE code gen to handle type mismatched
9806 (dt_operand::gen): Adjust.
9807 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
9810 2016-10-05 Richard Biener <rguenther@suse.de>
9812 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
9814 2016-10-05 Richard Biener <rguenther@suse.de>
9817 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
9819 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
9821 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
9822 version check to protect only DW_TAG_imported_module generation.
9824 2016-10-05 Richard Biener <rguenther@suse.de>
9827 * match.pd (min(a,-a) -> -abs(a)): New pattern.
9829 2016-10-04 Ian Lance Taylor <iant@golang.org>
9831 * explow.c (allocate_dynamic_stack_space): Call
9832 do_pending_stack_adjust before handling flag_split_stack.
9834 2016-10-04 David Malcolm <dmalcolm@redhat.com>
9836 * genattrtab.c (make_internal_attr): Supply dummy column number to
9839 * genoutput.c (init_insn_for_nothing): Likewise.
9840 * gensupport.c (add_define_attr): Likewise.
9841 * read-md.c (message_at_1): Print column number.
9842 (fatal_with_file_and_line): Likewise.
9843 (rtx_reader::read_char): Track column numbers.
9844 (rtx_reader::unread_char): Likewise.
9845 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
9846 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
9847 (rtx_reader::handle_file): Initialize m_read_md_colno.
9848 (rtx_reader::get_current_location): Supply column number to
9850 * read-md.h (struct file_location): Add field "colno".
9851 (file_location::file_location): Likewise.
9852 (rtx_reader::get_colno): New accessor.
9853 (rtx_reader::m_read_md_colno): New field.
9854 (rtx_reader::m_last_line_colno): New field.
9856 2016-10-04 Jakub Jelinek <jakub@redhat.com>
9858 * doc/extend.texi (Java Exceptions): Remove.
9859 (java_interface): Remove.
9861 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
9863 PR tree-optimization/77808
9864 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
9865 and addr are different before copying points-to information.
9867 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
9869 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
9870 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
9871 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
9872 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
9874 2016-10-04 Richard Biener <rguenther@suse.de>
9876 PR tree-optimization/77399
9877 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
9878 verify the target can convert.
9880 2016-10-04 Richard Biener <rguenther@suse.de>
9883 * explow.c (plus_constant): Verify the mode of the constant
9884 pool offset before calling plus_constant.
9886 2016-10-04 Richard Biener <rguenther@suse.de>
9889 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
9890 type support, mark with :C.
9891 (X / -X -> -1): Mark with :C.
9893 2016-10-04 Jakub Jelinek <jakub@redhat.com>
9895 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
9896 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
9897 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
9898 * doc/tm.texi: Regenerated.
9899 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
9900 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
9901 * config/darwin.h (JCR_SECTION_NAME): Remove.
9902 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
9903 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
9904 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
9905 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
9906 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
9907 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
9909 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9911 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
9912 between "because" and "param" in dump message in call to fprintf.
9914 2016-10-03 Jeff Law <law@redhat.com>
9916 PR tree-optimization/71550
9917 PR tree-optimization/71403
9918 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
9919 (profitable_jump_thread_path): Also return boolean indicating if
9920 the realized path will create an irreducible loop.
9921 Remove loop depth tests from 71403.
9922 (fsm_find_control_statement_thread_paths): Remove loop depth tests
9923 from 71403. If threading will create an irreducible loop, then
9924 throw away loop iteration and related information.
9926 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
9928 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
9929 -Woverloaded-virtual checks for warning options.
9930 * configure: Regenerate.
9932 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
9934 PR preprocessor/77699
9935 * input.c (maybe_grow): Don't allocate one byte extra headroom.
9936 (get_next_line): Return false on error.
9937 (read_next_line): Removed, use get_next_line instead.
9938 (read_line_num): Don't copy the line.
9939 (location_get_source_line): Don't use static data.
9940 (selftest::test_reading_source_line): Add more test cases.
9942 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9945 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9947 * ifcvt.c (noce_try_avoid_const_materialization): New function.
9948 (noce_process_if_block): Use it.
9950 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
9952 * doc/invoke.texi: Update -Wint-in-bool-context.
9954 2016-10-02 Jakub Jelinek <jakub@redhat.com>
9956 * dwarf2out.c (output_fde, output_call_frame_info,
9957 dwarf2out_do_cfi_startproc, set_indirect_string,
9958 gen_internal_sym, output_die, output_line_info): Use
9959 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
9960 ASM_GENERATE_INTERNAL_LABEL output.
9962 2016-10-01 Richard Biener <rguenther@suse.de>
9965 * genmatch.c (get_operand_type): Add operand position arg
9966 and handle COND_EXPR comparison operand with fixed boolean_type_node.
9967 (expr::gen_transform): Adjust.
9968 (dt_simplify::gen_1): Likewise.
9970 2016-10-01 Jakub Jelinek <jakub@redhat.com>
9972 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
9973 comments. Simplify asserts, remove unnecessary conditions.
9975 (*<code><mode>3): Likewise.
9977 2016-09-30 Jakub Jelinek <jakub@redhat.com>
9979 * doc/invoke.texi (-Wregister): Document.
9981 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
9983 * configure.ac: Split CHECKING_P into CHECKING_P and
9984 ENABLE_EXTRA_CHECKING.
9985 * configure: Regenerated.
9986 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
9987 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
9989 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
9992 * gcc.c (process_command): For @filename handling, output
9993 the correct name if the file does not exist.
9995 2016-09-30 Marek Polacek <polacek@redhat.com>
9997 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
9998 * config/alpha/predicates.md: Likewise.
10000 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10002 * ifcvt.c (noce_try_avoid_const_materialization): New function.
10003 (noce_process_if_block): Use it.
10005 2016-09-30 Martin Liska <mliska@suse.cz>
10007 * doc/invoke.texi: Document asan-use-after-return that
10008 it's disabled by default in runtime.
10010 2016-09-30 Richard Biener <rguenther@suse.de>
10012 * tree-vrp.c (intersect_ranges): If we failed to handle
10013 the intersection choose a constant singleton range if available.
10015 2016-09-30 Richard Biener <rguenther@suse.de>
10017 PR tree-optimization/77399
10018 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
10019 float <-> int conversions.
10021 2016-09-30 Alan Modra <amodra@gmail.com>
10023 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
10025 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
10027 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
10028 ext_level before calling CPUID with 0x80000008.
10029 Simplify xgetbv checks.
10031 2016-09-29 David Malcolm <dmalcolm@redhat.com>
10033 * Makefile.in (OBJS): Add print-rtl-function.o.
10034 * print-rtl-function.c: New file.
10035 * print-rtl.h (print_rtx_function): New decl.
10037 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
10040 * config/i386/cpuid.h (__get_cpuid_count): New.
10041 (__get_cpuid): Rename __level to __leaf.
10043 2016-09-29 Marek Polacek <polacek@redhat.com>
10045 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
10047 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
10050 * builtins.c (expand_builtin_memcmp): Don't swap args unless
10051 result is only being compared with zero.
10053 2016-09-29 Marek Polacek <polacek@redhat.com>
10055 * dwarf2out.c (loc_descriptor): Add fall through comment.
10056 (add_const_value_attribute): Likewise.
10058 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
10060 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
10061 with "v6t2". Move "arch" attribute above "pool_range".
10062 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
10064 (*thumb2_movhi_vfp): Likewise.
10065 (*arm_movhi_fp16): Likewise.
10066 (*thumb2_movhi_fp16): Likewise.
10067 (*arm_movsi_vfp): Remove "arch" attribute.
10068 (*thumb2_movsi_vfp): Likewise.
10070 2016-09-29 Martin Liska <mliska@suse.cz>
10072 * doc/extend.texi: Remove limitation of Objective C for
10073 __attribute__((constructor)) and __attribute__((destructor)).
10075 2016-09-29 Richard Biener <rguenther@suse.de>
10077 PR tree-optimization/77768
10078 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10079 Handle stores to readonly memory when removing redundant stores.
10081 2016-09-29 Richard Biener <rguenther@suse.de>
10083 PR middle-end/77407
10084 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
10085 X / -X -> -1 simplifications.
10087 2016-09-29 Richard Biener <rguenther@suse.de>
10089 PR middle-end/55152
10090 * match.pd: Add max(a,-a) -> abs(a) pattern.
10091 * tree-ssa-phiopt.c (minmax_replacement): Disable for
10092 HONOR_SIGNED_ZEROS types.
10094 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
10096 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
10097 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
10099 2016-09-29 Richard Biener <rguenther@suse.de>
10101 * tree-vrp.c (set_defs_to_varying): New helper avoiding
10102 writing to vr_const_varying.
10103 (vrp_initialize): Call it.
10104 (vrp_visit_stmt): Likewise.
10105 (evrp_dom_walker::before_dom_children): Likewise.
10107 2016-09-29 Richard Biener <rguenther@suse.de>
10109 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
10110 constructors with vector elements.
10112 2016-09-29 Richard Biener <rguenther@suse.de>
10114 PR tree-optimization/77768
10115 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
10116 with stores to a place we know has a constant value.
10118 2016-09-29 Alan Modra <amodra@gmail.com>
10120 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
10121 * doc/invoke.texi: Document it.
10122 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
10123 (rs6000_passes_float): Comment.
10124 (rs6000_passes_long_double): New static var.
10125 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
10126 (init_cumulative_args): Set up to emit fp .gnu_attribute for
10127 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
10128 to include fp values returned in vectors.
10129 Set rs6000_passes_long_double.
10130 (rs6000_function_arg_advance_1): Likewise for function args.
10131 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
10132 and SPE. Emit long double tag value too.
10133 (rs6000_opt_vars): Add gnu-attr.
10134 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
10135 * configure: Regenerate.
10136 * config.in: Regenerate.
10138 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10140 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
10142 (format_floating, format_string, format_directive,
10143 get_destination_size, pass_sprintf_length::handle_gimple_call):
10146 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10148 * gimple-ssa-sprintf.c: Fix comment formatting.
10149 (format_integer): Use is_gimple_assign.
10150 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
10151 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
10152 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
10153 (pass_sprintf_length::execute): Use is_gimple_call.
10155 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10157 * gimple-fold.c (gimple_fold_builtin): After failing to fold
10158 strchr, also try the generic folding.
10160 2016-09-28 Martin Sebor <msebor@redhat.com>
10163 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
10166 2016-09-28 Martin Sebor <msebor@redhat.com>
10168 PR middle-end/77683
10169 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
10170 length modifier is not expected.
10171 (format_floating): Ignore l length modifier and fail gracefuly
10172 when it isn't one of the other expected ones.
10174 2016-09-28 Martin Sebor <msebor@redhat.com>
10177 * varasm.c (assemble_addr_to_section): Increase local buffer size.
10179 2016-09-27 Richard Biener <rguenther@suse.de>
10181 * dwarf2out.c (cu_die_list): New global.
10182 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
10183 main_comp_unit_die to cu_die_list if we created it.
10184 Move break_out_includes ...
10185 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
10188 2016-09-28 Richard Biener <rguenther@suse.de>
10190 * dwarf2out.c (struct die_struct): Add removed flag.
10191 (lookup_type_die): If the DIE is marked as removed, clear
10192 TYPE_SYMTAB_DIE and return NULL.
10193 (lookup_decl_die): If the DIE is marked as removed, remove it
10194 from the hash and return NULL.
10195 (mark_removed): New helper.
10196 (prune_unused_types_prune): Call it for removed DIEs.
10197 (gen_subprogram_die): Move the premark_used_types call to after
10198 DIEs for the functions scopes are generated.
10199 (process_scope_var): Do not re-create pruned types or type decls.
10200 Make sure to also re-parent type decls.
10201 (dwarf2out_finish): Move unused type pruning and debug_types
10203 (dwarf2out_early_finish): ... here.
10205 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10207 * config/arc/arc-c.c: New file.
10208 * config/arc/arc-c.def: Likewise.
10209 * config/arc/t-arc: Likewise.
10210 * config.gcc: Include arc-c.o as c and cpp object.
10211 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
10212 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
10213 arc_cpu_cpp_builtins.
10215 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10217 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
10218 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
10220 2016-09-28 Nathan Sidwell <nathan@acm.org>
10222 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
10225 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10227 PR tree-optimization/61056
10228 * gimple-fold.c (gimple_fold_builtin_strchr):
10229 New function to optimize strchr (s, 0) to strlen.
10230 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
10232 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
10234 PR tree-optimization/77724
10235 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
10236 Add tree_fits_shwi_p check.
10238 2016-09-27 Jakub Jelinek <jakub@redhat.com>
10240 * auto-inc-dec.c (try_merge): Remove break after return.
10241 * cselib.c (autoinc_split): Likewise.
10242 * explow.c (promote_mode): Likewise.
10243 * fixed-value.c (fixed_arithmetic): Likewise.
10244 * hsa.c (hsa_internal_fn::get_arity): Likewise.
10245 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
10246 * trans-mem.c (get_attrs_for): Likewise.
10247 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
10248 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
10249 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
10250 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
10251 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
10252 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
10253 * config/cris/cris.c (cris_op_str): Likewise.
10254 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
10255 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
10257 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
10259 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
10260 IFN_GOACC_REDUCTION_CODES): New.
10261 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
10262 ifn_goacc_reduction_kind): Use them.
10263 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
10264 of internal functions, when applicable.
10266 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
10268 * config/mips/constraints.md (d): Fix documentation.
10269 * doc/md.texi (Machine Constraints): Update accordingly.
10271 2016-09-27 Richard Biener <rguenther@suse.de>
10273 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
10274 cur_line_info_table initialization ...
10275 (dwarf2out_assembly_start): ... here.
10277 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
10279 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
10280 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
10281 (*thumb2_movhi_vfp): Likewise.
10282 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
10283 template. Expand predicable attribute to mark VMOV.F16 as not
10284 predicable. Add "arch" attribute.
10285 (*thumb2_movhi_fp16): Likewise.
10286 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
10287 (*thumb2_movsi_vfp): Add "arch" attribute.
10289 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
10291 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
10294 2016-09-27 Marek Polacek <polacek@redhat.com>
10296 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
10299 * config/c6x/c6x.h: Adjust fall through comment.
10300 * config/sh/sh.c (final_prescan_insn): Likewise.
10301 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
10302 (visium_expand_fp_cstore): Likewise.
10304 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10306 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
10307 expected by -Wimplicit-fallthrough.
10308 (thumb1_size_rtx_costs): Likewise.
10309 (thumb2_reorg): Likewise.
10310 (tls_mentioned_p): Add "Fall through" comment.
10311 (thumb2_reorg): Likewise.
10312 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
10313 comment form expected by -Wimplicit-fallthrough.
10315 2016-09-27 Martin Liska <mliska@suse.cz>
10317 PR gcov-profile/46266
10318 * input.h (RESERVED_LOCATION_P): New macro.
10319 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
10320 instread of comparison with UNKNOWN_LOCATION.
10322 2016-09-27 Richard Biener <rguenther@suse.de>
10324 PR tree-optimization/77745
10325 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10326 When removing redundant stores make sure to check compatibility
10327 of the TBAA state for downstream accesses.
10328 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
10329 value-numbering virtual operands for store matches.
10331 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
10334 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
10335 movrt patterns. Match them before anything else in the SET case.
10337 2016-09-27 Martin Liska <mliska@suse.cz>
10339 PR gcov-profile/7970
10340 PR gcov-profile/16855
10341 PR gcov-profile/44779
10342 * coverage.c (build_gcov_exit_decl): New function.
10343 (coverage_obj_init): Call the function and generate __gcov_exit
10345 * doc/gcov.texi: Document when __gcov_exit function is called.
10347 2016-09-27 Marek Polacek <polacek@redhat.com>
10350 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
10351 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
10352 -Wno-error instead of -Wno-implicit-fallthrough.
10354 2016-09-27 Martin Liska <mliska@suse.cz>
10357 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
10359 2016-09-27 Jakub Jelinek <jakub@redhat.com>
10361 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
10362 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
10363 comments. Remove break after return.
10364 (ix86_fp_compare_code_to_integer, has_dispatch,
10365 ix86_simd_clone_usable): Remove break after return.
10367 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
10369 PR rlt-optimization/77714
10370 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
10373 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
10376 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
10377 extract_range_from_unary_expr to convert value_range.
10378 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
10379 (extract_range_from_unary_expr): This.
10380 * tree-vrp.h (extract_range_from_unary_expr): Declare.
10382 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
10384 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
10386 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10388 * config/i386/i386.c (ix86_print_operand)
10389 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
10390 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
10391 (epilogue_renumber): Likewise.
10393 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
10395 PR middle-end/77719
10396 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
10397 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
10399 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
10401 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
10402 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
10403 is_mm_seq_cst, is_mm_sync): Move to ...
10404 * memmodel.h: This. New file.
10405 * builtins.c: Include memmodel.h.
10406 * optabs.c: Likewise.
10407 * tsan.c: Likewise.
10408 * config/aarch64/aarch64.c: Likewise.
10409 * config/alpha/alpha.c: Likewise.
10410 * config/arm/arm.c: Likewise.
10411 * config/i386/i386.c: Likewise.
10412 * config/ia64/ia64.c: Likewise.
10413 * config/mips/mips.c: Likewise.
10414 * config/rs6000/rs6000.c: Likewise.
10415 * config/sparc/sparc.c: Likewise.
10416 * genconditions.c: Include memmodel.h in generated file.
10417 * genemit.c: Likewise.
10418 * genoutput.c: Likewise.
10419 * genpeep.c: Likewise.
10420 * genpreds.c: Likewise.
10421 * genrecog.c: Likewise.
10423 2016-09-26 David Malcolm <dmalcolm@redhat.com>
10425 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
10426 "c" instead when parsing characters. Move operand parsing into...
10427 (read_rtx_operand): ...this new function, renaming "i" to "idx",
10428 and tightening the scope of various locals.
10430 2016-09-26 Liu Hao <lh_mouse@126.com>
10432 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
10434 2016-09-26 Marek Polacek <polacek@redhat.com>
10436 * system.h: Use __has_attribute to check whether the fallthrough
10437 attribute is supported.
10439 2016-09-26 Marek Polacek <polacek@redhat.com>
10441 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
10442 gimple_call_internal_p.
10443 * ipa-split.c (find_return_bb): Likewise.
10444 (execute_split_functions): Likewise.
10445 * omp-low.c (dump_oacc_loop_part): Likewise.
10446 (oacc_loop_xform_head_tail): Likewise.
10447 * predict.c (predict_loops): Likewise.
10448 * sanopt.c (pass_sanopt::execute): Likewise.
10449 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
10450 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
10451 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
10452 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
10453 (expand_ifn_va_arg): Likewise.
10454 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
10455 (optimize_mask_stores): Likewise.
10456 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
10457 (vect_transform_stmt): Likewise.
10458 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
10459 * tsan.c (instrument_memory_accesses): Likewise.
10461 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10462 Alexander Monakov <amonakov@ispras.ru>
10464 * regrename.c (rename_chains): Check
10465 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
10466 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
10467 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10469 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10471 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
10472 (s390_sched_score): Likewise.
10474 2016-09-26 Martin Liska <mliska@suse.cz>
10476 * doc/gcov.texi: Update program output of gcov tool.
10478 2016-09-26 Martin Liska <mliska@suse.cz>
10480 PR gcov-profile/23332
10481 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
10482 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
10483 * value-prof.c (dump_histogram_value): Do not handle
10484 HIST_TYPE_CONST_DELTA.
10485 (stream_in_histogram_value): Likewise.
10486 (gimple_find_values_to_profile): Likewise.
10487 * value-prof.h (enum hist_type): Likewise.
10489 2016-09-26 Martin Liska <mliska@suse.cz>
10491 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
10492 from default sanitize recover values.
10493 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
10494 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
10495 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
10497 * opts.c (finish_options): Do a generic loop over options
10498 that can be recovered.
10499 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
10501 (common_handle_option): Likewise.
10502 * opts.h: Declare can_recover to sanitizer_opts_s.
10504 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
10506 * target.def(elf_flags_numeric): Change documentation to present tense.
10507 * doc/tm.texi: Regenerate.
10509 2016-09-26 Marek Polacek <polacek@redhat.com>
10512 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
10513 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
10514 -Wno-switch-fallthrough.
10515 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
10516 (expand_builtin): Likewise.
10517 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
10518 * convert.c (convert_to_real_1): Likewise.
10519 (convert_to_integer_1): Likewise.
10520 * final.c (output_alternate_entry_point): Likewise.
10521 * genattrtab.c (make_canonical): Likewise.
10522 (write_test_expr): Likewise.
10523 * genpreds.c (validate_exp): Likewise.
10524 * gimple-ssa-strength-reduction.c
10525 (find_candidates_dom_walker::before_dom_children): Likewise.
10526 * godump.c (go_format_type): Likewise.
10527 * reload1.c (elimination_effects): Likewise.
10528 * resource.c (mark_referenced_resources): Likewise.
10529 (mark_set_resources): Likewise.
10530 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
10531 * varasm.c (output_addressed_constants): Likewise.
10533 2016-09-26 Marek Polacek <polacek@redhat.com>
10536 * common.opt (Wimplicit-fallthrough): New option.
10537 * doc/extend.texi: Document statement attributes and the fallthrough
10539 * doc/invoke.texi: Document -Wimplicit-fallthrough.
10540 * gimple.h (gimple_call_internal_p): New function.
10541 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
10542 (struct label_entry): New struct.
10543 (find_label_entry): New function.
10544 (case_label_p): New function.
10545 (collect_fallthrough_labels): New function.
10546 (last_stmt_in_scope): New function.
10547 (should_warn_for_implicit_fallthrough): New function.
10548 (warn_implicit_fallthrough_r): New function.
10549 (maybe_warn_implicit_fallthrough): New function.
10550 (expand_FALLTHROUGH_r): New function.
10551 (expand_FALLTHROUGH): New function.
10552 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
10553 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
10554 (gimplify_label_expr): New function.
10555 (gimplify_case_label_expr): Set location.
10556 (gimplify_expr): Call gimplify_label_expr.
10557 * internal-fn.c (expand_FALLTHROUGH): New function.
10558 * internal-fn.def (FALLTHROUGH): New internal function.
10559 * langhooks.c (lang_GNU_OBJC): New function.
10560 * langhooks.h (lang_GNU_OBJC): Declare.
10561 * system.h (gcc_fallthrough): Define.
10562 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
10563 * tree.h (FALLTHROUGH_LABEL_P): Define.
10565 2016-09-26 Richard Biener <rguenther@suse.de>
10567 * dwarf2out.c (stripattributes): Remove unused function.
10568 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
10569 Push dwarf_split_debug_info handling into init_sections_and_labels.
10570 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
10571 (DEBUG_MACRO_SECTION_FLAGS): Remove.
10572 (debug_macinfo_section_name): New global.
10573 (output_macinfo): Use debug_macinfo_section_name.
10574 (init_sections_and_labels): Split out section and label generation
10575 from dwarf2out_init. Set debug_macinfo_section_name.
10576 (dwarf2out_init): Move text section label generation and emission
10578 (dwarf2out_assembly_start): ... here.
10579 (dwarf2out_finish): Call init_sections_and_labels before DWARF
10582 2016-09-26 Richard Biener <rguenther@suse.de>
10585 * cgraphunit.c (analyze_functions): Before early removing
10586 global vars calls the late_global_decl debug handler mark
10587 the variable as readonly.
10589 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
10592 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
10593 (sh_rtx_costs): Handle SET of movt and movrt patterns.
10594 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
10595 declare new overloads.
10596 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
10599 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10601 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
10602 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
10604 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
10606 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
10607 * configure: Regenerate.
10609 2016-09-24 Marek Polacek <polacek@redhat.com>
10612 * doc/invoke.texi: Document -Wbool-operation.
10614 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10616 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
10617 * config/rs6000/rs6000.c (expand_block_compare): New function used by
10618 cmpmemsi pattern to do builtin expansion of memcmp ().
10619 (compute_current_alignment): Add helper function for
10620 expand_block_compare used to compute alignment as the compare proceeds.
10621 (select_block_compare_mode): Used by expand_block_compare to select
10622 the mode used for reading the next chunk of bytes in the compare.
10623 (do_load_for_compare): Used by expand_block_compare to emit the load
10624 insns for the compare.
10625 (rs6000_emit_dot_insn): Moved this function to avoid a forward
10626 reference from expand_block_compare ().
10627 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
10628 prototype for this function.
10629 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
10630 target option for controlling how much code inline expansion of
10631 memcmp() will be allowed to generate.
10633 2016-09-23 Jakub Jelinek <jakub@redhat.com>
10635 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
10636 hook_bool_mode_false, hook_bool_mode_true,
10637 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
10638 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
10639 hook_bool_const_rtx_insn_const_rtx_insn_true,
10640 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
10641 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
10642 hook_bool_const_tree_hwi_hwi_const_tree_false,
10643 hook_bool_const_tree_hwi_hwi_const_tree_true,
10644 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
10645 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
10646 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
10647 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
10648 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
10649 hook_bool_const_tree_true, hook_bool_tree_tree_false,
10650 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
10651 hook_bool_rtx_insn_true, hook_bool_rtx_false,
10652 hook_bool_uintp_uintp_false,
10653 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
10654 hook_rtx_tree_int_null, hook_uint_mode_0,
10655 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
10656 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
10657 hook_constcharptr_const_rtx_insn_null,
10658 hook_constcharptr_const_tree_const_tree_null,
10659 hook_constcharptr_int_const_tree_null,
10660 hook_constcharptr_int_const_tree_const_tree_null,
10661 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
10662 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
10663 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
10665 * vec.h (vNULL): Extend comment to say = vNULL initialization
10666 isn't needed for static vars.
10668 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
10669 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
10670 = vNULL initialization of file scope vec.
10671 * passes.c (pass_tab, enabled_pass_uid_range_tab,
10672 disabled_pass_uid_range_tab): Likewise.
10673 * haifa-sched.c (sched_luids, h_i_d): Likewise.
10674 * tree-chkp-opt.c (check_infos): Likewise.
10675 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
10677 * vec.h (vnull::operator vec): Add constexpr keyword for
10680 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
10682 PR tree-optimization/77654
10683 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
10684 to duplicate_ssa_name_ptr_info.
10686 2016-09-23 David Malcolm <dmalcolm@redhat.com>
10688 PR preprocessor/77672
10689 * input.c (selftest::test_lexer_string_locations_simple): Update
10690 test to expect location information of the terminator character
10691 at the location of the final closing quote.
10692 (selftest::test_lexer_string_locations_hex): Likewise.
10693 (selftest::test_lexer_string_locations_oct): Likewise.
10694 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
10695 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
10696 (selftest::test_lexer_string_locations_ucn4): Likewise.
10697 (selftest::test_lexer_string_locations_ucn8): Likewise.
10698 (selftest::test_lexer_string_locations_u8): Likewise.
10699 (selftest::test_lexer_string_locations_utf8_source): Likewise.
10700 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
10701 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
10702 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
10703 (selftest::test_lexer_string_locations_macro): Likewise.
10704 (selftest::test_lexer_string_locations_long_line): Likewise.
10706 2016-09-23 Richard Biener <rguenther@suse.de>
10708 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
10709 virtual definition to virtual use if the call devirtualizes
10710 to a const or pure function.
10711 (visit_use): Also visit calls we can devirtualize to a
10712 const or pure function.
10714 2016-09-23 Richard Biener <rguenther@suse.de>
10716 PR tree-optimization/77697
10717 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
10718 signal error if we have sth ternary or unhandled.
10720 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10722 * config/arm/arm_neon.h (vabd_f16): New.
10756 (vcvt_f16_s16): New.
10757 (vcvt_f16_u16): New.
10758 (vcvt_s16_f16): New.
10759 (vcvt_u16_f16): New.
10760 (vcvtq_f16_s16): New.
10761 (vcvtq_f16_u16): New.
10762 (vcvtq_s16_f16): New.
10763 (vcvtq_u16_f16): New.
10764 (vcvta_s16_f16): New.
10765 (vcvta_u16_f16): New.
10766 (vcvtaq_s16_f16): New.
10767 (vcvtaq_u16_f16): New.
10768 (vcvtm_s16_f16): New.
10769 (vcvtm_u16_f16): New.
10770 (vcvtmq_s16_f16): New.
10771 (vcvtmq_u16_f16): New.
10772 (vcvtn_s16_f16): New.
10773 (vcvtn_u16_f16): New.
10774 (vcvtnq_s16_f16): New.
10775 (vcvtnq_u16_f16): New.
10776 (vcvtp_s16_f16): New.
10777 (vcvtp_u16_f16): New.
10778 (vcvtpq_s16_f16): New.
10779 (vcvtpq_u16_f16): New.
10780 (vcvt_n_f16_s16): New.
10781 (vcvt_n_f16_u16): New.
10782 (vcvtq_n_f16_s16): New.
10783 (vcvtq_n_f16_u16): New.
10784 (vcvt_n_s16_f16): New.
10785 (vcvt_n_u16_f16): New.
10786 (vcvtq_n_s16_f16): New.
10787 (vcvtq_n_u16_f16): New.
10795 (vmaxnmq_f16): New.
10799 (vminnmq_f16): New.
10801 (vmul_lane_f16): New.
10804 (vmulq_lane_f16): New.
10805 (vmulq_n_f16): New.
10812 (vrecpeq_f16): New.
10825 (vrsqrte_f16): New.
10826 (vrsqrteq_f16): New.
10828 (vrecpsq_f16): New.
10829 (vrsqrts_f16): New.
10830 (vrsqrtsq_f16): New.
10834 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10836 * config.gcc (extra_headers): Add arm_fp16.h
10837 * config/arm/arm_fp16.h: New.
10838 * config/arm/arm_neon.h: Include "arm_fp16.h".
10840 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10842 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
10844 (vmulf): New (v8hf, v4hf variants).
10845 (vfma): New (v8hf, v4hf variants).
10846 (vfms): New (v8hf, v4hf variants).
10847 (vsub): New (v8hf, v4hf variants).
10848 (vcage): New (v8hf, v4hf variants).
10849 (vcagt): New (v8hf, v4hf variants).
10850 (vcale): New (v8hf, v4hf variants).
10851 (vcalt): New (v8hf, v4hf variants).
10852 (vceq): New (v8hf, v4hf variants).
10853 (vcgt): New (v8hf, v4hf variants).
10854 (vcge): New (v8hf, v4hf variants).
10855 (vcle): New (v8hf, v4hf variants).
10856 (vclt): New (v8hf, v4hf variants).
10857 (vceqz): New (v8hf, v4hf variants).
10858 (vcgez): New (v8hf, v4hf variants).
10859 (vcgtz): New (v8hf, v4hf variants).
10860 (vcltz): New (v8hf, v4hf variants).
10861 (vclez): New (v8hf, v4hf variants).
10862 (vabd): New (v8hf, v4hf variants).
10863 (vmaxf): New (v8hf, v4hf variants).
10864 (vmaxnm): New (v8hf, v4hf variants).
10865 (vminf): New (v8hf, v4hf variants).
10866 (vminnm): New (v8hf, v4hf variants).
10867 (vpmaxf): New (v4hf variant).
10868 (vpminf): New (v4hf variant).
10869 (vpadd): New (v4hf variant).
10870 (vrecps): New (v8hf, v4hf variants).
10871 (vrsqrts): New (v8hf, v4hf variants).
10872 (vabs): New (v8hf, v4hf variants).
10873 (vneg): New (v8hf, v4hf variants).
10874 (vrecpe): New (v8hf, v4hf variants).
10875 (vrnd): New (v8hf, v4hf variants).
10876 (vrnda): New (v8hf, v4hf variants).
10877 (vrndm): New (v8hf, v4hf variants).
10878 (vrndn): New (v8hf, v4hf variants).
10879 (vrndp): New (v8hf, v4hf variants).
10880 (vrndx): New (v8hf, v4hf variants).
10881 (vrsqrte): New (v8hf, v4hf variants).
10882 (vmul_lane): Add v4hf and v8hf variants.
10883 (vmul_n): Add v4hf and v8hf variants.
10884 (vext): New (v8hf, v4hf variants).
10885 (vcvts): New (v8hi, v4hi variants).
10886 (vcvts): New (v8hf, v4hf variants).
10887 (vcvtu): New (v8hi, v4hi variants).
10888 (vcvtu): New (v8hf, v4hf variants).
10889 (vcvts_n): New (v8hf, v4hf variants).
10890 (vcvtu_n): New (v8hi, v4hi variants).
10891 (vcvts_n): New (v8hi, v4hi variants).
10892 (vcvtu_n): New (v8hf, v4hf variants).
10893 (vbsl): New (v8hf, v4hf variants).
10894 (vcvtas): New (v8hf, v4hf variants).
10895 (vcvtau): New (v8hf, v4hf variants).
10896 (vcvtms): New (v8hf, v4hf variants).
10897 (vcvtmu): New (v8hf, v4hf variants).
10898 (vcvtns): New (v8hf, v4hf variants).
10899 (vcvtnu): New (v8hf, v4hf variants).
10900 (vcvtps): New (v8hf, v4hf variants).
10901 (vcvtpu): New (v8hf, v4hf variants).
10903 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10905 * config/arm/arm-builtins.c (hf_UP): New.
10907 (vfp_builtin_data): New. Update comment.
10908 (enum arm_builtins): Include "arm_vfp_builtins.def".
10909 (ARM_BUILTIN_VFP_PATTERN_START): New.
10910 (arm_init_vfp_builtins): New.
10911 (arm_init_builtins): Add arm_init_vfp_builtins.
10912 (arm_expand_vfp_builtin): New.
10913 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
10915 * config/arm/arm_vfp_builtins.def: New file.
10916 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
10917 (arm-builtins.o): Likewise.
10919 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10922 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
10923 from constant while creating value range.
10925 2016-09-23 Renlin Li <renlin.li@arm.com>
10927 * ira.c (ira): Move ira_use_lra_p initialization code to ...
10928 (ira_init_once): Here.
10930 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
10931 Jakub Jelinek <jakub@redhat.com>
10933 * hooks.h (hook_uint_uintp_false): Rename to...
10934 (hook_bool_uint_uintp_false): ... this.
10935 * hooks.c (hook_uint_uintp_false): Rename to...
10936 (hook_bool_uint_uintp_false): ... this.
10937 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
10938 instead of hook_uint_uintp_false.
10940 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10942 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
10943 (arm_init_builtins): Move body of a loop to the standalone
10944 function arm_init_neon_builtin.
10945 (arm_expand_neon_builtin_1): New. Update comment. Function body
10946 moved from arm_neon_builtin with some white-space fixes.
10947 (arm_expand_neon_builtin): Move code into the standalone function
10948 arm_expand_neon_builtin_1.
10950 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10952 * config/arm/iterators.md (VCVTHI): New.
10953 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
10954 (NEON_VAGLTE): New.
10955 (VFM_LANE_AS): New.
10957 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
10958 (V_HALF): Add V4HF. Fix white-space.
10959 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
10960 (V_s_elem): Likewise.
10961 (V_sz_elem): Fix white-space.
10962 (V_elem_ch): Likewise.
10964 (scalar_mul_constraint): Add V8HF and V4HF.
10965 (Is_float_mode): Fix white-space.
10966 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
10967 (q): Add HF. Fix white-space.
10970 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
10971 (neon_vfm_lane_as): New.
10972 * config/arm/neon.md (add<mode>3_fp16): New.
10973 (sub<mode>3_fp16): New.
10974 (mul<mode>3add<mode>_neon): New.
10975 (fma<VH:mode>4_intrinsic): New.
10976 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
10977 (fmsub<VH:mode>4_intrinsic): New.
10978 (<absneg_str><mode>2): New.
10979 (neon_v<absneg_str><mode>): New.
10980 (neon_v<fp16_rnd_str><mode>): New.
10981 (neon_vrsqrte<mode>): New.
10982 (neon_vpaddv4hf): New.
10983 (neon_vadd<mode>): New.
10984 (neon_vsub<mode>): New.
10985 (neon_vmulf<mode>): New.
10986 (neon_vfma<VH:mode>): New.
10987 (neon_vfms<VH:mode>): New.
10988 (neon_vc<cmp_op><mode>): New.
10989 (neon_vc<cmp_op><mode>_fp16insn): New
10990 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
10991 (neon_vca<cmp_op><mode>): New.
10992 (neon_vca<cmp_op><mode>_fp16insn): New.
10993 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
10994 (neon_vc<cmp_op>z<mode>): New.
10995 (neon_vabd<mode>): New.
10996 (neon_v<maxmin>f<mode>): New.
10997 (neon_vp<maxmin>fv4hf: New.
10998 (neon_<fmaxmin_op><mode>): New.
10999 (neon_vrecps<mode>): New.
11000 (neon_vrsqrts<mode>): New.
11001 (neon_vrecpe<mode>): New (VH variant).
11002 (neon_vdup_lane<mode>_internal): New.
11003 (neon_vdup_lane<mode>): New.
11004 (neon_vcvt<sup><mode>): New (VCVTHI variant).
11005 (neon_vcvt<sup><mode>): New (VH variant).
11006 (neon_vcvt<sup>_n<mode>): New (VH variant).
11007 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
11008 (neon_vcvt<vcvth_op><sup><mode>): New.
11009 (neon_vmul_lane<mode>): New.
11010 (neon_vmul_n<mode>): New.
11011 * config/arm/unspecs.md (UNSPEC_VCALE): New
11012 (UNSPEC_VCALT): New.
11013 (UNSPEC_VFMA_LANE): New.
11014 (UNSPECS_VFMS_LANE): New.
11016 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11018 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
11019 ("*extzv<mode><clobbercc_or_nocc>"):
11020 Correct a typo in a comment.
11022 ("*insv<mode>_zEC12", "*insv<mode>_z10")
11023 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
11024 ("*insv<mode>_zEC12_appendbitsleft")
11025 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
11026 ("*insv<mode>_z10_appendbitsleft"): Ditto.
11027 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
11028 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
11029 Provide pattern with operands switched.
11030 ("*pre_z10_extv<mode>"):
11031 Use new subst patterns.
11032 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
11033 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
11034 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
11035 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
11036 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
11037 ("*<risbg_n>_sidi_ior_and_lshiftrt")
11038 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
11040 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
11041 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
11042 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
11044 ("SINT"): New mode_iterator with SI, HI, QI.
11045 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
11046 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
11049 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11051 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
11052 new interface of s390_contiguous_bitmask_p.
11053 ("contiguous_bitmask_nowrap_operand"): New predicate.
11054 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
11055 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
11056 of s390_contiguous_bitmask_p.
11057 ("NxxDw"): Rename NxxDq constraint to NxxDw.
11058 ("NxxSw"): New constraint.
11059 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
11060 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
11062 (s390_contiguous_bitmask_nowrap_p): Export.
11063 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
11064 former s390_contiguous_bitmask_p.
11065 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
11066 detect contiguous bit ranges with wraparound. Change signature to
11067 return START and END position instead of POS and LENGTH.
11068 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
11069 ranges with wraparound.
11070 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
11071 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
11072 Adapt to new signature of s390_contiguous_bitmask_p.
11074 2016-09-23 Bin Cheng <bin.cheng@arm.com>
11076 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
11077 (create_intersect_range_checks): New.
11078 (vect_create_cond_for_alias_checks): Call above function.
11080 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11082 * config/arm/iterators.md (Code iterators): Fix some white-space
11086 (FCVT): Moved from vfp.md.
11087 (VCVT_HF_US_N): New.
11088 (VCVT_SI_US_N): New.
11093 (FCVTI32typename): Moved from vfp.md.
11094 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
11095 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
11096 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
11097 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
11098 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
11100 (fp16_rnd_str): New.
11101 (fp16_rnd_insn): New.
11102 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
11103 (UNSPEC_VCVT_HF_U_N): New.
11104 (UNSPEC_VCVT_SI_S_N): New.
11105 (UNSPEC_VCVT_SI_U_N): New.
11106 (UNSPEC_VCVTH_S): New.
11107 (UNSPEC_VCVTH_U): New.
11108 (UNSPEC_VCVTA_S): New.
11109 (UNSPEC_VCVTA_U): New.
11110 (UNSPEC_VCVTM_S): New.
11111 (UNSPEC_VCVTM_U): New.
11112 (UNSPEC_VCVTN_S): New.
11113 (UNSPEC_VCVTN_U): New.
11114 (UNSPEC_VCVTP_S): New.
11115 (UNSPEC_VCVTP_U): New.
11116 (UNSPEC_VCVTP_S): New.
11117 (UNSPEC_VCVTP_U): New.
11118 (UNSPEC_VRND): New.
11119 (UNSPEC_VRNDA): New.
11120 (UNSPEC_VRNDI): New.
11121 (UNSPEC_VRNDM): New.
11122 (UNSPEC_VRNDN): New.
11123 (UNSPEC_VRNDP): New.
11124 (UNSPEC_VRNDX): New.
11125 * config/arm/vfp.md (<absneg_str>hf2): New.
11126 (neon_vabshf): New.
11127 (neon_v<fp16_rnd_str>hf): New.
11128 (neon_vrndihf): New.
11133 (*mulsf3neghf_vfp): New.
11134 (*negmulhf3_vfp): New.
11135 (*mulsf3addhf_vfp): New.
11136 (*mulhf3subhf_vfp): New.
11137 (*mulhf3neghfaddhf_vfp): New.
11138 (*mulhf3neghfsubhf_vfp): New.
11140 (neon_vfmahf): New.
11141 (fmsubhf4_fp16): New.
11142 (neon_vfmshf): New.
11145 (neon_vsqrthf): New.
11146 (neon_vrsqrtshf): New.
11147 (FCVT): Move to iterators.md.
11148 (FCVTI32typename): Likewise.
11149 (neon_vcvth<sup>hf): New.
11150 (neon_vcvth<sup>si): New.
11151 (neon_vcvth<sup>_nhf_unspec): New.
11152 (neon_vcvth<sup>_nhf): New.
11153 (neon_vcvth<sup>_nsi_unspec): New.
11154 (neon_vcvth<sup>_nsi): New.
11155 (neon_vcvt<vcvth_op>h<sup>si): New.
11156 (neon_<fmaxmin_op>hf): New.
11158 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11160 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
11161 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
11162 ("*insv<mode>_zEC12_appendbitsleft")
11163 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
11164 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
11166 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11168 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
11169 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
11170 construct values without normalization.
11171 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
11172 static local lhs_ops to vNULL.
11174 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11175 Jiong Wang <jiong.wang@arm.com>
11177 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
11178 available when FP16 instructions are available.
11179 (output_move_vfp): Add support for 16-bit data moves.
11180 (arm_validize_comparison): Fix some white-space. Support HFmode
11181 by conversion to SFmode.
11182 * config/arm/arm.md (truncdfhf2): Fix a comment.
11183 (extendhfdf2): Likewise.
11185 (movsicc): Fix some white-space.
11187 (movsfcc): Fix some white-space.
11189 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
11190 instructions are available.
11191 (*thumb2_movhi_vfp): Likewise.
11192 (*arm_movhi_fp16): New.
11193 (*thumb2_movhi_fp16): New.
11194 (*movhf_vfp_fp16): New.
11195 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
11196 (*movhf_vfp): Likewise.
11197 (extendhfsf2): Enable when VFP FP16 instructions are available.
11198 (truncsfhf2): Enable when VFP FP16 instructions are available.
11200 2016-09-23 Martin Liska <mliska@suse.cz>
11202 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
11204 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11206 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
11208 (arm_evpc_neon_vtrn): Likewise.
11209 (arm_evpc_neon_vrev): Likewise.
11210 (arm_evpc_neon_vext): Likewise.
11211 * config/arm/arm_neon.h (vbsl_f16): New.
11214 (vdupq_n_f16): New.
11215 (vdup_lane_f16): New.
11216 (vdupq_lane_f16): New.
11220 (vmovq_n_f16): New.
11222 (vrev64q_f16): New.
11229 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
11230 (vdup_lane): New (v8hf, v4hf variants).
11231 (vext): New (v8hf, v4hf variants).
11232 (vbsl): New (v8hf, v4hf variants).
11233 * config/arm/iterators.md (VDQWH): New.
11235 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
11236 (Scalar_mul_8_16): Fix white-space.
11237 (Is_d_reg): Add V4HF and V8HF.
11238 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
11239 (neon_vdup_lane<mode>): New.
11240 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
11241 (*neon_vtrn<mode>_insn): Likewise.
11242 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
11243 (*neon_vzip<mode>_insn): Likewise
11244 (neon_vuzp<mode>_internal): Likewise.
11245 (*neon_vuzp<mode>_insn): Likewise
11246 * config/arm/vec-common.md (vec_perm_const<mode>): New.
11248 2016-09-23 Jiong Wang <jiong.wang@arm.com>
11249 Matthew Wahab <matthew.wahab@arm.com>
11251 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
11252 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
11253 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
11254 available. Also fix some white-space.
11255 * config/arm/vfp.md (*arm_movhi_vfp): New.
11256 (*thumb2_movhi_vfp): New.
11258 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11260 * config/arm/arm-c.c (arm_cpu_builtins): Define
11261 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
11262 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
11264 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11266 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
11267 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
11268 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
11269 arm_v8_2a_fp16_neon_hw.
11270 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
11273 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11275 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
11276 arm_fp16_alternative_ok and arm_fp16_none_ok.
11278 2016-09-23 Martin Liska <mliska@suse.cz>
11280 * ipa-icf.c (sem_variable::merge): Replace adress with address.
11282 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11284 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
11285 ("armv8.2-a"): New.
11286 ("armv8.2-a+fp16"): New.
11287 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
11288 (FL2_FP16INST): New.
11289 (FL2_FOR_ARCH8_2A): New.
11290 * config/arm/arm-tables.opt: Regenerate.
11291 * config/arm/arm.c (arm_arch8_2): New.
11292 (arm_fp16_inst): New.
11293 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
11294 for incompatible fp16-format settings.
11295 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
11296 (TARGET_NEON_FP16INST): New.
11297 (arm_arch8_2): Declare.
11298 (arm_fp16_inst): Declare.
11299 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
11300 march=armv8.2-a and march=armv8.2-a+fp16.
11301 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
11302 and armv8.2-a+fp16.
11303 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
11304 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
11306 2016-09-23 Martin Liska <mliska@suse.cz>
11308 * doc/extend.texi: Remove fused-madd from i386 target options.
11310 2016-09-23 Martin Liska <mliska@suse.cz>
11312 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11315 2016-09-23 Martin Liska <mliska@suse.cz>
11317 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11320 2016-09-23 Martin Liska <mliska@suse.cz>
11323 * config/i386/i386.c (ix86_option_override_internal): Change
11324 signature and return false when there's an error related to
11326 (release_options_strings): New function.
11327 (ix86_valid_target_attribute_tree): Call the function.
11329 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11331 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
11332 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
11333 (gen_hsa_ctor_assignment): Likewise.
11334 * print-tree.c (print_node): Likewise.
11335 * tree-dump.c (dequeue_and_dump): Likewise.
11336 * tree-sra.c (sra_modify_constructor_assign): Likewise.
11337 * expr.c (store_constructor): Likewise.
11338 * fold-const.c (operand_equal_p): Likewise.
11339 * tree-pretty-print.c (dump_generic_node): Likewise.
11340 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
11341 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
11343 2016-09-23 Richard Biener <rguenther@suse.de>
11345 * hooks.h (hook_uint_uintp_false): Declare.
11347 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11349 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
11350 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
11352 2016-09-22 Martin Sebor <msebor@redhat.com>
11355 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
11356 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
11357 (target_int_min): Correct computation.
11358 (format_integer): Use long long as the argument for the ll length
11360 (format_floating): Use target_int_max().
11361 (get_string_length): Same.
11362 (format_string): Avoid setting the bounded flag for strings
11364 (try_substitute_return_value): Avoid setting range info when
11365 the result isn't bounded.
11366 * varasm.c (assemble_name): Increase buffer size.
11368 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
11369 Terry Guo <terry.guo@arm.com>
11371 * target.def (elf_flags_numeric): New target hook.
11372 * targhooks.h (default_asm_elf_flags_numeric): New.
11373 * varasm.c (default_asm_elf_flags_numeric): New.
11374 (default_elf_asm_named_section): Use new target hook.
11375 * config/arm/arm.opt (mpure-code): New.
11376 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
11377 * config/arm/arm.c (arm_asm_init_sections): Add section
11378 attribute to default text section if -mpure-code.
11379 (arm_option_check_internal): Diagnose use of option with
11380 non supported targets and/or options.
11381 (arm_asm_elf_flags_numeric): New.
11382 (arm_function_section): New.
11383 (arm_elf_section_type_flags): New.
11384 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
11386 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
11387 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
11389 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
11391 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
11393 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11395 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
11396 * rtl.h: Adjust prototype.
11398 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11400 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
11401 (prev_active_insn): Likewise.
11402 (active_insn_p): Likewise.
11403 * rtl.h: Adjust prototypes.
11404 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
11405 * config/arc/arc.md: Likewise.
11406 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
11407 (branch_needs_nop_p): Likewise.
11408 (use_skip_p): Likewise.
11409 * config/sh/sh.c (gen_block_redirect): Likewise.
11410 (split_branches): Likewise.
11411 * reorg.c (optimize_skip): Likewise.
11412 (fill_simple_delay_slots): Likewise.
11413 (fill_slots_from_thread): Likewise.
11414 (relax_delay_slots): Likewise.
11415 * resource.c (mark_target_live_regs): Likewise.
11417 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11419 * config/cris/cris.c (cris_asm_output_case_end): Change argument
11420 type to rtx_insn *.
11421 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
11422 (prev_nonnote_nondebug_insn): Likewise.
11423 * config/cris/cris-protos.h: Adjust prototype.
11425 * jump.c (rtx_renumbered_equal_p): Adjust.
11427 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11429 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
11430 * rtl.h: Adjust prototype.
11431 * config/sh/sh.md: Adjust.
11432 * dwarf2out.c (add_var_loc_to_decl): Likewise.
11434 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11436 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
11437 (prev_nondebug_insn): Likewise.
11438 * loop-doloop.c (doloop_condition_get): Likewise.
11439 * rtl.h: Adjust prototype.
11440 * cfgloop.h: Likewise.
11442 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11444 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
11445 (prev_nonnote_insn): Likewise.
11446 * jump.c (reversed_comparison_code_parts): Likewise.
11447 (reversed_comparison): Likewise.
11448 * rtl.h: Adjust prototypes.
11449 * config/arc/arc.md: Adjust.
11450 * cse.c (find_comparison_args): Likewise.
11451 * reorg.c (redundant_insn): Change return type to rtx_insn *.
11452 (fix_reg_dead_note): Change argument type to rtx_insn *.
11453 (delete_prior_computation): Likewise.
11454 (delete_computation): Likewise.
11455 (fill_slots_from_thread): Adjust.
11456 (relax_delay_slots): Likewise.
11457 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11458 (simplify_relational_operation_1): Likewise.
11459 (simplify_ternary_operation): Likewise.
11461 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11463 * config/arc/arc-protos.h (arc_label_align): Change type of
11464 variables from rtx to rtx_insn *.
11465 * config/arc/arc.c (arc_label_align): Likewise.
11466 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
11467 * config/bfin/bfin.c (workaround_speculation): Likewise.
11468 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
11469 (find_last_same_clock): Likewise.
11470 (reorg_split_calls): Likewise.
11471 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
11472 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
11473 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
11474 (same_cmp_following_p): Likewise.
11475 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
11476 (same_cmp_following_p): Likwise.
11477 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
11478 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
11479 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
11480 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
11481 (rl78_alloc_physical_registers_cmp): Likewise.
11482 (rl78_alloc_physical_registers_umul): Likewise.
11483 (rl78_calculate_death_notes): Likewise.
11484 * config/s390/s390-protos.h (s390_label_align): Likewise.
11485 * config/s390/s390.c (s390_label_align): Likewise.
11486 * config/sh/sh.c (barrier_align): Likewise.
11487 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
11488 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
11489 (emit_cbcond_nop): Likewise.
11491 2016-09-22 Martin Liska <mliska@suse.cz>
11494 * ipa-icf.c (sem_variable::merge): Yield merge operation if
11495 alias address matters, not necessarily address of original.
11497 2016-09-22 Richard Biener <rguenther@suse.de>
11499 PR middle-end/77697
11500 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
11503 2016-09-22 Richard Biener <rguenther@suse.de>
11505 PR middle-end/77677
11506 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
11507 from constant folding results.
11508 (gimple_resimplify2): Likewise.
11509 (gimple_resimplify3): Likewise.
11511 2016-09-22 Richard Biener <rguenther@suse.de>
11513 PR middle-end/77678
11514 * expr.c (expand_expr_real_1): Guard array access against negative
11517 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11519 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
11521 (format_floating): Likewise.
11523 2016-09-22 Jakub Jelinek <jakub@redhat.com>
11526 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
11527 for all IFN_GOMP_SIMD_* internal fns, not just for
11528 IFN_GOMP_SIMD_ORDERED_*.
11530 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11533 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
11534 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
11535 instructions when you want to invert the test.
11536 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
11537 correct order for XXSEL.
11538 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
11539 for using XSCMP{EQ,GT,GE}DP.
11541 2016-09-21 David Malcolm <dmalcolm@redhat.com>
11543 * genconstants.c (main): Introduce noop_reader and convert call
11544 to read_md_files to a method call.
11545 * genenums.c (main): Likewise.
11546 * genmddeps.c (main): Likewise.
11547 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
11548 rtx_reader_ptr->get_top_level_filename ().
11549 (write_tm_preds_h): Likewise.
11550 (write_insn_preds_c): Likewise.
11551 * gensupport.c (class gen_reader): New subclass of rtx_reader.
11552 (rtx_handle_directive): Convert to...
11553 (gen_reader::handle_unknown_directive): ...this.
11554 (init_rtx_reader_args_cb): Convert return type from bool to
11555 rtx_reader *. Create a gen_reader instance, using it for the
11556 call to read_md_files. Return it if no errors occur.
11557 (init_rtx_reader_args): Convert return type from bool to
11559 * gensupport.h (init_rtx_reader_args_cb): Likewise.
11560 (init_rtx_reader_args_cb): Likewise.
11561 * read-md.c (struct file_name_list): Move to class rtx_reader.
11562 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
11563 (read_md_filename): Delete in favor of
11564 rtx_reader::m_read_md_filename.
11565 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
11566 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
11567 (base_dir): Delete in favor of rtx_reader::m_base_dir.
11568 (first_dir_md_include): Delete in favor of
11569 rtx_reader::m_first_dir_md_include.
11570 (last_dir_md_include_ptr): Delete in favor of
11571 rtx_reader::m_last_dir_md_include_ptr.
11572 (max_include_len): Delete.
11573 (rtx_reader_ptr): New.
11574 (fatal_with_file_and_line): Use get_filename and get_lineno
11575 accessors of rtx_reader_ptr.
11576 (require_char_ws): Likewise.
11577 (rtx_reader::read_char): New method, based on ::read_char.
11578 (rtx_reader::unread_char): New method, based on ::unread_char.
11579 (read_escape): Use get_filename and get_lineno accessors of
11581 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
11582 (read_string): Use get_filename and get_lineno accessors of
11584 (rtx_reader::rtx_reader): New ctor.
11585 (rtx_reader::~rtx_reader): New dtor.
11586 (handle_include): Convert from a function to...
11587 (rtx_reader::handle_include): ...this method, converting
11588 handle_directive from a callback to a virtual function.
11589 (handle_file): Likewise, converting to...
11590 (rtx_reader::handle_file): ...this method.
11591 (handle_toplevel_file): Likewise, converting to...
11592 (rtx_reader::handle_toplevel_file): ...this method.
11593 (rtx_reader::get_current_location): New method.
11594 (parse_include): Convert from a function to...
11595 (rtx_reader::add_include_path): ...this method, dropping redundant
11596 update to unused max_include_len.
11597 (read_md_files): Convert from a function to...
11598 (rtx_reader::read_md_files): ...this method, converting
11599 handle_directive from a callback to a virtual function.
11600 (noop_reader::handle_unknown_directive): New method.
11601 * read-md.h (directive_handler_t): Delete this typedef.
11602 (in_fname): Delete.
11603 (read_md_file): Delete.
11604 (read_md_lineno): Delete.
11605 (read_md_filename): Delete.
11606 (class rtx_reader): New class.
11607 (rtx_reader_ptr): New decl.
11608 (class noop_reader): New subclass of rtx_reader.
11609 (read_char): Reimplement in terms of rtx_reader::read_char.
11610 (unread_char): Reimplement in terms of rtx_reader::unread_char.
11611 (read_md_files): Delete.
11612 * read-rtl.c (read_rtx_code): Update for deletion of globals
11613 read_md_filename and read_md_lineno.
11615 2016-09-21 Jason Merrill <jason@redhat.com>
11617 * input.h (from_macro_definition_at): New.
11619 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
11621 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
11623 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11625 PR tree-optimization/77550
11626 * tree-vect-stmts.c (create_array_ref): Change parameters.
11627 (get_group_alias_ptr_type): New function.
11628 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
11630 2016-09-21 Marek Polacek <polacek@redhat.com>
11632 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
11633 Add falls through comment.
11635 2016-09-21 Richard Biener <rguenther@suse.de>
11637 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
11638 (replace_child): Likewise.
11639 (remove_child_TAG): Adjust.
11640 (move_marked_base_types): Likewise.
11641 (prune_unused_types_prune): Clear die_sib of removed children.
11643 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
11646 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
11647 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
11649 2016-09-21 Richard Biener <rguenther@suse.de>
11651 PR tree-optimization/77648
11652 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
11654 (make_transitive_closure_constraints): Adjust comment.
11655 (make_any_offset_constraints): New function.
11656 (handle_rhs_call): Make sure to first expand a pointer to all
11657 subfields before transitively closing it.
11658 (handle_const_call): Likewise. Properly expand returned
11660 (handle_pure_call): Likewise.
11662 2016-09-21 Richard Biener <rguenther@suse.de>
11663 Jakub Jelinek <jakub@redhat.com>
11665 PR tree-optimization/77621
11666 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
11667 group at non-vectorizable stmts.
11669 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11671 PR tree-optimization/72835
11672 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
11673 (make_new_ssa_for_all_defs): Likewise.
11674 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
11676 2016-09-20 Martin Sebor <msebor@redhat.com>
11678 PR middle-end/49905
11679 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
11680 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
11681 * config/linux.c (gnu_libc_printf_pointer_format): New function.
11682 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
11683 * config/sol2.c (solaris_printf_pointer_format): New function.
11684 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
11686 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
11687 * doc/tm.texi: Regenerate.
11688 * gimple-fold.h (get_range_strlen): New function.
11689 (get_maxval_strlen): Declare existing function.
11690 * gimple-fold.c (get_range_strlen): Add arguments and compute both
11691 maximum and minimum.
11692 (get_range_strlen): Define overload.
11693 (get_maxval_strlen): Adjust.
11694 * gimple-ssa-sprintf.c: New file and pass.
11695 * passes.def (pass_sprintf_length): Add new pass.
11696 * targhooks.h (default_printf_pointer_format): Declare new function.
11697 (gnu_libc_printf_pointer_format): Same.
11698 (solaris_libc_printf_pointer_format): Same.
11699 * targhooks.c (default_printf_pointer_format): Define new function.
11700 * tree-pass.h (make_pass_sprintf_length): Declare new function.
11701 * print-tree.c: Increase buffer size.
11703 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11705 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
11707 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11709 * common.opt: New option -fipa-vrp.
11710 * ipa-cp.c (ipa_get_vr_lat): New.
11711 (ipcp_vr_lattice::print): Likewise.
11712 (print_all_lattices): Call ipcp_vr_lattice::print.
11713 (ipcp_vr_lattice::meet_with): New.
11714 (ipcp_vr_lattice::meet_with_1): Likewise.
11715 (ipcp_vr_lattice::top_p): Likewise.
11716 (ipcp_vr_lattice::bottom_p): Likewsie.
11717 (ipcp_vr_lattice::set_to_bottom): Likewise.
11718 (set_all_contains_variable): Call VR set_to_bottom.
11719 (initialize_node_lattices): Init VR lattices.
11720 (propagate_vr_accross_jump_function): New.
11721 (propagate_constants_accross_call): Call
11722 propagate_vr_accross_jump_function.
11723 (ipcp_store_vr_results): New.
11724 (ipcp_driver): Handle VR.
11725 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
11726 (ipa_set_jf_unknown): Likewise.
11727 (ipa_compute_jump_functions_for_edge): Likewise.
11728 (ipa_node_params_t::duplicate): Likewise.
11729 (ipa_write_jump_function): Likewise.
11730 (ipa_read_jump_function): Likewise.
11731 (write_ipcp_transformation_info): Likewise.
11732 (read_ipcp_transformation_info): Likewise.
11733 (ipcp_update_vr): New.
11734 (ipcp_transform_function): Handle VR.
11735 * ipa-prop.h (struct ipa_vr): New.
11736 * cgraph.c: Include tree-vrp.h.
11737 * cgraphunit.c: Likewise.
11738 * ipa-utils.c: Likewise.
11740 * opts.c: Likewise.
11741 * toplev.c: Likewise.
11742 * ipa-devirt.c: Likewise.
11743 * ipa-inline-transform.c: Likewise.
11744 * ipa-inline.c: Likewise.
11745 * ipa-profile.c: Likewise.
11747 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11749 * doc/invoke.texi: Document -fdump-tree-evrp.
11750 * passes.def: Define new pass_early_vrp.
11751 * timevar.def: Define new TV_TREE_EARLY_VRP.
11752 * tree-pass.h (make_pass_early_vrp): New.
11753 * tree-ssa-propagate.c: Make replace_uses_in non static.
11754 * tree-ssa-propagate.h: Export replace_uses_in.
11755 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
11756 (extract_range_from_assert): Factor out
11757 extract_range_for_var_from_comparison_expr.
11758 (vrp_initialize_lattice): New.
11759 (vrp_initialize): Factor out vrp_initialize_lattice.
11760 (vrp_valueize): Fix it to reject complex value ranges.
11761 (vrp_free_lattice): New.
11762 (evrp_dom_walker::before_dom_children): Likewise.
11763 (evrp_dom_walker::after_dom_children): Likewise.
11764 (evrp_dom_walker::push_value_range): Likewise.
11765 (evrp_dom_walker::pop_value_range): Likewise.
11766 (execute_early_vrp): Likewise.
11767 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
11768 (make_pass_early_vrp): New.
11770 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
11772 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
11773 instead of exact_log2.
11775 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
11778 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
11779 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
11780 (ix86_add_stmt_cost): Penalize DFmode vector operations
11781 for !TARGET_VECTORIZE_DOUBLE.
11783 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
11785 * doc/invoke.texi (Warning Options): Simplify language.
11786 (Optimize Options): Complete sentence.
11788 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
11790 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
11793 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
11796 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
11797 inits on power8 and above, use the VMRGEW instruction instead of a
11800 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
11801 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
11804 2016-09-20 Tamar Christina <tamar.christina@arm.com>
11806 * config/aarch64/arm_neon.h
11807 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
11808 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
11809 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
11811 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
11813 * config/var/vax.h (ELIMINABLE_REGS): Define.
11814 (INITIAL_ELIMINATION_OFFSET): Define.
11816 2016-09-20 Jakub Jelinek <jakub@redhat.com>
11818 PR middle-end/77624
11819 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
11820 cast to void * if the cast is from some other pointer type.
11822 2016-09-20 Richard Biener <rguenther@suse.de>
11824 PR tree-optimization/77646
11825 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
11828 2016-09-20 Tamar Christina <tamar.christina@arm.com>
11830 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
11831 attributes to all inlined functions and make them extern.
11833 2016-09-20 Richard Biener <rguenther@suse.de>
11835 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
11837 * debug.c (do_nothing_debug_hooks): Adjust.
11838 * dbxout.c (dbx_debug_hooks): Likewise.
11839 * sdbout.c (sdb_debug_hooks): Likewise.
11840 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
11841 (dwarf2out_finish): Move producer, filename and
11842 path annotation ...
11843 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
11844 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
11846 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
11849 * doc/invoke.texi: Document -Wint-in-bool-context.
11851 PR middle-end/77421
11852 * dwarf2out.c (output_loc_operands): Fix an assertion.
11854 2016-09-19 Joseph Myers <joseph@codesourcery.com>
11856 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
11857 (CR_DECIMAL_DIG): New macro.
11859 2016-09-19 Joseph Myers <joseph@codesourcery.com>
11861 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
11864 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
11866 PR rtl-optimization/77416
11867 * lra-remat.c (operand_to_remat): Process hard coded insn
11870 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11872 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
11873 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
11875 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
11877 * target.def (lra_p): Wordsmithing.
11878 * doc/tm.texi: Regenerate.
11880 2016-09-19 Jakub Jelinek <jakub@redhat.com>
11881 Jan Hubicka <jh@suse.cz>
11884 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
11885 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
11886 Call ultimate_alias_target just once, not up to 4 times.
11888 2016-09-19 Richard Biener <rguenther@suse.de>
11890 * dwarf2out.c (early_dwarf_finished): New global.
11891 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
11893 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
11894 if called from LTO exit early.
11895 (dwarf2out_late_global_decl): When being during the early
11896 debug phase do not add locations but only const value attributes.
11897 Adjust the way we generate early DIEs for LTO.
11899 2016-09-19 Richard Biener <rguenther@suse.de>
11901 PR middle-end/77605
11902 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
11903 proper niter to bound the loops.
11905 2016-09-19 Richard Biener <rguenther@suse.de>
11907 PR tree-optimization/77514
11908 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
11909 search for folded stmt.
11911 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
11913 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
11914 * tree-pass.h (make_pass_early_thread_jumps): Declare.
11915 * tree-ssa-threadbackward.c (fsm_find_thread_path,
11916 fsm_find_thread_path, profitable_jump_thread_path,
11917 fsm_find_control_statement_thread_paths,
11918 find_jump_threads_backwards): Add speed_p parameter.
11919 (pass_data_early_thread_jumps): New pass.
11920 (make_pass_early_thread_jumps): New function.
11922 2016-09-17 Andreas Schwab <schwab@suse.de>
11924 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
11925 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
11927 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
11929 * recog.c (rest_of_handle_split_after_reload): Delete.
11930 (pass_split_after_reload::gate): New method.
11931 (pass_split_after_reload::execute): Call split_all_insns directly.
11933 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
11935 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
11936 parameters for functions taking long long arguments.
11938 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11941 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
11942 splat with truncate.
11944 2016-09-16 Jason Merrill <jason@redhat.com>
11946 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
11948 * hwint.c (exact_log2): Use pow2p_hwi.
11949 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
11950 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
11951 * builtins.c (get_object_alignment_2, get_object_alignment)
11952 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
11954 * calls.c (compute_argument_addresses, store_one_arg): Use
11956 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
11957 * combine.c (force_to_mode): Use least_bit_hwi.
11958 (contains_muldiv, find_split_point, combine_simplify_rtx)
11959 (simplify_if_then_else, simplify_set, force_to_mode)
11960 (if_then_else_cond, simplify_and_const_int_1)
11961 (simplify_compare_const): Use pow2p_hwi.
11962 * cse.c (fold_rtx): Use pow2p_hwi.
11963 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
11965 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
11966 (init_expmed_one_conv): Use pow2p_hwi.
11967 * expr.c (is_aligning_offset): Use pow2p_hwi.
11968 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
11969 (fold_binary_loc): Use pow2p_hwi.
11970 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
11971 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
11972 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
11973 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
11975 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
11976 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
11977 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
11978 * omp-low.c (oacc_loop_fixed_partitions)
11979 (oacc_loop_auto_partitions): Use least_bit_hwi.
11980 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
11981 * stor-layout.c (place_field): Use least_bit_hwi.
11982 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
11983 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
11984 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
11985 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
11986 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
11987 * tree-vect-data-refs.c (vect_analyze_group_access_1)
11988 (vect_grouped_store_supported, vect_grouped_load_supported)
11989 (vect_permute_load_chain, vect_shift_permute_load_chain)
11990 (vect_transform_grouped_load): Use pow2p_hwi.
11991 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
11992 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
11993 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
11995 * tsan.c (instrument_expr): Use least_bit_hwi.
11996 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
11998 2016-09-16 Andreas Schwab <schwab@suse.de>
12000 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
12001 OFFSET, not offset.
12002 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12004 2016-09-16 Jakub Jelinek <jakub@redhat.com>
12007 * combine.c (rest_of_handle_combine): If any edges have been purged,
12008 free dominators if available.
12010 2016-09-16 Jakub Jelinek <jakub@redhat.com>
12011 Eric Botcazou <ebotcazou@adacore.com>
12013 PR middle-end/77594
12014 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
12015 through into expand_addsub_overflow after expand_neg_overflow.
12017 2016-09-15 David Malcolm <dmalcolm@redhat.com>
12019 * diagnostic-show-locus.c
12020 (selftest::test_fixit_insert_containing_newline): New function.
12021 (selftest::test_fixit_replace_containing_newline): New function.
12022 (selftest::diagnostic_show_locus_c_tests): Call the above.
12024 2016-09-15 Bin Cheng <bin.cheng@arm.com>
12026 PR tree-optimization/77503
12027 * tree-vect-loop.c (vectorizable_reduction): Record reduction
12028 code for CONST_COND_REDUCTION at analysis stage and use it at
12030 * tree-vectorizer.h (struct _stmt_vec_info): New field.
12031 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
12032 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
12035 2016-09-15 Richard Biener <rguenther@suse.de>
12037 PR middle-end/77544
12038 * fold-const.c (split_tree): Do not split constant ~X.
12040 2016-09-15 Jakub Jelinek <jakub@redhat.com>
12042 PR rtl-optimization/77425
12043 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
12046 PR middle-end/77475
12047 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
12048 use %qs instead of %s where desirable, use argument instead of arg in
12049 the diagnostic wording, add list of supported strategies and
12051 (ix86_option_override_internal): Emit target("m...") instead of
12052 option("m...") in the diagnostic. Use %qs instead of %s in invalid
12053 -march/-mtune option diagnostic. Add list of supported arches/tunings
12054 and spellcheck hint. Remove prefix, suffix and sw variables, use
12055 main_args_p ? "..." : "..." in diagnostics to make translation
12058 2016-09-15 Richard Biener <rguenther@suse.de>
12060 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
12061 extra offset argument.
12062 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
12063 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
12064 to reflect new offset parameter.
12065 * doc/tm.texi: Regenerate.
12066 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
12067 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
12069 (darwin_asm_output_dwarf_offset): Likewise.
12070 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
12072 (darwin_asm_output_dwarf_offset): Pass offset argument through.
12073 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
12074 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12076 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
12079 * ipa-icf.c (set_alias_uids): New function.
12080 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
12081 all the merged variable's referring aliases.
12083 2016-09-15 Richard Biener <rguenther@suse.de>
12085 PR tree-optimization/77514
12086 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
12087 only forced_stmts sequence.
12089 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
12091 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
12092 * cfgexpand.c (update_alias_info_with_stack_vars): Use
12093 FOR_EACH_SSA_NAME to iterate over SSA variables.
12094 (pass_expand::execute): Likewise.
12095 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
12096 * tree-cfg.c (dump_function_to_file): Likewise.
12097 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
12098 (update_ssa): Likewise.
12099 * tree-ssa-alias.c (dump_alias_info): Likewise.
12100 * tree-ssa-ccp.c (ccp_finalize): Likewise.
12101 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
12102 (create_outofssa_var_map): Likewise.
12103 (coalesce_ssa_name): Likewise.
12104 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
12105 * tree-ssa-pre.c (compute_avail): Likewise.
12106 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
12107 (scc_vn_restore_ssa_info): Likewise.
12108 (free_scc_vn): Likwise.
12109 (run_scc_vn): Likewise.
12110 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
12111 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
12112 * tree-ssa-copy.c (fini_copy_prop): Likewise.
12113 * tree-ssa.c (verify_ssa): Likewise.
12115 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
12117 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
12118 and mips64r2 as default 32-bit and 64-bit architectures.
12119 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
12120 as default 32-bit and 64-bit architectures.
12122 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
12124 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
12127 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12129 * target.def (lra_p): Change commentary (for the manual) for the
12131 * doc/tm.texi: Regenerate.
12133 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12135 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
12136 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
12137 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
12138 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
12140 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12142 * targhooks.c (default_lra_p): Return true instead of false.
12144 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12146 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
12147 hook_bool_void_false.
12148 * config/avr/avr.c: Ditto.
12149 * config/bfin/bfin.c: Ditto.
12150 * config/c6x/c6x.c: Ditto.
12151 * config/cr16/cr16.c: Ditto.
12152 * config/cris/cris.c: Ditto.
12153 * config/epiphany/epiphany.c: Ditto.
12154 * config/fr30/fr30.c: Ditto.
12155 * config/frv/frv.c: Ditto.
12156 * config/h8300/h8300.c: Ditto.
12157 * config/ia64/ia64.c: Ditto.
12158 * config/iq2000/iq2000.c: Ditto.
12159 * config/lm32/lm32.c: Ditto.
12160 * config/m32c/m32c.c: Ditto.
12161 * config/m32r/m32r.c: Ditto.
12162 * config/m68k/m68k.c: Ditto.
12163 * config/mcore/mcore.c: Ditto.
12164 * config/microblaze/microblaze.c: Ditto.
12165 * config/mmix/mmix.c: Ditto.
12166 * config/mn10300/mn10300.c: Ditto.
12167 * config/moxie/moxie.c: Ditto.
12168 * config/msp430/msp430.c: Ditto.
12169 * config/nios2/nios2.c: Ditto.
12170 * config/nvptx/nvptx.c: Ditto.
12171 * config/pa/pa.c: Ditto.
12172 * config/pdp11/pdp11.c: Ditto.
12173 * config/rl78/rl78.c: Ditto.
12174 * config/sparc/sparc.c: Ditto.
12175 * config/spu/spu.c: Ditto.
12176 * config/stormy16/stormy16.c: Ditto.
12177 * config/tilegx/tilegx.c: Ditto.
12178 * config/tilepro/tilepro.c: Ditto.
12179 * config/v850/v850.c: Ditto.
12180 * config/vax/vax.c: Ditto.
12181 * config/visium/visium.c: Ditto.
12182 * config/xtensa/xtensa.c: Ditto.
12184 2016-09-14 Jakub Jelinek <jakub@redhat.com>
12187 * tsan.c: Include target.h.
12188 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
12189 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
12190 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
12191 BUILT_IN_ATOMIC_TEST_AND_SET entries.
12192 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
12194 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12195 Martin Liska <mliska@suse.cz>
12197 PR middle-end/77574
12198 * predict.c (force_edge_cold): Add braces to a condition.
12200 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12202 PR rtl-optimization/77289
12203 * lra-constraints.c (get_final_hard_regno): Removed.
12204 (get_hard_regno): Add new parameter final_p.
12205 (get_reg_class): Directly call lra_get_elimination_hard_regno.
12206 (operands_match_p): Adjust call to get_hard_regno.
12207 (uses_hard_regs_p): Likewise.
12208 (process_alt_operands): Likewise.
12210 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
12213 * config/msp430/msp430.c (msp430_start_function): Emit an error
12214 if a function is both weak and specifies an interrupt number.
12216 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12218 PR tree-optimization/77454
12219 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
12220 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
12223 2016-09-13 Tamar Christina <tamar.christina@arm.com>
12225 * config/aarch64/aarch64-builtins.c
12226 (aarch64_init_simd_builtins): Fix builtin type signature printing.
12228 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
12230 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
12231 SFmode and SCmode arguments by reference.
12233 2016-09-13 David Malcolm <dmalcolm@redhat.com>
12235 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
12237 (selftest::test_one_liner_fixit_insert_before): ...this, and update
12238 for renaming of add_fixit_insert to add_fixit_insert_before.
12239 (selftest::test_one_liner_fixit_insert_after): New function.
12240 (selftest::test_one_liner_fixit_validation_adhoc_locations):
12241 Update for renaming of add_fixit_insert to add_fixit_insert_before.
12242 (selftest::test_one_liner_many_fixits): Likewise.
12243 (selftest::test_diagnostic_show_locus_one_liner): Update for
12244 renaming, call new test function.
12245 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
12246 renaming of add_fixit_insert to add_fixit_insert_before.
12247 (selftest::test_fixit_consolidation): Likewise.
12248 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
12250 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
12251 (selftest::test_applying_fixits_insert_before): ...this.
12252 (selftest::test_applying_fixits_insert): Update for renaming of
12253 add_fixit_insert to add_fixit_insert_before.
12254 (selftest::test_applying_fixits_insert_after): New function.
12255 (selftest::test_applying_fixits_insert_after_at_line_end): New
12257 (selftest::test_applying_fixits_insert_after_failure): New function.
12258 (selftest::test_applying_fixits_multiple): Update for renaming of
12259 add_fixit_insert to add_fixit_insert_before.
12260 (selftest::change_line): Likewise.
12261 (selftest::test_applying_fixits_unreadable_file): Likewise.
12262 (selftest::test_applying_fixits_line_out_of_range): Likewise.
12263 (selftest::test_applying_fixits_column_validation): Likewise.
12264 (selftest::test_applying_fixits_column_validation): Likewise.
12265 (selftest::edit_context_c_tests): Update for renamed test function;
12266 call new test functions.
12268 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
12270 PR tree-optimization/77536
12271 PR rtl-optimization/68212
12272 * config/rs6000/rs6000.md (div->recip splitter): Remove
12273 optimize_insn_for_speed_p condition.
12275 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
12277 * optabs.c (prepare_cmp_insn): Update documentation comment.
12279 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12280 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12282 PR middle-end/77475
12283 * opts.h (candidates_list_and_hint): Declare.
12284 * opts-common.c (candidates_list_and_hint): New function.
12285 (cmdline_handle_error): Use it.
12287 2016-09-12 David Malcolm <dmalcolm@redhat.com>
12289 * edit-context.c (edited_line::get_len): New accessor.
12290 (edited_file::print_diff): Split out hunk-printing into...
12291 (edited_file::print_diff_hunk): New method.
12292 (edited_file::print_diff_line): New method.
12294 2016-09-12 Andrew Pinski <apinski@cavium.com>
12296 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
12298 * config/aarch64/aarch64.c (thunderx_tunings): Enable
12299 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
12300 (aarch64_operands_ok_for_ldpstp): Return false if
12301 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
12302 was SImode and the alignment is less than 8 byte.
12303 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
12305 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
12308 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
12310 2016-09-12 Marek Polacek <polacek@redhat.com>
12312 * doc/extend.texi: Use lowercase "boolean".
12313 * doc/invoke.texi: Likewise.
12314 * doc/md.texi: Likewise.
12315 * target.def: Likewise.
12316 * doc/tm.texi: Regenerated.
12318 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12320 PR middle-end/77426
12321 * expmed.c (synth_mult): Delete duplicate mode check.
12323 2016-09-10 Tom de Vries <tom@codesourcery.com>
12326 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
12328 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
12329 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
12331 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
12333 PR rtl-optimization/77289
12334 * lra-constraints.c (get_final_hard_regno): Add support for non hard
12335 register numbers. Remove support for subregs.
12336 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
12337 (get_reg_class): Delete removed get_final_hard_regno() argument.
12338 (uses_hard_regs_p): Call get_final_hard_regno().
12340 2016-09-09 Martin Sebor <msebor@redhat.com>
12344 * pretty-print.c (pp_quoted_string): New function.
12345 (pp_format): Call it for %c and %s directives.
12347 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12349 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
12350 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
12351 INITIAL_ELIMINATION_OFFSET) : Update documentation.
12352 * target.def (frame_pointer_required, can_eliminate): Likewise.
12353 * doc/tm.texi: Regenerated.
12354 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
12356 * df-scan.c (df_hard_reg_init): Likewise.
12357 * ira.c (ira_setup_eliminable_regset): Likewise.
12358 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
12359 init_elim_table): Likewise.
12360 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
12361 set_initial_elim_offsets, update_eliminables,
12362 init_elim_table): Likewise.
12363 * rtlanal.c (get_initial_register_offset): Likewise.
12364 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12365 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12366 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12367 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12368 * config/fr30/fr30.h: Fix comment.
12369 * config/frv/frv.c: Likewise.
12370 * config/frv/frv.h: Likewise.
12371 * config/ft32/ft32.h: Likewise.
12372 * config/visium/visium.h: Likewise.
12373 * config/pa/pa64-linux.h: Likewise.
12374 * config/v850/v850.h: Likewise.
12375 * config/cris/cris.c: Likewise.
12376 * config/ia64/ia64.h: Likewise.
12377 * config/moxie/moxie.h: Likewise.
12378 * config/m32r/m32r.h: Likewise.
12380 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
12383 * config.in: Regenerate.
12384 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
12386 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
12387 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
12388 static-libmpxwrappers case.
12389 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
12390 MPX_LD_AS_NEEDED_GUARD_POP.
12391 * configure: Regenerate.
12392 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
12393 defined if linker support "--push-state"/"--pop-state".
12395 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12397 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
12399 2016-09-09 Joseph Myers <joseph@codesourcery.com>
12401 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
12402 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
12403 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
12404 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
12405 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
12406 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
12407 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
12409 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
12410 width macros from TS 18661-1.
12411 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
12413 2016-09-08 Jakub Jelinek <jakub@redhat.com>
12416 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
12417 OMP_CLAUSE_SAFELEN_EXPR.
12419 2016-09-07 David Malcolm <dmalcolm@redhat.com>
12421 * Makefile.in (OBJS): Add substring-locations.o.
12422 * langhooks-def.h (class substring_loc): New forward decl.
12423 (lhd_get_substring_location): New decl.
12424 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
12425 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
12426 * langhooks.c (lhd_get_substring_location): New function.
12427 * langhooks.h (class substring_loc): New forward decl.
12428 (struct lang_hooks): Add field get_substring_location.
12429 * substring-locations.c: New file, taking definition of
12430 format_warning_va and format_warning_at_substring from
12431 c-family/c-format.c, making them non-static.
12432 * substring-locations.h (class substring_loc): Move class here
12433 from c-family/c-common.h. Add and rewrite comments.
12434 (format_warning_va): New decl.
12435 (format_warning_at_substring): New decl.
12436 (get_source_location_for_substring): Add comment.
12438 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
12440 * config/i386/i386.c: Add 'U' suffix to processor feature bits
12441 to avoid -Wnarrowing warning.
12442 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
12443 * opts.c: Likewise for SANITIZER_OPT bitmasks.
12445 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
12447 * config/aarch64/aarch64.c (aarch64_legitimize_address):
12448 Avoid use of base_offset if offset already in range.
12450 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
12452 * config/sh/sh-protos.h (struct sh_atomic_model,
12453 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
12454 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
12455 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
12456 * config/sh/sh.h (struct sh_atomic_model,
12457 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
12458 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
12459 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
12460 Guard with __cplusplus.
12462 2016-09-06 Jakub Jelinek <jakub@redhat.com>
12465 * config/i386/i386.c (ix86_expand_builtin): For builtin with
12466 unsupported or unknown ISA, use expand_call.
12468 2016-09-06 Martin Liska <mliska@suse.cz>
12470 PR gcov-profile/77378
12471 PR gcov-profile/77466
12472 * tree-profile.c (tree_profiling): Detect whether target can use
12473 -fprofile-update=atomic.
12475 2016-09-06 Richard Biener <rguenther@suse.de>
12477 PR tree-optimization/77479
12478 * tree-vrp.c (update_value_range): Extend overflow handling to
12481 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12484 * config/i386/i386.md (isa): Add x64_avx512bw.
12485 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
12486 (kmov_isa): New mode attr.
12487 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
12488 (*zero_extend<mode>si2): Likewise.
12489 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
12491 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
12493 * doc/invoke.texi (SPU Options): nops -> NOPs.
12494 (x86 Options): Ditto.
12496 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12498 PR middle-end/77475
12499 * toplev.c (process_options): Temporarily set input_location
12500 to UNKNOWN_LOCATION around targetm.target_option.override () call.
12502 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
12504 PR rtl-optimization/77452
12505 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
12506 inner-mode reference to a CONST_VECTOR constant in the constant pool.
12508 2016-09-05 Marek Polacek <polacek@redhat.com>
12511 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
12513 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12516 * gensupport.c (alter_output_for_subst_insn): Remove redundant
12517 *insn_out == '*' test. Don't copy unnecessary to yet another
12518 memory buffer, and don't leak it.
12520 PR rtl-optimization/77425
12521 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
12523 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
12525 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
12527 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12529 * common.opt (fdiagnostics-generate-patch): New option.
12530 * diagnostic.c: Include "edit-context.h".
12531 (diagnostic_initialize): Initialize context->edit_context_ptr.
12532 (diagnostic_finish): Delete context->edit_context_ptr.
12533 (diagnostic_report_diagnostic): Add fix-it hints from the
12534 diagnostic to context->edit_context_ptr, if any.
12535 * diagnostic.h (class edit_context): Add forward decl.
12536 (struct diagnostic_context): Add field "edit_context_ptr".
12537 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
12538 -fdiagnostics-generate-patch.
12539 (-fdiagnostics-generate-patch): New item.
12540 * toplev.c: Include "edit-context.h".
12541 (process_options): Set global_dc->edit_context_ptr to a new
12542 edit_context if the options need one.
12543 (toplev::main): Handle -fdiagnostics-generate-patch by using
12544 global_dc->edit_context_ptr.
12546 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12549 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
12550 map and firstprivate clauses on target construct for _Atomic
12552 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
12553 on target construct for _Atomic qualified decls.
12554 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
12556 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
12557 _Atomic qualified arguments not mentioned in uniform clause.
12559 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12561 * Makefile.in (OBJS-libcommon): Add edit-context.o.
12562 * diagnostic-color.c (color_dict): Add "diff-filename",
12563 "diff-hunk", "diff-delete", and "diff-insert".
12564 (parse_gcc_colors): Update default value of GCC_COLORS in comment
12565 to reflect above changes.
12566 * doc/invoke.texi (-fdiagnostics-color): Update description of
12567 default GCC_COLORS, and of the supported capabilities.
12568 * edit-context.c: New file.
12569 * edit-context.h: New file.
12570 * input.c (struct fcache): Add field "missing_trailing_newline".
12571 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
12573 (add_file_to_cache_tab): Likewise.
12574 (fcache::fcache): Likewise.
12575 (get_next_line): Update c->missing_trailing_newline.
12576 (location_missing_trailing_newline): New function.
12577 * input.h (location_missing_trailing_newline): New decl.
12578 * selftest-run-tests.c (selftest::run_tests): Call
12579 edit_context_c_tests.
12580 * selftest.h (edit_context_c_tests): New decl.
12582 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12583 Richard Biener <rguenth@suse.de>
12585 PR tree-optimization/77444
12586 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
12587 as steptype, remove redundant initialization.
12589 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12592 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
12593 (sanopt_optimize_walker): Optimize away
12594 __asan_before_dynamic_init (...) followed by
12595 __asan_after_dynamic_init () without intervening memory loads/stores.
12596 * ipa-pure-const.c (special_builtin_state): Handle
12597 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
12598 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
12600 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12602 * cfg.c (free_original_copy_tables): Replace second assignment of
12603 bb_copy = NULL by bb_original = NULL.
12605 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12608 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
12609 assignment added in r216794.
12611 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12613 * Makefile.in (OBJS): Add typed-splay-tree.o.
12614 * selftest-run-tests.c (selftest::run_tests): Call
12615 typed_splay_tree_c_tests.
12616 * selftest.h (typed_splay_tree_c_tests): New decl.
12617 * typed-splay-tree.c: New file.
12618 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
12619 (typed_splay_tree::max): New method.
12620 (typed_splay_tree::min): New method.
12621 (typed_splay_tree::foreach): New method.
12622 (typed_splay_tree::closure): New struct.
12623 (typed_splay_tree::inner_foreach_fn): New function.
12625 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12627 * ipa-cp.c (ipcp_store_bits_results): Change option name from
12628 -fipa-cp-bit to -fipa-bit-cp.
12630 2016-09-01 Martin Sebor <msebor@redhat.com>
12632 PR tree-optimization/71831
12633 * tree-object-size.h: Return bool instead of the size and add
12634 argument for the size.
12635 * tree-object-size.c (compute_object_offset): Update signature.
12636 (addr_object_size): Same.
12637 (compute_builtin_object_size): Return bool instead of the size
12638 and add argument for the size. Handle POINTER_PLUS_EXPR when
12639 optimization is disabled.
12640 (expr_object_size): Adjust.
12641 (plus_stmt_object_size): Adjust.
12642 (pass_object_sizes::execute): Adjust.
12643 * builtins.c (fold_builtin_object_size): Adjust.
12644 * doc/extend.texi (Object Size Checking): Update.
12645 * ubsan.c (instrument_object_size): Adjust.
12647 2016-09-01 Martin Sebor <msebor@redhat.com>
12649 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
12650 it fits the output of the formatted function regardless of its
12652 * genmodes.c (parser::parse_expr): Same.
12653 * gimplify.c (gimplify_asm_expr): Same.
12654 * passes.c (pass_manager::register_one_dump_file): Same.
12655 * print-tree.c (print_node): Same.
12657 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12659 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
12661 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12663 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
12665 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12667 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
12668 * config/rs6000/vector.md: Ditto.
12669 * config/rs6000/vsx.md: Ditto.
12671 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
12673 * ipa-inline-analysis.c (param_change_prob): Get to the base object
12674 first in all cases.
12676 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12678 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
12679 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
12680 *return_and_restore_gpregs_<mode>_r11,
12681 *return_and_restore_gpregs_<mode>_r12,
12682 *return_and_restore_gpregs_<mode>_r1,
12683 *return_and_restore_fpregs_<mode>_r11,
12684 *return_and_restore_fpregs_<mode>_r12,
12685 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
12686 directly instead of via the "l" constraint. Renumber operands.
12689 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12691 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
12692 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
12693 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
12694 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
12695 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
12696 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
12697 *call_value_nonlocal_darwin64, reload_macho_picbase,
12698 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
12699 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
12700 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
12701 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
12702 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
12703 *save_fpregs_<mode>_r1): Ditto.
12704 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
12705 *return_and_restore_gpregs_spe): Ditto.
12707 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12709 * config/rs6000/rs6000.md
12710 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
12711 the use of the link register.
12712 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
12714 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12715 Michael Meissner <meissner@linux.vnet.ibm.com>
12718 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
12719 reg+reg addressing for TImode.
12720 (rs6000_legitimate_address_p): Only allow register indirect
12721 addressing for TImode, even without TARGET_QUAD_MEMORY.
12723 2016-09-01 Richard Biener <rguenther@suse.de>
12725 PR middle-end/77436
12726 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
12727 check whether the result fits the desired result type.
12729 2016-09-01 Nathan Sidwell <nathan@acm.org>
12731 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
12733 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
12735 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
12737 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
12739 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12741 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
12742 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
12743 for comparisons of integer ZERO_EXTEND against zero.
12745 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
12747 * config/i386/i386.c (ix86_option_override_internal): Also disable the
12748 STV pass if -mstackrealign is enabled.
12750 2016-08-31 Ilya Verbin <iverbin@gmail.com>
12752 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
12755 2016-08-31 David Malcolm <dmalcolm@redhat.com>
12757 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
12758 (layout_range::intersects_line_p): New method.
12759 (test_range_contains_point_for_single_point): Rename to...
12760 (test_layout_range_for_single_point): ...this, and add testing
12761 for layout_range::intersects_line_p.
12762 (test_range_contains_point_for_single_line): Rename to...
12763 (test_layout_range_for_single_line): ...this, and add testing
12764 for layout_range::intersects_line_p.
12765 (test_range_contains_point_for_multiple_lines): Rename to...
12766 (test_layout_range_for_multiple_lines): ...this, and add testing
12767 for layout_range::intersects_line_p.
12768 (layout::layout): Populate m_fixit_hints.
12769 (layout::get_expanded_location): Handle the case of a line-span
12771 (layout::validate_fixit_hint_p): New method.
12772 (get_line_span_for_fixit_hint): New function.
12773 (layout::calculate_line_spans): Add spans for fixit-hints.
12774 (layout::should_print_annotation_line_p): New method.
12775 (layout::print_any_fixits): Drop param "richloc", instead using
12776 validated fixits in m_fixit_hints. Add "const" to hint pointers.
12777 (diagnostic_show_locus): Avoid printing blank annotation lines.
12778 (selftest::test_diagnostic_context::test_diagnostic_context):
12779 Initialize show_column and start_span.
12780 (selftest::test_diagnostic_context::start_span_cb): New static
12782 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
12783 (selftest::diagnostic_show_locus_c_tests): Update for function
12784 renamings. Call test_diagnostic_show_locus_fixit_lines.
12786 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
12788 PR tree-optimization/73714
12789 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
12791 2016-08-31 David Malcolm <dmalcolm@redhat.com>
12793 * selftest.c: Move "namespace selftest {" to top of file,
12794 removing explicit "selftest::" qualifiers throughout.
12796 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
12798 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
12800 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
12801 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
12802 Replace builtin with vector extension.
12803 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
12805 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
12806 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
12807 Replace builtin with vector extension.
12808 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
12809 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
12810 Replace builtin with vector extension.
12811 * config/i386/xmmintrin.h (__m128_u): New type.
12812 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
12813 (_mm_load_ps, _mm_store_ps): Simplify.
12815 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
12817 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
12819 2016-08-30 David Malcolm <dmalcolm@redhat.com>
12821 * diagnostic-show-locus.c (colorizer::begin_state): Support more
12822 than 3 ranges per diagnostic by alternating between color 1 and
12824 (layout::layout): Replace use of rich_location::MAX_RANGES
12825 with richloc->get_num_locations ().
12826 (layout::calculate_line_spans): Replace use of
12827 rich_location::MAX_RANGES with m_layout_ranges.length ().
12828 (layout::print_annotation_line): Handle arbitrary numbers of
12829 ranges in caret-printing by defaulting to '^'.
12830 (selftest::test_one_liner_many_fixits): New function.
12831 (test_diagnostic_show_locus_one_liner): Call it.
12832 * diagnostic.c (diagnostic_initialize): Update for renaming
12833 of rich_location::MAX_RANGES to
12834 rich_location::STATICALLY_ALLOCATED_RANGES.
12835 * diagnostic.h (struct diagnostic_context): Likewise.
12837 2016-08-30 David Malcolm <dmalcolm@redhat.com>
12839 * selftest.c (selftest::named_temp_file::named_temp_file): New
12841 (selftest::temp_source_file::~temp_source_file): Move to...
12842 (selftest::named_temp_file::~named_temp_file): ...here.
12843 (selftest::test_named_temp_file): New function.
12844 (selftest::selftest_c_tests): Call test_named_temp_file.
12845 * selftest.h (class named_temp_file): New class.
12846 (class temp_source_file): Convert to a subclass of named_temp_file.
12848 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
12850 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
12851 USEs of LR_REGNO in returns and sibcalls.
12852 (rs6000_output_mi_thunk): Similar.
12853 (rs6000_sibcall_aix): Similar.
12854 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
12855 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
12856 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
12857 Remove the USE of LR_REGNO from the patterns as well. Delete an
12859 (return_internal_<mode>): Delete.
12861 2016-08-30 Tamar Christina <tamar.christina@arm.com>
12863 * config/aarch64/aarch64-simd.md
12864 (aarch64_ld2<mode>_dreg_le): New.
12865 (aarch64_ld2<mode>_dreg_be): New.
12866 (aarch64_ld2<mode>_dreg): Removed.
12867 (aarch64_ld3<mode>_dreg_le): New.
12868 (aarch64_ld3<mode>_dreg_be): New.
12869 (aarch64_ld3<mode>_dreg): Removed.
12870 (aarch64_ld4<mode>_dreg_le): New.
12871 (aarch64_ld4<mode>_dreg_be): New.
12872 (aarch64_ld4<mode>_dreg): Removed.
12873 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
12875 2016-08-30 David Malcolm <dmalcolm@redhat.com>
12877 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
12878 redundant location param.
12879 (test_one_liner_fixit_remove): Likewise.
12880 (test_one_liner_fixit_replace): Likewise.
12881 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
12882 * gcc-rich-location.c
12883 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
12884 get_range_from_loc. Drop overload taking a const char *.
12885 * gcc-rich-location.h
12886 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
12889 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
12891 * config/linux.c (linux_libc_has_function): Return true on musl.
12893 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
12895 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
12897 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
12899 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
12900 used for abnormal egdes.
12902 2016-08-30 Jakub Jelinek <jakub@redhat.com>
12904 PR tree-optimization/72866
12905 * tree-vect-patterns.c (search_type_for_mask): Turn into
12906 a small wrapper, move all code to ...
12907 (search_type_for_mask_1): ... this new function. Add caching
12908 and adjust recursive calls.
12911 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
12912 instead of lookup_type_die (type_main_variant (type)) even for array
12915 PR middle-end/77377
12916 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
12917 constant pool reference return x instead of c.
12919 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
12921 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
12924 2016-08-29 David Malcolm <dmalcolm@redhat.com>
12927 (selftest::test_make_location_nonpure_range_endpoints): Fix
12930 2016-08-29 David Malcolm <dmalcolm@redhat.com>
12932 * diagnostic-show-locus.c
12933 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
12935 (selftest::test_diagnostic_show_locus_one_liner): Call it.
12936 * input.c (get_pure_location): Move to libcpp/line-map.c.
12937 * input.h (get_pure_location): Convert decl to an inline function
12938 calling implementation in libcpp.
12940 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
12943 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
12944 template for intel asm dialect.
12945 (vec_set_hi_<mode><mask_name>): Ditto.
12947 2016-08-29 David Malcolm <dmalcolm@redhat.com>
12949 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
12950 (selftest::fail_formatted): Likewise.
12952 2016-08-29 David Malcolm <dmalcolm@redhat.com>
12954 * input.c (make_location): Call get_start and get_finish
12955 on the endpoints to avoid storing packed ranges or ad-hoc
12957 (selftest::test_make_location_nonpure_range_endpoints): New function.
12958 (selftest::input_c_tests): Call it.
12959 * input.h (get_start): New inline function.
12961 2016-08-29 Tom de Vries <tom@codesourcery.com>
12964 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
12967 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
12969 * Makefile.in (gcov-iov.h): Add dummy recipe.
12971 2016-08-29 Nathan Sidwell <nathan@acm.org>
12973 * config/nvptx/nvptx.c: #include tree-vrp.h.
12975 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
12978 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
12979 HIGH+LO construct during reload.
12981 2016-08-28 Tom de Vries <tom@codesourcery.com>
12984 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
12985 'sysv_abi va_list' attribute.
12986 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
12987 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
12990 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12992 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
12993 * emit-rtl.c (unshare_all_rtl_1): Adjust.
12994 (unshare_all_rtl_again): Likewise.
12995 * function.c (assign_stack_local_1): Likewise.
12996 (assign_stack_temp_for_type): Likewise.
12998 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13000 * cfgbuild.c (make_edges): Adjust.
13001 * cfgrtl.c (can_delete_label_p): Likewise.
13002 * dwarf2cfi.c (create_trace_edges): Likewise.
13003 * except.c (sjlj_emit_dispatch_table): Likewise.
13004 * function.h (struct expr_status): make x_forced_labels a vector.
13005 * jump.c (rebuild_jump_labels_1): Adjust.
13006 * reload1.c (set_initial_label_offsets): Likewise.
13007 * stmt.c (force_label_rtx): Likewise.
13008 (expand_label): Likewise.
13010 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13012 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
13014 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
13016 PR tree-optimization/71077
13017 PR tree-optimization/68542
13018 * fold-const.c (fold_relational_const): Fix folding of
13019 VECTOR_CST comparisons that have a scalar boolean result type.
13020 (selftest::test_vector_folding): New static function.
13021 (selftest::fold_const_c_tests): Call it.
13023 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
13025 * doc/extend.texi (SPU Built-in Functions): Remove stale
13026 references to material formerly at IBM and Sony.
13028 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
13031 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
13033 2016-08-26 David Malcolm <dmalcolm@redhat.com>
13035 * diagnostic-show-locus.c
13036 (selftest::test_fixit_consolidation): New function.
13037 (selftest::diagnostic_show_locus_c_tests): Call it.
13038 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
13039 constructor based on source_range.
13041 2016-08-26 David Malcolm <dmalcolm@redhat.com>
13043 * diagnostic-color.c (color_dict): Add "fixit-insert" and
13045 (parse_gcc_colors): Update description of default GCC_COLORS.
13046 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
13047 (colorizer::set_fixit_insert): New method.
13048 (colorizer::set_fixit_delete): New method.
13049 (colorizer::get_color_by_name): New method.
13050 (colorizer::STATE_FIXIT_INSERT): New constant.
13051 (colorizer::STATE_FIXIT_DELETE): New constant.
13052 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
13053 fields in favor of new field "m_stop_color". Add fields
13054 "m_fixit_insert" and "m_fixit_delete".
13055 (colorizer::colorizer): Update for above changes. Replace
13056 colorize_start calls with calls to get_color_by_name.
13057 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
13058 STATE_FIXIT_DELETE. Update for field renamings.
13059 (colorizer::finish_state): Simplify by using m_stop_color,
13060 rather than multiple identical "*_ce" fields.
13061 (colorizer::get_color_by_name): New method.
13062 (layout::print_any_fixits): Print insertions and replacements
13063 using the "fixit-insert" color, and deletions using the
13064 "fixit-delete" color.
13065 * doc/invoke.texi (-fdiagnostics-color): Update description of
13066 default GCC_COLORS, and of the supported capabilities.
13068 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
13070 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
13071 current_function_static_stack_size variable with the static
13072 stack frame size of the current function when
13073 flag_stack_usage_info is enabled.
13075 2016-08-26 Nathan Sidwell <nathan@acm.org>
13077 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
13078 assignment inside if condition.
13080 2016-08-26 Richard Biener <rguenther@suse.de>
13082 PR tree-optimization/69047
13083 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
13084 extracts similar to what FRE does.
13085 (non_rewritable_mem_ref_base): Likewise.
13087 2016-08-26 Joseph Myers <joseph@codesourcery.com>
13089 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
13090 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
13091 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13092 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13093 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
13095 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13096 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13097 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13098 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
13099 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13101 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13104 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
13105 reservation duration to 15 cycles.
13106 (cortex_a8_vfp_macs): Likewise.
13107 (cortex_a8_vfp_macd): Likewise.
13108 (cortex_a8_vfp_divs): Likewise.
13109 (cortex_a8_vfp_divd): Likewise.
13111 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13113 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
13114 (aarch_macro_fusion_pair_p): Use above to avoid early return.
13116 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13117 Martin Jambhor <mjambor@suse.cz>
13119 * common.opt: New option -fipa-bit-cp.
13120 * doc/invoke.texi: Document -fipa-bit-cp.
13121 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
13122 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
13123 * tree-ssa-ccp.h: New header file.
13124 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
13125 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
13126 Replace all occurences of tree parameter by two new params: signop, int.
13127 (bit_value_unop_1): Change to bit_value_unop and export it.
13128 Replace all occurences of tree parameter by two new params: signop,
13130 (bit_value_binop): Change call from bit_value_binop_1 to
13132 (bit_value_assume_aligned): Likewise.
13133 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
13134 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
13136 (ccp_finalize): Skip processing if val->mask == 0.
13137 * ipa-cp.c: Include tree-ssa-ccp.h
13138 (ipcp_bits_lattice): New class.
13139 (ipcp_param_lattice (bits_lattice): New member.
13140 (print_all_lattices): Call ipcp_bits_lattice::print.
13141 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
13142 (initialize_node_lattices): Likewise.
13143 (propagate_bits_accross_jump_function): New function.
13144 (propagate_constants_accross_call): Call
13145 propagate_bits_accross_jump_function.
13146 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
13147 (ipcp_store_bits_results): New function.
13148 (ipcp_driver): Call ipcp_store_bits_results.
13149 * ipa-prop.h (ipa_bits): New struct.
13150 (ipa_jump_func): Add new member bits of type ipa_bits.
13151 (ipa_param_descriptor): Change decl to decl_or_type.
13152 (ipa_get_param): Change decl to decl_or_type and assert on
13154 (ipa_get_type): New function.
13155 (ipcp_transformation_summary): New member bits.
13156 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
13157 (ipa_populate_param_decls): Likewise.
13158 (ipa_dump_param): Likewise.
13159 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
13161 (ipa_set_jf_unknown): Set ipa_bits::known to false.
13162 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
13164 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
13165 (ipa_write_jump_function): Add streaming for ipa_bits.
13166 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
13167 (write_ipcp_transformation_info): Add streaming for ipa_bits
13168 summary for ltrans.
13169 (read_ipcp_transfomration_info): Add support for reading streamed
13171 (ipcp_update_bits): New function.
13172 (ipcp_transform_function): Call ipcp_update_bits.
13174 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
13176 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
13177 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
13179 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
13181 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
13183 2016-08-25 Richard Biener <rguenther@suse.de>
13185 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
13186 Only add locations in late dwarf.
13187 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
13188 (dwarf2out_early_finish): But do it here.
13190 2016-08-24 Michael Collison <michael.collison@linaro.org>
13191 Michael Collison <michael.collison@arm.com>
13193 * config/arm/arm-modes.def: Add new condition code mode CC_V
13194 to represent the overflow bit.
13195 * config/arm/arm.c (maybe_get_arm_condition_code):
13196 Add support for CC_Vmode.
13197 (arm_gen_unlikely_cbranch): New function to generate common
13198 rtl conditional branches for overflow patterns.
13199 * config/arm/arm-protos.h: Add prototype for
13200 arm_gen_unlikely_cbranch.
13201 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
13202 addsi3_compareV_upper): New patterns to support signed
13203 builtin overflow add operations.
13204 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
13205 New patterns to support unsigned builtin add overflow operations.
13206 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
13207 builtin overflow subtract operations,
13208 (usubv<mode>4): New patterns to support unsigned builtin subtract
13209 overflow operations.
13210 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
13211 to support builtin overflow negate operations.
13213 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13216 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13218 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13219 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13222 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13224 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
13225 MULTILIB_OPTIONS should be used. Small wording fixes.
13226 * genmultilib: Memorize set of all option combinations in
13227 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
13228 found in MULTILIB_OPTIONS by checking if option set is listed in
13229 combination_space. Output new and existing error message to stderr.
13231 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13233 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
13234 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
13235 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
13236 (MULTILIB_REUSE): Remove reuse rules for option set including
13237 -mfpu=fp-armv8 and -mfpu=vfpv4
13239 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
13241 * config/arm/t-rtems: Add vfp multilib.
13243 2016-08-23 Ian Lance Taylor <iant@golang.org>
13245 * config/s390/s390.c (s390_asm_file_start): Call
13246 default_file_start.
13248 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13250 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
13251 initialization of all 0's to the 0 constant, instead of directly
13252 generating XOR. Add support for V4SImode vector initialization on
13253 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
13254 initialization. Change variables used in V4SFmode vector
13255 intialization. For V4SFmode vector splat on ISA 3.0, make sure
13256 any memory addresses are in index form. Add support for using
13257 VSPLTH/VSPLTB to initialize vector short and vector char vectors
13258 with all of the same element.
13259 (regno_or_subregno): New helper function to return a register
13260 number for either REG or SUBREG.
13261 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
13262 Use regno_or_subregno where possible.
13263 (rs6000_split_v4si_init_di_reg): New helper function to build up a
13264 DImode value from two SImode values in order to generate V4SImode
13265 vector initialization on 64-bit systems with direct move.
13266 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
13268 (rtx_is_swappable_p): V4SImode vector initialization insn is not
13270 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
13272 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
13273 attributes to initialize V8HImode and V16QImode vectors with the
13275 (VSX_SPLAT_COUNT): Likewise.
13276 (VSX_SPLAT_SUFFIX): Likewise.
13277 (UNSPEC_VSX_VEC_INIT): New unspec.
13278 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
13279 Allow SFmode values to come from Altivec registers.
13280 (vsx_init_v4si): New insn/split for V4SImode vector initialization
13281 on 64-bit systems with direct move.
13282 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
13283 vector initializations, to allow V4SImode vector initializations
13284 on 64-bit systems with direct move.
13285 (vsx_splat_v4si): Likewise.
13286 (vsx_splat_v4si_di): Likewise.
13287 (vsx_splat_v4sf): Likewise.
13288 (vsx_splat_v4sf_internal): Likewise.
13289 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
13291 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
13292 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
13293 initializing V8HImode and V16QImode vectors with the same
13295 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
13296 optimization if -maltivec=be.
13298 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
13300 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
13301 attribute for alternatives 3 and 4.
13303 2016-08-23 David Malcolm <dmalcolm@redhat.com>
13305 * selftest.c (selftest::assert_str_contains): New function.
13306 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
13307 * selftest.h (selftest::assert_str_contains): New decl.
13308 (ASSERT_STR_CONTAINS): New macro.
13310 2016-08-23 Richard Biener <rguenther@suse.de>
13312 PR tree-optimization/77286
13313 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
13315 (vect_transform_loop): Split exit edges of loop and scalar
13316 loop if required and at the appropriate time.
13318 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13320 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13321 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13323 Correct a typo in a comment.
13325 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13327 * config/s390/s390.md ("*andc_split"): New splitter for and with
13330 2016-08-23 Richard Biener <rguenther@suse.de>
13332 PR tree-optimization/27336
13333 * tree-vrp.c (infer_value_range): Handle stmts that can throw
13334 by looking for a non-EH edge.
13335 (process_assert_insertions_for): Likewise.
13337 2016-08-23 Richard Biener <rguenther@suse.de>
13339 PR middle-end/77305
13340 * statistics.c (statistics_counter_event): Robustify against
13343 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13345 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
13346 for targets amdfam10 and barcelona.
13348 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
13350 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
13351 (zero_extend<mode>di2): Ditto.
13352 (*zero_extend<mode>si2): Ditto.
13353 (*zero_extendqihi2): Ditto.
13355 2016-08-22 Joseph Myers <joseph@codesourcery.com>
13357 PR middle-end/77269
13358 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
13359 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
13361 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
13363 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
13364 identical consecutive elements.
13365 [SSA_NAME]: Print the name's def stmt on its own line. When printing
13366 the node's def stmt, avoid printing an unwanted trailing newline by
13367 replacing the call to print_gimple_stmt() with its inlined body and
13368 adjusting it to not set pp_needs_newline and to call pp_flush()
13369 instead of pp_newline_and_flush().
13371 2016-08-22 Joseph Myers <joseph@codesourcery.com>
13373 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
13374 (float32_type_node, float64_type_node, float32x_type_node)
13375 (float128x_type_node): New macros.
13376 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
13377 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
13378 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
13379 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
13380 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
13381 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
13382 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
13383 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
13384 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
13385 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
13386 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
13387 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
13388 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
13389 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
13390 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
13391 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
13392 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
13393 (copysign, fabs, huge_val, inf, nan, nans): Use it.
13394 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
13396 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
13397 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
13398 * doc/extend.texi (Other Builtins): Document these built-in
13400 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
13403 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
13405 * doc/install.texi (Binaries): www.opencsw.org now uses https.
13407 2016-08-22 Richard Biener <rguenther@suse.de>
13409 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
13411 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
13414 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
13415 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
13416 non-SSE2 athlons only, otherwise prefer SSE prefetches.
13418 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13420 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
13421 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
13422 (vrp_visit_switch_stmt): Likewise.
13423 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
13424 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
13425 (vrp_visit_stmt): Use extract_range_from_stmt.
13426 (vrp_visit_phi_node): Use extract_range_from_phi_node.
13428 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13430 * Makefile.in: Add tree-vrp.h to GTFILES.
13431 * gengtype.c (open_base_files): Add tree-vrp.h.
13432 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
13433 * builtins.c: Likewise.
13434 * fold-const.c: Likewise.
13435 * gimple-builder.c: Likewise.
13436 * gimple-laddress.c: Likewise.
13437 * hsa-gen.c: Likewise.
13438 * internal-fn.c: Likewise.
13440 * targhooks.c: Liewise,
13441 * tree-ssa-address.c: Likewise.
13442 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
13443 * tree-vrp.c (struct value_range): Move to tree-vrp.h
13444 * tree-vrp.h: New file.
13446 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13448 PR tree-optimization/61839
13449 * tree-vrp.c (two_valued_val_range_p): New.
13450 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
13451 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
13452 Also Convert VAR BINOP CST where VAR is two-valued to
13453 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
13455 2016-08-19 David Malcolm <dmalcolm@redhat.com>
13457 * diagnostic-show-locus.c
13458 (layout::annotation_line_showed_range_p): New method.
13459 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
13460 Reimplement case fixit_hint::REPLACE to cover removals, and
13461 replacements where the range of the replacement isn't one
13462 of the ranges in the rich_location.
13463 (test_one_liner_fixit_replace): Likewise.
13464 (selftest::test_one_liner_fixit_replace_non_equal_range): New
13466 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
13468 (selftest::test_diagnostic_show_locus_one_liner): Call the new
13470 * diagnostic.c (print_parseable_fixits): Remove case
13471 fixit_hint::REMOVE.
13473 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
13476 * config/i386/i386.c (ix86_option_override_internal): Remove
13477 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
13478 Enable SSE prefetch also for TARGET_PREFETCHWT1.
13479 Do not try to enable TARGET_PRFCHW ISA flag here.
13480 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
13481 Rewrite expander function body.
13482 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
13484 2016-08-19 Joseph Myers <joseph@codesourcery.com>
13487 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
13488 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
13489 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
13490 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
13491 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
13492 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
13493 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
13494 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
13495 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
13497 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
13499 (struct floatn_type_info): New structure type.
13500 (floatn_nx_types): New variable declaration.
13501 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
13502 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
13503 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
13504 * tree.c (floatn_nx_types): New variable.
13505 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
13506 corresponding complex types.
13507 * target.def (floatn_mode): New hook.
13508 * targhooks.c: Include "real.h".
13509 (default_floatn_mode): New function.
13510 * targhooks.h (default_floatn_mode): New prototype.
13511 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
13513 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
13514 effective-target and dg-add-options keywords.
13515 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
13516 Document new effective-target keywords.
13517 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
13518 * doc/tm.texi: Regenerate.
13519 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
13520 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
13521 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
13523 * real.h (struct real_format): Add field ieee_bits.
13524 * real.c (ieee_single_format, mips_single_format)
13525 (motorola_single_format, spu_single_format, ieee_double_format)
13526 (mips_double_format, motorola_double_format)
13527 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
13528 (ieee_extended_intel_128_format)
13529 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
13530 (mips_extended_format, ieee_quad_format, mips_quad_format)
13531 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
13532 (decimal_double_format, decimal_quad_format, ieee_half_format)
13533 (arm_half_format, real_internal_format: Initialize ieee_bits
13535 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
13536 float128_type_node. Set float80_type_node to float64x_type_node
13537 if appropriate and long_double_type_node not appropriate.
13538 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
13539 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
13540 Initialize ieee_bits field.
13541 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
13542 (rs6000_init_builtins): Set ieee128_float_type_node to
13543 float128_type_node.
13544 (rs6000_floatn_mode): New function.
13546 2016-08-19 Jakub Jelinek <jakub@redhat.com>
13548 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
13549 _rdseed64_step): Uglify argument names and/or local variable names
13550 in inline functions.
13551 * config/i386/rtmintrin.h (_xabort): Likewise.
13552 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
13553 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
13554 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
13555 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
13556 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
13557 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
13558 _mm_maskz_ternarylogic_epi32): Likewise.
13559 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
13560 __lwpins32, __lwpins64): Likewise.
13561 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
13562 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
13563 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
13564 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
13565 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
13566 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
13567 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
13568 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
13569 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
13570 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
13571 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
13572 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
13573 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
13574 _mm256_mask_i64gather_epi32): Likewise.
13575 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
13576 * config/i386/ia32intrin.h (__writeeflags): Likewise.
13577 * config/i386/pkuintrin.h (_wrpkru): Likewise.
13578 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
13579 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
13580 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
13581 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
13582 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
13583 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
13584 _mm512_mask_prefetch_i64scatter_ps): Likewise.
13585 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
13586 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
13587 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
13588 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
13589 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
13590 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
13591 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
13592 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
13594 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
13596 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
13597 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
13599 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
13600 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
13602 (_rdpkru_u32): Add space after function name.
13604 * config/i386/t-i386 (i386-c.o): Don't depend on
13605 i386-builtin-types.inc.
13606 (i386.o): Depend on i386-builtin-types.inc.
13608 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
13611 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
13612 Use const_vec_duplicate to check for duplicated elements.
13614 2016-08-19 Richard Biener <rguenther@suse.de>
13616 PR tree-optimization/77290
13617 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13618 Fix flag_tree_parallelize_loops check.
13620 2016-08-19 Richard Biener <rguenther@suse.de>
13622 * match.pd (x | 0 -> x): Add.
13624 2016-08-19 Richard Biener <rguenther@suse.de>
13626 PR tree-optimization/77286
13627 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
13628 Deal with virtual PHIs being out-of-order.
13630 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13632 * doc/invoke.texi (fverbose-asm): Note that source code lines
13633 are emitted, and provide an example.
13634 * final.c (asm_show_source): New function.
13635 (final_scan_insn): Call asm_show_source.
13637 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13639 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
13640 param with diagnostic_kind.
13641 (class colorizer): Similarly replace field m_diagnostic with
13643 (colorizer::colorizer): Replace diagnostic
13644 param with diagnostic_kind.
13645 (colorizer::begin_state): Update for above field change.
13646 (layout::layout): Replace diagnostic param with rich_location *
13647 and diagnostic_kind.
13648 (diagnostic_show_locus): Replace diagnostic param with richloc
13649 and diagnostic_kind.
13650 (class selftest::test_diagnostic_context): New class.
13651 (selftest::test_diagnostic_show_locus_unknown_location): New
13653 (selftest::test_one_liner_simple_caret): New function.
13654 (selftest::test_one_liner_caret_and_range): New function.
13655 (selftest::test_one_liner_multiple_carets_and_ranges): New
13657 (selftest::test_one_liner_fixit_remove): New function.
13658 (selftest::test_one_liner_fixit_replace): New function.
13659 (selftest::test_diagnostic_show_locus_one_liner): New function.
13660 (selftest::diagnostic_show_locus_c_tests): Call the new test
13662 * diagnostic.c (diagnostic_initialize): Initialize
13663 colorize_source_p, show_ruler_p and parseable_fixits_p.
13664 (default_diagnostic_finalizer): Update for change to
13665 diagnostic_show_locus.
13666 (diagnostic_append_note): Likewise.
13667 * diagnostic.h (diagnostic_show_locus): Replace
13668 const diagnostic_info * param with location * and diagnostic_t.
13670 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13672 * input.c (saved_line_table): New global.
13673 (class selftest::temp_line_table): Rename to line_table_test and
13674 move declaration to selftest.h, and drop field m_old_line_table.
13675 (selftest::temp_line_table::temp_line_table): Rename ctor to...
13676 (selftest::line_table_test::line_table_test): ...this. Add a
13677 default ctor. Store current value of line_table within
13679 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
13680 (selftest::line_table_test::~line_table_test): ...this, and
13681 restore line_table from the saved_line_table, rather than
13683 (selftest::test_accessing_ordinary_linemaps): Update for above
13685 (selftest::test_lexer): Likewise.
13686 (struct selftest::lexer_test): Likewise.
13687 (selftest::lexer_test::lexer_test): Likewise.
13688 (selftest::input_c_tests): Move the looping over test cases from
13690 (selftest::for_each_line_table_case): New function.
13691 * input.h (saved_line_table): New decl.
13692 * selftest.h (struct selftest::line_table_case): New forward decl.
13693 (class selftest::line_table_test): New class, moved here from
13694 selftest::temp_line_table in input.c, and renamed.
13695 (selftest::for_each_line_table_case): New decl.
13697 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
13700 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
13702 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
13704 PR middle-end/70895
13705 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
13706 enclosing parallel construct for reduction variables on OpenACC loop
13709 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
13711 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
13712 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
13714 (function_to_dwarf_procedure): Update comment.
13716 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13718 * input.c (diagnostics_file_cache_forcibly_evict_file): New
13720 * input.h (diagnostics_file_cache_forcibly_evict_file): New
13722 * selftest.c (selftest::temp_source_file::~temp_source_file):
13723 Evict m_filename from the diagnostic file cache.
13725 2016-08-18 Richard Biener <rguenther@suse.de>
13727 * tree-pass.h (make_pass_materialize_all_clones): Declare.
13728 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
13729 make_pass_materialize_all_clones): New simple IPA pass encapsulating
13730 clone materialization.
13731 * passes.def (all_late_ipa_passes): Start with
13732 pass_materialize_all_clones.
13733 * cgraphunit.c (symbol_table::compile): Remove call to
13734 materialize_all_clones.
13735 * tree-into-ssa.c: Include statistics.h.
13736 (update_ssa): Count number of times we do incremental/rewrite
13739 2016-08-18 Richard Biener <rguenther@suse.de>
13741 PR tree-optimization/77282
13742 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13743 When doing auto-parallelizing also prevent use of PHIs that
13744 carry dependences across loop backedges.
13746 2016-08-18 Tamar Christina <tamar.christina@arm.com>
13747 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13749 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
13751 2016-08-18 Richard Biener <rguenther@suse.de>
13753 * ssa-iterators.h (ssa_vuse_operand): New inline.
13754 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
13755 (predicate_all_scalar_phis): Use remove_phi_node to remove
13756 phi nodes predicated. Delay removing virtual PHIs.
13757 (predicate_mem_writes): Update virtual operands.
13758 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
13759 (tree_if_conversion): Do not rewrite virtual SSA form.
13760 * tree-phinodes.c (release_phi_node): Make static.
13761 * tree-phinodes.h (release_phi_node): Remove.
13763 2016-08-18 Jakub Jelinek <jakub@redhat.com>
13765 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
13766 codes that appear in bdesc_* arrays, instead include i386-builtin.def
13767 twice to define those.
13768 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
13769 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
13770 bdesc_multi_arg): Define by including i386-builtin.def the third time.
13771 * config/i386/i386-builtin.def: New file.
13773 2016-08-17 David Malcolm <dmalcolm@redhat.com>
13775 * input.c (get_source_range_for_char): Rename to...
13776 (selftest::get_source_range_for_char): ...this, and move within
13777 the #if CHECKING_P guard.
13778 (get_num_source_ranges_for_substring): Rename to...
13779 (selftest::get_num_source_ranges_for_substring): ...this, move
13780 within the #if CHECKING_P guard, and make static.
13781 (selftest::assert_num_substring_ranges): Initialize
13784 2016-08-18 Alan Modra <amodra@gmail.com>
13786 PR rtl-optimization/72771
13787 * reload.c (find_reloads): Don't assume that a subreg mem is OK
13788 when find_reloads_toplev returns address_reloaded==-1.
13789 (alternative_allows_const_pool_ref): Update comment.
13791 2015-08-17 Alan Hayward <alan.hayward@arm.com>
13793 PR tree-optimization/71752
13794 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
13795 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
13797 2016-08-17 Jakub Jelinek <jakub@redhat.com>
13799 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
13800 instead of testing ECF_NORETURN bit in gimple_call_flags.
13801 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
13802 * predict.c (tree_bb_level_predictions): Likewise.
13803 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
13805 PR middle-end/77259
13806 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
13807 turning a call into __builtin_unreachable-like noreturn call, adjust
13808 gimple_call_set_fntype.
13809 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
13810 gimple_call_fntype has void return type.
13812 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
13814 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
13815 maybe_lookup_decl, to handle nested acc loop directives.
13817 2016-08-17 Richard Biener <rguenther@suse.de>
13819 PR tree-optimization/76490
13820 * tree-vrp.c (update_value_range): Preserve overflow infinities
13821 when intersecting with ranges from get_range_info.
13822 (operand_less_p): Handle overflow infinities correctly.
13823 (value_range_constant_singleton): Use vrp_operand_equal_p
13824 to handle overflow max/min correctly.
13825 (vrp_valueize): Likewise.
13826 (union_ranges): Likewise.
13827 (intersect_ranges): Likewise.
13828 (vrp_visit_phi_node): Improve iteration limitation to only
13829 apply when we'll possibly re-visit the PHI via a changed argument
13832 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
13834 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
13835 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
13836 rather than those that should not be built.
13838 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
13841 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
13843 2016-08-17 Richard Biener <rguenther@suse.de>
13845 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
13846 (verify_vssa): New function verifying virtual SSA form.
13847 (verify_ssa): Call it.
13848 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
13849 Do not apply loop-closed SSA handling to virtuals.
13850 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
13851 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
13852 when rewriting their symbol.
13853 (prepare_def_site_for): Likewise.
13854 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
13855 operands of moved stmts.
13857 2016-08-17 Richard Biener <rguenther@suse.de>
13859 PR tree-optimization/23855
13860 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
13861 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
13862 find guards to hoist. Do not update SSA form but rewrite virtuals
13863 into loop closed SSA.
13864 (find_loop_guard): Adjust to skip already hoisted guards. Do
13865 not mark virtuals for renaming or update SSA form.
13867 2016-08-17 Martin Liska <mliska@suse.cz>
13869 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
13870 a LONG_LONG_TYPE_SIZE comparison.
13871 * gcov-io.h: Remove macro definitions.
13872 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
13873 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
13876 2016-08-16 Jakub Jelinek <jakub@redhat.com>
13878 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
13879 that builtins not mentioned in bdesc_* arrays come first, then
13880 the ones mentioned in bdesc_* arrays in the order they appear in
13881 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
13882 IX86_BUILTIN__BDESC_*_LAST enumerator.
13883 (bdesc_mpx): Fix up a comment typo.
13884 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
13885 __builtin_ia32_vpcomneu[bwdq] builtins.
13886 (BDESC_VERIFY, BDESC_VERIFYS): Define.
13887 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
13888 enum ix86_builtins ordering.
13889 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
13890 for direct bdesc_* array member access instead of searching all the
13891 arrays until an fcode match is found.
13893 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
13895 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
13896 pattern as define_insn_and_split. Split insn before reload to
13898 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
13899 <shift_insn><mode>3_1.
13900 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
13901 <rotate_insn><mode>3_1.
13903 2016-08-16 David Malcolm <dmalcolm@redhat.com>
13906 * input.c (get_source_range_for_substring): Rename to...
13907 (get_source_location_for_substring): ...this, adding param
13908 "caret_idx", and converting output param from source_range * to
13910 (get_source_range_for_char): New function.
13911 (get_num_source_ranges_for_substring): Update comment to reflect
13913 (assert_char_at_range): Update to use get_source_range_for_char
13914 rather than get_source_range_for_substring.
13915 (test_lexer_string_locations_concatenation_2): Likewise.
13916 * substring-locations.h (get_source_range_for_substring): Rename
13918 (get_source_location_for_substring): ...this, and adding param
13919 "caret_idx", and converting output param from source_range * to
13922 2016-08-16 David Malcolm <dmalcolm@redhat.com>
13924 * input.c (class selftest::temp_source_file): Move to
13926 (selftest::temp_source_file::temp_source_file): Move to
13928 (selftest::temp_source_file::~temp_source_file): Likewise.
13929 * selftest.c (selftest::temp_source_file::temp_source_file): Move
13931 (selftest::temp_source_file::~temp_source_file): Likewise.
13932 * selftest.h (class selftest::temp_source_file): Move here from
13935 2016-08-16 Jakub Jelinek <jakub@redhat.com>
13938 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
13939 inlining, add cgraph edge for the added __builtin_unreachable call.
13941 PR middle-end/67485
13942 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
13943 only cast it to SHWI for the final comparison.
13945 2016-08-16 Martin Liska <mliska@suse.cz>
13947 PR gcov-profile/36412
13948 * doc/gcov.texi: Document --hash-filenames(-x).
13949 * gcov.c (print_usage): Add the option.
13950 (process_args): Process the option, sort options alphabetically.
13951 (md5sum_to_hex): New function.
13952 (make_gcov_file_name): Do the md5sum and append it to a
13955 2016-08-16 Bin Cheng <bin.cheng@arm.com>
13957 PR tree-optimization/69848
13958 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
13959 and swtich operands to avoid additional NOT instruction.
13960 (vcond<v_cmp_mixed><mode>): Ditto.
13961 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
13963 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
13965 * doc/install.texi (*-*-solaris2*): Adjust latest change.
13967 2016-08-16 Richard Biener <rguenther@suse.de>
13969 PR tree-optimization/76783
13970 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
13971 BB visited flags at start.
13973 2016-08-16 Bin Cheng <bin.cheng@arm.com>
13975 PR tree-optimization/72817
13976 PR tree-optimization/73450
13977 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
13978 multiple_of_p for adjusted IV.base.
13980 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
13983 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
13984 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
13985 for !flag_finite_math_only or flag_signed_zeros.
13986 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
13987 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
13988 depend on flag_finite_math_only.
13989 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
13991 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
13992 (*ieee_smin<mode>3): Ditto.
13993 (*ieee_smax<mode>3): Ditto.
13994 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
13995 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
13997 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
13998 depend on flag_finite_math_only.
13999 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
14000 (*mmx_<code>v2sf3): Remove.
14001 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
14002 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
14003 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
14005 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
14007 PR rtl-optimization/73650
14008 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
14009 it is not a simple move.
14011 2016-08-15 Martin Liska <mliska@suse.cz>
14014 * gcc.c (do_spec_1): Call save_string with the right size.
14015 (save_string): Do an assert about string we copy.
14017 2016-08-15 Richard Biener <rguenther@suse.de>
14019 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
14020 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
14022 (pass_data_stv): Likewise.
14024 2016-08-15 Richard Biener <rguenther@suse.de>
14026 PR tree-optimization/73434
14027 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
14028 TBAA info on the base when forwarding a non-invariant address.
14030 2016-08-15 Jakub Jelinek <jakub@redhat.com>
14032 * dwarf2out.c (struct checksum_attributes): Add
14033 at_string_length_bit_size and at_string_length_byte_size fields.
14034 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
14035 and DW_AT_string_length_byte_size.
14036 (die_checksum_ordered): Handle at_string_length_bit_size and
14037 at_string_length_byte_size.
14038 (gen_array_type_die): For dwarf_version >= 5 emit
14039 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
14040 (adjust_string_types): For dwarf_version >= 5 remove
14041 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
14042 (resolve_addr): Likewise.
14045 * dwarf2out.c (string_types): New variable.
14046 (gen_array_type_die): Change early_dwarf handling of
14047 DW_AT_string_length, create DW_OP_call4 referencing the
14048 length var temporarily. Handle parameters that are pointers
14050 (adjust_string_types): New function.
14051 (gen_subprogram_die): Temporarily set string_types to local var,
14052 call adjust_string_types if needed.
14053 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
14055 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
14057 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
14059 * doc/install.texi (*-*-solaris2*): Fix version number and document
14060 requirement on GNU make for building libjava with the Solaris linker.
14062 2016-08-15 Martin Liska <mliska@suse.cz>
14063 Jakub Jelinek <jakub@redhat.com>
14065 PR tree-optimization/72824
14066 * tree-loop-distribution.c (const_with_all_bytes_same)
14067 <case VECTOR_CST>: Fix a typo.
14069 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
14072 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
14073 Renamed from _mm512_undefined_si512.
14074 (_mm_undefined_si512): New definition.
14076 2016-08-13 Richard Biener <rguenther@suse.de>
14078 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
14079 into PHIs and update the lattice for its def.
14081 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14084 * ubsan.c (instrument_si_overflow): Pass true instead of false
14086 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
14087 of bbs. Return TODO_cleanup_cfg if any returned true.
14089 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14091 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
14092 ISA 3.0 MTVSRDD instruction.
14093 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
14096 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
14098 PR tree-optimization/71083
14099 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
14100 bitfield access when possible.
14102 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
14104 PR middle-end/71654
14105 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
14106 sign-changing cast from a shorter unsigned type to a wider
14109 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14111 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
14112 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
14113 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
14115 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14117 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
14118 Correct costs for vec_construct.
14120 2016-08-12 Bin Cheng <bin.cheng@arm.com>
14122 PR tree-optimization/69848
14123 * tree-vectorizer.h (enum vect_def_type): New condition reduction
14124 type CONST_COND_REDUCTION.
14125 * tree-vect-loop.c (vectorizable_reduction): Support new condition
14126 reudction type CONST_COND_REDUCTION.
14128 2016-08-12 Richard Biener <rguenther@suse.de>
14130 PR tree-optimization/57326
14131 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
14132 returning an SSA name.
14133 (phi_translate_1): When fully_constant_expression returns a NAME
14134 make sure we have a leader for it.
14136 2016-08-12 Martin Liska <mliska@suse.cz>
14137 Adam Fineman <afineman@afineman.com>
14139 * gcov.c (process_file): Create .gcov file when .gcda
14142 2016-08-12 Marek Polacek <polacek@redhat.com>
14145 * alias.c (find_base_value): Adjust fall through comment.
14146 * cfgexpand.c (expand_debug_expr): Likewise.
14147 * combine.c (find_split_point): Likewise.
14148 (expand_compound_operation): Likewise. Add FALLTHRU.
14149 (make_compound_operation): Adjust fall through comment.
14150 (canon_reg_for_combine): Add FALLTHRU.
14151 (force_to_mode): Adjust fall through comment.
14152 (simplify_shift_const_1): Likewise.
14153 (simplify_comparison): Likewise.
14154 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
14156 * config/aarch64/predicates.md: Likewise.
14157 * config/i386/i386.c (function_arg_advance_32): Likewise.
14158 (ix86_gimplify_va_arg): Likewise.
14159 (print_reg): Likewise.
14160 (ix86_print_operand): Likewise.
14161 (ix86_build_const_vector): Likewise.
14162 (ix86_expand_branch): Likewise.
14163 (ix86_sched_init_global): Adjust fall through comment.
14164 (ix86_expand_args_builtin): Add FALLTHRU.
14165 (ix86_expand_builtin): Likewise.
14166 (ix86_expand_vector_init_one_var): Likewise.
14167 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
14168 (rs6000_adjust_cost): Likewise.
14169 (insn_must_be_first_in_group): Likewise.
14170 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
14171 * dbxout.c (dbxout_symbol): Adjust fall through comment.
14172 * df-scan.c (df_uses_record): Likewise.
14173 * dojump.c (do_jump): Add FALLTHRU.
14174 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
14176 (resolve_args_picking_1): Adjust fall through comment.
14177 (loc_list_from_tree_1): Likewise.
14178 * expmed.c (make_tree): Likewise.
14179 * expr.c (expand_expr_real_2): Add FALLTHRU.
14180 (expand_expr_real_1): Likewise. Adjust fall through comment.
14181 * fold-const.c (const_binop): Adjust fall through comment.
14182 (fold_truth_not_expr): Likewise.
14183 (fold_cond_expr_with_comparison): Add FALLTHRU.
14184 (fold_binary_loc): Likewise.
14185 (contains_label_1): Adjust fall through comment.
14186 (multiple_of_p): Likewise.
14187 * gcov-tool.c (process_args): Add FALLTHRU.
14188 * genattrtab.c (check_attr_test): Likewise.
14189 (write_test_expr): Likewise.
14190 * genconfig.c (walk_insn_part): Likewise.
14191 * genpreds.c (validate_exp): Adjust fall through comment.
14192 (needs_variable): Likewise.
14193 * gensupport.c (get_alternatives_number): Add FALLTHRU.
14194 (subst_dup): Likewise.
14195 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
14196 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
14197 (gimplify_scan_omp_clauses): Add FALLTHRU.
14198 (goa_stabilize_expr): Likewise.
14199 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
14201 * hsa-gen.c (get_address_from_value): Likewise.
14202 * ipa-icf.c (sem_function::hash_stmt): Likewise.
14203 * ira.c (ira_setup_alts): Add FALLTHRU.
14204 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
14206 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
14207 * opts.c (common_handle_option): Likewise.
14208 * read-rtl.c (read_rtx_code): Likewise.
14209 * real.c (round_for_format): Likewise.
14210 * recog.c (asm_operand_ok): Likewise.
14211 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
14212 * reload1.c (set_label_offsets): Likewise.
14213 (eliminate_regs_1): Likewise.
14214 (reload_reg_reaches_end_p): Likewise.
14215 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
14216 (rtx_cost): Likewise.
14217 * sched-rgn.c (is_exception_free): Likewise.
14218 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
14219 * stor-layout.c (int_mode_for_mode): Likewise.
14220 * toplev.c (print_to_asm_out_file): Likewise.
14221 (print_to_stderr): Likewise.
14222 * tree-cfg.c (gimple_verify_flow_info): Likewise.
14223 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
14224 (chrec_fold_multiply): Likewise.
14225 (evolution_function_is_invariant_rec_p): Likewise.
14226 (for_each_scev_op): Likewise.
14227 * tree-data-ref.c (siv_subscript_p): Likewise.
14228 (get_references_in_stmt): Likewise.
14229 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
14230 (substitute_in_expr): Likewise.
14231 (type_cache_hasher::equal): Likewise.
14232 (walk_type_fields): Likewise.
14233 * var-tracking.c (adjust_mems): Add FALLTHRU.
14234 (set_dv_changed): Adjust fall through comment.
14235 * varasm.c (default_function_section): Add FALLTHRU.
14237 2016-08-12 Marek Polacek <polacek@redhat.com>
14240 * tree-complex.c (expand_complex_division): Add missing break.
14242 2016-08-12 Richard Biener <rguenther@suse.de>
14244 * passes.c (execute_todo): Do not push/pop TV_TODO.
14245 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
14246 (execute_one_pass): Likewise.
14247 * common.opt (ftime-report-details): New switch.
14248 * doc/invoke.texi (ftime-report-details): Document.
14249 * timevar.h (timer::print_row): Adjust signature.
14250 (timer::all_zero): New static helper.
14251 (timer::child_map_t): New typedef.
14252 (timer::time_var_def): Add children field.
14253 * timevar.c (timer::named_items::print): Adjust.
14254 (timer::~timer): Free timevar recorded children.
14255 (timer::pop_internal): When -ftime-report-details record
14256 time spent in sub-timevars.
14257 (timer::print_row): Adjust.
14258 (timer::print): Print sub-timevar stats, use all_zero.
14259 * timevar.def (TV_TODO): Remove.
14261 2016-08-12 Richard Biener <rguenther@suse.de>
14263 PR tree-optimization/72851
14264 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
14265 worklists to use bitmaps indexed in execution order.
14266 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
14267 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
14268 (cfg_blocks): Make a bitmap.
14269 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
14271 (cfg_blocks_empty_p): Adjust.
14272 (cfg_blocks_add): Likewise.
14273 (cfg_blocks_get): Likewise.
14274 (add_ssa_edge): Likewise.
14275 (add_control_edge): Likewise.
14276 (simulate_stmt): Likewise.
14277 (process_ssa_edge_worklist): Likewise.
14278 (simulate_block): Likewise.
14279 (ssa_prop_init): Compute PRE order and stmt UIDs.
14280 (ssa_prop_fini): Adjust.
14281 (ssa_propagate): Adjust.
14283 2016-08-12 Richard Biener <rguenther@suse.de>
14285 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
14286 the currently executable edges have fixed ranges. Always
14287 go through update_value_range.
14289 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
14293 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
14294 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
14295 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
14296 (LANG_HOOKS_DECLS): Add it.
14297 * langhooks.h (struct lang_hooks_for_decls): Add
14298 function_decl_defaulted. Const_tree-ify
14299 function_decl_explicit_p and function_decl_deleted_p.
14300 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
14301 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
14302 also at strict DWARF v5.
14305 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
14306 TYPE_QUAL_CONST in reference-typed decls.
14309 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
14310 in DW_OP_pieces, just enough to handle pointers to member
14312 (gen_remaining_tmpl_value_param_die_attribute): Use a location
14313 expression on DWARFv5 if a constant value doesn't work.
14315 2016-08-11 David Malcolm <dmalcolm@redhat.com>
14317 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
14318 * selftest.c (selftest::test_assertions): New function.
14319 (selftest::selftest_c_tests): New function.
14320 * selftest.h (selftest::selftest_c_tests): New declaration.
14322 2016-08-11 Richard Biener <rguenther@suse.de>
14323 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14325 PR rtl-optimization/72855
14326 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
14328 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14331 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
14332 (vsx_store_<mode>): Likewise.
14334 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
14336 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
14337 TImode CONST_WIDE_INT store.
14338 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
14340 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
14342 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
14343 mode if unaligned SSE load and store are optimal.
14345 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
14347 PR tree-optimization/71083
14348 * tree-predcom.c (ref_at_iteration): Correctly align the
14351 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14353 * config/s390/s390-builtin-types.def: Add INT128 types.
14354 * config/s390/s390-builtins.def: Add INT128 variants for the add
14355 sub low-level builtins dealing with TImode.
14356 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
14357 via subreg when expanding a builtin.
14358 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
14359 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
14361 * config/s390/vecintrin.h: Adjust builtin names accordingly.
14362 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
14363 ("vec_addc<mode>", "vec_addc_u128"): Merge to
14364 "vacc<bhfgq>_<mode>".
14365 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
14366 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
14367 ("vec_subc<mode>", "vec_subc_u128"): Merge to
14368 "vscbi<bhfgq>_<mode>".
14369 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
14370 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
14372 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14374 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
14376 2016-08-11 Bin Cheng <bin.cheng@arm.com>
14378 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
14379 unused declaration.
14380 (vcond<v_cmp_mixed><mode>): Ditto.
14381 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
14383 2016-08-11 Bin Cheng <bin.cheng@arm.com>
14385 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
14386 variable explicitly, also assert on it before use.
14388 2016-08-11 Richard Biener <rguenther@suse.de>
14390 PR tree-optimization/72772
14391 * cfgloopmanip.c (create_preheader): Use split_edge if there
14392 is a single loop entry, avoiding degenerate PHIs.
14394 2016-08-11 Richard Biener <rguenther@suse.de>
14396 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
14397 unconditional TODO_cleanup_cfg.
14398 (pass_thread_jumps::execute): Initialize loops, perform a CFG
14399 cleanup only if we threaded a jump.
14401 2016-08-11 Alan Modra <amodra@gmail.com>
14404 * lra-constraints.c (simplify_operand_subreg): Allow subreg
14405 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
14406 slow. Emit two reloads for slow mem case, first loading in
14407 fast innermode, then converting to required mode.
14409 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
14411 * config/rs6000/altivec.h (vec_extract_exp): New macro.
14412 (vec_extract_sig): New macro.
14413 (vec_insert_exp): New macro.
14414 (vec_test_data_class): New macro.
14415 (scalar_extract_exp): New macro.
14416 (scalar_extract_sig): New macro.
14417 (scalar_insert_exp): New macro.
14418 (scalar_test_data_class): New macro.
14419 (scalar_test_neg): New macro.
14420 (scalar_cmp_exp_gt): New macro.
14421 (scalar_cmp_exp_lt): New macro.
14422 (scalar_cmp_exp_eq): New macro.
14423 (scalar_cmp_exp_unordered): New macro.
14424 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
14425 to enforce constraint that operand is a 7-bit unsigned literal.
14426 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
14427 for power9 built-ins.
14428 (BU_P9V_VSX_2): Likewise.
14429 (BU_P9V_64BIT_VSX_2): Likewise.
14430 (VSEEDP): Add scalar extract exponent support.
14431 (VSEESP): Add scalar extract signature support.
14432 (VSTDCNDP): Add scalar test negative support.
14433 (VSTDCNSP): Likewise.
14434 (VSIEDP): Add scalar insert exponent support.
14435 (VSCEDPGT): Add scalar compare exponent greater than support.
14436 (VSCEDPLT): Add scalar compare exponent less than support.
14437 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
14438 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
14439 (VSTDCDP): Add scalar test data class support.
14440 (VSTDCSP): Likewise.
14441 (VSEEDP): Add overload support for scalar extract exponent
14443 (VSESDP): Add overload support for scalar extract signature
14445 (VSTDCN): Add overload support for scalar test negative
14447 (VSTDCNDP): Add overload support for scalar test negative
14449 (VSTDCNSP): Add overload support for scalar test negative
14451 (VSIEDP): Add overload support for scalar insert exponent
14453 (VSTDC): Add overload support for scalar test data class
14455 (VSTDCDP): Add overload support for scalar test data class
14457 (VSTDCSP): Add overload support for scalar test data class
14459 (VSCEDPGT): Add overload support for scalar compare exponent
14460 greater than operation.
14461 (VSCEDPLT): Add overload support for scalar compare exponent
14462 less than operation.
14463 (VSCEDPEQ): Add overload support for scalar compare exponent
14464 test-for-equality operation.
14465 (VSCEDPUO): Add overload support for scalar compare exponent
14466 test-for-unordered operation.
14467 (VEEDP): Add vector extract exponent support.
14469 (VESDP): Add vector extract significand support.
14471 (VIEDP): Add vector insert exponent support.
14473 (VTDCDP): Add vector test data class support.
14474 (VTDCSP): Likewise.
14475 (VES): Add overload support for vector extract significand operation.
14478 (VEE): Add overload support for vector extract exponent operation.
14481 (VTDC): Add overload support for vector test data class operation.
14482 (VTDCDP): Likewise.
14483 (VTDCSP): Likewise.
14484 (VIE): Add overload support for vector insert exponent operation.
14487 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14488 overloaded binary floating point functions.
14489 (altivec_resolve_overloaded_builtin): Improve error messages to
14490 distinguish between functions not supported in the current
14491 compiler configuration and functions that were invoked with an
14492 invalid parameter combination, and include the built-in function
14493 name in both error messages.
14494 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
14496 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
14498 (rs6000_expand_binop_builtin): Add check to enforce that argument
14499 2 of the test data class operations is a 7-bit unsigned literal.
14500 (rs6000_invalid_builtin): Add code to issue an error message if a
14501 built-in function that requires the power9_vector and -m32
14502 command-line options is compiled without these options.
14503 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
14504 (UNSPEC_VSX_SXSIGDP): New value.
14505 (UNSPEC_VSX_SXSIGPDP): New value.
14506 (UNSPEC_VSX_SIEXPDP): New value.
14507 (UNSPEC_VSX_SCMPEXPDP): New value.
14508 (UNSPEC_VSX_STSTDC): New value.
14509 (UNSPEC_VSX_VXEXP): New value.
14510 (UNSPEC_VSX_VXSIG): New value.
14511 (UNSPEC_VSX_VIEXP): New value.
14512 (UNSPEC_VSX_VTSTDC): New value.
14513 (xsxexpdp): New insn for scalar extract exponent.
14514 (xsxsigdp): New insn for scalar extract significand.
14515 (xsiexpdp): New insn for scalar insert exponent.
14516 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
14517 (*xscmpexpdp): New insn for scalar compare exponents.
14518 (xststdc<Fvsx): New expansion for both single- and
14519 double-precision scalar test data class operations.
14520 (xststdcneg<Fvsx>): New expansion for both single- and
14521 double-precision scalar test for negative value operations.
14522 (*xststdc<Fvsx>): New insn for scalar test data class
14524 (xvxexp<VSs>): New insn for single- and double-precision
14525 vector extract exponent operation.
14526 (xvxsig<VSs>): New insn for single- and double-precision
14527 vector extract significand operation.
14528 (xviexp<VSs>): New insn for single- and double-precision
14529 vector insert exponent operation.
14530 (xvtstdc<VSs>): New insn for single- and double-precision
14531 vector test data class operation.
14532 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14533 built-in functions to represent the Power9 binary floating-point
14534 support instructions.
14536 2016-08-10 bin cheng <bin.cheng@arm.com>
14538 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
14540 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
14541 Renlin Li <renlin.li@arm.com>
14542 Bin Cheng <bin.cheng@arm.com>
14544 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
14545 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
14546 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
14547 (aarch64_vcond_internal<mode><mode>): Delete pattern.
14548 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
14549 (vcond<v_cmp_result><mode>): Ditto.
14550 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
14551 (vcondu<mode><mode>): Ditto.
14552 (vcond<v_cmp_mixed><mode>): New pattern.
14553 (vcondu<mode><v_cmp_mixed>): New pattern.
14554 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
14555 of aarch64_vcond_internal.
14557 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
14558 Renlin Li <renlin.li@arm.com>
14559 Bin Cheng <bin.cheng@arm.com>
14561 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
14562 (vec_cmp<mode><v_cmp_result>): New pattern.
14563 (vec_cmpu<mode><mode>): New pattern.
14564 (vcond_mask_<mode><v_cmp_result>): New pattern.
14566 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
14568 PR tree-optimization/71734
14569 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
14570 REF_LOOP, invoke ref_indep_loop_p_1.
14571 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
14572 to ref_indep_loop_p.
14573 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
14574 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
14575 is inside LOOP, do not cache dpendence value for loops with
14577 (ref_indep_loop_p_2): Delete function.
14578 (can_sm_ref_p): Pass LOOP as additional argument to
14581 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
14584 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
14585 being an offsettable address.
14587 2016-08-10 Martin Liska <mliska@suse.cz>
14589 PR gcov-profile/58306
14590 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
14591 atomic variants of profile update functions.
14593 2016-08-10 Martin Liska <mliska@suse.cz>
14595 Cherry picked (and modified) from google-4_7 branch
14596 2012-12-26 Rong Xu <xur@google.com>
14597 * common.opt (fprofile-update): Add new flag.
14598 * coretypes.h: Define enum profile_update.
14599 * doc/invoke.texi: Document -fprofile-update.
14600 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
14601 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
14602 * tree-profile.c (gimple_init_edge_profiler): Generate
14603 also atomic profiler update.
14604 (gimple_gen_edge_profiler): Likewise.
14606 2016-08-10 David Malcolm <dmalcolm@redhat.com>
14608 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
14609 stack_usage_file to NULL after fclose calls.
14611 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14614 * reload.c (push_reload): Compute subreg_in_class for
14615 subregs of constants and plus expressions. Remove special
14616 handling of SYMBOL_REFs.
14618 2016-08-10 Alan Modra <amodra@gmail.com>
14621 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
14622 SImode for TARGET_E500_DOUBLE when given SImode.
14624 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
14626 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
14627 unused variable __O.
14629 2016-08-09 Martin Liska <mliska@suse.cz>
14631 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
14632 _gcov_reset to __gcov_reset.
14633 * doc/gcov-tool.texi: Fix typo.
14635 2016-08-09 Martin Liska <mliska@suse.cz>
14637 * value-prof.c (gimple_divmod_values_to_profile): Do not
14638 instrument MOD histogram if a value is not a SSA name.
14640 2016-08-09 Martin Liska <mliska@suse.cz>
14642 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
14645 2016-08-09 Renlin Li <renlin.li@arm.com>
14647 PR middle-end/64971
14648 * calls.c (prepare_call_address): Convert funexp to Pmode when
14650 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
14651 (sibcall_value): Likewise.
14653 2016-08-09 Marek Polacek <polacek@redhat.com>
14656 * cselib.c (cselib_expand_value_rtx_1): Add return.
14657 * gengtype.c (dbgprint_count_type_at): Likewise.
14658 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
14659 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
14661 2016-08-09 Martin Jambor <mjambor@suse.cz>
14664 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
14665 if instance is a MEM_REF.
14667 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
14670 * config/i386/i386.md (*movtf_internal): Use
14671 lra_in_progress || reload_completed instead of !can_create_pseudo_p
14672 in the insn constraint.
14673 (*movxf_internal): Ditto.
14674 (*movdf_internal): Ditto.
14675 (*movsf_internal): Ditto.
14677 2016-08-09 Bin Cheng <bin.cheng@arm.com>
14679 PR tree-optimization/72772
14680 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
14683 2016-08-09 Bin Cheng <bin.cheng@arm.com>
14685 PR tree-optimization/72772
14686 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
14688 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
14689 parameter STOP and update calls. Move expand_simple_operations
14690 function call from here...
14691 (simplify_using_initial_conditions): ...to here. Delete parameter
14693 (tree_simplify_using_condition): Delete parameter STOP.
14694 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
14695 simplify_using_initial_conditions.
14697 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
14700 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
14701 Use create_tmp_var_raw instead of create_tmp_var.
14703 2016-08-09 Richard Biener <rguenther@suse.de>
14705 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
14706 Treat same SSA names related.
14708 2016-08-09 Jakub Jelinek <jakub@redhat.com>
14710 PR tree-optimization/72824
14711 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
14712 real_zerop is not negative.
14714 2016-08-09 Richard Biener <rguenther@suse.de>
14716 PR tree-optimization/71802
14717 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
14718 all merge opportunities with the predecessor.
14720 2016-08-09 Richard Biener <rguenther@suse.de>
14723 * ipa-prop.c (ipa_modify_formal_parameters): Build
14724 parameter types with natural alignment also for the
14727 2016-08-08 Andi Kleen <ak@linux.intel.com>
14729 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
14731 2016-08-08 David Malcolm <dmalcolm@redhat.com>
14734 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
14735 do-nothing langhook.
14736 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
14737 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
14738 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
14739 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
14741 2016-08-08 David Malcolm <dmalcolm@redhat.com>
14744 * input.c: Ensure that HAVE_ICONV is defined.
14746 2016-08-08 Jakub Jelinek <jakub@redhat.com>
14748 PR middle-end/72781
14749 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
14750 private vars for lastprivate and for linear iterator.
14752 PR middle-end/68762
14753 * omp-simd-clone.c: Include varasm.h.
14754 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
14755 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
14756 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
14757 update function name.
14759 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14761 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
14762 (avr_diagnose_devicespecs_error): Remove.
14763 (avr_devicespecs_file): Remove composing absolute path for specfile
14764 and its verbose info. Remove conditions to check specs-file,
14766 2016-08-08 Jakub Jelinek <jakub@redhat.com>
14768 PR rtl-optimization/72821
14769 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
14770 just return false for them.
14772 2016-08-08 Alan Modra <amodra@gmail.com>
14775 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
14776 toc refs created during reload. Update function comment.
14778 2016-08-08 Alan Modra <amodra@gmail.com>
14781 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
14782 alternatives. Put loads first, then stores, and reg/reg moves
14783 within same class later. Delete attr length.
14785 2016-08-08 Alan Modra <amodra@gmail.com>
14788 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
14789 (mem_operand_ds_form): New predicate.
14790 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
14791 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
14792 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
14793 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
14794 (extendsfdf2_fpr): Replace o constraint with wY.
14796 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
14798 * tree-ssa-threadbackward.c: Include tree-inline.h
14799 (profitable_jump_thread_path): Use estimate_num_insns to estimate
14800 size of copied block; for cold paths reduce duplication.
14801 (find_jump_threads_backwards): Remove redundant tests.
14802 (pass_thread_jumps::gate): Enable for -Os.
14804 2016-08-07 Jakub Jelinek <jakub@redhat.com>
14807 * stor-layout.c (layout_decl): Fix up formatting.
14808 (relayout_decl): Allow DECL to be FIELD_DECL.
14810 2016-08-07 Alan Modra <amodra@gmail.com>
14812 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
14814 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
14816 * data-streamer-in.c (streamer_read_wide_int): New.
14817 (streamer_read_widest_int): Renamed function.
14818 * data-streamer-out.c (streamer_write_wide_int): New
14819 (streamer_write_widest_int): Renamed function.
14820 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
14822 (input_cfg): Call renamed function.
14823 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
14825 (output_cfg): Call renamed function.
14826 * data-streamer.h: Add declarations.
14828 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14830 * tree-ssa-ccp.c (extend_mask): New param sgn.
14831 Remove ORing with wi::mask.
14832 (get_default_value): Adjust call to extend_mask to pass sign.
14833 (evaluate_stmt): Likewise.
14835 2016-08-06 Jakub Jelinek <jakub@redhat.com>
14837 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
14840 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14842 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
14843 transform if operand's type is pointer to function or method.
14845 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
14847 PR tree-optimization/18046
14848 * tree-ssa-threadedge.c: Include cfganal.h.
14849 (simplify_control_statement_condition): If simplifying a
14850 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
14851 with the dominating ASSERT_EXPR before handing it off to VRP.
14852 Mention that a CASE_LABEL_EXPR may be returned.
14853 (thread_around_empty_blocks): Adjust to handle
14854 simplify_control_statement_condition() returning a
14856 (thread_through_normal_block): Likewise.
14857 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
14858 a switch statement by trying to determine which case label
14861 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
14863 PR rtl-optimization/69847
14864 * lra-constraints.c (process_invariant_for_inheritance): Save
14865 pattern instead of src.
14866 (remove_inheritance_pseudos): Use the pattern. Add assert.
14868 2016-08-05 David Malcolm <dmalcolm@redhat.com>
14870 * input.c (string_concat::string_concat): New constructor.
14871 (string_concat_db::string_concat_db): New constructor.
14872 (string_concat_db::record_string_concatenation): New method.
14873 (string_concat_db::get_string_concatenation): New method.
14874 (string_concat_db::get_key_loc): New method.
14875 (class auto_cpp_string_vec): New class.
14876 (get_substring_ranges_for_loc): New function.
14877 (get_source_range_for_substring): New function.
14878 (get_num_source_ranges_for_substring): New function.
14879 (class selftest::lexer_test_options): New class.
14880 (struct selftest::lexer_test): New struct.
14881 (class selftest::ebcdic_execution_charset): New class.
14882 (selftest::ebcdic_execution_charset::s_singleton): New variable.
14883 (selftest::lexer_test::lexer_test): New constructor.
14884 (selftest::lexer_test::~lexer_test): New destructor.
14885 (selftest::lexer_test::get_token): New method.
14886 (selftest::assert_char_at_range): New function.
14887 (ASSERT_CHAR_AT_RANGE): New macro.
14888 (selftest::assert_num_substring_ranges): New function.
14889 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
14890 (selftest::assert_has_no_substring_ranges): New function.
14891 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
14892 (selftest::test_lexer_string_locations_simple): New function.
14893 (selftest::test_lexer_string_locations_ebcdic): New function.
14894 (selftest::test_lexer_string_locations_hex): New function.
14895 (selftest::test_lexer_string_locations_oct): New function.
14896 (selftest::test_lexer_string_locations_letter_escape_1): New function.
14897 (selftest::test_lexer_string_locations_letter_escape_2): New function.
14898 (selftest::test_lexer_string_locations_ucn4): New function.
14899 (selftest::test_lexer_string_locations_ucn8): New function.
14900 (selftest::uint32_from_big_endian): New function.
14901 (selftest::test_lexer_string_locations_wide_string): New function.
14902 (selftest::uint16_from_big_endian): New function.
14903 (selftest::test_lexer_string_locations_string16): New function.
14904 (selftest::test_lexer_string_locations_string32): New function.
14905 (selftest::test_lexer_string_locations_u8): New function.
14906 (selftest::test_lexer_string_locations_utf8_source): New function.
14907 (selftest::test_lexer_string_locations_concatenation_1): New
14909 (selftest::test_lexer_string_locations_concatenation_2): New
14911 (selftest::test_lexer_string_locations_concatenation_3): New
14913 (selftest::test_lexer_string_locations_macro): New function.
14914 (selftest::test_lexer_string_locations_stringified_macro_argument):
14916 (selftest::test_lexer_string_locations_non_string): New function.
14917 (selftest::test_lexer_string_locations_long_line): New function.
14918 (selftest::test_lexer_char_constants): New function.
14919 (selftest::input_c_tests): Call the new test functions once per
14920 case within the line_table test matrix.
14921 * input.h (struct string_concat): New struct.
14922 (struct location_hash): New struct.
14923 (class string_concat_db): New class.
14924 * substring-locations.h: New header.
14926 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
14928 PR tree-optimization/72810
14929 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
14930 the type of the case labels when truncating.
14932 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
14935 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
14936 (aarch64_fp16_ptr_type_node): Likewise.
14937 * config/aarch64/aarch64-simd-builtins.c
14938 (aarch64_fp16_ptr_type_node): Define.
14939 (aarch64_init_fp16_types): New, refactored out of...
14940 (aarch64_init_builtins): ...here, update to call
14941 aarch64_init_fp16_types.
14942 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
14944 (aapcs_vfp_sub_candidate): Likewise.
14946 2016-08-05 Martin Liska <mliska@suse.cz>
14947 Joshua Cranmer <Pidgeot18@gmail.com>
14949 * gcov.c (line_t::has_block): New function.
14950 (enum loop_type): New enum.
14951 (handle_cycle): New function.
14952 (unblock): Likewise.
14953 (circuit): Likewise.
14954 (get_cycles_count): Likewise.
14955 (accumulate_line_counts): Use new loop detection algorithm.
14957 2016-08-05 Martin Liska <mliska@suse.cz>
14959 * gcov.c (output_intermediate_file): Rename
14960 function_info::line_next to next_file_fn.
14961 (process_file): Likewise.
14962 (read_graph_file): Likewise.
14963 (accumulate_line_counts): Likewise.
14964 (output_lines): Likewise.
14966 2016-08-05 Richard Biener <rguenther@suse.de>
14968 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
14969 restriction on threading to a loop header.
14971 2016-08-05 Richard Biener <rguenther@suse.de>
14973 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
14974 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
14975 adjust loop info accordingly.
14977 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
14979 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
14980 before folding call to __builtin_constant_p with parameters to false.
14982 2016-08-05 Alan Modra <amodra@gmail.com>
14984 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
14985 code accidentally committed 2016-05-02 providing class when given
14988 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
14990 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
14991 the case label ranges that partially overlap with OP's value
14994 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
14997 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
14998 Cast builtin function result to __mmask16 instead of __mmask8.
14999 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
15000 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
15001 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
15003 2016-08-04 David Malcolm <dmalcolm@redhat.com>
15005 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
15006 (ASSERT_TRUE_AT): New macro.
15007 (ASSERT_FALSE): Reimplement in terms of...
15008 (ASSERT_FALSE_AT): New macro.
15009 (ASSERT_STREQ_AT): Fix typo in comment.
15011 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
15013 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
15014 labels are exhaustive, designate the label with the widest
15015 range to be the default label.
15017 2016-08-04 Andrew Pinski <apinski@cavium.com>
15019 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
15020 (thunderx_tunings): Use thunderx_vector_cost instead of
15021 generic_vector_cost.
15023 2016-08-04 Martin Liska <mliska@suse.cz>
15025 * gcov.c (main): Fix GNU coding style.
15026 (output_intermediate_file): Likewise.
15027 (process_file): Likewise.
15028 (generate_results): Likewise.
15029 (release_structures): Likewise.
15030 (create_file_names): Likewise.
15031 (find_source): Likewise.
15032 (read_graph_file): Likewise.
15033 (find_exception_blocks): Likewise.
15034 (canonicalize_name): Likewise.
15035 (make_gcov_file_name): Likewise.
15036 (mangle_name): Likewise.
15037 (accumulate_line_counts): Likewise.
15038 (output_branch_count): Likewise.
15039 (read_line): Likewise.
15041 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
15043 PR rtl-optimization/71779
15044 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
15045 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
15046 or if it was truncated.
15048 PR rtl-optimization/70903
15049 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
15051 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
15053 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
15054 accessing SSA_NAME_PTR_INFO.
15056 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
15059 * common/config/avr/avr-common.c (avr_option_optimization_table)
15060 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
15062 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
15065 * config/avr/avr.md: New pattern to work around do_store_flag
15066 generating shift instructions for bit extractions.
15068 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
15070 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
15072 (add_equivalence): Likewise.
15073 (get_value_range): Allocate value range with vrp_value_range_pool.
15074 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
15075 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
15077 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
15079 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
15080 the default for the rs6000 port.
15082 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15084 PR middle-end/71876
15085 * calls.c (special_function_p): Remove special handling of
15086 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
15087 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
15088 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
15090 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
15092 PR middle-end/72778
15093 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
15094 Don't stop on regular insns.
15096 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
15098 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
15099 size to DImode boundary.
15100 (nvptx_propagate): Likewise.
15102 2016-08-03 Alan Modra <amodra@gmail.com>
15104 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
15105 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
15106 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
15107 from -mefficient-unaligned-vector. Note that this affects fp too.
15109 2016-08-03 Alan Modra <amodra@gmail.com>
15111 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
15114 2016-08-03 Alan Modra <amodra@gmail.com>
15116 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
15117 to a reg. Localize vars.
15119 2016-08-03 Alan Modra <amodra@gmail.com>
15121 * config/rs6000/rs6000.opt: Remove negatives from help strings
15124 2016-08-03 Alan Modra <amodra@gmail.com>
15126 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
15127 Delete duplicated code.
15129 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15131 PR middle-end/72778
15132 * lra-spills.c (regno_in_use_p): New.
15133 (lra_final_code_change): Use it.
15135 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15137 PR rtl-optimization/69847
15138 * lra-int.h (struct lra-reg): Use restore_rtx instead of
15140 (lra_rtx_hash): New.
15141 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
15143 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
15144 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
15145 * lra-spills.c (lra_final_code_change): Don't delete insn when the
15146 next insn is USE with the same reg as the current insn source.
15147 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
15149 (lra_constraints_init): Call initiate_invariants.
15150 (lra_constraints_finish): Call finish_invariants.
15151 (struct invariant, invariant_t, invariant_ptr_t): New.
15152 (const_invariant_ptr_t, invariants, invariants_pool): New.
15153 (invariant_table, invariant_hash, invariant_eq_p): New.
15154 (insert_invariant, initiate_invariants, finish_invariants): New.
15155 (clear_invariants, invalid_invariant_regs): New.
15156 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
15157 instead of restore_regno.
15158 (invariant_p, process_invariant_for_inheritance): New.
15159 (inherit_in_ebb): Implement invariant inheritance.
15160 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
15161 (remove_inheritance_pseudos): Implement undoing invariant
15163 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
15164 instead of restore_regno.
15165 * lra-assigns.c (regno_live_length): New.
15166 (reload_pseudo_compare_func): Use regno_live_length.
15167 (assign_by_spills): Use restore_rtx instead of restore_regno.
15168 (lra_assign): Ditto. Initiate regno_live_length.
15170 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
15172 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
15173 __builtin_aarch64_fmindf.
15175 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15177 PR tree-optimization/34114
15178 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
15179 information for more control IVs.
15181 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15183 PR tree-optimization/34114
15184 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
15185 PLUS_EXPR case. Handle SSA_NAME case.
15187 2016-08-02 Tamar Christina <tamar.christina@arm.com>
15189 * config/aarch64/aarch64-simd-builtins.def
15190 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
15191 (__builtin_aarch64_fmaxdf): Likewise.
15192 (__builtin_aarch64_smin_nandf): Likewise.
15193 (__builtin_aarch64_smax_nandf): Likewise.
15194 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
15195 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
15196 (<fmaxmin><mode>3): ...this.
15197 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
15198 (vminnm_f64): Likewise.
15199 (vmin_f64): Likewise.
15200 (vmax_f64): Likewise.
15201 * config/aarch64/iterators.md (FMAXMIN): Merge with...
15202 (FMAXMIN_UNS): ...this.
15203 (fmaxmin): Merged with
15204 (fmaxmin_op): ...this...
15205 (maxmin_uns_op): ...in to this.
15207 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15209 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15210 Add support for vec_extract on vector float, vector int, vector
15211 short, and vector char vector types.
15212 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15213 vector float, vector int, vector short, and vector char
15214 optimizations on 64-bit ISA 2.07 systems for both constant and
15215 variable element numbers.
15216 (rs6000_split_vec_extract_var): Likewise.
15217 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
15218 Altivec registers on ISA 2.07 and above.
15219 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
15220 which never was matched due to the split occuring before register
15221 allocation (and the code would not have worked on little endian
15222 systems if it did match). Allow extracts to go to the Altivec
15223 registers if ISA 2.07 (power8). Change from using "" around the
15224 C++ code to using {}'s.
15225 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
15226 vec_extracts when the vector is in memory.
15227 (vsx_extract_v4sf_var): New insn to optimize vector float
15228 vec_extracts when the element number is variable on 64-bit ISA
15230 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
15231 for 64-bit ISA 2.07 as well as ISA 3.0.
15232 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
15233 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
15234 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
15235 optimize vector int, vector short, and vector char vec_extracts
15236 when the vector is in memory.
15237 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
15238 optimize vector int, vector short, and vector char vec_extracts
15239 when the element number is variable.
15241 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15244 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
15245 does not overlap with other symbol flags.
15247 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
15249 * config/aarch64/aarch64.h (aarch64_frame):
15250 Remove padding0 and hardfp_offset. Add locals_offset,
15251 initial_adjust, callee_adjust, callee_offset and final_adjust.
15252 * config/aarch64/aarch64.c (aarch64_layout_frame):
15253 Remove unused padding0 and hardfp_offset initializations.
15254 Choose frame layout and set frame variables accordingly.
15255 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
15256 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
15257 (aarch64_pop_regs): Likewise.
15258 (aarch64_expand_prologue): Remove all decision code, just emit
15259 prolog according to frame variables.
15260 (aarch64_expand_epilogue): Remove all decision code, just emit
15261 epilog according to frame variables.
15262 (aarch64_initial_elimination_offset): Use offset to local/arg area.
15264 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
15267 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
15268 fix_debug_reg_uses after changing source register mode to
15269 V1TImode if source register is undefined.
15271 2015-08-01 Alan Hayward <alan.hayward@arm.com>
15273 PR tree-optimization/71818
15274 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
15275 with non invariant evolutions
15277 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15280 * config/avr/avr.md (length) [branch]: Correct insn length
15281 attribute for forward branches.
15283 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15285 * doc/extend.texi (AVR Built-in Functions): Document
15286 __builtin_avr_nops.
15287 * config/avr/builtins.def (NOPS): New.
15288 * config/avr/avr.c (avr_expand_nops): New static function.
15289 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
15291 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15293 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
15294 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
15297 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
15299 * config/aarch64/aarch64.c (vulcan_tunings): Update
15300 vulcan L1 cache_line_size.
15302 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
15304 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
15305 function that takes a vector memory address, a hard register, an
15306 element number and a temporary base register, and recreates an
15307 address that points to the appropriate element within the vector.
15308 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
15309 (rs6000_split_vec_extract_var): Add support for the target of a
15310 vec_extract with variable element number being a scalar memory
15312 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
15314 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
15315 vsx_extract_<mode>_load insn with a new insn that optimizes
15316 storing either element to a memory location, using scratch
15317 registers to pick apart the vector and reconstruct the address.
15318 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
15319 (vsx_extract_<mode>_store): Rework alternatives to more correctly
15320 support Altivec registers. Add support for ISA 3.0 Altivec d-form
15322 (vsx_extract_<mode>_var): Add support for extracting a variable
15323 element number from memory.
15325 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
15327 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
15328 when testing for compares against constants of the form 0xabab.
15330 2016-07-29 Bin Cheng <bin.cheng@arm.com>
15332 PR tree-optimization/57558
15333 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
15335 (vect_loop_versioning): Support versioning with niter assumptions.
15336 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
15337 (vect_get_loop_niters): New parameter. Reimplement to support
15338 assumptions in loop niter info.
15339 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
15340 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
15341 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
15342 Support loop versioning for niters.
15343 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
15344 (vect_free_loop_info_assumptions): New function.
15345 (vectorize_loops): Free loop niter info for loops with flag
15346 LOOP_F_ASSUMPTIONS set if vectorization failed.
15347 * tree-vectorizer.h (struct _loop_vec_info): New field
15348 num_iters_assumptions.
15349 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
15350 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
15351 (LOOP_REQUIRES_VERSIONING): New macro.
15352 (vect_free_loop_info_assumptions): New decl.
15354 2016-07-29 Bin Cheng <bin.cheng@arm.com>
15356 * cfgloop.h (struct loop): New field constraints.
15357 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
15358 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
15360 * cfgloop.c (alloc_loop): Initialize new field.
15361 * cfgloopmanip.c (copy_loop_info): Copy constraints.
15362 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
15363 Adjust niter analysis wrto loop constraints.
15364 * doc/loop.texi (@node Number of iterations): Add description for loop
15367 2016-07-29 Marek Polacek <polacek@redhat.com>
15370 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
15371 (ix86_expand_round_builtin): Likewise.
15373 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
15374 Georg-Johann Lay <avr@gjlay.de>
15376 PR rtl-optimization/71976
15377 * combine.c (get_last_value): Return 0 if the argument for which
15378 the function is called has a wider mode than the recorded value.
15380 2016-07-29 Marek Polacek <polacek@redhat.com>
15383 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
15384 (altivec_expand_st_builtin): Likewise.
15386 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
15388 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
15389 introduced in r238381.
15391 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15393 PR middle-end/68217
15394 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
15395 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
15397 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
15399 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
15401 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15402 Add support for vec_extract of vector double or vector long having
15403 a variable element number on 64-bit ISA 2.07 systems or newer.
15404 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
15406 (rs6000_split_vec_extract_var): New function to split a
15407 vec_extract built-in function with variable element number.
15408 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
15410 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
15411 (UNSPEC_VSX_EXTRACT): Likewise.
15412 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
15413 direct move instructions to be generated on 64-bit ISA 2.07
15414 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
15416 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
15417 arguments for vec_extract variable element.
15418 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
15419 vec_extract with variable element on V2DFmode and V2DImode
15421 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
15422 -mupper-regs-df requirement, since it isn't needed.
15423 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
15424 do direct moves on 64-bit systems, which allows optimization of
15425 vec_extract on 64-bit ISA 2.07 systems and newer.
15427 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
15428 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
15430 * config/aarch64/aarch64.md
15431 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
15432 statement and type.
15433 (<optab>qihi2_aarch64): Likewise, and split into two.
15434 (extendqihi2_aarch64): New.
15435 (zero_extendqihi2_aarch64): New.
15436 * config/aarch64/iterators.md (ldrxt): Remove.
15437 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
15440 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
15442 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
15444 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
15446 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
15447 (aarch64_push_reg): New function to push 1 or 2 registers.
15448 (aarch64_pop_reg): New function to pop 1 or 2 registers.
15449 (aarch64_expand_prologue): Use aarch64_push_regs.
15450 (aarch64_expand_epilogue): Use aarch64_pop_regs.
15452 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
15454 PR tree-optimization/71734
15455 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
15456 attribute instead of REF_LOOP and use it.
15457 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
15458 set it for Loops having non-zero safelen attribute.
15459 (ref_indep_loop_p): Pass zero as initial value for safelen.
15461 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
15463 PR middle-end/72657
15465 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
15466 call using chkp_gimple_call_builtin_p.
15467 (chkp_copy_bounds_for_assign): Likewise.
15469 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15471 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
15472 * config/arm/arm-protos.h (struct tune_params): Likewise.
15473 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
15474 (cortex_a9_sched_adjust_cost): Likewise.
15475 (fa726te_sched_adjust_cost): Likewise.
15476 (arm_adjust_cost): Likewise.
15477 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
15478 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
15479 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
15480 * config/i386/i386.c (ix86_adjust_cost): Likewise.
15481 * config/ia64/ia64.c: Likewise.
15482 * config/m68k/m68k.c: Likewise.
15483 * config/mep/mep.c (mep_adjust_cost): Likewise.
15484 * config/microblaze/microblaze.c (microblaze_adjust_cost):
15486 * config/mips/mips.c (mips_adjust_cost): Likewise.
15487 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
15489 * config/pa/pa.c (pa_adjust_cost): Likewise.
15490 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
15491 (rs6000_debug_adjust_cost): Likewise.
15492 * config/sh/sh.c (sh_adjust_cost): Likewise.
15493 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
15494 (hypersparc_adjust_cost): Likewise.
15495 (sparc_adjust_cost): Likewise.
15496 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
15497 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
15498 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
15500 * config/visium/visium.c (visium_adjust_cost): Likewise.
15501 * doc/tm.texi: Regenerate.
15502 * haifa-sched.c (dep_cost_1): Adjust.
15503 * target.def: Merge adjust_cost and adjust_cost_2.
15505 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15507 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
15509 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15511 * store-motion.c (struct st_expr): Make pattern_regs a vector.
15512 (extract_mentioned_regs): Append to a vector instead of
15513 returning a rtx_expr_list.
15514 (st_expr_entry): Adjust.
15515 (free_st_expr_entry): Likewise.
15516 (store_ops_ok): Likewise.
15517 (store_killed_in_insn): Likewise.
15518 (find_moveable_store): Likewise.
15520 2016-07-28 Martin Liska <mliska@suse.cz>
15522 PR gcov-profile/68025
15523 * tree-profile.c (tree_profiling): Respect
15524 no_profile_instrument_function attribute.
15525 * doc/extend.texi: Document no_profile_instrument_function
15528 2016-07-28 Martin Liska <mliska@suse.cz>
15530 PR rtl-optimization/70944
15531 * combine.c (make_compound_operation):
15532 Do not allow make_compound_operation for vector mode
15534 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
15536 PR middle-end/71994
15537 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
15538 before calling get_ops.
15540 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
15542 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
15543 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
15544 (BITS_PER_UNIT_LOG): Remove.
15545 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
15546 * expr.c (expand_assignment): Likewise.
15547 * stor-layout.c (initialize_sizetypes): Likewise.
15549 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15551 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
15552 signature of rs6000_expand_vector_extract so that the element
15553 number is a RTX instead of a constant integer.
15554 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
15556 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
15557 (altivec_expand_vec_ext_builtin): Likewise.
15558 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
15559 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
15560 MFVSRLD instruction.
15562 2016-07-27 David Malcolm <dmalcolm@redhat.com>
15564 * input.c (get_pure_location): Move here from tree.c.
15565 (make_location): Likewise. Add header comment.
15566 (selftest::test_accessing_ordinary_linemaps): Verify
15567 pure_location_p, make_location, get_location_from_adhoc_loc and
15568 get_range_from_loc.
15569 * input.h (get_pure_location): Move declaration here from tree.h.
15570 (get_finish): Likewise for inline function.
15571 (make_location): Likewise for declaration.
15572 * tree.c (get_pure_location): Move to input.c.
15573 (make_location): Likewise.
15574 * tree.h (get_pure_location): Move declaration to tree.h.
15575 (get_finish): Likewise for inline function.
15576 (make_location): Likewise for declaration.
15578 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15580 PR middle-end/71078
15581 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
15583 2016-07-27 David Malcolm <dmalcolm@redhat.com>
15585 * system.h (STATIC_ASSERT): Use static_assert if building
15586 with C++11 onwards.
15588 2016-07-27 Richard Biener <rguenther@suse.de>
15590 PR tree-optimization/72517
15591 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
15592 Revert change to not compute read-read dependences.
15594 2016-07-27 Richard Biener <rguenther@suse.de>
15596 * predict.c (set_even_probabilities): Make nedges unsigned.
15598 2016-07-27 Martin Liska <mliska@suse.cz>
15600 * predict.c (set_even_probabilities): Handle unlikely edges.
15601 (combine_predictions_for_bb): Likewise.
15603 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15606 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
15607 __float128 support when we don't have hardware support, so that
15608 the IEEE built-in functions like isgreater, first call __unordkf3
15609 to make sure neither operand is a NaN, and if both operands are
15610 ordered, do the normal comparison.
15612 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
15614 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
15616 (extract_code_and_val_from_cond_with_ops): Verify that name is
15617 either cond_op0 or cond_op1.
15619 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
15621 PR tree-optimization/18046
15622 * genmodes.c (emit_mode_size_inline): Emit an assert that
15623 verifies that mode is a valid array index.
15624 (emit_mode_nuinits_inline): Likewise.
15625 (emit_mode_inner_inline): Likewise.
15626 (emit_mode_unit_size_inline): Likewise.
15627 (emit_mode_unit_precision_inline): Likewise.
15628 * tree-vrp.c: Include params.h.
15629 (find_switch_asserts): Register edge assertions for the default
15630 label which correspond to the anti-ranges of each case label.
15631 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
15632 * doc/invoke.texi: Document it.
15634 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15636 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
15637 and unnecessary call to gimple_bb.
15639 2016-07-26 Richard Biener <rguenther@suse.de>
15641 PR rtl-optimization/71984
15642 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
15645 2016-07-26 Richard Biener <rguenther@suse.de>
15647 PR middle-end/72517
15648 * expmed.c (extract_bit_field_1): Constrain the vector mode
15649 with element size matching the extraction mode size when
15650 choosing a better vector mode to do the extraction from.
15652 2016-07-26 Richard Biener <rguenther@suse.de>
15653 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15655 PR middle-end/70920
15656 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
15659 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15661 * tree-ssa-structalias.c (struct scc_info): Change types of
15662 members to auto_sbitmap and auto_vec.
15663 (scc_info::scc_info): New constructor.
15664 (scc_info::~scc_info): New destructor.
15665 (init_scc_info): Remove.
15666 (free_scc_info): Remove.
15667 (find_indirect_cycles): Adjust.
15668 (perform_var_substitution): Likewise.
15669 (free_var_substitution_info): Likewise.
15671 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15673 * tree-outof-ssa.c (struct elim_graph): Change type of members
15674 to auto_vec and auto_sbitmap.
15675 (elim_graph::elim_graph): New constructor.
15676 (delete_elim_graph): Remove.
15677 (expand_phi_nodes): Adjust.
15679 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15681 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
15682 (new_elim_graph): Adjust.
15683 (clear_elim_graph): Likewise.
15684 (delete_elim_graph): Likewise.
15685 (elim_graph_size): Likewise.
15686 (elim_graph_add_node): Likewise.
15687 (elim_graph_add_edge): Likewise.
15688 (elim_graph_remove_succ_edge): Likewise.
15689 (eliminate_name): Likewise.
15690 (eliminate_build): Likewise.
15691 (elim_forward): Likewise.
15692 (elim_unvisited_predecessor): Likewise.
15693 (elim_backward): Likewise.
15694 (elim_create): Likewise.
15695 (eliminate_phi): Likewise.
15696 (expand_phi_nodes): Likewise.
15698 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15700 * bt-load.c (compute_out): Use auto_sbitmap class.
15701 (link_btr_uses): Likewise.
15702 * cfganal.c (mark_dfs_back_edges): Likewise.
15703 (post_order_compute): Likewise.
15704 (inverted_post_order_compute): Likewise.
15705 (pre_and_rev_post_order_compute_fn): Likewise.
15706 (single_pred_before_succ_order): Likewise.
15707 * cfgexpand.c (pass_expand::execute): Likewise.
15708 * cfgloop.c (verify_loop_structure): Likewise.
15709 * cfgloopmanip.c (fix_bb_placements): Likewise.
15710 (remove_path): Likewise.
15711 (update_dominators_in_loop): Likewise.
15712 * cfgrtl.c (break_superblocks): Likewise.
15713 * ddg.c (check_sccs): Likewise.
15714 (create_ddg_all_sccs): Likewise.
15715 * df-core.c (df_worklist_dataflow): Likewise.
15716 * dse.c (dse_step3): Likewise.
15717 * except.c (eh_region_outermost): Likewise.
15718 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15719 * gcse.c (prune_expressions): Likewise.
15720 (prune_insertions_deletions): Likewise.
15721 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
15722 * graph.c (draw_cfg_nodes_no_loops): Likewise.
15723 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
15724 * lcm.c (compute_earliest): Likewise.
15725 (compute_farthest): Likewise.
15726 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
15727 (unroll_loop_runtime_iterations): Likewise.
15728 (unroll_loop_stupid): Likewise.
15729 * lower-subreg.c (decompose_multiword_subregs): Likewise.
15730 * lra-lives.c: Likewise.
15731 * lra.c (lra): Likewise.
15732 * modulo-sched.c (schedule_reg_moves): Likewise.
15733 (optimize_sc): Likewise.
15734 (get_sched_window): Likewise.
15735 (sms_schedule_by_order): Likewise.
15736 (check_nodes_order): Likewise.
15737 (order_nodes_of_sccs): Likewise.
15738 (order_nodes_in_scc): Likewise.
15739 * recog.c (split_all_insns): Likewise.
15740 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
15741 * reload1.c (reload): Likewise.
15742 * sched-rgn.c (haifa_find_rgns): Likewise.
15743 (split_edges): Likewise.
15744 (compute_trg_info): Likewise.
15745 * sel-sched.c (init_seqno): Likewise.
15746 * store-motion.c (remove_reachable_equiv_notes): Likewise.
15747 * tree-into-ssa.c (update_ssa): Likewise.
15748 * tree-ssa-live.c (live_worklist): Likewise.
15749 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
15750 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
15752 (try_peel_loop): Likewise.
15753 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
15755 * tree-ssa-pre.c (compute_antic): Likewise.
15756 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
15757 * tree-stdarg.c (reachable_at_most_once): Likewise.
15758 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
15759 * var-tracking.c (vt_find_locations): Likewise.
15761 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15763 * sbitmap.h (auto_sbitmap): New class.
15765 2016-07-26 Alan Modra <amodra@gmail.com>
15768 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
15771 2016-07-25 David Malcolm <dmalcolm@redhat.com>
15773 * input.c (selftest::temp_source_file::temp_source_file): Fix
15774 missing "%s" in fprintf.
15776 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
15778 PR middle-end/71732
15779 * cselib.c (cselib_process_insn): Invalidate argument slots for
15782 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15784 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
15785 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
15786 vmulxh_lane_f16, vmulxh_laneq_f16): New.
15788 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15790 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15791 * config/aarch64/aarch64.md (fma, fnma): Support HF.
15792 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
15794 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15796 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15797 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
15799 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
15800 (add<mode>3): Likewise.
15801 (sub<mode>3): Likewise.
15802 (mul<mode>3): Likewise.
15803 (div<mode>3): Likewise.
15804 (*div<mode>3): Likewise.
15805 (<fmaxmin><mode>3): Extend to HF.
15806 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
15807 (fabd<mode>3): Likewise.
15808 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
15809 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
15810 (aarch64_fmulx<mode>): Likewise.
15811 (aarch64_fac<optab><mode>): Likewise.
15812 (aarch64_frecps<mode>): Likewise.
15813 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
15814 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
15815 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
15816 (VSDQ_HSDI): Support HI.
15817 (fcvt_target, FCVT_TARGET): Likewise.
15818 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
15819 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
15820 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
15821 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
15822 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
15823 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
15824 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
15825 vrsqrtsh_f16): New.
15827 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15829 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
15830 * config/aarch64/aarch64-builtins.c (hi_UP): New.
15831 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15832 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
15834 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
15835 (aarch64_cm<optab><mode>): Likewise.
15836 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
15837 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
15838 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15839 (sqrt<mode>2): Likewise.
15840 (*sqrt<mode>2): Likewise.
15841 (abs<mode>2): Likewise.
15842 (<optab><mode>hf2): New pattern for HF mode.
15843 (<optab>hihf2): Likewise.
15844 * config/aarch64/arm_neon.h: Include arm_fp16.h.
15845 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
15846 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
15848 * config/aarch64/arm_fp16.h: New file.
15849 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
15850 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
15851 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
15852 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
15853 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
15854 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
15855 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
15856 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
15857 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
15858 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
15859 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
15860 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
15863 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15865 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
15866 reduc_smin_scal_): Use VDQIF_F16.
15867 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
15868 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
15870 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
15871 * config/aarch64/iterators.md (VDQIF_F16): New.
15872 (vp): Support HF modes.
15873 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
15874 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
15876 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15878 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
15879 "*aarch64_mulx_elt_from_dup<mode>".
15880 (*aarch64_mul3_elt<mode>): Update schedule type.
15881 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
15882 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
15883 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
15884 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
15885 (f, fp): Support HF modes.
15886 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
15887 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
15888 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
15889 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
15890 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
15891 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
15893 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15895 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15896 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
15898 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
15901 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15903 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15904 * config/aarch64/aarch64-simd.md
15905 (aarch64_rsqrts<mode>): Extend to HF modes.
15906 (fabd<mode>3): Likewise.
15907 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
15908 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
15909 (aarch64_<maxmin_uns>p<mode>): Likewise.
15910 (<su><maxmin><mode>3): Likewise.
15911 (<maxmin_uns><mode>3): Likewise.
15912 (<fmaxmin><mode>3): Likewise.
15913 (aarch64_faddp<mode>): Likewise.
15914 (aarch64_fmulx<mode>): Likewise.
15915 (aarch64_frecps<mode>): Likewise.
15916 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
15917 (add<mode>3): Extend to HF modes.
15918 (sub<mode>3): Likewise.
15919 (mul<mode>3): Likewise.
15920 (div<mode>3): Likewise.
15921 (*div<mode>3): Likewise.
15922 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
15924 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
15925 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
15926 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
15927 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
15928 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
15929 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
15930 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
15931 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
15932 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
15933 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
15934 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
15935 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
15936 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
15937 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
15939 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15941 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
15942 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15943 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
15944 (neg<mode>2): Likewise.
15945 (abs<mode>2): Likewise.
15946 (<frint_pattern><mode>2): Likewise.
15947 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
15948 (<optab><VDQF:mode><fcvt_target>2): Likewise.
15949 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
15950 (ftrunc<VDQF:mode>2): Likewise.
15951 (<optab><fcvt_target><VDQF:mode>2): Likewise.
15952 (sqrt<mode>2): Likewise.
15953 (*sqrt<mode>2): Likewise.
15954 (aarch64_frecpe<mode>): Likewise.
15955 (aarch64_cm<optab><mode>): Likewise.
15956 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
15958 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
15959 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
15961 * config/aarch64/arm_neon.h (vdup_n_f16): New.
15962 (vdupq_n_f16): Likewise.
15963 (vld1_dup_f16): Use vdup_n_f16.
15964 (vld1q_dup_f16): Use vdupq_n_f16.
15965 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
15966 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
15967 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
15968 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
15969 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
15970 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
15971 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
15972 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
15973 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
15974 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
15975 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
15976 vsqrt_f16, vsqrtq_f16): New.
15978 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15980 * config/aarch64/aarch64-simd.md
15981 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
15982 (aarch64_ext<mode>): Likewise.
15983 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
15984 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
15985 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
15987 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
15989 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
15990 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
15991 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
15992 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
15993 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
15994 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
15995 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
15997 (vmov_n_f16): Reimplement using vdup_n_f16.
15998 (vmovq_n_f16): Reimplement using vdupq_n_f16..
16000 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16002 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
16003 "frame_related_p". Generate CFA annotation when it's necessary.
16004 (aarch64_expand_prologue): Use aarch64_add_constant.
16005 (aarch64_expand_epilogue): Likewise.
16006 (aarch64_output_mi_thunk): Pass "false" when calling
16007 aarch64_add_constant.
16009 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16011 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
16014 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16016 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
16017 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
16018 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
16019 (aarch64_build_constant): Delete.
16021 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
16024 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
16026 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
16027 flag_toplevel_reorder.
16029 2016-07-25 Richard Biener <rguenther@suse.de>
16031 * cgraph.c (cgraph_node::verify_node): Compare against builtin
16032 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
16033 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
16034 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
16035 (streamer_get_builtin_tree): Likewise.
16036 (streamer_write_builtin): Likewise.
16037 * lto-streamer.h (LTO_builtin_decl): Remove.
16038 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
16039 (lto_input_scc): Remove LTO_builtin_decl handling.
16040 (lto_input_tree_1): Liekwise.
16041 * lto-streamer-out.c (lto_output_tree_1): Remove special
16042 handling of builtins.
16043 (DFS::DFS): Likewise.
16044 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
16045 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
16047 (streamer_write_builtin): Remove.
16049 2016-07-25 Martin Liska <mliska@suse.cz>
16051 * lto-cgraph.c (input_symtab): Don't call get_working_sets
16052 if flag_auto_profile is set to true.
16054 2016-07-25 Martin Liska <mliska@suse.cz>
16056 PR gcov-profile/71868
16057 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
16058 have a function with multiple latches, count them all.
16060 2016-07-25 Martin Liska <mliska@suse.cz>
16062 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
16064 2016-07-25 Martin Liska <mliska@suse.cz>
16066 PR tree-optimization/71987
16067 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
16068 just for SSA_NAMEs. Fix GNU coding style.
16070 2016-07-25 Martin Liska <mliska@suse.cz>
16072 PR gcov-profile/64874
16073 * gcov-io.h: Update command about file format.
16074 * gcov-iov.c (main): Adapt the numbering scheme.
16076 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
16078 PR middle-end/66726
16079 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
16080 whose result is used in PHI.
16081 (final_range_test_p): Likewise.
16082 (maybe_optimize_range_tests): Likewise.
16084 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
16086 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16087 Reformat two multi-line strings.
16089 2016-07-22 Martin Sebor <msebor@redhat.com>
16091 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
16093 2016-07-22 Martin Sebor <msebor@redhat.com>
16096 * doc/extend.texi (Compound Literals): Correct and clarify.
16097 (Cast to Union): Same.
16099 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
16101 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16102 comments to explain why certain error messages make mention of
16103 undocumented options.
16104 (rs6000_invalid_builtin): Change error messages to replace mention
16105 of undocumented options with mention of the -mcpu=power9 option
16106 that enables those undocumented options.
16107 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
16108 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
16109 definition of this macro to correct an existing error.
16110 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
16111 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
16112 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
16113 descriptions of built-in functions so that they depend on
16114 -mcpu=power9 instead of on the corresponding undocumented flags.
16115 * doc/invoke.texi (Option Summary): Remove all mention of newly
16116 undocumented flags.
16117 (IBM RS/6000 and PowerPC Options): Likewise.
16118 * doc/md.texi (Constraints for Particuliar Machines): Remove all
16119 mention of newly undocumented flags.
16121 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
16123 * ipa-cp.c (determine_versionability): Do not create constprop clones,
16124 when target_clones attribute is set.
16126 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16128 * common.opt (funsafe-loop-optimizations): Mark ignore.
16129 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
16130 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
16132 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
16133 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
16135 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16137 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16139 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16141 (number_of_iterations_exit): Warn missed loop optimization for
16142 possible infinite loops.
16144 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
16147 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
16148 when to emit a ".machine" pseudo-op.
16150 2016-07-22 Martin Liska <mliska@suse.cz>
16152 PR gcov-profile/69028
16153 PR gcov-profile/62047
16154 * coverage.c (coverage_compute_lineno_checksum): Do not
16155 calculate checksum for fns w/o xloc.file.
16156 (coverage_compute_profile_id): Likewise.
16158 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
16160 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
16161 (avr_secondary_reload): ...and implementation.
16162 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
16163 * config/avr/avr.md (reload_in<mode>): Remove insns.
16164 (adjust_len) [lpm]: Remove insn attribute value.
16165 * config/avr/predicates.md (flash_operand): Remove insn predicate.
16167 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16169 PR middle-end/71876
16170 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
16172 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
16173 * calls.c (special_function_p): Remove the special handling of the
16174 "__builtin_" prefix.
16176 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16178 PR middle-end/71876
16179 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
16180 if STMT may be an alloca call.
16181 (gimple_alloca_call_p, alloca_call_p): Return only true for the
16182 builtin alloca call.
16183 * calls.h (gimple_maybe_alloca_call_p): New function.
16184 * tree-inline.c (inline_forbidden_p_stmt): Use
16185 gimple_maybe_alloca_call_p here.
16187 2016-07-21 David Malcolm <dmalcolm@redhat.com>
16189 * spellcheck-tree.c (best_macro_match::best_macro_match):
16190 Explictly specify the template arguments when invoking the base
16191 class constructor, to help older C++ compilers.
16193 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16196 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
16197 before builtin_decl_implicit.
16199 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16201 * optabs.c (emit_condiitonal_move): Short circuit for identical
16204 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16206 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
16207 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
16208 (noce_conversion_profitable_p): New.
16209 (noce_try_store_flag_constants): Use it.
16210 (noce_try_addcc): Likewise.
16211 (noce_try_store_flag_mask): Likewise.
16212 (noce_try_cmove): Likewise.
16213 (noce_try_cmove_arith): Likewise.
16214 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
16216 (noce_convert_multiple_sets): Move cost model to here, from...
16217 (bb_ok_for_noce_convert_multiple_sets) ...here.
16218 (noce_process_if_block): Update calls for above changes.
16219 (noce_find_if_block): Record new noce_if_info parameters.
16221 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16223 * target.def (max_noce_ifcvt_seq_cost): New.
16224 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
16225 * doc/tm.texi: Regenerate.
16226 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
16227 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
16228 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
16229 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
16230 * doc/invoke.texi: Document new params.
16232 2016-07-21 Richard Biener <rguenther@suse.de>
16234 PR tree-optimization/71947
16235 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
16236 ranges have useful limit_vr information.
16238 2016-07-21 Richard Biener <rguenther@suse.de>
16240 * function-tests.c (build_trivial_generic_function): Set
16241 BLOCK_SUPERCONTEXT of DECL_INITIAL.
16242 * omp-low.c (create_omp_child_function): Likewise.
16243 (grid_expand_target_grid_body): Likewise.
16244 * cgraphunit.c (init_lowered_empty_function): Likewise.
16245 (cgraph_node::expand_thunk): Likewise.
16246 * tree-parloops.c (create_loop_fn): Likewise.
16247 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
16249 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16251 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
16254 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
16256 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
16257 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
16258 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
16259 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
16260 values for insn attribute.
16261 * config/avr/avr.c (avr_out_insert_notbit): New function.
16262 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
16263 ADJUST_LEN_INSV_NOTBIT_0/_7.
16264 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
16266 2016-07-21 Bin Cheng <bin.cheng@arm.com>
16268 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
16269 (chrec_convert_1, chrec_convert): Ditto.
16270 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
16271 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
16272 * tree-vrp.c (adjust_range_with_scev): Ditto.
16273 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
16274 (scev_var_range_cant_overflow): New function.
16275 (scev_probably_wraps_p): New parameter. Call above function.
16276 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
16278 2016-07-21 Bin Cheng <bin.cheng@arm.com>
16280 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
16281 by removing computation of may_be_zero.
16283 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16285 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
16287 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
16289 Improving concepts performance and diagnostics.
16290 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
16291 for constraint satisfaction and subsumption.
16292 * timevar.h (auto_timevar): New constructor that matches the push/pop
16293 pattern of usage in pt.c.
16295 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
16297 * hwint.h (HOST_WIDE_INT_0): New define.
16298 (HOST_WIDE_INT_0U): Ditto.
16299 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
16300 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
16301 * simplify-rtx.c: Ditto.
16302 * tree-object-size.c: Ditto.
16304 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16306 * config/s390/s390.c (s390_encode_section_info): Remove mode size
16309 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
16311 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
16312 * combine.c: Use HOST_WIDE_INT_M1U instead of
16313 ~(unsigned HOST_WIDE_INT) 0.
16314 * double-int.h: Ditto.
16316 * dwarf2asm.c:Ditto.
16318 * genmodes.c: Ditto.
16320 * read-rtl.c: Ditto.
16321 * tree-ssa-loop-ivopts.c: Ditto.
16322 * tree-ssa-loop-prefetch.c: Ditto.
16323 * tree-vect-generic.c: Ditto.
16324 * tree-vect-patterns.c: Ditto.
16327 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16329 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
16330 constant addresses outside [0,0xc0] into a register.
16331 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
16332 cases where the base address register is unused after.
16333 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
16334 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
16335 (avr_out_store_psi_reg_disp_tiny): Same.
16337 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16339 Implement attribute progmem on reduced Tiny cores by adding
16340 flash offset 0x4000 to respective symbols.
16343 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
16344 documentation how it works on reduced Tiny cores.
16345 (AVR Named Address Spaces): No support for reduced Tiny.
16346 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
16347 (avr_address_tiny_pm_p): New static function.
16348 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
16349 if the address is in progmem.
16350 (avr_assemble_integer): Same.
16351 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
16352 for symbol_ref in progmem.
16353 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
16354 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
16355 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
16357 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
16359 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
16360 * configure: Regenerate.
16361 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
16362 (USE_THIN_ARCHIVES): New variable.
16363 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
16364 this archive as a thin archive.
16366 2016-07-20 David Malcolm <dmalcolm@redhat.com>
16368 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
16369 same location as last time, don't skip if we have fix-it hints.
16370 Clarify the skipping logic by converting it from one "if" clause
16371 to repeated "if" clauses.
16372 * spellcheck-tree.c: Include "cpplib.h".
16373 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
16374 (best_macro_match::best_macro_match): New constructor.
16375 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
16376 Move here from c/c-decl.c.
16377 (class best_macro_match): Move here from c/c-decl.c, converting
16378 from a typedef to a subclass, gaining a ctor.
16380 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16382 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
16383 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
16385 (avr_addr_space_diagnose_usage): ...and implementation.
16386 (avr_addr_space_supported_p): New function.
16387 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
16388 report bad address space usage if that space is supported.
16389 (avr_insert_attributes): Same. No more complain about unsupported
16391 * config/avr/avr-c.c (tm_p.h): Include it.
16392 (avr_cpu_cpp_builtins): Only define addr-space related built-in
16393 macro if avr_addr_space_supported_p.
16395 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
16397 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
16398 flag_toplevel_reorder.
16400 2016-07-20 David Malcolm <dmalcolm@redhat.com>
16402 * gcc-rich-location.c
16403 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
16405 * gcc-rich-location.h
16406 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
16408 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16410 * target.def (addr_space): Add new diagnose_usage to hook vector.
16411 * targhooks.c (default_addr_space_diagnose_usage): Add default
16412 implementation and...
16413 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
16414 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
16415 is some address space, call targetm.addr_space.diagnose_usage.
16416 * doc/tm.texi.in (Named Address Spaces): Add anchor for
16417 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
16418 * doc/tm.texi: Regenerate.
16420 2016-07-20 Martin Liska <mliska@suse.cz>
16422 PR middle-end/71898
16423 * graphite-isl-ast-to-gimple.c (later_of_the_two):
16424 Properly handly PHI stmts.
16426 2016-07-20 Bin Cheng <bin.cheng@arm.com>
16428 PR tree-optimization/71503
16429 PR tree-optimization/71683
16430 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
16433 2016-07-20 Martin Liska <mliska@suse.cz>
16435 * doc/invoke.texi (-fipa-ra): Document when the option is
16436 disabled. Fix a typo.
16438 2016-07-20 Martin Liska <mliska@suse.cz>
16440 * Makefile.in: Include fibonacci_heap.c
16441 * fibonacci_heap.c: New file.
16442 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
16443 (fibonacci_heap::union_with): Fix deletion of the second heap.
16444 * selftest-run-tests.c (selftest::run_tests): Incorporate
16445 fibonacci heap tests.
16446 * selftest.h: Declare fibonacci_heap_c_tests.
16448 2016-07-20 Martin Liska <mliska@suse.cz>
16450 * selftest-run-tests.c (selftest::run_tests): New function.
16451 * selftest.h (sreal_c_tests): Declare.
16452 * sreal.c (sreal_verify_basics): New function.
16453 (verify_aritmetics): Likewise.
16454 (sreal_verify_arithmetics): Likewise.
16455 (verify_shifting): Likewise.
16456 (sreal_verify_shifting): Likewise.
16457 (void sreal_c_tests): Likewise.
16459 2016-07-19 Jakub Jelinek <jakub@redhat.com>
16461 PR rtl-optimization/71916
16462 * cfgrtl.c (contains_no_active_insn_p): Return false also for
16463 bb which have a single succ fake edge.
16465 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
16468 * dwarf2out.c (gen_subprogram_die): Only call
16469 gen_unspecified_parameters_die while dumping early dwarf.
16471 2016-07-19 Jakub Jelinek <jakub@redhat.com>
16473 PR middle-end/71874
16474 * gimple-fold.c (fold_builtin_memory_op): Use
16475 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
16477 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
16479 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
16480 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
16481 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
16482 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
16483 * combine.c: Ditto.
16486 * double-int.c: Ditto.
16488 * dwarf2out.c: Ditto.
16491 * fold-const.c: Ditto.
16492 * function.c: Ditto.
16494 * genmodes.c: Ditto.
16498 * loop-doloop.c: Ditto.
16499 * loop-invariant.c: Ditto.
16500 * loop-iv.c: Ditto.
16505 * rtlanal.c: Ditto.
16506 * simplify-rtx.c: Ditto.
16507 * stor-layout.c: Ditto.
16509 * tree-ssa-loop-ivopts.c: Ditto.
16510 * tree-vect-generic.c: Ditto.
16511 * tree-vect-patterns.c: Ditto.
16516 * wide-int-print.cc: Ditto.
16517 * wide-int.cc: Ditto.
16518 * wide-int.h: Ditto.
16520 2016-07-19 David Malcolm <dmalcolm@redhat.com>
16522 * selftest.c (selftest::assert_streq): Handle NULL values of
16523 val_actual and val_expected.
16525 2016-07-19 Martin Jambor <mjambor@suse.cz>
16528 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
16529 rather than cgraph_create_node to get a call graph node.
16531 2016-07-19 Richard Biener <rguenther@suse.de>
16533 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
16534 handle all tcc_constant bases and valueize SSA names.
16535 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
16536 tcc_constant bases.
16538 2016-07-19 David Malcolm <dmalcolm@redhat.com>
16540 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
16541 the flags of the exit block and bb2, not just the entry block.
16543 2016-07-19 Richard Biener <rguenther@suse.de>
16545 PR tree-optimization/71901
16546 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
16547 align member, group stuff with the bitfield.
16548 (vn_ref_op_align_unit): New inline.
16549 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
16550 record element alignment and operand 3 unchanged.
16551 (ao_ref_init_from_vn_reference): Adjust.
16552 (valueize_refs_1): Likewise.
16553 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16555 2016-07-19 Richard Biener <rguenther@suse.de>
16557 PR tree-optimization/71908
16558 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
16559 symbolic constants in a more reliable way.
16561 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
16563 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
16565 (vect_update_inits_of_drs): Likewise.
16566 (vect_create_cond_for_alias_checks): Likewise.
16567 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
16569 2016-07-19 Richard Biener <rguenther@suse.de>
16572 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
16573 with an abstract origin that is not an inlined function outer
16574 scope add a self-reference as abstract origin.
16575 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
16577 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16580 * config/rs6000/rs6000.c (rs6000_function_value): Fix
16581 unintentional System V.4 structure return breakage for structures
16582 with a single floating point element.
16584 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
16586 PR tree-optimization/71734
16587 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
16588 contains REF, use it to check safelen, assume that safelen value
16589 must be greater 1, fix style.
16590 (ref_indep_loop_p_2): Add REF_LOOP argument.
16591 (ref_indep_loop_p): Pass LOOP as additional argument to
16592 ref_indep_loop_p_2.
16594 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
16596 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
16597 allocation in the prologue.
16598 * explow.c (get_dynamic_stack_base): New function to return an address
16599 expression for the dynamic stack base.
16600 (get_dynamic_stack_size): New function to do the required dynamic stack
16601 space size calculations.
16602 (allocate_dynamic_stack_space): Use new functions.
16603 (align_dynamic_address): Move some code from
16604 allocate_dynamic_stack_space to new function.
16605 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
16607 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16609 * config/s390/s390.c (s390_encode_section_info): Always set
16610 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
16613 2016-07-18 Richard Biener <rguenther@suse.de>
16615 PR tree-optimization/71893
16616 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
16617 for sizetype cast added by array_ref_element_size.
16618 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16620 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
16622 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
16623 register parameters. Remove code to initialize argument pointer
16624 on TARGET_64BIT. Optimize call to _mcount when it can be reached
16625 using a pc-relative branch. Cleanup conditional code.
16626 * config/pa/pa.md (call_mcount): New expander.
16627 (call_mcount_nonpic): New insn.
16628 (call_mcount_pic): New insn and split.
16629 (call_mcount_pic_post_reload): New insn.
16630 (call_mcount_64bit): New insn and split.
16631 (call_mcount_64bit_post_reload): New insn.
16633 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
16635 * config/avr/predicates.md (const_m255_to_m1_operand): New.
16636 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
16637 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
16638 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
16639 (*usum_widenqihi3, *udiff_widenqihi3)
16640 (*addhi3_zero_extend.const): New combiner insns.
16641 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
16642 just 1 bit is affected.
16643 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
16644 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
16646 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
16648 * omp-low.c (lower_omp_target): Mark data clauses with
16649 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
16650 zero-length subarrays.
16652 2016-07-15 Richard Biener <rguenther@suse.de>
16654 PR tree-optimization/71881
16655 * tree-loop-distribution.c (destroy_loop): Remove blocks in
16656 reverse DOM order to make debug temp generation happy.
16658 2016-07-15 Richard Biener <rguenther@suse.de>
16660 PR tree-optimization/71887
16661 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
16662 verify it is not zero for division / modulo handling.
16663 (value_replacement): Adjust.
16665 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
16666 Julian Brown <julian@codesourcery.com>
16668 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
16669 * config/aarch64/aarch64-cost-tables.h
16670 (vulcan_extra_costs): New variable.
16671 * config/aarch64/aarch64.c
16672 (vulcan_addrcost_table): Likewise.
16673 (vulcan_regmove_cost): Likewise.
16674 (vulcan_vector_cost): Likewise.
16675 (vulcan_branch_cost): Likewise.
16676 (vulcan_tunings): Likewise.
16678 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
16680 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
16681 (output_in_order): Loop over undefined variables too. Output them
16682 via assemble_undefined_decl. Skip variables that correspond to hard
16683 registers or have value-exprs.
16684 * varpool.c (symbol_table::output_variables): Handle undefined
16685 variables together with defined ones.
16687 2016-07-15 Richard Biener <rguenther@suse.de>
16689 * tree-ssa-pre.c (get_representative_for): Make sure to return
16690 the value number of SSA names.
16691 (phi_translate_1): get_representative_for cannot return NULL.
16692 (do_pre_regular_insertion): Remove redundant call to
16693 fully_constant_expression.
16694 (do_pre_partial_partial_insertion): Likewise.
16696 2016-07-15 Bin Cheng <bin.cheng@arm.com>
16698 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
16699 (derive_simple_iv_with_niters): New function.
16700 (simple_iv): Rewrite using simple_iv_with_niters.
16701 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
16702 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16704 (number_of_iterations_exit): Rewrite using above function.
16705 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16708 2016-07-15 Richard Biener <rguenther@suse.de>
16710 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
16711 vec_construct cost.
16713 2016-07-14 Jakub Jelinek <jakub@redhat.com>
16715 PR tree-optimization/71872
16716 * tree-data-ref.c (get_references_in_stmt): Ignore references
16717 with is_gimple_constant get_base_address.
16719 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
16721 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
16722 (TARGET_HAVE_LDACQD): New macro.
16723 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
16724 than TARGET_HAVE_LDACQ.
16725 (arm_load_acquire_exclusivedi): Likewise.
16726 (arm_store_release_exclusivedi): Likewise.
16728 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
16730 PR rtl-optimization/71878
16731 * lra-constraints.c (match_reload): Pass information about other
16732 output operands. Create new unique register value if matching input
16733 operand shares same register value as output operand being considered.
16734 (curr_insn_transform): Record output operands already processed.
16736 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16739 PR tree-optimization/70923
16740 * tree-vect-patterns.c: Include mult-synthesis.h.
16741 (target_supports_mult_synth_alg): New function.
16742 (synth_lshift_by_additions): Likewise.
16743 (apply_binop_and_append_stmt): Likewise.
16744 (vect_synth_mult_by_constant): Likewise.
16745 (target_has_vecop_for_code): Likewise.
16746 (vect_recog_mult_pattern): Use above functions to synthesize vector
16747 multiplication by integer constants.
16749 2016-07-14 Alan Modra <amodra@gmail.com>
16751 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
16752 gpr alternatives. Correct '*' placement on Y,r alternative.
16753 Add '*' on operand 1 of r,r alternative.
16755 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16757 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
16758 * expmed.h: ... Here.
16760 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
16762 * gimple.h (stmt_can_terminate_bb_p): New function.
16763 * tree-cfg.c (need_fake_edge_p): Rename to ...
16764 (stmt_can_terminate_bb_p): ... this; return true if stmt can
16765 throw external; handle const and pure calls.
16766 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
16768 2016-07-14 Richard Biener <rguenther@suse.de>
16770 PR tree-optimization/71866
16771 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
16772 (do_hoist_insertion): Avoid endless recursion when we
16773 didn't insert anything because we managed to simplify
16774 things down to a constant or SSA name.
16775 (fully_constant_expression): Re-write in terms of ...
16776 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
16777 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
16778 vn_nary_build_or_lookup_1.
16779 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
16780 (vn_nary_build_or_lookup): ... this which now wraps it.
16782 2016-07-14 Alan Modra <amodra@gmail.com>
16785 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
16786 with p9_vector override before power9-dform override.
16788 2016-07-13 Andi Kleen <ak@linux.intel.com>
16790 * value-prof.c (gimple_value_profile_transformations): Don't run
16791 when auto_profile is on.
16793 2016-07-13 Andi Kleen <ak@linux.intel.com>
16795 * auto-profile.c (update_inlined_ind_target,
16796 afdo_indirect_call): Print information to dump file.
16798 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
16800 * genrecog.c (special_predicate_operand_p): New function.
16801 (predicate_name): Move function.
16802 (validate_pattern): Don't warn about missing mode for all
16803 define_special_predicate predicates.
16805 2016-07-13 Bin Cheng <bin.cheng@arm.com>
16807 * tree-vect-data-refs.c (vect_no_alias_p): New function.
16808 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
16809 resolve alias checks which are known at compilation time.
16810 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
16811 alias checks are resolved. Move dump info for too many runtime
16812 alias checks to here...
16813 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
16815 2016-07-13 Richard Biener <rguenther@suse.de>
16817 PR tree-optimization/24574
16818 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
16819 position and add shift, rotate, divison and modulo support
16821 (value_replacement): Pass in argument position to absorbing_element_p.
16823 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
16826 * ipa-inline-transform.c (inline_call): Support
16827 instrumented thunks.
16829 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16831 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
16832 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
16834 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
16835 Baseline. Make initial alternative TARGET_32BIT only.
16836 (udivsi3): Likewise.
16837 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
16838 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
16841 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16843 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
16844 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
16845 availability with TARGET_HAVE_MOVT.
16846 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
16847 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
16848 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
16850 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
16851 extra instruction if MOVW is available. Use a cost variable
16852 incremented by COSTS_N_INSNS (1) when the condition match rather than
16853 returning an arithmetic expression based on COSTS_N_INSNS. Make
16854 constant with bottom half word zero cost 2 instruction if MOVW is
16856 * config/arm/arm.md (define_attr "arch"): Add v8mb.
16857 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
16858 target is ARMv8-M Baseline.
16859 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
16860 (arm_movtas_ze): Likewise.
16861 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
16862 alternative for constants satisfying j constraint.
16863 (thumb1_movsi_insn): Likewise.
16864 (movsi splitter for K alternative): Tighten condition to not trigger
16865 if movt is available and j constraint is satisfied.
16866 (Pe immediate splitter): Likewise.
16867 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
16868 constant fitting in an halfword to use MOVW.
16869 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
16872 2016-07-13 Richard Biener <rguenther@suse.de>
16874 PR middle-end/71104
16875 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
16876 gimplifying the LHS. Make sure to gimplify a returning twice
16877 call LHS without using SSA names.
16879 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16881 * tree-data-ref.c (find_data_references_in_stmt): Remove
16882 unnecessary call to vec::release.
16883 (graphite_find_data_references_in_stmt): Likewise.
16884 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
16885 * tree-vect-stmts.c (vectorizable_condition): Likewise.
16887 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16889 * cfgexpand.c (expand_used_vars): Make the type of a local
16891 * genmatch.c (lower_for): Likewise.
16892 * haifa-sched.c (haifa_sched_init): Likewise.
16893 (add_to_speculative_block): Likewise.
16894 (create_check_block_twin): Likewise.
16895 * predict.c (handle_missing_profiles): Likewise.
16896 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
16897 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
16898 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
16900 (maybe_lower_iteration_bound): Likewise.
16901 * tree-ssa-sccvn.c (DFS): Likewise.
16902 * tree-stdarg.c (reachable_at_most_once): Likewise.
16903 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
16904 (vectorizable_store): Likewise.
16906 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16908 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
16909 (sccvn_dom_walker): make cond_stack an auto_vec.
16911 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16913 * ree.c (struct ext_state): Make type of members auto_vec.
16914 (find_and_remove_re): Adjust.
16916 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16918 * cfgexpand.c (struct stack_vars_data): Make type of fields
16920 (expand_used_vars): Adjust.
16922 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16924 * ipa.c (record_cdtor_fn): Adjust.
16925 (build_cdtor_fns): Likewise.
16926 (ipa_cdtor_merge): Make static_ctors and static_dtors local
16929 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16931 * genextract.c (struct accum_extract): Add constructor and make
16933 (gen_insn): Adjust.
16935 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16937 * tree.c (struct free_lang_data_d): Add constructor and change
16938 types of members to ones that automatically manage resources.
16939 (fld_worklist_push): Adjust.
16940 (find_decls_types): Likewise.
16941 (find_decls_types_in_eh_region): Likewise.
16942 (free_lang_data_in_cgraph): Stop manually creating and
16943 destroying members of free_lang_data_d.
16945 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
16947 PR rtl-optimization/68961
16948 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
16949 peephole variant. Use sse_reg_operand predicates.
16951 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
16953 * config/i386/predicates.md (x86_64_immediate_operand)
16954 <case CONST_INT>: Remove unneeded truncation to DImode.
16955 <case CONST>: Ditto.
16956 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
16958 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16961 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
16962 The xxperm and xxpermr instructions require that the 2nd input
16963 operand overlap with the output operand, and not the 1st.
16964 (altivec_vperm_v8hiv16qi): Likewise.
16965 (altivec_vperm_<mode>_uns_internal): Likewise.
16966 (altivec_vpermr_<mode>_internal): Likewise.
16967 (vperm_v8hiv4si): Likewise.
16968 (vperm_v16qiv8hi): Likewise.
16970 2016-07-12 Nathan Sidwell <nathan@acm.org>
16972 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
16973 when -mno-pic-data-is-text-relative is in effect, by default.
16974 * doc/invoke.texi (mpic-data-is-text-relative): Document new
16975 behavior and clarify.
16977 2016-07-12 Martin Liska <mliska@suse.cz>
16979 * params.def: Add avg-loop niter.
16980 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
16981 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
16982 * doc/invoke.texi: Document the new parameter.
16984 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16986 PR middle-end/71700
16987 * expr.c (store_constructor): Mask sign-extended bits when widening
16988 sub-word constructor element at the start of a word.
16990 2016-07-12 Martin Liska <mliska@suse.cz>
16992 * Makefile.in: Append rule for params-options.h.
16993 * params-options.h: New file.
16995 2016-07-12 Martin Liska <mliska@suse.cz>
16997 * ira-build.c (mark_loops_for_removal): Properly iterate
17000 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
17001 Richard Biener <rguenther@suse.de>
17003 PR tree-optimization/23286
17004 PR tree-optimization/70159
17005 * doc/invoke.texi: Document -fcode-hoisting.
17006 * common.opt (fcode-hoisting): New flag.
17007 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
17008 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
17009 (do_regular_insertion): Rename to ...
17010 (do_pre_regular_insertion): ... this and amend general comments
17011 on insertion strathegy.
17012 (do_partial_partial_insertion): Rename to ...
17013 (do_pre_partial_partial_insertion): ... this.
17014 (do_hoist_insertion): New function.
17015 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
17016 and call do_hoist_insertion properly.
17018 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
17019 (pass_pre::execute): Register hoist_insert stats.
17021 2016-07-12 Jakub Jelinek <jakub@redhat.com>
17023 PR middle-end/71716
17024 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
17025 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
17026 is different from mode's bitsize. Small cleanup.
17028 2016-07-12 Richard Biener <rguenther@suse.de>
17030 PR rtl-optimization/68961
17031 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
17032 to simplify to a non-constant.
17034 2016-07-11 Jakub Jelinek <jakub@redhat.com>
17036 PR middle-end/71758
17037 * omp-low.c (expand_omp_target): Gimplify device.
17039 PR tree-optimization/71823
17040 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
17041 to get vec_oprnds2 from op2.
17043 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
17045 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
17046 Hoist common subexpressions.
17047 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
17049 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
17052 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
17053 prevent generation of 'stxsiwx' on pre Power8 hardware.
17055 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17057 * input.c: Include cpplib.h.
17058 (selftest::temp_source_file): New class.
17059 (selftest::temp_source_file::temp_source_file): New ctor.
17060 (selftest::temp_source_file::~temp_source_file): New dtor.
17061 (selftest::should_have_column_data_p): New function.
17062 (selftest::test_should_have_column_data_p): New function.
17063 (selftest::temp_line_table): New class.
17064 (selftest::temp_line_table::temp_line_table): New ctor.
17065 (selftest::temp_line_table::~temp_line_table): New dtor.
17066 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
17067 it to create a temp_line_table.
17068 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
17069 locations that are known to have column data.
17070 (selftest::line_table_case): New struct.
17071 (selftest::test_reading_source_line): Move tempfile handling
17072 to class temp_source_file.
17073 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
17074 (selftest::assert_token_loc_eq): New function.
17075 (ASSERT_TOKEN_LOC_EQ): New macro.
17076 (selftest::test_lexer): New function.
17077 (selftest::boundary_locations): New array.
17078 (selftest::input_c_tests): Call test_should_have_column_data_p.
17079 Loop over a test matrix of interesting values of location and
17080 default_range_bits, calling test_lexer on each case in the matrix.
17081 Move call to test_accessing_ordinary_linemaps into the matrix.
17082 * selftest.h (ASSERT_EQ): Reimplement in terms of...
17083 (ASSERT_EQ_AT): New macro.
17085 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
17088 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
17089 Don't convert TImode in debug insn.
17091 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
17093 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
17094 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
17095 (tree_type_common::lang_flag_7): New.
17096 (tree_type_common::spare): Reduce size.
17097 * tree.h (TYPE_ALIGN_OK): Remove.
17098 (TYPE_LANG_FLAG_7): New.
17099 (get_inner_reference): Adjust header.
17100 * print-tree.c (print_node): Adjust.
17101 * expr.c (get_inner_reference): Remove parameter keep_aligning.
17102 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
17103 calls to get_inner_reference.
17104 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
17105 handling of TYPE_ALIGN_OK.
17106 * builtins.c (get_object_alignment_2): Adjust call to
17107 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
17108 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
17110 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
17111 * cfgexpand.c (expand_debug_expr): Likewise.
17112 * dbxout.c (dbxout_expand_expr): Likewise.
17113 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
17114 loc_list_from_tree, fortran_common): Likewise.
17115 * fold-const.c (optimize_bit_field_compare,
17116 decode_field_reference, fold_unary_loc, fold_comparison,
17117 split_address_to_core_and_offset): Likewise.
17118 * gimple-laddress.c (execute): Likewise.
17119 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
17120 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
17121 * hsa-gen.c (gen_hsa_addr): Likewise.
17122 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
17123 * tsan.c (instrument_expr): Likewise.
17124 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
17125 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
17126 * tree-affine.c (tree_to_aff_combination,
17127 get_inner_reference_aff): Adjust calls to get_inner_reference.
17128 * tree-data-ref.c (split_constant_offset_1,
17129 dr_analyze_innermost): Likewise.
17130 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
17131 * tree-sra.c (ipa_sra_check_caller): Likewise.
17132 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
17133 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
17134 bswap_replace): Likewise.
17135 * tree-vect-data-refs.c (vect_check_gather,
17136 vect_analyze_data_refs): Likewise.
17137 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
17138 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
17141 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17143 * Makefile.in (selftest-valgrind): New phony target.
17144 * function-tests.c (selftest::build_cfg): Delete pass instances
17145 created by the test.
17146 (selftest::convert_to_ssa): Likewise.
17147 (selftest::test_expansion_to_rtl): Likewise.
17148 * tree-cfg.c (selftest::test_linear_chain): Release dominator
17150 (selftest::test_diamond): Likewise.
17152 2016-07-11 Richard Biener <rguenther@suse.de>
17154 PR tree-optimization/71816
17155 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
17156 than replacing all of its operands.
17158 2016-07-11 Alan Modra <amodra@gmail.com>
17160 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
17161 (ctr<mode>): Add unspec.
17162 (ctr<mode>_internal*): Likewise.
17164 2016-07-08 James Bowman <james.bowman@ftdichip.com>
17166 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
17167 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
17169 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
17171 PR rtl-optimization/71621
17172 * lra-constraints.c (process_alt_operands): Check combination of
17173 reg class and mode.
17175 2016-07-08 Jason Merrill <jason@redhat.com>
17176 Richard Biener <rguenther@suse.de>
17178 P0145: Refining Expression Order for C++.
17179 * gimplify.c (initial_rhs_predicate_for): New.
17180 (gimplfy_modify_expr): Gimplify RHS before LHS.
17182 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17185 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17186 Allow standard error handling to take over when a wrong number
17187 of arguments is presented to __builtin_vec_ld () or
17188 __builtin_vec_st ().
17190 2016-07-08 Jiong Wang <jiong.wang@arm.com>
17192 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
17197 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
17198 __builtin_aarch64_fmaxv2sf.
17199 (vmaxnmq_f32): Likewise.
17200 (vmaxnmq_f64): Likewise.
17201 (vminnm_f32): Likewise.
17202 (vminnmq_f32): Likewise.
17203 (vminnmq_f64): Likewise.
17205 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
17208 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
17209 enable -mfloat128-hardware by default.
17210 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
17211 that IEEE 128-bit hardware support needs.
17212 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17213 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
17214 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
17215 floating point requires.
17216 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
17217 -mfloat128 and -mfloat128-hardware changes.
17219 2016-07-08 Alan Hayward <alan.hayward@arm.com>
17221 PR tree-optimization/71667
17222 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
17224 2016-07-08 Martin Liska <mliska@suse.cz>
17226 PR middle-end/71606
17227 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
17228 folding produces SAVE_EXPRs, thus return false for the type.
17230 2016-07-07 Martin Liska <mliska@suse.cz>
17232 * file-find.c (remove_prefix): New function.
17233 * file-find.h (remove_prefix): Declare the function.
17234 * gcc-ar.c (main): Skip a folder of the wrapper if
17235 a wrapped binary would point to the same file.
17237 2016-07-07 Jan Hubicka <jh@suse.cz>
17239 * tree-scalar-evolution.c (iv_can_overflow_p): export.
17240 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
17241 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
17243 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
17246 * ipa-inline-analysis.c (compute_inline_parameters): Set
17247 local.can_change_signature to false for intrumentation
17250 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17252 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
17253 with TARGET_HAVE_MOVT.
17254 (TARGET_HAVE_MOVT): Define.
17255 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
17256 availability with TARGET_HAVE_MOVT.
17257 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
17259 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
17261 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
17262 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
17263 * config/arm/constraints.md (define_constraint "j"): Use
17264 TARGET_HAVE_MOVT to check MOVT availability.
17266 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17268 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
17270 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17272 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
17273 (armv8-m.main): Likewise.
17274 (armv8-m.main+dsp): Likewise.
17275 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
17276 (FL_FOR_ARCH8M_MAIN): Likewise.
17277 * config/arm/arm-tables.opt: Regenerate.
17278 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
17279 armv8-m.main+dsp to BE8_LINK_SPEC.
17280 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
17281 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
17282 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
17283 Baseline and Mainline.
17284 (arm_option_override_internal): Also disable arm_restrict_it when
17285 !arm_arch_notm. Update comment for -munaligned-access to also cover
17287 (arm_file_start): Increase buffer size for printing architecture name.
17288 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
17289 and armv8-m.main+dsp.
17290 (mno-unaligned-access): Clarify that this is disabled by default for
17291 ARMv8-M Baseline architectures as well.
17293 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17295 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
17296 decide whether to prevent some libgcc routines being included for some
17297 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
17298 link between this condition and the one in
17299 libgcc/config/arm/lib1func.S.
17301 2016-07-07 Richard Biener <rguenther@suse.de>
17303 * tree-ssa-pre.c: Include alias.h.
17304 (compute_avail): If we have multiple VN_REFERENCEs with the
17305 same hashtable entry adjust that to make it a valid replacement
17306 for all of them with respect to alignment and aliasing
17307 when doing insertion.
17308 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
17309 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
17311 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
17315 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
17316 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
17319 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17321 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
17322 (adjust_mems): Adjust.
17323 (adjust_insn): Likewise.
17324 (prepare_call_arguments): Likewise.
17326 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17328 * gcse.c (struct ls_expr): Make stores field a vector.
17329 (ldst_entry): Adjust.
17330 (free_ldst_entry): Likewise.
17331 (print_ldst_list): Likewise.
17332 (compute_ld_motion_mems): Likewise.
17333 (update_ld_motion_stores): Likewise.
17335 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17337 * gcse.c (struct ls_expr): Remove loads field.
17338 (ldst_entry): Adjust.
17339 (free_ldst_entry): Likewise.
17340 (print_ldst_list): Likewise.
17341 (compute_ld_motion_mems): Likewise.
17343 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17345 * store-motion.c (struct st_expr): Make antic_stores a vector.
17346 (st_expr_entry): Adjust.
17347 (free_st_expr_entry): Likewise.
17348 (print_store_motion_mems): Likewise.
17349 (find_moveable_store): Likewise.
17350 (compute_store_table): Likewise.
17351 (remove_reachable_equiv_notes): Likewise.
17352 (replace_store_insn): Likewise.
17353 (build_store_vectors): Likewise.
17355 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17357 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
17358 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
17360 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
17362 PR tree-optimization/71518
17363 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
17364 misalign also for outer loops with negative step.
17366 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
17368 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
17369 (cortex_a53_shift): Add mov_shift.
17370 (cortex_a53_shift_reg): Add new reservation for register shifts.
17371 (cortex_a53_alu): Remove bfm.
17372 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
17373 (cortex_a53_alu_extr): Add new reservation for EXTR.
17374 (bypasses): Improve bypass modelling.
17376 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17379 * config/avr/avr.c (avr_asm_select_section): Strip off
17380 SECTION_DECLARED from flags when calling get_section.
17382 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17384 * tree-vectorizer.h (vect_memory_access_type): Add
17385 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
17386 * tree-vect-stmts.c (compare_step_with_zero): New function.
17387 (perm_mask_for_reverse): Move further up file.
17388 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
17390 (get_negative_load_store_type): New function.
17391 (get_load_store_type): Call it. Add an ncopies argument.
17392 (vectorizable_mask_load_store): Update call accordingly and
17393 remove tests for negative steps.
17394 (vectorizable_store, vectorizable_load): Likewise. Handle new
17395 memory_access_types.
17397 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17399 * tree-vectorizer.h (vect_memory_access_type): New enum.
17400 (_stmt_vec_info): Add a memory_access_type field.
17401 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
17402 (vect_model_store_cost): Take an access type instead of a boolean.
17403 (vect_model_load_cost): Likewise.
17404 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
17405 vect_model_store_cost and vect_model_load_cost.
17406 * tree-vect-stmts.c (vec_load_store_type): New enum.
17407 (vect_model_store_cost): Take an access type instead of a
17408 store_lanes_p boolean. Simplify tests.
17409 (vect_model_load_cost): Likewise, but for load_lanes_p.
17410 (get_group_load_store_type, get_load_store_type): New functions.
17411 (vectorizable_store): Use get_load_store_type. Record the access
17412 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
17413 (vectorizable_load): Likewise.
17414 (vectorizable_mask_load_store): Likewise. Replace is_store
17415 variable with vls_type.
17417 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17419 * tree-vectorizer.h (vect_grouped_load_supported): Add a
17420 single_element_p parameter.
17421 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
17422 Check the PR65518 case here rather than in vectorizable_load.
17423 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
17424 * tree-vect-stmts.c (vectorizable_load): Likewise.
17426 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17428 * tree-vectorizer.h (gather_scatter_info): New structure.
17429 (vect_check_gather_scatter): Return a bool rather than a decl.
17430 Replace return-by-pointer arguments with a single
17431 gather_scatter_info *.
17432 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
17433 (vect_analyze_data_refs): Update call accordingly.
17434 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
17435 (vectorizable_mask_load_store): Likewise. Also record the
17436 offset dt and vectype in the gather_scatter_info.
17437 (vectorizable_store): Likewise.
17438 (vectorizable_load): Likewise.
17440 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17442 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
17443 strided groups, use the cost of N scalar accesses instead
17444 of ncopies vector accesses.
17445 (vect_model_load_cost): Likewise.
17447 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17449 * tree-vect-stmts.c (vect_cost_group_size): Delete.
17450 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
17451 variable to indicate when once-per-group costs are being used.
17452 (vect_model_load_cost): Likewise. Fix comment and misindented code.
17454 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17456 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
17457 peeling-for-gaps condition.
17459 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17461 * config/s390/s390.c (s390_expand_vec_init): Force initializer
17462 element to register if it doesn't match general_operand.
17464 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
17465 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17467 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
17469 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
17470 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
17471 (SIGNBIT): New mode iterator.
17472 (Fsignbit): New mode attribute.
17473 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
17474 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
17475 when direct moves are available.
17476 (signbit<mode>2_dm): New define_insn_and_split).
17477 (signbit<mode>2_dm2): New define_insn.
17479 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17481 PR rtl-optimization/71594
17482 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
17483 into subregs of appropriate mode before trying to emit a conditional
17486 2016-07-05 Jan Hubicka <jh@suse.cz>
17488 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
17489 (simple_iv): Use it.
17491 2016-07-05 Jan Hubicka <jh@suse.cz>
17493 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
17495 2016-07-05 Jiong Wang <jiong.wang@arm.com>
17497 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
17500 2016-07-05 Jan Hubicka <jh@suse.cz>
17502 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
17505 2016-07-05 Richard Biener <rguenther@suse.de>
17507 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
17508 Handle empty else block.
17509 (is_feasible_trace): Likewise.
17510 (split_paths): Likewise.
17512 2016-07-05 Richard Biener <rguenther@suse.de>
17514 * tree-loop-distribution.c (distribute_loop): Fix issue with
17515 the cost model loop.
17517 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
17519 * config/arm/neon-testgen.ml: Delete.
17520 * config/arm/neon.ml: Delete.
17522 2016-07-04 Jakub Jelinek <jakub@redhat.com>
17525 * tree.c (attribute_value_equal): Use get_attribute_name instead of
17526 directly using TREE_PURPOSE.
17528 2016-07-04 Jiong Wang <jiong.wang@arm.com>
17530 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
17531 * config/aarch64/aarch64_neon.h: Likewise.
17532 * config/aarch64/arm_neon.h: Likewise.
17533 * config/aarch64/atomics.md: Likewise.
17534 * config/aarch64/aarch64-simd-builtins.def: Likewise.
17535 * doc/invoke.texi: Likewise.
17537 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
17539 * config/s390/s390.md: Add "z13" cpu_facility.
17540 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
17541 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
17542 condition" type instructions.
17544 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
17545 Jeff Law <law@redhat.com>
17547 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
17548 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
17550 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
17552 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
17553 permutation for TARGET_AVX512F.
17554 (ix86_expand_vec_one_operand_perm_avx512): New function.
17555 (expand_vec_perm_1): Invoke introduced function.
17556 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
17557 it may be not valid after vectorization.
17559 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17562 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
17563 typo in comment. Only force to memory if it is a weak
17564 external reference.
17566 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
17567 Jiong Wang <jiong.wang@arm.com>
17569 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
17570 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
17571 (AARCH64_FL_F16): New.
17572 (AARCH64_FL_FOR_ARCH8_2): New.
17573 (AARCH64_ISA_8_2): New.
17574 (AARCH64_ISA_F16): New.
17575 (TARGET_FP_F16INST): New.
17576 (TARGET_SIMD_F16INST): New.
17577 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
17578 ("fp"): Disabling "fp" also disables "fp16".
17579 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
17580 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
17581 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
17582 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
17584 2016-07-04 Jan Beulich <jbeulich@suse.com>
17586 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
17588 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17591 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
17592 the insns, use an insn form that does not adjust the offset on
17593 little endian systems.
17595 2016-07-01 Jan Beulich <jbeulich@suse.com>
17597 * varasm.c (get_variable_section): Validate initializer in
17598 named .bss-like sections.
17600 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
17602 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
17603 Exchange the order of the second and third operands in the vpermr
17604 instruction tmeplate.
17606 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
17609 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
17610 Disallow TDmode values.
17612 2016-07-01 Alan Modra <amodra@gmail.com>
17614 PR rtl-optimization/71709
17615 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
17616 being set, not referenced.
17618 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17620 PR tree-optimization/70729
17621 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
17622 of loop since it can be not valid after transformation.
17624 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17626 * config/arm/arm.c (thumb_reload_in_hi): Delete.
17627 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
17629 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
17631 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
17634 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
17637 * config/rs6000/constraints.md (wY constraint): New constraint to
17638 match the requirements for the LXSD and STXSD instructions.
17639 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
17640 predicate to match the requirements for the LXSD and STXSD
17642 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
17643 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
17644 to make sure that the bottom 2 bits of offset are 0, the address
17645 form is offsettable, and no updating is done in the address mode.
17646 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
17647 (movdi_internal32): Likewise
17648 (movdi_internal64): Likewise.
17650 2016-06-30 Jakub Jelinek <jakub@redhat.com>
17652 PR tree-optimization/71707
17653 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
17654 strinfo even for ADDR_EXPR ptr.
17656 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
17658 * config/rs6000/altivec.md (darn_32): Change the condition to
17659 TARGET_P9_MISC instead of TARGET_MODULO.
17660 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
17661 condition expression.
17662 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
17663 condition expression.
17664 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
17665 (DFP_TEST): New code iterator.
17666 (dfptstsfi_<code>_mode>): New define_expand.
17667 (*dfp_sgnfcnc_<mode>): New define_insn.
17668 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
17669 definition next to BU_P9_MISC_1 definition and change the MASK
17670 value to RS6000_BTM_P9_MISC.
17671 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
17672 (BU_P9_64BIT_MISC_0): Likewise.
17673 (BU_P9_DFP_MISC_0): New macro definition.
17674 (BU_P9_DFP_MISC_1): New macro definition.
17675 (BU_P9_DFP_MISC_2): New macro definition.
17676 (BU_P9_DFP_OVERLOAD_1): New macro definition.
17677 (BU_P9_DFP_OVERLOAD_2): New macro definition.
17678 (BU_P9_DFP_OVERLOAD_3): New macro definition.
17679 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
17680 (TSTSFI_LT_TD): Likewise.
17681 (TSTSFI_EQ_DD): Likewise.
17682 (TSTSFI_EQ_TD): Likewise.
17683 (TSTSFI_GT_DD): Likewise.
17684 (TSTSFI_GT_TD): Likewise.
17685 (TSTSFI_OV_DD): Likewise.
17686 (TSTSFI_OV_TD): Likewise.
17687 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
17688 (TSTSFI_LT_DD): Likewise.
17689 (TSTSFI_LT_TD): Likewise.
17690 (TSTSFI_EQ): Likewise.
17691 (TSTSFI_EQ_DD): Likewise.
17692 (TSTSFI_EQ_TD): Likewise.
17693 (TSTSFI_GT): Likewise.
17694 (TSTSFI_GT_DD): Likewise.
17695 (TSTSFI_GT_TD): Likewise.
17696 (TSTSFI_OV): Likewise.
17697 (TSTSFI_OV_DD): Likewise.
17698 (TSTSFI_OV_TD): Likewise.
17699 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17700 overloaded test significance functions.
17701 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17702 OPTION_MASK_P9_MISC into the representation of this mask.
17703 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
17705 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
17706 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
17708 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
17709 argument is a 6-bit unsigned literal value if the icode argument
17710 represents a DFP test significance built-in call.
17711 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
17712 flag used independently and in combination with the
17713 RS6000_BTM_64BIT flag.
17714 (rs6000_opt_masks): Add entry for power9-misc command-line option.
17715 (rs6000_builtin_mask_names): Add entry for power9-misc
17716 command-line option.
17717 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
17718 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
17719 RS6000_BTM_P9_MISC macros.
17720 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
17721 option and change the description of the -mpower9-vector option to
17722 enable only vector instructions, removing its erroneously claimed
17723 support for scalar instructions.
17724 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
17725 the ISA 3.0 digital floating point test significance built-in
17728 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
17730 * config/aarch64/aarch64.c (cortexa35_tunings):
17731 Enable AES fusion. Use cortexa57_branch_cost.
17732 (cortexa53_tunings): Use cortexa57_branch_cost.
17733 (cortexa72_tunings): Use cortexa57_branch_cost.
17734 Use AUTOPREFETCHER_WEAK.
17735 (cortexa73_tunings): Use cortexa57_branch_cost.
17737 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17738 James Greenhalgh <james.greenhalgh@arm.com>
17740 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
17741 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
17742 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
17743 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
17744 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
17745 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
17746 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
17747 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
17748 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
17749 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
17750 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
17751 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
17752 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
17755 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
17756 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17758 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
17760 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
17762 2016-06-30 David Malcolm <dmalcolm@redhat.com>
17765 * gcc.c (driver::build_option_suggestions): Pass "option" to
17766 add_misspelling_candidates.
17767 * opts-common.c (add_misspelling_candidates): Add "option" param;
17768 use it to avoid adding negated forms for options marked with
17770 * opts.h (add_misspelling_candidates): Add "option" param.
17772 2016-06-30 Jakub Jelinek <jakub@redhat.com>
17774 PR middle-end/71693
17775 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
17776 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
17777 first when permuting bitwise operation with rotate. Cast
17778 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
17780 2016-06-29 David Malcolm <dmalcolm@redhat.com>
17782 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
17783 for misspelled param names.
17784 * params.c: Include spellcheck.h.
17785 (find_param_fuzzy): New function.
17786 * params.h (find_param_fuzzy): New prototype.
17787 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
17788 * spellcheck.h (struct edit_distance_traits<const char *>):
17791 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
17793 * config/rs6000/predicates.md (const_0_to_7_operand): New
17794 predicate, recognize 0..7.
17795 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17796 support for doing extracts from V16QImode, V8HImode, V4SImode
17798 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
17799 vector extract support.
17800 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
17801 for ISA 3.0 vector extract.
17802 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
17803 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
17804 extracts of a constant element number from small integer vectors
17805 on 64-bit ISA 3.0 systems.
17806 (vsx_extract_<mode>_di): Likewise.
17807 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
17808 say when we can do ISA 3.0 vector extracts.
17809 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
17810 registers, using the stxsiwx instruction.
17812 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
17814 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
17815 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
17816 qdf24xx_regmove_cost, qdf24xx_tunings): New.
17817 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
17818 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
17819 * config/arm/arm.c (arm_qdf24xx_tune): New.
17821 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
17823 * config/aarch64/aarch64.c (cortexa53_tunings):
17824 Increase loop alignment to 8. Set function alignment to 16.
17825 (cortexa35_tunings): Likewise.
17826 (cortexa57_tunings): Increase loop alignment to 8.
17827 (cortexa72_tunings): Likewise.
17828 (cortexa73_tunings): Likewise.
17830 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
17832 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
17833 for arm_fp16_ok and arm_fp16_hw.
17834 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
17835 arm_fp16_alternative.
17837 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
17839 PR tree-optimization/71655
17840 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
17841 types when swapping operands.
17843 2016-06-29 Martin Liska <mliska@suse.cz>
17845 PR middle-end/71585
17846 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
17847 * ipa-inline-transform.c (inline_call): Remove unnecessary call
17848 of build_optimization_node.
17850 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
17852 PR tree-optimization/70729
17853 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
17854 independent in loops having positive safelen value.
17855 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
17856 it may be not valid after vectorization.
17858 2016-06-29 Jakub Jelinek <jakub@redhat.com>
17860 PR tree-optimization/71625
17861 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
17862 is sorted by ascending list->offset. If PTR is non-NULL and there is
17863 previous strinfo, call get_stridx_plus_constant.
17864 (get_stridx): Pass exp as second argument to get_addr_stridx.
17865 (addr_stridxptr): Add missing list = list->next, so that there can be
17866 more than one entries in the list. Bump limit from 16 to 32. Ensure
17867 the list is sorted by ascending list->offset.
17868 (get_stridx_plus_constant): Adjust so that it can be also called with
17869 ADDR_EXPR instead of SSA_NAME as PTR.
17870 (handle_char_store): Pass NULL_TREE as second argument to
17873 2016-06-29 Richard Biener <rguenther@suse.de>
17875 PR rtl-optimization/68961
17876 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
17878 2016-06-29 Richard Biener <rguenther@suse.de>
17880 PR middle-end/71002
17881 * alias.c (component_uses_parent_alias_set_from): Handle
17882 type punning through union accesses by using the union alias set.
17883 * gimple.c (gimple_get_alias_set): Remove union type punning case.
17885 2016-07-29 Richard Biener <rguenther@suse.de>
17887 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
17888 precision not matching mode precision.
17890 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
17892 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
17893 pa_output_arg_descriptor.
17894 (call_val_symref_64bit_post_reload): Likewise.
17895 (call_val_powf_64bit_post_reload): Likewise.
17896 (sibcall_internal_symref_64bit): Likewise.
17897 (sibcall_value_internal_symref_64bit): Likewise.
17899 2016-06-28 Jakub Jelinek <jakub@redhat.com>
17901 PR middle-end/71626
17902 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
17903 a constant, force its SUBREG_REG into memory or register instead
17906 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17909 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
17910 * doc/invoke.texi (AVR Options): Document it.
17912 2016-06-28 Walter Lee <walt@tilera.com>
17914 * config/tilegx/linux.h: Do not include arch/icache.h
17915 (CLEAR_INSN_CACHE): Provide inlined definition directly.
17916 * config/tilepro/linux.h: Do not include arch/icache.h
17917 (CLEAR_INSN_CACHE): Provide inlined definition directly.
17919 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
17921 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
17922 for big-endian BIT_FIELD_REF.
17924 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
17926 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
17927 ('size' attribute): Add '128'.
17929 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
17930 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
17931 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
17932 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
17933 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
17934 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
17935 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
17936 *trunc<mode>df2_odd): Set size attribute to '128'.
17937 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
17938 * config/rs6000/power6.md (power6-fp): Include dfp type.
17939 * config/rs6000/power7.md (power7-fp): Likewise.
17940 * config/rs6000/power8.md (power8-fp): Likewise.
17941 * config/rs6000/power9.md: New file.
17942 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
17943 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
17944 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
17946 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
17947 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
17948 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
17949 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
17950 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
17951 dfp_dscri_<mode>): Change type attribute to dfp.
17952 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
17953 attribute to vecsimple.
17954 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
17955 and prefetch streams.
17956 (rs6000_option_override_internal): Remove temporary code setting
17957 tuning to power8. Don't set rs6000_sched_groups for power9.
17958 (last_scheduled_insn): Change to rtx_insn *.
17959 (divide_cnt, vec_load_pendulum): New variables.
17960 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
17961 (rs6000_issue_rate): Set issue rate for Power9.
17962 (is_power9_pairable_vec_type): New.
17963 (power9_sched_reorder2): New.
17964 (rs6000_sched_reorder2): Call new function for Power9 specific
17966 (insn_must_be_first_in_group): Remove Power9.
17967 (insn_must_be_last_in_group): Likewise.
17968 (force_new_group): Likewise.
17969 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
17970 Initialize divide_cnt/vec_load_pendulum.
17971 (_rs6000_sched_context, rs6000_init_sched_context,
17972 rs6000_set_sched_context): Handle context save/restore of new
17975 2016-06-28 Richard Biener <rguenther@suse.de>
17977 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17978 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
17979 COMPONENT_REF operand.
17980 (nonoverlapping_component_refs_p): Likewise.
17981 * stor-layout.c (start_bitfield_representative): Mark
17982 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
17984 2016-06-28 Jakub Jelinek <jakub@redhat.com>
17986 * Makefile.in: Don't cat ../stage_current if it does not exist.
17988 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
17989 last argument is a bit-field.
17991 PR rtl-optimization/71673
17992 * internal-fn.c (expand_arith_overflow_result_store): Use
17993 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
17994 expand_simple_binop.
17996 PR middle-end/66867
17997 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
17998 expand_ifn_atomic_compare_exchange): New functions.
17999 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
18000 * tree.h (build_call_expr_internal_loc): Rename to ...
18001 (build_call_expr_internal_loc_array): ... this. Fix up type of
18003 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
18004 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
18005 ATOMIC_COMPARE_EXCHANGE result.
18006 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
18007 * gimple-fold.h (optimize_atomic_compare_exchange_p,
18008 fold_builtin_atomic_compare_exchange): New prototypes.
18009 * gimple-fold.c (optimize_atomic_compare_exchange_p,
18010 fold_builtin_atomic_compare_exchange): New functions..
18011 * tree-ssa.c (execute_update_addresses_taken): If
18012 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
18013 of call when finding addressable vars, and if such var becomes
18014 non-addressable, call fold_builtin_atomic_compare_exchange.
18016 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
18019 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
18020 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
18022 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
18024 * config/rs6000/rs6000.md ('type' attribute): Add
18025 veclogical,veccmpfx,vecexts,vecmove insn types.
18026 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
18027 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
18028 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
18029 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
18030 *nabs<mode>2_hw): Change type to vecmove.
18031 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
18032 *boolcc<mode>3_internal, *eqv<mode>3_internal,
18033 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
18034 *ieee_128bit_vsx_abs<mode>2_internal,
18035 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
18036 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
18037 *ieee128_mtvsrd_32bit): Change type to veclogical.
18038 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
18039 *movdi_internal32, *movdi_internal64): Update insn types.
18040 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
18041 vsx_extract_<mode>): Change type to veclogical.
18042 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
18043 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
18044 *vsx_sign_extend_si_v2di): Change type to vecexts.
18045 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
18046 type to veclogical.
18047 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
18048 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
18049 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
18050 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
18051 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
18052 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
18053 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
18054 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
18055 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
18056 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
18057 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
18058 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
18059 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
18060 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
18061 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
18062 (ppc7450-vecsimple): Add veclogical, vecmove.
18063 (ppc7450-veccmp): Add veccmpfx.
18064 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
18066 (ppc8540_vector_compare): Add veccmpfx.
18067 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
18068 * config/rs6000/cell.md (cell-fp): Add fpsimple.
18069 (cell-vecsimple): Add veclogical, vecmove.
18070 (cell-veccmp): Add veccmpfx.
18071 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
18072 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
18074 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
18075 * config/rs6000/power4.md (power4-fp): Add fpsimple.
18076 (power4-vecsimple): Add veclogical, vecmove.
18077 (power4-veccmp): Add veccmpfx.
18078 * config/rs6000/power5.md (power5-fp): Add fpsimple.
18079 * config/rs6000/power6.md (power6-fp): Add fpsimple.
18080 (power6-vecsimple): Add veclogical, vecmove.
18081 (power6-veccmp): Add veccmpfx.
18082 * config/rs6000/power7.md (power7-fp): Add fpsimple.
18083 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
18084 * config/rs6000/power8.md (power8-fp): Add fpsimple.
18085 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
18086 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
18087 * config/rs6000/titan.md (titan_fp): Add fpsimple.
18088 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
18090 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
18092 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
18095 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18096 OPTION_MASK_P9_DFORM_VECTOR.
18097 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
18098 disable -mpower9-dform-vector when using reload.
18099 (quad_address_p): Remove 'gpr_p' argument and all associated code.
18100 New 'strict' argument. Update all callers. Add strict addressing
18102 (rs6000_legitimate_offset_address_p): Remove call to
18103 virtual_stack_registers_memory_p.
18104 (rs6000_legitimize_reload_address): Add quad address support.
18105 (rs6000_legitimate_address_p): Move call to quad_address_p above
18106 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
18107 to account for new strict usage.
18108 (rs6000_output_move_128bit): Adjust quad_address_p args to account
18109 for new strict usage.
18110 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
18112 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
18119 * config/i386/i386.c (ix86_spill_class): Disable condition to
18120 always return NO_REGS.
18122 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
18124 * predict.c: Include gimple-pretty-print.h
18125 (predicted_by_loop_heuristics_p): Check also
18126 PRED_LOOP_EXIT_WITH_RECURSION
18127 (predict_loops): Find self recursive calls and use special purpose
18128 predictors for them; dump log about decisions.
18129 (pass_profile::execute): Dump info about #of iterations.
18130 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
18131 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
18133 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
18135 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
18136 output_asm_insn calls and shorten long lines. Output .CALL
18137 argument descriptor using pa_output_arg_descriptor. Add various
18138 inline $$dyncall and other optimizations.
18139 (pa_attr_length_indirect_call): Adjust ordering and lengths.
18141 2016-06-25 Jakub Jelinek <jakub@redhat.com>
18143 PR tree-optimization/71643
18144 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
18147 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
18148 leak a bitmap if dep_bb is NULL.
18150 PR tree-optimization/71631
18151 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
18152 to rewrite_expr_tree even if negate_result, move new_lhs var
18153 declaration and initialization earlier, for powi_result set afterwards
18154 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
18155 if new_lhs != lhs, and don't shadow gsi var.
18157 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18159 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
18160 Add in_loop parameter.
18161 (predict_loops): Add loop guard heuristics.
18162 * predict.def (PRED_LOOP_GUARD): New heuristics.
18164 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18166 * predict.c: Include ipa-utils.h
18167 (tree_bb_level_prediction): Predict recursive calls.
18168 (tree_estimate_probability_bb): Skip inexpensive calls for call
18170 * predict.def (PRED_RECURSIVE_CALL): New.
18172 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18174 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
18175 (BU_FLOAT128_1): Likewise.
18177 (COPYSIGNQ): Likewise.
18178 (RS6000_BUILTIN_NANQ): Likewise.
18179 (RS6000_BUILTIN_NANSQ): Likewise.
18180 (RS6000_BUILTIN_INFQ): Likewise.
18181 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
18182 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
18183 (TARGET_FOLD_BUILTIN): New #define.
18184 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
18185 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
18186 (rs6000_fold_builtin): New target hook implementation, handling
18187 folding of 128-bit NaNs and infinities.
18188 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
18189 entries are filled in to avoid problems during bootstrap
18190 self-test; define builtins for 128-bit NaNs and infinities.
18191 (rs6000_opt_mask): Add entry for float128.
18192 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
18193 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
18194 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
18195 (const_str_type_node): New #define.
18196 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
18197 to a define_expand that dispatches to either copysign<mode>3_soft
18198 or copysign<mode>3_hard.
18199 (copysign<mode>3_hard): Rename from copysign<mode>3.
18200 (copysign<mode>3_soft): New define_insn.
18201 * doc/extend.texi: Document new builtins.
18203 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18205 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
18206 PRIu64 instead of lu.
18208 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
18211 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
18212 copy the type name.
18214 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18216 PR tree-optimization/71647
18217 * omp-low.c (lower_rec_input_clauses): Convert
18218 omp_clause_aligned_alignment (c) to size_type_node for the
18219 last argument of __builtin_assume_aligned.
18221 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
18223 * configure.ac (calling ___tls_get_addr via GOT): New
18224 assembler/linker check.
18225 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
18226 assembler and linker supports calling ___tls_get_addr via GOT.
18227 Otherise, defined to 0.
18228 * config.in: Regenerated.
18229 * configure: Likewise.
18230 * config/i386/constraints.md (Yb): New constraint.
18231 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
18232 (REG_CLASS_NAMES): Likewise.
18233 (REG_CLASS_CONTENTS): Likewise.
18234 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
18235 the b constraint with the Yb constraint. Call ___tls_get_addr
18236 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
18238 (*tls_local_dynamic_base_32_gnu): Likewise.
18239 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
18240 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
18241 (*tls_local_dynamic_base_64_<mode>): Likewise.
18243 2016-06-24 Martin Liska <mliska@suse.cz>
18245 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
18246 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
18248 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
18249 argument to true if the expected number of iterations is
18252 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
18254 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
18255 assemble for 32bit target.
18256 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
18257 and $ld_ix86_gld_32_opt to link for 32bit target.
18258 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
18259 * configure: Regenerate.
18261 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18263 * config/arm/arm.c (int_log2): Delete definition and prototype.
18264 (shift_op): Use exact_log2 instead of int_log2.
18265 (vfp3_const_double_for_fract_bits): Likewise.
18267 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18269 * internal-fn.c (expand_arith_set_overflow): New function.
18270 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
18272 (expand_arith_overflow_result_store): Likewise. Handle precision
18273 smaller than mode precision.
18274 * tree-vrp.c (extract_range_basic): For imag part, handle
18275 properly signed 1-bit precision result.
18276 * doc/extend.texi (__builtin_add_overflow): Document that last
18277 argument can't be pointer to enumerated or boolean type.
18278 (__builtin_add_overflow_p): Document that last argument can't
18279 have enumerated or boolean type.
18281 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18282 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18284 * config/rs6000/predicates.md (splat_input_operand): Rework.
18285 Don't allow constants, since the insns that use this predicate
18286 don't support constants. Constants are handled by other insns
18287 that are created via combine. During and after register
18288 allocation, only allow indexed or indirect addresses, and not
18289 general addresses. Only allow modes supported by the hardware.
18290 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
18291 comment. Move check for using VSPLTIS<x> to a common location,
18292 instead of doing it in two different places.
18294 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
18296 * config/i386/driver-i386.c (host_detect_local_cpu): Set
18297 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
18298 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
18299 signature_CENTAUR_ebx.
18301 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
18305 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
18306 (as_ix86_gas_32_opt): This.
18307 (ld_ix86_tls_ldm_opt): Renamed to ...
18308 (ld_ix86_gld_32_opt): This.
18309 (R_386_TLS_LDM reloc): Updated.
18310 (R_386_GOT32X reloc): New assembler/linker check.
18311 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
18312 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
18314 * config.in: Regenerated.
18315 * configure: Likewise.
18316 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
18317 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
18318 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
18319 if ix86_force_load_from_GOT_p returns true.
18320 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
18321 ix86_force_load_from_GOT_p returns true.
18322 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
18323 the external function address via the GOT slot.
18324 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
18325 HAVE_AS_IX86_GOT32X before returning false.
18326 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
18327 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
18329 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
18331 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
18333 2016-06-23 Andi Kleen <ak@linux.intel.com>
18335 * Makefile.in: Regenerate.
18336 * doc/install.texi: Document autoprofiledbootstrap.
18338 2016-06-23 Andi Kleen <ak@linux.intel.com>
18340 * config/i386/gcc-auto-profile: New file.
18342 2016-06-23 Martin Liska <mliska@suse.cz>
18344 PR middle-end/71619
18345 * predict.c (predict_loops): Revert the hunk that was removed
18348 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
18350 * config.gcc: Add support for arm*-*-phoenix* targets.
18351 * config/arm/t-phoenix: New.
18352 * config/phoenix.h: New.
18354 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
18355 H.J. Lu <hongjiu.lu@intel.com>
18358 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
18359 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
18360 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
18361 ix86_force_load_from_GOT_p returns true.
18362 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
18363 ix86_force_load_from_GOT_p returns true.
18364 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
18365 ix86_force_load_from_GOT_p returns true.
18366 (ix86_expand_move): Load the external function address via the
18367 GOT slot if ix86_force_load_from_GOT_p returns true.
18368 * config/i386/predicates.md (x86_64_immediate_operand): Return
18369 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
18370 (x86_64_zext_immediate_operand): Ditto.
18372 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
18374 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
18376 2016-06-22 David Malcolm <dmalcolm@redhat.com>
18379 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
18380 * diagnostic.c (pedwarn_at_rich_loc): New function.
18381 * spellcheck.h (best_match::best_match): Add a
18382 "best_distance_so_far" optional parameter.
18383 (best_match::set_best_so_far): New method.
18384 (best_match::get_best_distance): New accessor.
18385 (best_match::get_best_candidate_length): New accessor.
18387 2016-06-22 Nick Clifton <nickc@redhat.com>
18389 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
18390 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
18391 modes are accepted as well.
18392 (ucompare_loc_descriptor): Likewise.
18393 (minmax_loc_descriptor): Likewise.
18394 (clz_loc_descriptor): Likewise.
18395 (popcount_loc_descriptor): Likewise.
18396 (bswap_loc_descriptor): Likewise.
18397 (rotate_loc_descriptor): Likewise.
18398 (mem_loc_descriptor): Likewise.
18399 (loc_descriptor): Likewise.
18401 2016-06-22 David Malcolm <dmalcolm@redhat.com>
18403 * common.opt (fdiagnostics-parseable-fixits): New option.
18404 * diagnostic.c: Include "selftest.h".
18405 (print_escaped_string): New function.
18406 (print_parseable_fixits): New function.
18407 (diagnostic_report_diagnostic): Call print_parseable_fixits.
18408 (selftest::assert_print_escaped_string): New function.
18409 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
18410 (selftest::test_print_escaped_string): New function.
18411 (selftest::test_print_parseable_fixits_none): New function.
18412 (selftest::test_print_parseable_fixits_insert): New function.
18413 (selftest::test_print_parseable_fixits_remove): New function.
18414 (selftest::test_print_parseable_fixits_replace): New function.
18415 (selftest::diagnostic_c_tests): New function.
18416 * diagnostic.h (struct diagnostic_context): Add field
18417 "parseable_fixits_p".
18418 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
18419 -fdiagnostics-parseable-fixits.
18420 (-fdiagnostics-parseable-fixits): New option.
18421 * opts.c (common_handle_option): Handle
18422 -fdiagnostics-parseable-fixits.
18423 * selftest-run-tests.c (selftest::run_tests): Call
18424 selftest::diagnostic_c_tests.
18425 * selftest.h (selftest::diagnostic_c_tests): New prototype.
18427 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
18429 PR tree-optimization/71488
18430 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
18431 comparison of boolean vectors.
18432 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
18433 of boolean vectors using bitwise operations.
18435 2016-06-22 Andreas Schwab <schwab@suse.de>
18437 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
18438 Remove declaration.
18440 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
18442 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
18444 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
18446 * config/i386/i386.c (print_reg): Emit an error message on attempt to
18449 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18451 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
18452 * config/arm/arm-cores.def (cortex-a73): New entry.
18453 (cortex-a73.cortex-a35): Likewise.
18454 (cortex-a73.cortex-a53): Likewise.
18455 * config/arm/arm-tables.opt: Regenerate.
18456 * config/arm/arm-tune.md: Likewise.
18457 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
18458 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
18459 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
18460 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
18461 * doc/invoke.texi (ARM Options): Document cortex-a73,
18462 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
18464 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18466 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
18467 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
18468 (cortex-a73.cortex-a35): Likewise.
18469 (cortex-a73.cortex-a53): Likewise.
18470 * config/aarch64/aarch64-tune.md: Regenerate.
18471 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
18472 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
18475 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18477 * configure.ac (gcc_cv_as_compress_debug): Remove
18478 --compress-debug-sections as extra as switch.
18479 Handle gas --compress-debug-sections=type.
18480 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
18481 Handle gld --compress-debug-sections=type.
18482 * configure: Regenerate.
18484 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
18486 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
18488 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
18490 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
18491 (do_rewrite): likewise.
18493 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18495 * common/config/mep/mep-common.c: Remove.
18496 * config.gcc: Remove mep-* support.
18497 * config/mep/constraints.md: Remove.
18498 * config/mep/default.h: Remove.
18499 * config/mep/intrinsics.h: Remove.
18500 * config/mep/intrinsics.md: Remove.
18501 * config/mep/ivc2-template.h: Remove.
18502 * config/mep/mep-c5.cpu: Remove.
18503 * config/mep/mep-core.cpu: Remove.
18504 * config/mep/mep-default.cpu: Remove.
18505 * config/mep/mep-ext-cop.cpu: Remove.
18506 * config/mep/mep-intrin.h: Remove.
18507 * config/mep/mep-ivc2.cpu: Remove.
18508 * config/mep/mep-pragma.c: Remove.
18509 * config/mep/mep-protos.h: Remove.
18510 * config/mep/mep.c: Remove.
18511 * config/mep/mep.cpu: Remove.
18512 * config/mep/mep.h: Remove.
18513 * config/mep/mep.md: Remove.
18514 * config/mep/mep.opt: Remove.
18515 * config/mep/predicates.md: Remove.
18516 * config/mep/t-mep: Remove.
18517 * doc/install.texi: Remove mep-* documentation.
18518 * doc/md.texi: Likewise.
18520 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18522 * config.gcc: Remove support for avr-rtems.
18523 * config/avr/gen-avr-mmcu-specs.c: Likewise.
18524 * config/avr/rtems.h: Remove.
18525 * config/avr/t-rtems: Remove.
18527 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18529 * config.gcc: Remove m32r-rtems support.
18530 * config/m32r/rtems.h: Remove.
18532 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18534 * config.gcc: Remove h8300-rtems support.
18535 * config/h8300/rtems.h: Remove.
18536 * config/h8300/t-rtems: Remove.
18538 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18540 * config.gcc: Remove support for knetbsd.
18541 * configure.ac: Likewise.
18542 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
18543 * config/knetbsd-gnu.h: Remove.
18544 * configure: Regenerate.
18546 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18548 * config.gcc: Remove support for openbsd 2 and 3.
18549 * config/openbsd-oldgas.h: Remove.
18551 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18553 * config.gcc: Remove interix support.
18554 * config/i386/i386-interix.h: Remove.
18555 * config/i386/interix.opt: Remove.
18556 * config/i386/t-interix: Remove.
18557 * configure: Regenerate.
18558 * configure.ac: Remove interix support.
18559 * doc/install.texi: Remove interix documentation.
18561 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
18563 * config/rs6000/rs6000.h: Add conditional preprocessing directives
18564 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
18567 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
18569 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
18570 they are both PLACEHOLDER_EXPRs.
18572 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
18574 * stor-layout.c (layout_type): Move setting complex MODE to
18575 layout_type, instead of setting it ahead of time by the caller.
18576 * tree.c (build_complex_type): Likewise.
18578 2016-06-21 Martin Liska <mliska@suse.cz>
18580 * predict.c (force_edge_cold): Replace imposisble with
18583 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
18585 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
18586 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
18588 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
18590 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
18592 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
18593 Ilya Enkovich <ilya.enkovich@intel.com>
18596 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
18597 New member function to convert V1TImode register to SUBREG
18598 TImode in debug insn.
18599 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
18600 after changing register mode to V1TImode.
18602 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
18604 * config/aarch64/aarch64-cores.def (vulcan): New core.
18605 * config/aarch64/aarch64-tune.md: Regenerate.
18606 * doc/invoke.texi: Document vulcan as an available option.
18608 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
18610 * cse.c (canon_asm_operands): New function extracted from...
18611 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
18612 either standalone or member of a PARALLEL.
18614 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
18617 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
18618 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
18619 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
18621 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
18624 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
18625 constant addresses if can_create_pseudo_p.
18627 2016-06-21 Jakub Jelinek <jakub@redhat.com>
18629 PR tree-optimization/71588
18630 * tree-ssa-strlen.c (valid_builtin_call): New function.
18631 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
18634 2016-06-20 Jakub Jelinek <jakub@redhat.com>
18636 PR middle-end/71581
18637 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
18638 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
18639 for conversion of scalar user var to complex type and use the
18640 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
18643 PR rtl-optimization/71591
18644 * toplev.c (toplev::run_self_tests): If no_backend, complain and
18645 don't run any tests.
18647 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
18650 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
18651 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
18652 space for PIC with non-v32 and the common non-PIC "jump".
18654 2016-06-20 Jakub Jelinek <jakub@redhat.com>
18657 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
18658 returned values and add UN*/LTGT/*ORDERED cases with values matching
18659 D operand modifier on vcmp for AVX.
18661 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18663 * config/aarch64/aarch64.opt
18664 (mpc-relative-literal-loads): Rename internal option name.
18665 * config/aarch64/aarch64.c
18666 (aarch64_nopcrelative_literal_loads): Rename to
18667 aarch64_pcrelative_literal_loads.
18668 (aarch64_expand_mov_immediate): Likewise.
18669 (aarch64_secondary_reload): Likewise.
18670 (aarch64_can_use_per_function_literal_pools_p): Likewise.
18671 (aarch64_override_options_after_change_1): Rename and simplify logic.
18672 (aarch64_classify_symbol): Merge large model checks into switch,
18673 remove pc-relative load check.
18675 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18677 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
18678 costs relative to the cost of a register move.
18680 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18682 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
18683 (vcvt_n_f64_u64): Likewise.
18684 (vcvt_n_s64_f64): Likewise.
18685 (vcvt_n_u64_f64): Likewise.
18686 (vcvt_f64_s64): Likewise.
18687 (vrecpe_f64): Likewise.
18688 (vcvt_f64_u64): Likewise.
18689 (vrecps_f64): Likewise.
18691 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18693 * config/aarch64/aarch64.md
18694 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
18696 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
18698 * config/aarch64/aarch64-builtins.c
18699 (aarch64_types_binop_uss_qualifiers): Delete.
18700 (TYPES_BINOP_USS): Likewise.
18701 (aarch64_types_binop_sus_qualifiers): Likewise.
18702 (TYPES_BINOP_SUS): Likewise.
18703 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
18704 (TYPES_FCVTIMM_SUS): Likewise.
18705 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
18707 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
18708 (fcvtzs): Use SHIFTIMM rather than BINOP.
18709 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
18711 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18713 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
18714 costs relative to the cost of a register move.
18716 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18718 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
18719 Allow scalar/single vector modes to be tieable.
18721 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18723 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
18725 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18727 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
18729 * tree.h (TYPE_ALIGN): Likewise.
18731 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
18734 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
18736 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
18738 * config/avr/avr.c (avr_print_operand): Fix "format not a string
18739 literal" build warnings.
18740 (avr_print_operand_address): Dito.
18742 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
18745 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
18746 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
18748 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
18750 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
18752 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
18755 * reload1.c (reload): Pass 0 to finish_spills when called because
18756 update_eliminables_and_spill returns true and remove did_spill.
18757 (finish_spills): Adjust comment and document GLOBAL parameter.
18759 2016-06-17 DJ Delorie <dj@redhat.com>
18762 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
18763 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
18764 (umulqihi3_virt): Likewise.
18765 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
18766 (umulqihi3_real): Likewise.
18768 2016-06-17 Martin Liska <mliska@suse.cz>
18770 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
18772 2016-06-17 Martin Liska <mliska@suse.cz>
18774 * predict.def: PRED_LOOP_EXIT from 92 to 85.
18776 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
18778 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
18780 (vaddq_f32): Likewise.
18781 (vmul_f32): Likewise.
18782 (vmulq_f32): Likewise.
18783 (vsub_f32): Likewise.
18784 (vsubq_f32): Likewise.
18786 2016-06-17 Bin Cheng <bin.cheng@arm.com>
18788 PR tree-optimization/71347
18789 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
18790 cost for all uses in group.
18792 2016-06-17 Bin Cheng <bin.cheng@arm.com>
18794 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
18795 insert gimple seq if it's not empty.
18797 2016-06-17 Bin Cheng <bin.cheng@arm.com>
18799 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
18801 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
18802 rather than OFFSET.
18803 (comp_dr_with_seg_len_pair): Ditto.
18804 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
18805 struct dr_with_seg_len_pair against DR_OFFSET.
18806 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
18807 DR_OFFSET directly.
18809 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
18811 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
18813 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
18815 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
18816 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
18817 (pa_output_millicode_call): Likewise.
18818 (pa_output_call): Likewise.
18819 (pa_output_indirect_call): Likewise.
18820 (pa_asm_output_mi_thunk): Likewise.
18822 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18824 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
18826 2016-06-16 Martin Liska <mliska@suse.cz>
18828 * predict.c (combine_predictions_for_insn): When we find a first
18829 match predictor, we should consider just predictors with
18830 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
18831 DS theory predictor.
18832 (combine_predictions_for_bb): Likewise.
18834 2016-06-16 Jakub Jelinek <jakub@redhat.com>
18836 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
18837 with base of reference to struct.
18839 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
18841 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
18843 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18846 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
18847 progmem_swtable_section.
18848 (progmem_swtable_section): Remove.
18849 (avr_asm_function_rodata_section): Remove.
18850 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
18851 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
18853 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
18855 * config/i386/driver-i386.c (host_detect_local_cpu): Set
18856 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
18857 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
18858 signature_CENTAUR_ebx.
18859 * config/i386/i386.c (ix86_option_override_internal): Add
18860 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
18861 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
18862 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
18864 2016-06-16 Martin Liska <mliska@suse.cz>
18866 * predict.def: Add fortran loop preheader predictor.
18867 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
18868 fold IFN_BUILTIN_EXPECT with a known constant argument.
18870 2016-06-16 Martin Liska <mliska@suse.cz>
18872 * predict.def: Add 'Fortran' to display text of all
18873 PRED_FORTRAN_* predictors.
18875 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
18878 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
18879 [IA64_BUILTIN_NANSQ]: Ditto.
18880 (ia64_fold_builtin): New function.
18881 (TARGET_FOLD_BUILTIN): New define.
18882 (ia64_init_builtins) Declare const_string_type node.
18883 Add __builtin_nanq and __builtin_nansq builtin functions.
18884 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
18886 2016-06-16 Nick Clifton <nickc@redhat.com>
18888 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
18889 MSP430_HWMULT_ prefix to enum values.
18890 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
18891 * config/msp430/msp430.c: Update use of enum values.
18892 * config/msp430/msp430.md: Likewise.
18893 * config/msp430/msp430.opt: Likewise.
18895 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
18897 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
18898 of comparsions in the last iteration.
18900 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
18901 Joern Rennecke <joern.rennecke@embecosm.com>
18903 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
18905 (arc_needs_pcl_p): Add GOTOFFPC.
18906 (arc_legitimate_pic_addr_p): Likewise.
18907 (arc_output_pic_addr_const): Likewise.
18908 (arc_legitimize_pic_address): Generate a pc-relative address using
18910 (arc_output_libcall): Use @pcl syntax.
18911 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
18912 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
18913 (*movsi_insn): Use @pcl syntax.
18914 (doloop_begin_i): Likewise.
18916 2016-06-16 Martin Liska <mliska@suse.cz>
18918 * predict.def: Define a new predictor.
18920 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
18922 * config/arc/arc.opt (mtp-regno): Update text.
18924 2016-06-16 Renlin Li <renlin.li@arm.com>
18926 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
18928 2016-06-16 Jakub Jelinek <jakub@redhat.com>
18931 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
18932 (setcc + and peephole2): Likewise.
18934 PR rtl-optimization/71532
18935 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
18938 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18940 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
18941 DImode constants with XXSPLTIB in vector registers.
18942 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
18943 vsx_extract_<mode>_internal{1,2} into a single insn that handles
18944 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
18945 extraction of the element at the top of the register as a scalar
18947 (vsx_extract_<mode>_internal1): Likewise.
18948 (vsx_extract_<mode>_internal2): Likewise.
18949 * config/rs6000/constraints.md (wi constraint): Remove a comment
18950 about DImode not being allowed in Altivec registers.
18951 (wB constraint): New constraint for constants that can be
18952 generated in Altivec registers with VSPLTISW/VUPKHSW.
18953 * config/rs6000/predicates.md (xxspltib_constant_split): Update
18955 (xxspltib_constant_nosplit): Likewise.
18956 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
18957 support for -mupper-regs-di to enable DImode to go into Altivec
18959 (POWERPC_MASKS): Likewise.
18960 (power7 cpu): Likewise.
18961 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
18962 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
18963 for DImode being allowed in Altivec registers. Update wi/wj
18964 constraints. Set scalar_in_vmx_p flag.
18965 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
18966 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
18967 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
18968 (rs6000_opt_masks): Add -mupper-regs-di.
18969 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
18970 direct move to use wi and not wj.
18971 (lfiwzx): Likewise.
18972 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
18974 (floatunssi<mode>2_lfiwzx_mem): Likewise.
18975 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
18976 any VSX register, instead of just Altivec registers, to allow
18977 either operand to be an Altivec register or both.
18978 (fixuns_trunc<mode>di2_fctiduz): Likewise.
18979 (movdi_internal32): Add support for -mupper-regs-di. Add support
18980 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
18981 the alternatives and attributes to be lined up to be easier to
18983 (movdi_internal64): Likewise.
18984 (64-bit DImode splitters): Change predicates to only split loading
18985 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
18986 load constants in ISA 3.0 or ISA 2.07 respectively.
18987 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18988 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
18989 mention -mcpu=power9 sets these options.
18990 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
18993 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18996 * config/avr/avr.c (avr_set_current_function): Warn misspelled
18997 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
18998 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
18999 by default to warn misspelled interrupt/ signal handler.
19000 * doc/invoke.texi (AVR Options): Document it. Update description
19001 for -nodevicelib option.
19003 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19005 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
19006 up parentheses. Use GET_MODE_UNIT_BITSIZE.
19007 (aarch64_<sur>shll2_n<mode>): Likewise.
19009 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
19011 PR middle-end/71529
19012 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
19013 DECL_CONTEXT for copied arguments.
19015 2016-06-15 Alan Hayward <alan.hayward@arm.com>
19017 PR tree-optimization/71483
19018 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
19021 2016-06-15 Martin Liska <mliska@suse.cz>
19023 * predict.c (tree_predict_by_opcode): Call predict_edge_def
19024 instead of predict_edge w/o a probability.
19026 2016-06-15 Alan Hayward <alan.hayward@arm.com>
19028 PR tree-optimization/71439
19029 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
19032 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19034 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
19035 register subregs in SET_SRC.
19037 2016-06-15 Richard Biener <rguenther@suse.de>
19039 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
19040 store restrictions.
19042 2016-06-15 Richard Biener <rguenther@suse.de>
19044 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
19045 not consider dependences between accesses that belong to the
19047 (vect_analyze_data_ref_dependences): Do not analyze read-read
19048 or self-dependences.
19050 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19052 * spellcheck-tree.c: Include spellcheck-tree.h rather than
19054 (find_closest_identifier): Reimplement in terms of
19055 best_match<tree,tree>.
19056 * spellcheck-tree.h: New file.
19057 * spellcheck.c (struct edit_distance_traits<const char *>): New
19059 (find_closest_string): Reimplement in terms of
19060 best_match<const char *, const char *>.
19061 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
19062 overload to spellcheck-tree.h.
19063 (find_closest_identifier): Likewise.
19064 (struct edit_distance_traits<T>): New template.
19065 (class best_match): New class.
19067 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19069 * selftest-run-tests.c (selftest::run_tests): Call
19070 selftest::spellcheck_tree_c_tests.
19071 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
19072 * spellcheck-tree.c: Include selftest.h and stringpool.h.
19073 (selftest::test_find_closest_identifier): New function.
19074 (selftest::spellcheck_tree_c_tests): New function.
19075 * spellcheck.c (selftest::test_find_closest_string): Verify that
19076 the order of the vec does not affect the results for this case.
19077 (selftest::test_data): New array.
19078 (selftest::test_metric_conditions): New function.
19079 (selftest::spellcheck_c_tests): Add a test of case-comparison.
19080 Call selftest::test_metric_conditions.
19082 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19084 * config/rs6000/rs6000-builtin.def (commentary): Typo.
19085 (BU_P9_MISC_1): Likewise.
19086 (BU_P9_64BIT_MISC_0): Likewise.
19087 (BU_P9_MISC_0): Likewise.
19089 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19091 * gcc-rich-location.c
19092 (gcc_rich_location::add_fixit_misspelled_id): New method.
19093 * gcc-rich-location.h
19094 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
19096 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
19098 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
19099 FreeBSD 11 and above.
19101 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
19103 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
19105 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19107 * expmed.h: Close parenthesis in "at your option" in copyright
19109 * lower-subreg.h: Likewise.
19111 2016-06-14 Richard Biener <rguenther@suse.de>
19113 PR middle-end/71526
19114 * genmatch.c (expr::gen_transform): Use in_type for comparisons
19117 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19119 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
19121 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
19122 mask+shift version.
19123 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
19125 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
19126 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
19128 2016-06-14 Richard Biener <rguenther@suse.de>
19130 PR tree-optimization/71522
19131 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
19132 copying into float copying.
19134 2016-06-14 Jakub Jelinek <jakub@redhat.com>
19136 PR tree-optimization/71520
19137 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
19138 (replace_block_by): Move user labels from bb1 to bb2.
19140 2016-06-14 Richard Biener <rguenther@suse.de>
19142 PR middle-end/71310
19144 * expr.h (get_bit_range): Declare.
19145 * expr.c (get_bit_range): Export.
19146 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
19147 word_mode again to constrain the bitfield access.
19149 2016-06-14 Richard Biener <rguenther@suse.de>
19151 PR tree-optimization/71521
19152 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
19153 division int_const_binop against zero divisor.
19155 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19157 * config/i386/i386.md (signbittf2): New expander.
19158 * config/i386/sse.md (ptesttf2): New insn pattern.
19160 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19163 * input.c (selftest::test_reading_source_line): Avoid reading from
19164 __FILE__ by creating a tempfile with known content and reading
19167 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19169 * pretty-print.c (assert_pp_format_colored): Skip the test if
19171 (test_pp_format): Remove comment about GCC_COLORS.
19173 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19175 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
19176 * pretty-print.c (assert_pp_format_va): Add location param and use
19177 it with ASSERT_STREQ_AT.
19178 (assert_pp_format): Add location param and pass it to
19179 assert_pp_format_va.
19180 (assert_pp_format_colored): Likewise.
19181 (ASSERT_PP_FORMAT_1): New.
19182 (ASSERT_PP_FORMAT_2): New.
19183 (ASSERT_PP_FORMAT_3): New.
19184 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
19185 explicitly, or implicitly via the above macros.
19186 * selftest.c (selftest::pass): Use a selftest::location rather
19187 than file and line.
19188 (selftest::fail): Likewise. Print the function name.
19189 (selftest::fail_formatted): Likewise.
19190 (selftest::assert_streq): Use a selftest::location rather than
19192 * selftest.h (selftest::location): New struct.
19193 (SELFTEST_LOCATION): New macro.
19194 (selftest::pass): Accept a const location & rather than file
19196 (selftest::fail): Likewise.
19197 (selftest::fail_formatted): Likewise.
19198 (selftest::assert_streq): Likewise.
19199 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
19200 (ASSERT_FALSE): Likewise.
19201 (ASSERT_EQ): Likewise.
19202 (ASSERT_NE): Likewise.
19203 (ASSERT_STREQ): Likewise.
19204 (ASSERT_PRED1): Likewise.
19205 (ASSERT_STREQ_AT): New macro.
19207 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19209 * selftest.c (selftest::fail_formatted): New function.
19210 (selftest::assert_streq): New function.
19211 * selftest.h (selftests::fail_formatted): New decl.
19212 (selftest::assert_streq): New decl.
19213 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
19215 2016-06-13 Jeff Law <law@redhat.com>
19217 PR tree-optimization/71403
19218 * tree-ssa-threadbackward.c
19219 (convert_and_register_jump_thread_path): No longer accept reference
19220 to path. Do not pop items off the path anymore.
19221 (fsm_find_control_statement_thread_paths): Do not allow threading
19222 to a deeper loop nest. Pop the last item off the path here rather
19223 than in convert_and_register_jump_thread_path.
19225 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19226 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
19228 [AArch64] Emit division using the Newton series
19230 * config/aarch64/aarch64-protos.h
19231 (cpu_approx_modes): Add new member "division".
19232 (aarch64_emit_approx_div): Declare new function.
19233 * config/aarch64/aarch64.c
19234 (generic_approx_modes): New member "division".
19235 (exynosm1_approx_modes): Likewise.
19236 (xgene1_approx_modes): Likewise.
19237 (aarch64_emit_approx_div): Define new function.
19238 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
19239 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
19240 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
19241 * doc/invoke.texi (-mlow-precision-div): Describe new option.
19243 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19244 Wilco Dijkstra <wilco.dijkstra@arm.com>
19246 [AArch64] Emit square root using the Newton series
19248 * config/aarch64/aarch64-protos.h
19249 (aarch64_emit_approx_rsqrt): Replace with new function
19250 "aarch64_emit_approx_sqrt".
19251 (cpu_approx_modes): New member "sqrt".
19252 * config/aarch64/aarch64.c
19253 (generic_approx_modes): New member "sqrt".
19254 (exynosm1_approx_modes): Likewise.
19255 (xgene1_approx_modes): Likewise.
19256 (aarch64_emit_approx_rsqrt): Replace with new function
19257 "aarch64_emit_approx_sqrt".
19258 (aarch64_override_options_after_change_1): Handle new option.
19259 * config/aarch64/aarch64-simd.md
19260 (rsqrt<mode>2): Use new function instead.
19261 (sqrt<mode>2): New expansion and insn definitions.
19262 * config/aarch64/aarch64.md: Likewise.
19263 * config/aarch64/aarch64.opt
19264 (mlow-precision-sqrt): Add new option description.
19265 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
19267 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19269 [AArch64] Add more choices for the reciprocal square root approximation
19271 Allow a target to prefer such operation depending on the operation mode.
19273 * config/aarch64/aarch64-protos.h
19274 (AARCH64_APPROX_MODE): New macro.
19275 (AARCH64_APPROX_{NONE,ALL}): Likewise.
19276 (cpu_approx_modes): New structure.
19277 (tune_params): New member "approx_modes".
19278 * config/aarch64/aarch64-tuning-flags.def
19279 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
19280 * config/aarch64/aarch64.c
19281 (generic_approx_modes): New core "cpu_approx_modes" structure.
19282 (exynosm1_approx_modes): Likewise.
19283 (xgene1_approx_modes): Likewise.
19284 (generic_tunings): New member "approx_modes".
19285 (cortexa35_tunings): Likewise.
19286 (cortexa53_tunings): Likewise.
19287 (cortexa57_tunings): Likewise.
19288 (cortexa72_tunings): Likewise.
19289 (exynosm1_tunings): Likewise.
19290 (thunderx_tunings): Likewise.
19291 (xgene1_tunings): Likewise.
19292 (use_rsqrt_p): New argument for the mode and use new member from
19294 (aarch64_builtin_reciprocal): Devise mode from builtin.
19295 (aarch64_optab_supported_p): New argument for the mode.
19296 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
19298 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
19300 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
19301 RS6000_BTM_MODULO flag into the set of flags that are considered
19302 to be part of the common configuration.
19304 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
19306 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
19307 difference unsigned.
19308 (vec_absdb): New macro for vector absolute difference unsigned
19310 (vec_absdh): New macro for vector absolute difference unsigned
19312 (vec_absdw): New macro for vector absolute difference unsigned word.
19313 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
19314 (vadu<mode>3): New insn.
19315 (*p9_vadu<mode>3): New insn.
19316 * config/rs6000/rs6000-builtin.def (vadub): New built-in
19318 (vaduh): New built-in definition.
19319 (vaduw): New built-in definition.
19320 (vadu): New overloaded built-in definition.
19321 (vadub): New overloaded built-in definition.
19322 (vaduh): New overloaded built-in definition.
19323 (vaduw): New overloaded built-in definition.
19324 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19325 overloaded vector absolute difference unsigned functions.
19326 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
19327 the ISA 3.0 vector absolute difference unsigned built-in functions.
19329 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
19331 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
19332 update shared_lookup_references only once after changing operands.
19334 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
19336 PR middle-end/71373
19337 * tree-nested.c (convert_nonlocal_omp_clauses)
19338 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
19340 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
19341 * tree.def (CASE_LABEL_EXPR): Likewise.
19343 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
19346 * input.c (test_builtins): Fix an assertion.
19348 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19350 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
19351 (paritysi2): Ditto.
19353 (isinf<mode>2): Ditto.
19355 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19357 * ggc-tests.c (test_finalization): Only test need_finalization_p
19358 for GCC_VERSION >= 4003.
19360 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19362 * config/s390/vecintrin.h: Fix file description in comment.
19364 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19366 * config/s390/s390-builtin-types.def: Change builtin type naming
19367 scheme to match builtin-types.def.
19369 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
19371 * fold-const.c (optimize_minmax_comparison): Remove.
19372 (fold_comparison): Remove call to the above.
19373 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
19374 New transformations.
19376 2016-06-13 Alan Hayward <alan.hayward@arm.com>
19378 PR tree-optimization/71416
19379 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
19382 2016-06-13 Martin Liska <mliska@suse.cz>
19384 * predict.c (enum predictor_reason): Prefix enum with REASON_.
19385 (combine_predictions_for_insn): Likewise.
19386 (prune_predictions_for_bb): Likewise.
19387 (combine_predictions_for_bb): Likewise.
19389 2016-06-13 Richard Biener <rguenther@suse.de>
19391 PR tree-optimization/71505
19392 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
19393 assert match comment.
19395 2016-06-13 Marek Polacek <polacek@redhat.com>
19397 PR middle-end/71476
19398 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
19399 gimplify_switch_expr.
19400 (warn_switch_unreachable_r): New function.
19402 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19405 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
19408 2016-06-13 Richard Biener <rguenther@suse.de>
19410 PR middle-end/64516
19411 * fold-const.c (fold_unary_loc): Preserve alignment when
19412 folding a VIEW_CONVERT_EXPR into a MEM_REF.
19414 2016-06-13 Martin Liska <mliska@suse.cz>
19417 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
19418 w/ -fsanitize=bounds.
19420 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
19422 * config/i386/i386.c (ix86_init_builtins): Calculate
19423 FLOAT128_FTYPE_CONST_STRING function type only once.
19424 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
19425 built-in functions are available for x86-32 and x86-64 targets.
19427 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
19430 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
19431 New primitive type.
19432 (FLOAT128_FTYPE_CONST_STRING): New function type.
19433 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
19434 [IX86_BUILTIN_NANSQ]: Ditto.
19435 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
19436 (ix86_init_builtin_types): Declare const_string_type_node.
19437 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
19439 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
19440 * doc/extend.texi (x86 Built-in Functions): Document
19441 __builtin_nanq and __builtin_nansq.
19443 2016-06-11 Jiong Wang <jiong.wang@arm.com>
19446 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
19447 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
19448 length for pop patterns.
19449 (arm_attr_length_push_multi): Update comments.
19450 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
19452 (*pop_multiple_with_writeback_and_return): Likewise.
19453 (*pop_multiple_with_return): Likewise.
19455 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
19457 PR middle-end/71310
19458 * fold-const.c (optimize_bit_field_compare): Don't try to use
19459 word_mode unconditionally for reading the bit field, look at
19460 DECL_BIT_FIELD_REPRESENTATIVE instead.
19462 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
19464 PR middle-end/71478
19465 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
19466 vector integer type.
19468 2016-06-10 Jakub Jelinek <jakub@redhat.com>
19470 PR middle-end/71494
19471 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
19472 without LABEL_DECL, set *handled_ops_p to false instead of true.
19474 2016-06-10 Martin Sebor <msebor@redhat.com>
19477 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
19478 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
19479 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
19481 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
19482 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
19483 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
19484 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
19485 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
19486 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
19487 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
19488 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
19490 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19492 * config/arm/arm.h (pool_vector_label,
19493 return_used_this_function): Remove.
19495 2016-06-10 Jeff Law <law@redhat.com>
19497 PR tree-optimization/71335
19498 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
19499 zero length paths here.
19500 (convert_and_register_jump_thread_path): Remove hacks related to
19501 duplicated blocks in the jump thread path.
19502 (fsm_find_control_statement_thread_paths): Avoid putting the same
19503 block on the thread path twice, but ensure the thread path is
19504 unchanged from the caller's point of view.
19506 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
19508 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
19509 * predict.def (PRED_LOOP_BRANCH): Remove.
19511 2016-06-10 David Malcolm <dmalcolm@redhat.com>
19513 * Makefile.in (OBJS): Add ggc-tests.o.
19514 (GTFILES): Add ggc-tests.c.
19515 * ggc-tests.c: New file.
19516 * selftest-run-tests.c (selftest::run_tests): Call
19517 selftest::ggc_tests_c_tests.
19518 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
19520 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
19522 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
19524 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
19527 * varasm.c (place_block_symbol): Adjust alignment for asan protected
19528 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
19530 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
19532 * profile.c: Include cfgloop.h.
19533 (branch_prob): Compute estimated number of iterations.
19534 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
19535 recompute estimate number of iterations from profile.
19537 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19539 PR inline-asm/68843
19540 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
19541 must be grouped on top of stack. Don't force early clobber
19542 on ordinary reg outputs.
19544 2016-06-10 Richard Biener <rguenther@suse.de>
19546 * targhooks.c (default_builtin_vectorization_cost): Adjust
19547 vec_construct cost.
19549 2016-06-10 Richard Biener <rguenther@suse.de>
19551 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
19552 to fold the RHS to a constant if possible.
19554 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
19556 PR middle-end/71373
19557 * tree-nested.c (convert_nonlocal_omp_clauses)
19558 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
19559 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
19560 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
19562 * gimplify.c (gimplify_adjust_omp_clauses): Discard
19564 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
19566 * omp-low.c (scan_sharing_clauses): Don't expect
19567 OMP_CLAUSE__CACHE_.
19569 2016-06-10 Alan Hayward <alan.hayward@arm.com>
19571 PR tree-optimization/71407
19572 PR tree-optimization/71416
19573 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
19574 BIT_FIELD_REF type.
19576 2016-06-10 Richard Biener <rguenther@suse.de>
19578 PR middle-end/71477
19579 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
19581 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
19583 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
19585 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
19586 Jiong Wang <jiong.wang@arm.com>
19588 PR rtl-optimization/70751
19589 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
19590 spilled into memory.
19592 2016-06-09 Jonathan Yong <10walls@gmail.com>
19595 2015-09-21 Jonathan Yong <10walls@gmail.com>
19597 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
19598 sysroot/usr/lib/32api for additional win32 libraries,
19599 fixes failing Cygwin bootstrapping.
19601 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
19603 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
19606 2016-06-09 David Malcolm <dmalcolm@redhat.com>
19609 * pretty-print.c (pp_indent): Specify that %p is printed in a
19610 host-dependent manner.
19611 (test_pp_format): Remove the test for %p.
19613 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
19615 * config/mips/mips.c (mips_output_jump): Fix formatting.
19617 2016-06-09 Richard Biener <rguenther@suse.de>
19619 PR tree-optimization/71462
19620 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
19623 2016-06-09 Martin Liska <mliska@suse.cz>
19625 * predict.c (dump_prediction): Add new argument.
19626 (enum predictor_reason): New enum.
19627 (struct predictor_hash): New struct.
19628 (predictor_hash::hash): New function.
19629 (predictor_hash::equal): Likewise.
19630 (not_removed_prediction_p): New function.
19631 (prune_predictions_for_bb): Likewise.
19632 (combine_predictions_for_bb): Prune predictions.
19634 2016-06-09 Martin Liska <mliska@suse.cz>
19636 * predict.c (filter_predictions): New function.
19637 (remove_predictions_associated_with_edge): Use the filter
19639 (equal_edge_p): New function.
19641 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
19643 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
19644 Correct usage of @samp vs @option, add @samp where appropriate.
19645 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
19646 Add armv6s-m and document it, as it is no official ARM name.
19648 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19650 * ifcvt.c (struct noce_if_info): Add transform_name field.
19651 (noce_try_move): Set if_info->transform_name to the function name.
19652 (noce_try_ifelse_collapse): Likewise.
19653 (noce_try_store_flag): Likewise.
19654 (noce_try_inverse_constants): Likewise.
19655 (noce_try_store_flag_constants): Likewise.
19656 (noce_try_addcc): Likewise.
19657 (noce_try_store_flag_mask): Likewise.
19658 (noce_try_cmove): Likewise.
19659 (noce_try_cmove_arith): Likewise.
19660 (noce_try_minmax): Likewise.
19661 (noce_try_abs): Likewise.
19662 (noce_try_sign_mask): Likewise.
19663 (noce_try_bitop): Likewise.
19664 (noce_convert_multiple_sets): Likewise.
19665 (noce_process_if_block): Print if_info->transform_name to
19666 dump_file if transformation succeeded.
19668 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19670 * config/arm/cortex-a57.md (cortex_a57_alu):
19673 2016-06-08 Martin Sebor <msebor@redhat.com>
19674 Jakub Jelinek <jakub@redhat.com>
19678 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
19679 BUILT_IN_MUL_OVERFLOW_P): New builtins.
19680 * builtins.c: Include gimple-fold.h.
19681 (fold_builtin_arith_overflow): Handle
19682 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
19683 (fold_builtin_3): Likewise.
19684 * doc/extend.texi (Integer Overflow Builtins): Document
19685 __builtin_{add,sub,mul}_overflow_p.
19687 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
19689 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
19690 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
19692 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
19694 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
19695 Rewrite, looking one level down for records and arrays.
19697 2016-06-08 David Malcolm <dmalcolm@redhat.com>
19699 * pretty-print.c: Include "selftest.h".
19700 (pp_format): Fix comment.
19701 (identifier_to_locale): Likewise.
19702 (selftest::test_basic_printing): New function.
19703 (selftest::assert_pp_format): New function.
19704 (selftest::test_pp_format): New function.
19705 (selftest::pretty_print_c_tests): New function.
19706 * selftest-run-tests.c (selftest::run_tests): Call
19707 selftest::pretty_print_c_tests.
19708 * selftest.h (pretty_print_c_tests): New declaration.
19710 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
19712 * invoke.texi (max-loop-headers-insns): Document.
19713 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
19714 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
19715 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
19717 2016-06-08 Richard Biener <rguenther@suse.de>
19719 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
19720 on strided SLP loads and fall back to scalar loads in case
19721 we can't chunk them.
19723 2016-06-08 Richard Biener <rguenther@suse.de>
19725 PR tree-optimization/71452
19726 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
19727 type used for the SSA rewrite has enough precision to cover
19728 the dynamic type of the location.
19730 2016-06-08 Jakub Jelinek <jakub@redhat.com>
19731 Richard Biener <rguenther@suse.de>
19734 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
19735 the same as DECL_P (base0) for indirect_base0. Use equality_code
19736 in one further place.
19738 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
19740 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
19741 to one word if the field is known to overlap other words.
19742 (extract_bit_field_1): Likewise.
19743 (store_split_bit_field): Remove compensating code.
19744 (extract_split_bit_field): Likewise.
19746 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
19750 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
19752 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19754 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
19756 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
19757 (arch64_addpv4sf): Delete.
19758 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
19759 "gen_aarch64_addpv4sf".
19760 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
19762 (vpadds_f32): Likewise.
19763 (vpaddq_f32): Likewise.
19764 (vpaddq_f64): Likewise.
19766 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19768 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
19770 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
19771 to VALLF. Rename to "fabd<mode>3".
19772 "*fabd_scalar<mode>3): Delete.
19773 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
19775 (vabdd_f64): Likewise.
19776 (vabd_f32): Likewise.
19777 (vabd_f64): Likewise.
19778 (vabdq_f32): Likewise.
19779 (vabdq_f64): Likewise.
19781 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19783 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
19785 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
19786 "aarch64_rsqrts<mode>".
19787 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
19788 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
19790 (vrsqrtsd_f64): Likewise.
19791 (vrsqrts_f32): Likewise.
19792 (vrsqrts_f64): Likewise.
19793 (vrsqrtsq_f32): Likewise.
19794 (vrsqrtsq_f64): Likewise.
19796 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19798 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
19800 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
19801 "aarch64_rsqrte<mode>".
19802 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
19803 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
19805 (vrsqrted_f64): Likewise.
19806 (vrsqrte_f32): Likewise.
19807 (vrsqrte_f64): Likewise.
19808 (vrsqrteq_f32): Likewise.
19809 (vrsqrteq_f64): Likewise.
19811 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19813 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
19815 (fcvtzs): Likewise.
19816 (fcvtzu): Likewise.
19817 * config/aarch64/aarch64-simd.md
19818 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
19819 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
19820 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
19822 (vcvt_n_f32_u32): Likewise.
19823 (vcvt_n_s32_f32): Likewise.
19824 (vcvt_n_u32_f32): Likewise.
19825 (vcvtq_n_f32_s32): Likewise.
19826 (vcvtq_n_f32_u32): Likewise.
19827 (vcvtq_n_f64_s64): Likewise.
19828 (vcvtq_n_f64_u64): Likewise.
19829 (vcvtq_n_s32_f32): Likewise.
19830 (vcvtq_n_s64_f64): Likewise.
19831 (vcvtq_n_u32_f32): Likewise.
19832 (vcvtq_n_u64_f64): Likewise.
19833 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
19834 (VSDQ_SDI): Likewise.
19835 (fcvt_target): Support V4DI, V4SI and V2SI.
19836 (FCVT_TARGET): Likewise.
19838 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19840 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
19841 (TYPES_BINOP_SUS): Likewise.
19842 (aarch64_simd_builtin_data): Update include file name.
19843 (aarch64_builtins): Likewise.
19844 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
19845 for conversion between scalar float-point and fixed-point.
19847 (fcvtzs): Likewise.
19848 (fcvtzu): Likewise.
19849 * config/aarch64/aarch64.md
19850 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
19851 pattern for conversion between scalar float to fixed-pointer.
19852 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
19853 (UNSPEC_FCVTZS): New UNSPEC enumeration.
19854 (UNSPEC_FCVTZU): Likewise.
19855 (UNSPEC_SCVTF): Likewise.
19856 (UNSPEC_UCVTF): Likewise.
19857 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
19859 (vcvtd_n_f64_u64): Likewise.
19860 (vcvtd_n_s64_f64): Likewise.
19861 (vcvtd_n_u64_f64): Likewise.
19862 (vcvtd_n_f32_s32): Likewise.
19863 (vcvts_n_f32_u32): Likewise.
19864 (vcvtd_n_s32_f32): Likewise.
19865 (vcvts_n_u32_f32): Likewise.
19866 * config/aarch64/iterators.md (fcvt_target): Support integer to float
19868 (FCVT_TARGET): Likewise.
19869 (FCVT_FIXED2F): New iterator.
19870 (FCVT_F2FIXED): Likewise.
19871 (fcvt_fixed_insn): New define_int_attr.
19873 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
19875 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
19876 some statements was removed.
19878 2016-06-08 Alan Hayward <alan.hayward@arm.com>
19880 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
19881 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
19882 (vect_can_advance_ivs_p): likewise.
19883 (vect_update_ivs_after_vectorizer): likewise.
19884 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
19885 (vect_analyze_scalar_cycles_1): likewise.
19886 (vect_analyze_loop_operations): likewise.
19887 (report_vect_op): likewise.
19888 (vect_is_slp_reduction): likewise.
19889 (vect_is_simple_reduction): likewise.
19890 (get_initial_def_for_induction): likewise.
19891 (vect_transform_loop): likewise.
19892 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
19893 (vect_recog_sad_pattern): likewise.
19894 (vect_recog_widen_sum_pattern): likewise.
19895 (vect_recog_widening_pattern): likewise.
19896 (vect_recog_divmod_pattern): likewise.
19897 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
19898 (vect_analyze_slp_instance): likewise.
19899 (vect_transform_slp_perm_load): likewise.
19900 (vect_schedule_slp_instance): likewise.
19902 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
19904 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
19905 (return_prediction): PRED_CONST_RETURN predict return as not taken.
19906 * predict.def (PRED_CONTINUE): Change hitrate 50->67
19907 (PRED_LOOP_BRANCH): Document predictor as broken.
19908 (PRED_LOOP_EXIT): Change hitrate 91->92.
19909 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
19910 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
19911 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
19912 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
19913 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
19914 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
19915 (PRED_CALL): Chane hitrate 71->67.
19916 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
19917 (PRED_GOTO): Document as unused right now.
19918 (PRED_CONST_RETURN): Change hitrate 67->69
19919 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
19920 (PRED_NULL_RETURN): Change hitrate 91->90.
19921 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
19922 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
19923 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
19925 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
19927 * config/rs6000/altivec.h: Add __builtin_vec_mul.
19928 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
19929 special case Altivec builtin.
19930 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
19931 VSX_BUILTIN_VEC_MUL (replaced with special case code).
19932 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
19933 code for ALTIVEC_BUILTIN_VEC_MUL.
19934 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
19935 for __builtin_vec_mul.
19937 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
19939 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
19942 2016-06-07 David Malcolm <dmalcolm@redhat.com>
19944 * spellcheck.c (selftest::test_find_closest_string): New function.
19945 (spellcheck_c_tests): Call the above.
19947 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19949 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
19951 2016-06-07 Jakub Jelinek <jakub@redhat.com>
19953 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
19954 Yv=Yv,C alternatives.
19956 2016-06-07 Richard Biener <rguenther@suse.de>
19959 * common.opt (ffast-math): Make Optimization.
19961 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
19962 Prachi Godbole <prachi.godbole@imgtec.com>
19964 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
19965 `fabs' and `fneg' type attributes.
19966 (p5600_fpu_fabs): Add `fmove' to the comment.
19968 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
19970 * gimple.c: Include builtins.h
19971 (gimple_inexpensive_call_p): New function.
19972 * gimple.h (gimple_inexpensive_call_p): Declare.
19973 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
19974 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
19977 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
19979 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
19980 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
19981 warning_at_rich_loc, warning_n, pedwarn, permerror,
19982 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
19983 sorry, fatal_error, internal_error, internal_error_no_backtrace):
19986 2016-06-07 Richard Biener <rguenther@suse.de>
19988 PR tree-optimization/71428
19989 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
19990 BIT_FIELD_REF op vs. load.
19992 2016-06-07 Richard Biener <rguenther@suse.de>
19994 PR middle-end/71423
19995 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
19998 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
20000 * config/pa/pa.md (call): Generate indirect long calls to non-local
20001 functions on TARGET_64BIT.
20002 (call_value): Likewise.
20004 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
20006 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
20007 pattern and subsequent splitters.
20008 (call_val_reg_64bit_post_reload): Likewise.
20010 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20012 PR middle-end/71408
20013 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
20014 propagate_op_to_single_use.
20016 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20018 PR middle-end/71281
20019 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
20021 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
20023 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
20024 (enum x86_dirflag_state): New enum.
20025 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
20026 (machine_function): Remove needs_cld.
20027 (ix86_current_function_needs_cld): Remove.
20028 * config/i386/i386.c (ix86_set_func_type): Set
20029 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
20030 (ix86_expand_prologue): Do not emit CLD here.
20031 (ix86_dirflag_mode_needed): New function.
20032 (ix86_dirflag_mode_entry): Ditto.
20033 (ix86_mode_needed): Handle X86_DIRFLAG entity.
20034 (ix86_mode_after): Ditto.
20035 (ix86_mode_entry): Ditto.
20036 (ix86_mode_exit): Ditto.
20037 (ix86_emit_mode_set): Ditto.
20038 * config/i386/i386.md (strmov_singleop): Set
20039 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
20040 Do not set ix86_current_function_needs_cld.
20042 (strset_singleop): Ditto.
20044 (cmpstrnqi_nz_1): Ditto.
20045 (cmpstrnqi_1): Ditto.
20046 (strlenqi_1): Ditto.
20048 2016-06-06 Jakub Jelinek <jakub@redhat.com>
20050 PR tree-optimization/71259
20051 * tree-vect-slp.c (vect_get_constant_vectors): For
20052 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
20053 one for constant op, and use COND_EXPR for non-constant.
20055 2016-06-06 David Malcolm <dmalcolm@redhat.com>
20057 * Makefile.in (OBJS): Add function-tests.o,
20058 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
20059 selftest-run-tests.o.
20060 (OBJS-libcommon): Add selftest.o.
20061 (OBJS-libcommon-target): Add selftest.o.
20062 (all.internal): Add "selftest".
20063 (all.cross): Likewise.
20064 (selftest): New phony target.
20065 (s-selftest): New target.
20066 (selftest-gdb): New phony target.
20067 (COLLECT2_OBJS): Add selftest.o.
20068 * bitmap.c: Include "selftest.h".
20069 (selftest::test_gc_alloc): New function.
20070 (selftest::test_set_range): New function.
20071 (selftest::test_clear_bit_in_middle): New function.
20072 (selftest::test_copying): New function.
20073 (selftest::test_bitmap_single_bit_set_p): New function.
20074 (selftest::bitmap_c_tests): New function.
20075 * common.opt (fself-test): New.
20076 * diagnostic-show-locus.c: Include "selftest.h".
20077 (make_range): New function.
20078 (test_range_contains_point_for_single_point): New function.
20079 (test_range_contains_point_for_single_line): New function.
20080 (test_range_contains_point_for_multiple_lines): New function.
20081 (assert_eq): New function.
20082 (test_get_line_width_without_trailing_whitespace): New function.
20083 (selftest::diagnostic_show_locus_c_tests): New function.
20084 * et-forest.c: Include "selftest.h".
20085 (selftest::test_single_node): New function.
20086 (selftest::test_simple_tree): New function.
20087 (selftest::test_disconnected_nodes): New function.
20088 (selftest::et_forest_c_tests): New function.
20089 * fold-const.c: Include "selftest.h".
20090 (selftest::assert_binop_folds_to_const): New function.
20091 (selftest::assert_binop_folds_to_nonlvalue): New function.
20092 (selftest::test_arithmetic_folding): New function.
20093 (selftest::fold_const_c_tests): New function.
20094 * function-tests.c: New file.
20095 * gimple.c: Include "selftest.h".
20096 Include "gimple-pretty-print.h".
20097 (selftest::verify_gimple_pp): New function.
20098 (selftest::test_assign_single): New function.
20099 (selftest::test_assign_binop): New function.
20100 (selftest::test_nop_stmt): New function.
20101 (selftest::test_return_stmt): New function.
20102 (selftest::test_return_without_value): New function.
20103 (selftest::gimple_c_tests): New function.
20104 * hash-map-tests.c: New file.
20105 * hash-set-tests.c: New file.
20106 * input.c: Include "selftest.h".
20107 (selftest::assert_loceq): New function.
20108 (selftest::test_accessing_ordinary_linemaps): New function.
20109 (selftest::test_unknown_location): New function.
20110 (selftest::test_builtins): New function.
20111 (selftest::test_reading_source_line): New function.
20112 (selftest::input_c_tests): New function.
20113 * rtl-tests.c: New file.
20114 * selftest-run-tests.c: New file.
20115 * selftest.c: New file.
20116 * selftest.h: New file.
20117 * spellcheck.c: Include "selftest.h".
20118 (selftest::levenshtein_distance_unit_test_oneway): New function,
20119 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
20120 (selftest::levenshtein_distance_unit_test): Likewise.
20121 (selftest::spellcheck_c_tests): Likewise.
20122 * toplev.c: Include selftest.h.
20123 (toplev::run_self_tests): New.
20124 (toplev::main): Handle -fself-test.
20125 * toplev.h (toplev::run_self_tests): New.
20126 * tree.c: Include "selftest.h".
20127 (selftest::test_integer_constants): New function.
20128 (selftest::test_identifiers): New function.
20129 (selftest::test_labels): New function.
20130 (selftest::tree_c_tests): New function.
20131 * tree-cfg.c: Include "selftest.h".
20132 (selftest::push_fndecl): New function.
20133 (selftest::test_linear_chain): New function.
20134 (selftest::test_diamond): New function.
20135 (selftest::test_fully_connected): New function.
20136 (selftest::tree_cfg_c_tests): New function.
20137 * vec.c: Include "selftest.h".
20138 (selftest::safe_push_range): New function.
20139 (selftest::test_quick_push): New function.
20140 (selftest::test_safe_push): New function.
20141 (selftest::test_truncate): New function.
20142 (selftest::test_safe_grow_cleared): New function.
20143 (selftest::test_pop): New function.
20144 (selftest::test_safe_insert): New function.
20145 (selftest::test_ordered_remove): New function.
20146 (selftest::test_unordered_remove): New function.
20147 (selftest::test_block_remove): New function.
20148 (selftest::reverse_cmp): New function.
20149 (selftest::test_qsort): New function.
20150 (selftest::vec_c_tests): New function.c.
20151 * wide-int.cc: Include selftest.h and wide-int-print.h.
20152 (selftest::from_int <wide_int>): New function.
20153 (selftest::from_int <offset_int>): New function.
20154 (selftest::from_int <widest_int>): New function.
20155 (selftest::assert_deceq): New function.
20156 (selftest::assert_hexeq): New function.
20157 (selftest::test_printing <VALUE_TYPE>): New function template.
20158 (selftest::test_ops <VALUE_TYPE>): New function template.
20159 (selftest::test_comparisons <VALUE_TYPE>): New function template.
20160 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
20162 (selftest::wide_int_cc_tests): New function.
20164 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20166 PR middle-end/37780
20167 * ifcvt.c (noce_try_ifelse_collapse): New function.
20169 (noce_process_if_block): Call noce_try_ifelse_collapse.
20170 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
20171 (simplify_ternary_operation): Use the above to simplify
20172 conditional CLZ/CTZ expressions.
20174 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20176 PR middle-end/37780
20177 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
20178 define_insn_and_split.
20180 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20182 PR middle-end/37780
20183 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
20185 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
20188 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
20189 Implicitly clobber memory for basic asm with non-empty assembler
20190 string. Use targetm.md_asm_adjust also here.
20191 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
20192 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
20193 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
20194 non-empty assembler string.
20195 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
20196 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
20197 (decode_asm_operands): Handle basic asm in PARALLEL block.
20198 (extract_insn): Handle basic asm in PARALLEL block.
20199 * doc/extend.texi: Mention new behavior of basic asm.
20200 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
20201 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
20202 branch_needs_nop_p): Use asm_noperands.
20204 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
20206 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
20207 Include the M7 SPARC DFA scheduler.
20208 New attribute v3pipe.
20209 Annotate insns with v3pipe where appropriate.
20210 Define cpu_feature vis4.
20211 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
20212 Add (V8QI "8") to vbits.
20213 Add insns {add,sub}v8qi3
20214 Add insns ss{add,sub}v8qi3
20215 Add insns us{add,sub}{v8qi,v4hi}3
20216 Add insns {min,max}{v8qi,v4hi,v2si}3
20217 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
20218 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
20219 * config/sparc/niagara4.md: Add a comment explaining the
20220 discrepancy between the documented latenty numbers and the
20222 * config/sparc/niagara7.md: New file.
20223 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
20224 supports SPARC5 and VIS 4.0 instructions.
20225 * configure: Regenerate.
20226 * config.in: Likewise.
20227 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
20228 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
20229 TARGET_CPU_niagara7.
20230 (ASM_CPU64_DEFAULT_SPEC): Likewise.
20231 (CPP_CPU_SPEC): Handle niagara7.
20232 (ASM_CPU_SPEC): Likewise.
20233 * config/sparc/sparc-opts.h (processor_type): Add
20234 PROCESSOR_NIAGARA7.
20235 (mvis4): New option.
20236 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
20237 (AS_NIAGARA7_FLAG): Define.
20238 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
20239 (CPP_CPU64_DEFAULT_SPEC): Likewise.
20240 (CPP_CPU_SPEC): Handle niagara7.
20241 (ASM_CPU_SPEC): Likewise.
20242 * config/sparc/sparc.c (niagara7_costs): Define.
20243 (sparc_option_override): Handle niagara7 and adjust cache-related
20244 parameters with better values for niagara cpus. Also support VIS4.
20245 (sparc32_initialize_trampoline): Likewise.
20246 (sparc_use_sched_lookahead): Likewise.
20247 (sparc_issue_rate): Likewise.
20248 (sparc_register_move_cost): Likewise.
20249 (dump_target_flag_bits): Support VIS4.
20250 (sparc_vis_init_builtins): Likewise.
20251 (sparc_builtins): Likewise.
20252 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
20254 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
20256 * config/sparc/sparc.opt (sparc_processor_type): New value
20258 * config/sparc/visintrin.h (__attribute__): Prototypes for the
20260 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
20262 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
20265 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
20267 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
20269 2016-06-06 Richard Biener <rguenther@suse.de>
20271 PR tree-optimization/71398
20272 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
20275 2016-06-05 James Bowman <james.bowman@ftdichip.com>
20277 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
20278 ft32_expand_prolog, ft32_expand_epilogue):
20279 Handle pretend_args.
20280 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
20281 * config/ft32/ft32.md: Add pretend_returner.
20283 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
20286 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
20287 Copy op1 RTX to avoid invalid sharing.
20288 (ix86_expand_vector_move_misalign): Ditto.
20290 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
20292 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
20295 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
20297 * predict.c (predicted_by_loop_heuristics_p): New function.
20298 (predict_iv_comparison): Use it.
20299 (predict_loops): Walk from innermost loops; do not predict edges
20300 leaving multiple loops multiple times; implement
20301 PRED_LOOP_ITERATIONS_MAX heuristics.
20302 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
20304 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
20306 * cfg.c (check_bb_profile): Do not report mismatched profiles when
20307 only edges out of BB are EH edges.
20309 2016-06-04 Martin Sebor <msebor@redhat.com>
20310 Marcin Baczyński <marbacz@gmail.com>
20313 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
20314 a void expression in a void function.
20316 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
20318 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
20319 aux; dump reasons of decisions.
20320 (should_duplicate_loop_header_p): Likewise.
20321 (do_while_loop_p): Likewise.
20322 (ch_base::copy_headers): Dump asi num insns duplicated.
20324 2016-06-04 Jakub Jelinek <jakub@redhat.com>
20326 PR tree-optimization/71405
20327 * tree-ssa.c (execute_update_addresses_taken): For clobber with
20328 incompatible type, build a new clobber with the right type instead
20329 of building a VIEW_CONVERT_EXPR around it.
20331 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
20333 PR tree-optimization/52171
20334 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
20335 by_pieces_ninsns instead of move_by_pieces_ninsns.
20337 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
20339 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
20340 for reg+reg addressing mode.
20342 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20344 * rs6000-c.c (c/c-tree.h): Add #include.
20345 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
20346 in C++ when found in the base position of vec_ld or vec_st.
20348 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
20350 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
20351 use of profile unless profile status is PROFILE_READ.
20352 * profile.c (compute_branch_probabilities): Set profile status
20353 only after reporting predictor hitrates.
20355 2016-06-03 Joseph Myers <joseph@codesourcery.com>
20359 * common.opt (ffp-int-builtin-inexact): New option.
20360 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
20361 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
20362 (ceil@var{m}2): Document dependence on this option.
20363 * ipa-inline-transform.c (inline_call): Handle
20364 flag_fp_int_builtin_inexact.
20365 * ipa-inline.c (can_inline_edge_p): Likewise.
20366 * config/i386/i386.md (rintxf2): Do not test
20367 flag_unsafe_math_optimizations.
20368 (rint<mode>2_frndint): New define_insn.
20369 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
20370 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
20371 for 387 instead of extending and truncating.
20372 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
20373 !flag_trapping_math instead of flag_unsafe_math_optimizations.
20374 Change to frndint<mode>2_<rounding>.
20375 (frndintxf2_<rounding>_i387): Likewise. Change to
20376 frndint<mode>2_<rounding>_i387.
20377 (<rounding_insn>xf2): Likewise.
20378 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
20379 !flag_trapping_math instead of flag_unsafe_math_optimizations for
20380 x87. Test TARGET_ROUND || !flag_trapping_math ||
20381 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
20382 SSE. Use ROUND_NO_EXC in constant operand of
20383 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
20384 for 387 instead of extending and truncating.
20386 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
20387 Julia Koval <julia.koval@intel.com>
20399 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
20400 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
20401 all registers, except for function return registers if there are
20402 no caller-saved registers.
20403 (ix86_set_func_type): New function.
20404 (ix86_set_current_function): Call ix86_set_func_type to set
20405 no_caller_saved_registers and func_type. Call reinit_regs if
20406 caller-saved registers are changed. Don't allow MPX, SSE, MMX
20407 nor x87 instructions in interrupt handler nor function with
20408 no_caller_saved_registers attribute.
20409 (ix86_function_ok_for_sibcall): Return false if there are no
20410 caller-saved registers.
20411 (type_natural_mode): Don't warn ABI change for MMX in interrupt
20413 (ix86_function_arg_advance): Skip for callee in interrupt handler.
20414 (ix86_function_arg): Return special arguments in interrupt handler.
20415 (ix86_promote_function_mode): Promote pointer to word_mode only
20416 for normal functions.
20417 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
20419 (ix86_epilogue_uses): New function.
20420 (ix86_hard_regno_scratch_ok): Likewise.
20421 (ix86_save_reg): Preserve all registers in interrupt handler
20422 after reload. Preserve all registers, except for function return
20423 registers, if there are no caller-saved registers after reload.
20424 (find_drap_reg): Always use callee-saved register if there are
20425 no caller-saved registers.
20426 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
20427 for interrupt handler.
20428 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
20429 Emit cld instruction if stringops are used in interrupt handler
20430 or interrupt handler isn't a leaf function.
20431 (ix86_expand_epilogue): Generate interrupt return for interrupt
20432 handler and pop the 'ERROR_CODE' off the stack before interrupt
20433 return in exception handler.
20434 (ix86_expand_call): Disallow calling interrupt handler directly.
20435 If there are no caller-saved registers, mark all registers that
20436 are clobbered by the call which returns as clobbered.
20437 (ix86_handle_no_caller_saved_registers_attribute): New function.
20438 (ix86_handle_interrupt_attribute): Likewise.
20439 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
20441 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
20442 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
20443 accumulation in interrupt function if stack may be realigned to
20445 (EPILOGUE_USES): New.
20446 (function_type): New enum.
20447 (machine_function): Add func_type and no_caller_saved_registers.
20448 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
20449 (interrupt_return): New pattern.
20450 * doc/extend.texi: Document x86 interrupt and
20451 no_caller_saved_registers attributes.
20453 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
20455 PR tree-optimization/52171
20456 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
20457 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
20458 Look for constant strings. Move some code to emit_block_cmp_hints
20460 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
20461 * defaults.h (COMPARE_MAX_PIECES): New macro.
20462 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
20463 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
20464 (clear_by_pieces_1): Don't declare. Move definition before use.
20465 (can_do_by_pieces): New static function.
20466 (can_move_by_pieces): Use it. Return bool.
20467 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
20468 OP. All callers changed. Handle COMPARE_BY_PIECES.
20469 (class pieces_addr); New.
20470 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
20471 pieces_addr::adjust, pieces_addr::increment_address,
20472 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
20474 (class op_by_pieces_d): New.
20475 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
20477 (class move_by_pieces_d, class compare_by_pieces_d,
20478 class store_by_pieces_d): New subclasses of op_by_pieces_d.
20479 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
20480 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
20481 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
20482 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
20483 compare_by_pieces_d::finish_mode): New member functions.
20484 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
20486 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
20487 (emit_block_cmp_hints): New function.
20488 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
20489 use the newly defined classes.
20490 * expr.h (by_pieces_constfn): New typedef.
20491 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
20492 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
20493 (move_by_pieces_ninsns): Don't declare.
20494 (can_move_by_pieces): Change return value to bool.
20495 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
20496 (compare_by_pieces_branch_ratio): New hook.
20497 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
20498 (by_pieces_ninsns): Declare.
20499 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
20501 (default_compare_by_pieces_branch_ratio): New function.
20502 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
20503 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
20504 * doc/tm.texi: Regenerate.
20505 * tree-ssa-strlen.c: Include "builtins.h".
20506 (handle_builtin_memcmp): New static function.
20507 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
20508 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
20510 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20512 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
20513 relevant stmts which are simple and invariant.
20514 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
20515 instead of simple and invariant
20517 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20519 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
20520 (vectorizable_reduction): Check for new relevant state.
20521 (vectorizable_live_operation): vectorize live stmts using
20522 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
20523 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
20524 (vect_stmt_relevant_p): Check for stmts which are only used live.
20525 (process_use): Use of a stmt does not inherit it's live value.
20526 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
20527 (vect_analyze_stmt): Check for new relevant state.
20528 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
20529 outside the loop, but not inside it.
20531 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20533 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
20534 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
20535 (vect_get_vec_def_for_operand): Split out code.
20537 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
20539 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
20541 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20543 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
20545 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20547 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
20549 2016-06-03 Jakub Jelinek <jakub@redhat.com>
20551 PR middle-end/71387
20552 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
20553 to noreturn e->callee->decl that has void return type and void
20554 arguments, adjust gimple_call_fntype and remove lhs even if it had
20555 previously addressable type.
20557 2016-06-02 Jeff Law <law@redhat.com>
20559 PR tree-optimization/71328
20560 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
20561 error when checking for a jump back onto the copied path.
20563 2016-06-02 David Malcolm <dmalcolm@redhat.com>
20565 * config/microblaze/microblaze.c (get_branch_target): Add return
20566 NULL_RTX for the non-CALL_P case.
20567 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
20568 (insert_wic): Remove unused local "j".
20570 2016-06-02 Martin Liska <mliska@suse.cz>
20572 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
20574 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
20575 Julia Koval <julia.koval@intel.com>
20577 * function.c (assign_parm_setup_stack): Force source into a
20578 register if needed.
20579 * target.def (function_incoming_arg): Update documentation to
20580 allow arbitrary address computation based on hard register.
20581 * doc/tm.texi: Regenerated.
20583 2016-06-02 Martin Liska <mliska@suse.cz>
20585 * predict.c (combine_predictions_for_bb): Fix first match in
20586 cases where a first predictor contains more than one occurence
20587 in list of predictors. Take the best value in such case.
20589 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20591 PR rtl-optimization/71295
20592 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
20593 offset would go over the size of the inner mode reject it.
20595 2016-06-02 Jakub Jelinek <jakub@redhat.com>
20597 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
20598 x=x,x and v=v,m instead of x=x,m.
20600 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
20601 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
20602 alternative to v=rm,C.
20604 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
20605 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
20606 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
20607 instead of vex for the last two above mentioned alternatives.
20609 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20612 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
20614 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
20616 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
20618 2016-06-01 David Malcolm <dmalcolm@redhat.com>
20620 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
20621 from int to unsigned.
20623 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
20625 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
20626 alternatives, eliminating preferred register class. Add support
20627 for the MTVSRDD instruction in ISA 3.0.
20628 (vsx_splat_v4si_internal): Use splat_input_operand instead of
20629 reg_or_indexed_operand.
20630 (vsx_splat_v4sf_internal): Likewise.
20632 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
20635 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
20636 for loading up all 0's or all 1's.
20638 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
20640 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
20642 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
20644 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
20646 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
20647 * gcc.c (set_source_date_epoch_envvar): New function, sets
20648 the SOURCE_DATE_EPOCH environment variable to the current time.
20650 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
20652 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
20653 the factor for live Phi nodes.
20655 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
20657 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
20658 * tree-parloops.c (parallelize_loops): likewise.
20659 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
20660 tree_unswitch_outer_loop): likewise.
20662 2016-06-01 Jakub Jelinek <jakub@redhat.com>
20664 PR middle-end/71371
20665 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
20666 around creation of the temporary.
20668 2016-06-01 Richard Biener <rguenther@suse.de>
20670 PR tree-optimization/71366
20671 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
20672 (unloop_loops): Move removing edges here ...
20673 (try_unroll_loop_completely): ... from here.
20674 (try_peel_loop): ... and here.
20675 (tree_unroll_loops_completely_1): Track parent loops via
20676 bitmap of header BBs.
20677 (tree_unroll_loops_completely): Adjust for that.
20679 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
20681 * config/rs6000/altivec.h (vec_slv): New macro.
20682 (vec_srv): New macro.
20683 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
20684 (UNSPEC_VSRV): New value.
20687 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
20688 (vsrv): New builtin definition.
20689 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
20690 define argument types for new builtin.
20691 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
20693 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
20696 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
20697 Jocelyn Mayer <l_indien@magic.fr>
20700 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
20701 detect processor family for signature_CENTAUR_ebx.
20702 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
20703 signature_CENTAUR_ebx.
20704 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
20705 <default>: Pass x86-64 for has_longmode.
20707 2016-06-01 Nathan Sidwell <nathan@acm.org>
20709 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
20712 2016-06-01 Richard Biener <rguenther@suse.de>
20714 PR tree-optimization/71261
20715 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
20716 of stmts successfully put in the bool pattern. Remove
20717 single-use restriction.
20718 (adjust_bool_pattern_cast): Add cast at the use site via the
20719 pattern def sequence.
20720 (adjust_bool_pattern): Remove recursion, maintain a hash-map
20721 of patterned defs. Use the pattern def seqence instead of
20722 multiple independent patterns.
20723 (sort_after_uid): New qsort compare function.
20724 (adjust_bool_stmts): New function to process stmts in the bool
20725 pattern in IL order.
20726 (vect_recog_bool_pattern): Adjust.
20727 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
20728 (ifcvt_walk_pattern_tree): Likewise.
20729 (stmt_is_root_of_bool_pattern): Likewise.
20730 (ifcvt_repair_bool_pattern): Likewise.
20731 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
20733 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
20735 * loop-unroll.c (decide_unroll_constant_iterations,
20736 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
20737 likely upper bounds.
20738 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
20740 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
20742 * tree-core.h (enum omp_clause_code): Remove
20743 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
20745 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20747 * config/arm/sync.md (arm_store_exclusive<mode>):
20748 Use 'H' output modifier on operands[2] rather than creating a new
20749 entry in out-of-bounds memory of the operands array.
20750 (arm_store_release_exclusivedi): Likewise.
20752 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20754 * config/arm/arm.c (arm_fusion_enabled_p): New function.
20755 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
20756 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
20757 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
20759 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
20761 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
20762 into account live statements for mask producers.
20764 2016-06-01 Richard Biener <rguenther@suse.de>
20766 PR tree-optimization/71311
20767 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
20768 restrict to non-INTEGER_CST @0.
20770 2016-06-01 Richard Biener <rguenther@suse.de>
20772 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
20773 (relational patterns): Use :c to avoid pattern duplications.
20775 2016-06-01 Richard Biener <rguenther@suse.de>
20777 * genmatch.c (comparison_code_p): New predicate.
20778 (swap_tree_comparison): New function.
20779 (commutate): Add for_vec parameter to append new for entries.
20780 Support commutating relational operators by swapping it alongside
20782 (lower_commutative): Adjust.
20783 (dt_simplify::gen): Do not pass artificial operators to gen
20785 (decision_tree::gen): Do not add artificial operators as parameters.
20786 (parser::parse_expr): Verify operator commutativity when :c is
20787 applied. Allow :C to override this.
20788 * match.pd: Adjust patterns to use :C instead of :c where required.
20790 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
20792 PR tree-optimization/71077
20793 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
20794 the combining step, use boolean_false_node and boolean_true_node
20795 as the designated false/true return values.
20797 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
20799 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
20800 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
20801 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
20804 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
20806 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
20807 of flags impliying the register renaming.
20808 * toplev.c (process_options): Do not imply flag_rename_registers with
20811 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
20813 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
20814 default implementation.
20816 2016-05-31 Nathan Sidwell <nathan@acm.org>
20818 * dwarf2out.c (cur_line_info_table): Add GTY marker.
20820 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
20822 * config/sh/constraints.md (b): Remove constraint.
20823 * config/sh/predicates.md (arith_reg_operand): Remove
20825 * config/sh/sh-modes.def (PDI): Remove.
20826 * config/sh/sh.c (sh_target_reg_class,
20827 sh_optimize_target_register_callee_saved): Remove functions.
20828 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
20829 (sh_expand_epilogue): Update comment.
20830 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
20831 sh_secondary_reload): Remove TARGET_REGS related code.
20832 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
20833 TARGET_REGISTER_P): Remove macros.
20834 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
20835 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
20836 TR1_REG, TR2_REG): Remove constants.
20837 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
20839 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
20841 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
20842 define_expand patterns.
20843 (adddi3_compact): Rename to adddi3.
20844 (subdi3_compact): Rename to subdi3.
20845 (*negdi2): Rename to negdi2.
20846 (*abs<mode>2): Rename to abs<mode>2.
20848 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
20850 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
20851 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
20852 (atomic_sub_fetchsi): ... this new pattern.
20853 (mvtc): Add CC_REG clobber.
20855 2016-05-31 Marek Polacek <polacek@redhat.com>
20857 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
20859 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20861 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
20862 aarch64_fusion_enabled_p to check for fusion capabilities.
20864 2016-05-31 Richard Biener <rguenther@suse.de>
20866 PR tree-optimization/71352
20867 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
20868 minus one and a negate.
20870 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20872 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
20873 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
20875 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
20876 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
20877 Remove use of aarch64_simd_attr_length_move, set length attribute
20879 (*aarch64_be_movoi): Likewise.
20880 (*aarch64_be_movci): Likewise.
20881 (*aarch64_be_movxi): Likewise.
20883 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
20885 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
20886 It no longer does that.
20887 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
20889 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
20891 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
20892 attribute __unused__.
20894 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
20896 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
20897 * config/arm/arm.c (arm_arch_thumb1): Define.
20898 (arm_option_override): Initialize arm_arch_thumb1.
20899 * config/arm/arm.h (arm_arch_thumb1): Declare.
20900 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
20901 support Thumb-1 ISA.
20903 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
20906 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
20907 `Yv' for scalar operand.
20909 2016-05-31 Tom de Vries <tom@codesourcery.com>
20911 PR tree-optimization/69068
20912 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
20913 phis with more than two args.
20915 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
20917 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
20918 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
20921 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
20923 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
20925 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
20927 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
20928 cpu_32, cpu_64, tune_32 and tune_64.
20929 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
20931 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
20933 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
20935 2016-05-30 Andi Kleen <ak@linux.intel.com>
20937 * auto-profile.c (read_profile): Replace asserts with errors
20938 when file does not exist.
20939 * gcov-io.c (gcov_read_words): Dito.
20941 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20943 * tree-cfg.c (print_loop): Print likely upper bounds.
20945 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20947 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
20948 * opts.c (default_options): Enable peel loops at -O3.
20949 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
20950 (try_peel_loop): Do not re-peel already peeled loops;
20951 use likely upper bounds; fix profile updating.
20952 (pass_complete_unroll::execute): Initialize peeled_loops.
20954 2016-05-30 Martin Liska <mliska@suse.cz>
20956 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
20957 computed costs by frequency of BB they belong to.
20958 (get_scaled_computation_cost_at): New function.
20960 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
20961 Marc Glisse <marc.glisse@inria.fr>
20963 PR tree-optimization/71289
20964 * match.pd (-1 / B < A, A > -1 / B): New transformations.
20966 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20968 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
20970 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20972 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
20973 for peeled copies; avoid underflow when updating estimates; correctly
20974 scale loop profile.
20976 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
20978 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
20979 r236875. Corrected oe3 to oe2 as obvious.
20981 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
20983 PR middle-end/71269
20984 PR middle-end/71252
20985 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
20986 that inserted stmt will not dominate stmts that defines its operand.
20987 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
20988 (rewrite_expr_tree_parallel): Likewise.
20990 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
20992 PR middle-end/71252
20993 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
20994 all fields including stmt_to_insert are swapped.
20996 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20998 * predict.h (force_edge_cold): Declare.
20999 * predict.c (force_edge_cold): New function.
21000 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
21002 (canonicalize_loop_induction_variables): Fix formating.
21004 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
21006 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
21007 (visium_expand_copysign): Use gen_int_mode directly.
21008 (visium_compute_frame_size): Minor tweaks.
21010 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21012 * tree-vect-loop.c (vect_analyze_loop_2): Use
21013 likely_max_stmt_executions_int.
21015 2016-05-30 Tom de Vries <tom@codesourcery.com>
21017 PR tree-optimization/69067
21018 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
21020 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
21023 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
21024 New peepholes to remove unneeded fild/fistp pairs.
21025 (define_peephole2 atomic_loaddi_fpu): Ditto.
21027 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21029 * predict.c (maybe_hot_frequency_p): Avoid division.
21031 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
21033 * doc/install.texi: Use https for shop.fsf.org.
21035 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21037 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
21038 likely_max_stmt_executions_int.
21040 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21042 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
21043 likely_max_stmt_executions_int.
21045 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21047 * profile.c (compute_branch_probabilities): Do not report hitrates
21049 (branch_prob): Report hitrates here.
21050 * predict.c (gimple_predict_edge): Do not assert profile status;
21051 fix formatting issues.
21053 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21055 * predict.c (edge_predicted_by_p): New function.
21056 (predict_paths_for_bb): Do not put multiple predictions of the same type
21059 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21061 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
21064 2016-05-28 Alan Modra <amodra@gmail.com>
21066 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
21068 2016-05-28 Alan Modra <amodra@gmail.com>
21070 PR rtl-optimization/71275
21071 * ira.c (ira): Free dominance info.
21073 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
21075 * doc/sourcebuild.texi: New address for upstream Go repository.
21077 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
21079 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
21080 (TARGET_ARM_V7M): Likewise.
21082 2016-05-26 Jeff Law <law@redhat.com>
21084 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
21085 (thread_across_edge): Remove calls to find_jump_threads_backwards.
21086 * passes.def: Add jump threading passes before DOM/VRP.
21087 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
21088 argument to a basic block from an edge. Remove tests which are
21090 (pass_data_thread_jumps, class pass_thread_jumps): New.
21091 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
21092 (make_pass_thread_jumps): Likewise.
21093 * tree-pass.h (make_pass_thread_jumps): Declare.
21095 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
21097 * config/visium/visium-protos.h (split_double_move): Rename into...
21098 (visium_split_double_move): ...this.
21099 (visium_split_double_add): Declare.
21100 * config/visium/visium.c (split_double_move): Rename into...
21101 (visium_split_double_move): ...this.
21102 (visium_split_double_add): New function.
21103 (visium_expand_copysign): Renumber operands for consistency.
21104 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
21105 (DFmode move splitter): Likewise.
21106 (*addi3_insn): Split by means of visium_split_double_add.
21107 (*adddi3_insn_flags): Delete.
21108 (*plus_plus_sltu<subst_arith>): New insn.
21109 (*subdi3_insn): Split by means of visium_split_double_add.
21110 (subdi3_insn_flags): Delete.
21111 (*minus_minus_sltu<subst_arith>): New insn.
21112 (*negdi2_insn): Split by means of visium_split_double_add.
21113 (*negdi2_insn_flags): Delete.
21115 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
21117 * configure.ac: Treat a --with-headers option without argument
21118 the same as the default (i.e. consult sys-include directory).
21119 * configure: Regenerate.
21121 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21123 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
21124 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
21126 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
21127 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21129 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21132 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
21133 tree-stdarg analysis results.
21134 (aarch64_setup_incoming_varargs): Likewise.
21136 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21138 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
21139 va_list_gpr_counter_field and va_list_fpr_counter_field.
21141 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
21144 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
21145 * config/aarch64/aarch64.c
21146 (aarch64_cannot_change_mode_class): Remove function.
21147 * config/aarch64/aarch64-protos.h
21148 (aarch64_cannot_change_mode_class): Remove.
21150 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21152 * cfgloop.c (record_niter_bound): Record likely upper bounds.
21153 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
21154 get_likely_max_loop_iterations_int): New.
21155 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
21156 any_likely_upper_bound.
21157 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
21159 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
21160 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
21162 (unroll_loop_constant_iterations): Likewise.
21163 (unroll_loop_runtime_iterations): Likewise.
21164 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
21165 * lto-streamer-out.c (output_cfg): Likewise.
21166 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
21168 (canonicalize_loop_induction_variables): Dump likely upper bounds.
21169 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
21170 (likely_max_loop_iterations): New.
21171 (likely_max_loop_iterations_int): New.
21172 (likely_max_stmt_executions): New.
21173 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
21174 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
21175 likely_max_stmt_executions): Declare.
21177 2016-05-27 Marek Polacek <polacek@redhat.com>
21179 PR middle-end/71308
21180 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
21182 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21184 * config/s390/s390.md (2x risbg splitters): Use
21185 reg_overlap_mentioned_p instead of rtx_equal_p.
21187 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
21189 * combine.c (make_compound_operation): Take known zero bits into
21190 account when checking for possible zero_extend.
21192 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21194 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
21195 Use const_int_operand for operand 2 predicate. Simplify expand code
21198 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
21200 PR middle-end/71279
21201 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
21204 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21206 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
21207 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
21208 that returns CC_SESWPmode and CC_ZESWPmode.
21209 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
21211 (aarch64_rtx_costs): Likewise.
21213 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21215 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
21216 for ISA 3.0 min/max support.
21217 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
21218 conditional move support.
21219 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
21220 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
21222 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
21223 conditional moves where the comparison type is different from move
21225 (fp_minmax): New code iterator for smin/smax.
21226 (minmax): New code attributes for min/max.
21227 (SMINMAX): Likewise.
21228 (smax<mode>3): Combine min, max insns into one insn using the
21229 fp_minmax code iterator. Add support for ISA 3.0 min/max
21230 instructions that don't need -ffast-math.
21231 (s<minmax><mode>3): Likewise.
21232 (smax<mode>3_vsx): Likewise.
21233 (smin<mode>3): Likewise.
21234 (s<minmax><mode>3_vsx): Likewise.
21235 (smin<mode>3_vsx): Likewise.
21236 (pre-VSX min/max splitters): Likewise.
21237 (s<minmax><mode>3_fpr): Likewise.
21238 (movsfcc): Rewrite floating point conditional moves to combine
21239 SFmode/DFmode into a single insn.
21240 (mov<mode>cc): Likewise.
21241 (movdfcc): Likewise.
21242 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
21243 SFDF2 iterators to handle all combinations.
21244 (fseldfsf4): Likewise.
21245 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
21246 (fseldfdf4): Likewise.
21247 (fselsfdf4): Likewise.
21248 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
21249 comparison instructions that set a 0/-1 mask, and use it for
21250 floating point conditional move via XXSEL.
21251 (fpmask<mode>): Likewise.
21252 (xxsel<mode>): Likewise.
21253 * config/rs6000/predicates.md (min_max_operator): Delete, no
21255 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
21256 instructions that generate a 0/-1 mask for use with XXSEL.
21257 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
21258 say whether floating point min/max is available, either through
21259 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
21260 (TARGET_MINMAX_DF): Likewise.
21262 2016-05-27 Alan Modra <amodra@gmail.com>
21264 PR rtl-optimization/71275
21265 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
21266 for update_equiv_regs and combine_and_move_insns.
21268 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
21270 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
21271 if_then_else or cond RTXes to calculate attribute value.
21272 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
21273 <attr "length_immediate>: Ditto.
21274 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
21275 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
21276 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
21277 <attr "type">: Ditto.
21278 <attr "prefix_data16">: Ditto.
21279 <attr "prefix_extra">: Ditto.
21280 <attr "length_immediate">: Ditto.
21281 <attr "prefix">: Ditto.
21282 (vec_set<mode>_0) <attr "isa">: Ditto.
21283 <attr "prefix_extra">: Ditto.
21284 <attr "length_immediate">: Ditto.
21285 <attr "prefix">: Ditto.
21286 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
21287 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
21288 (sse2_storelpd) <attr "prefix_data16">: Ditto.
21289 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
21290 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
21291 <attr "length_immediate">: Ditto.
21292 <attr "prefix">: Ditto.
21293 (sse2_movsd) <attr "length_immediate">: Ditto.
21294 <attr "prefix">: Ditto.
21295 (vec_concatv2df) <attr "isa">: Ditto.
21296 <attr "prefix">: Ditto.
21297 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
21298 (*vec_extractv2di_1) <attr "isa">: Ditto.
21299 <attr "type">: Ditto.
21300 <attr "length_immediate">: Ditto.
21301 <attr "prefix_rex">: Ditto.
21302 <attr "prefix_extra">: Ditto.
21303 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
21304 <attr "prefix_extra">: Ditto.
21305 <attr "length_immediate">: Ditto.
21306 (vec_concatv2di) <attr "isa">: Ditto.
21307 <attr "prefix_extra">: Ditto.
21308 <attr "length_immediate">: Ditto.
21309 <attr "prefix">: Ditto.
21311 2016-05-26 Martin Liska <mliska@suse.cz>
21313 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
21315 (operator+): Likewise.
21316 (operator-): Likewise.
21317 (comp_cost::operator+=): Likewise.
21318 (comp_cost::operator-=): Likewise.
21319 (comp_cost::operator/=): Likewise.
21320 (comp_cost::operator*=): Likewise.
21321 (operator<): Likewise.
21322 (operator==): Likewise.
21323 (operator<=): Likewise.
21324 (new_cost): Remove.
21325 (infinite_cost_p): Likewise.
21326 (add_costs): Likewise.
21327 (sub_costs): Likewise.
21328 (compare_costs): Likewise.
21329 (set_group_iv_cost): Use the newly introduced functions.
21330 (get_address_cost): Likewise.
21331 (get_shiftadd_cost): Likewise.
21332 (force_expr_to_var_cost): Likewise.
21333 (split_address_cost): Likewise.
21334 (ptr_difference_cost): Likewise.
21335 (difference_cost): Likewise.
21336 (get_computation_cost_at): Likewise.
21337 (determine_group_iv_cost_generic): Likewise.
21338 (determine_group_iv_cost_address): Likewise.
21339 (determine_group_iv_cost_cond): Likewise.
21340 (autoinc_possible_for_pair): Likewise.
21341 (determine_group_iv_costs): Likewise.
21342 (cheaper_cost_pair): Likewise.
21343 (iv_ca_recount_cost): Likewise.
21344 (iv_ca_set_no_cp): Likewise.
21345 (iv_ca_set_cp): Likewise.
21346 (iv_ca_cost): Likewise.
21347 (iv_ca_new): Likewise.
21348 (iv_ca_dump): Likewise.
21349 (iv_ca_narrow): Likewise.
21350 (iv_ca_prune): Likewise.
21351 (iv_ca_replace): Likewise.
21352 (try_add_cand_for): Likewise.
21353 (try_improve_iv_set): Likewise.
21354 (find_optimal_iv_set): Likewise.
21356 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
21358 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
21359 that internal functions will clobber all caller-saved registers.
21361 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
21363 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
21364 Return a better case_values_threshold when optimizing.
21366 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
21368 * config/aarch64/aarch64-simd.md (aarch64_combinez):
21369 Add ? to integer variant.
21370 (aarch64_combinez_be): Likewise.
21372 2016-05-26 Jakub Jelinek <jakub@redhat.com>
21374 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
21375 instead of x constraint.
21376 (vcvtps2ph256<mask_name>): Likewise.
21378 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
21379 alternative. Formatting fix.
21381 * config/i386/sse.md
21382 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
21384 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
21385 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
21386 maybe_evex prefix instead of vex.
21387 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
21388 EXT_REX_SSE_REG_P (op0) case in the splitter.
21390 2016-05-25 Jeff Law <law@redhat.com>
21392 PR tree-optimization/71272
21393 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
21394 Update comments. Add test for empty path.
21396 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
21398 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
21399 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
21400 special case builtin.
21401 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21402 code for ALTIVEC_BUILTIN_VEC_CMPNE.
21403 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
21404 for __builtin_vec_cmpne.
21406 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
21408 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
21409 redundant test and bail out if the type of the new operand is not
21410 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
21412 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
21414 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
21415 (x_ix86_target_flags_explicit): Remove.
21416 * config/i386/i386.c (ix86_function_specific_save): Do not copy
21417 x_ix86_target_flags_explicit.
21418 (ix86_function_specific_restore): Ditto.
21420 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
21421 H.J. Lu <hongjiu.lu@intel.com>
21424 * common/config/i386/i386-common.c
21425 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
21426 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
21427 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
21428 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
21429 (-mgeneral-regs-only): Add new option.
21430 * config/i386/i386.c (ix86_option_override_internal): Don't enable
21431 x87 instructions if only general registers are allowed.
21432 (ix86_target_string): Add ix86_flags argument. Handle additional
21433 flags options through ix86_flags argument. Update all callers.
21434 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
21436 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21438 PR rtl-optimization/66940
21439 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
21440 decrementing desired_val will not overflow before performing these
21443 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
21445 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
21446 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
21447 * config/i386/i386.c (enum ix86_builtins): Add
21448 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
21449 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
21450 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
21451 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
21452 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
21453 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
21454 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
21455 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
21456 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
21457 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
21458 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
21459 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
21460 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
21461 __builtin_ia32_cvtps2dq512_mask.
21462 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
21463 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
21464 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
21465 * config/i386/sse.md
21466 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
21468 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
21469 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
21471 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
21472 (avx512f_vec_pack_sfix_v8df): New define_expand.
21473 (avx512f_roundpd512): Rename to ...
21474 (avx512f_round<castmode>512): ... this. Change iterator.
21475 (avx512f_roundps512_sfix): New define_expand.
21476 (round<mode>2_sfix): Change iterator.
21478 2016-05-25 Nick Clifton <nickc@redhat.com>
21480 * config/msp430/msp430.c (msp430_attr): Produce an error if a
21481 static interrupt handler is detected.
21482 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
21483 default linker script.
21484 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
21485 the low part of a symbolic pointer.
21487 2016-05-25 Richard Biener <rguenther@suse.de>
21489 PR tree-optimization/71261
21490 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
21491 interesting stmt instead of immediate uses when looking
21492 for the use operand to replace.
21494 2016-05-25 Martin Liska <mliska@suse.cz>
21496 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
21498 2016-05-25 Richard Biener <rguenther@suse.de>
21500 PR tree-optimization/71264
21501 * tree-vect-stmts.c (vect_init_vector): Properly deal with
21504 2016-05-25 Martin Liska <mliska@suse.cz>
21506 PR tree-optimization/71239
21507 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
21508 if DECL_SIZE is NULL.
21510 2016-05-25 Richard Biener <rguenther@suse.de>
21512 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
21513 * tree-if-conv.c (pass_data_if_conversion): Use it.
21515 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
21517 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
21518 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
21519 * varpool.c (varpool_node::get_availability): Likewise.
21521 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21523 * config/rs6000/altivec.md (VNEG iterator): New iterator for
21524 VNEGW/VNEGD instructions.
21525 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
21526 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
21527 support for ISA 3.0 VNEGW/VNEGD instructions.
21529 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
21531 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
21532 pointers inside OACC_DATA regions.
21533 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
21534 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
21535 (gimplify_adjust_omp_clauses): Fix typo in comment.
21537 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21539 * config/rs6000/altivec.md (VParity): New mode iterator for vector
21540 parity built-in functions.
21541 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
21543 (p9v_parity<mode>2): Likewise.
21544 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
21546 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
21547 (parity<mode>2): ISA 3.0 expander for vector parity.
21548 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
21550 (BU_P9_64BIT_MISC_0): Likewise.
21551 (BU_P9_MISC_0): Likewise.
21552 (BU_P9V_AV_1): Likewise.
21553 (BU_P9V_AV_2): Likewise.
21554 (BU_P9V_AV_3): Likewise.
21555 (BU_P9V_AV_P): Likewise.
21556 (BU_P9V_VSX_1): Likewise.
21557 (BU_P9V_OVERLOAD_1): Likewise.
21558 (BU_P9V_OVERLOAD_2): Likewise.
21559 (BU_P9V_OVERLOAD_3): Likewise.
21560 (VCTZB): Add vector count trailing zeros support.
21564 (VPRTYBD): Add vector parity support.
21565 (VPRTYBQ): Likewise.
21566 (VPRTYBW): Likewise.
21567 (VCTZ): Add overloaded vector count trailing zeros support.
21568 (VPRTYB): Add overloaded vector parity support.
21569 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21570 overloaded vector count trailing zeros and parity instructions.
21571 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
21572 vector parity support.
21573 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
21574 trailing zeros support.
21575 (vec_cntlz): Likewise.
21576 (vec_vctzb): Likewise.
21577 (vec_vctzd): Likewise.
21578 (vec_vctzh): Likewise.
21579 (vec_vctzw): Likewise.
21580 (vec_vprtyb): Add ISA 3.0 vector parity support.
21581 (vec_vprtybd): Likewise.
21582 (vec_vprtybw): Likewise.
21583 (vec_vprtybq): Likewise.
21584 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
21585 the ISA 3.0 vector count trailing zeros and vector parity built-in
21588 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
21590 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
21591 when there is stmt_to_insert.
21593 2016-05-24 Martin Sebor <msebor@redhat.com>
21596 * tree.h (complete_or_array_type_p): New inline function.
21598 2016-05-24 Jakub Jelinek <jakub@redhat.com>
21600 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
21601 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
21602 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
21604 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
21605 Limit 1st alternative to noavx isa, split 2nd alternative into one
21606 noavx and one avx alternative, use *x and Bm in the former and
21607 x and m in the latter.
21609 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
21610 of sse4 for the first alternative, drop %v from the template
21611 and d operand modifier. Split second alternative into one sse4_noavx
21612 and one avx alternative, use *x instead of *v in the former and v
21613 instead of *v in the latter.
21614 (*sse4_1_extractps): Use noavx isa instead of * for the first
21615 alternative, drop %v from the template. Split second alternative into
21616 one noavx and one avx alternative, use *x instead of *v in the
21617 former and v instead of *v in the latter.
21618 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
21619 with noavx and the last one with avx.
21620 (sse4_1_phminposuw): Guard first alternative with noavx isa,
21621 split the second one into one noavx and one avx alternative,
21622 use *x and Bm in the former and x and m in the latter one.
21623 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
21626 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
21627 first two alternatives to noavx, use *x instead of *v in the second
21628 one, add avx alternative without *.
21629 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
21630 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
21631 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
21633 2016-05-24 Jeff Law <law@redhat.com>
21635 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
21636 New function, extracted from...
21637 (fsm_find_control_statement_thread_paths): Here. Use the new function.
21638 Allow simple copies and constant initializations in the SSA chain.
21640 2016-05-24 Marek Polacek <polacek@redhat.com>
21643 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
21646 2016-05-24 Jakub Jelinek <jakub@redhat.com>
21649 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
21650 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
21651 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
21652 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
21653 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
21655 2016-05-24 Richard Biener <rguenther@suse.de>
21657 PR tree-optimization/71240
21658 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
21661 2016-05-24 Richard Biener <rguenther@suse.de>
21663 PR tree-optimization/71230
21664 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
21666 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
21668 * tree-vectorizer.h (vectorizable_comparison): Delete.
21669 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
21670 PURE_SLP_STMT check.
21671 * tree-vect-stmts.c (vectorizable_call): Likewise.
21672 (vectorizable_simd_clone_call): Likewise.
21673 (vectorizable_conversion): Likewise.
21674 (vectorizable_assignment): Likewise.
21675 (vectorizable_shift): Likewise.
21676 (vectorizable_operation): Likewise.
21677 (vectorizable_load): Likewise.
21678 (vectorizable_condition): Likewise.
21679 (vectorizable_store): Likewise. Assert that we don't have
21681 (vectorizable_comparison): Make static. Remove redundant
21682 PURE_SLP_STMT check.
21683 (vect_transform_stmt): Assert that we always have an slp_node
21686 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21688 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
21689 operands[2] against 1 with comparison against CONST1_RTX.
21690 (<shift>di3_neon): Likewise.
21691 * config/arm/predicates.md (const0_operand): Replace with comparison
21692 against CONST0_RTX.
21694 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21696 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
21697 operands[2] against 1 with comparison against CONST1_RTX.
21698 (ashrdi3): Likewise.
21699 (lshrdi3): Likewise.
21700 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
21702 (ashrsi3): Likewise.
21703 (lshrsi3): Likewise.
21704 (rotrsi3): Likewise.
21705 (define_split above *compareqi_eq0): Likewise.
21706 (define_split above "prologue"): Likewise.
21707 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
21708 * config/arm/predicates.md (shift_operator): Likewise.
21709 (shift_nomul_operator): Likewise.
21710 (sat_shift_operator): Likewise.
21711 (thumb1_cmp_operand): Likewise.
21712 (const_neon_scalar_shift_amount_operand): Replace manual range
21713 check with IN_RANGE.
21714 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
21715 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
21717 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21719 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
21720 with HOST_WIDE_INT_1.
21722 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
21723 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
21724 (arm_canonicalize_comparison): Likewise.
21725 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
21727 (thumb1_size_rtx_costs): Likewise.
21728 (vfp_const_double_index): Replace cast of 1 to unsigned
21729 HOST_WIDE_INT with HOST_WIDE_INT_1U.
21730 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
21732 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
21733 HOST_WIDE_INT with HOST_WIDE_INT_1U.
21734 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
21735 HOST_WIDE_INT with HOST_WIDE_INT_1.
21737 2016-05-24 Marek Polacek <polacek@redhat.com>
21739 * tree-cfg.h (should_remove_lhs_p): New predicate.
21740 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
21741 * gimplify.c (gimplify_modify_expr): Likewise.
21742 * tree-cfg.c (verify_gimple_call): Likewise.
21743 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
21744 * gimple-fold.c: Include "tree-cfg.h".
21745 (gimple_fold_call): Use should_remove_lhs_p.
21747 2016-05-24 Richard Biener <rguenther@suse.de>
21749 PR tree-optimization/71253
21750 * cfganal.h (control_dependences): Make robust against edge
21752 (control_dependences::control_dependences): Remove edge_list argument.
21753 (control_dependences::get_edge): Remove.
21754 (control_dependences::get_edge_src): Add.
21755 (control_dependences::get_edge_dest): Likewise.
21756 (control_dependences::m_el): Make a vector of edge src/dest index.
21757 * cfganal.c (control_dependences::find_control_dependence): Adjust.
21758 (control_dependences::control_dependences): Likewise.
21759 (control_dependences::~control_dependence): Likewise.
21760 (control_dependences::get_edge): Remove.
21761 (control_dependences::get_edge_src): Add.
21762 (control_dependences::get_edge_dest): Likewise.
21763 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
21765 (perform_tree_ssa_dce): Adjust.
21766 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
21768 (pass_loop_distribution::execute): Adjust. Do loop destroying
21769 conditional on changed.
21771 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21774 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
21775 return. Reindent transformation comment and mention the ARM state
21778 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
21780 PR middle-end/71252
21781 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
21782 after build_and_add_sum creates new use stmt.
21784 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
21786 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
21787 load_lanes/grouped_load classification comes first. Don't check
21788 whether the vectorization factor is a multiple of the group size
21791 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
21793 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
21794 GROUP_GAP for single-element interleaving.
21795 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
21798 2016-05-24 Richard Biener <rguenther@suse.de>
21800 PR middle-end/70434
21802 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
21803 bases which are accessed with non-invariant indices.
21804 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
21805 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
21807 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
21809 PR middle-end/71170
21810 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
21811 (add_to_ops_vec): Add stmt_to_insert.
21812 (add_repeat_to_ops_vec): Init stmt_to_insert.
21813 (insert_stmt_before_use): New.
21814 (transform_add_to_multiply): Remove mult_stmt insertion and add it
21816 (get_ops): Init stmt_to_insert.
21817 (maybe_optimize_range_tests): Likewise.
21818 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
21819 (rewrite_expr_tree_parallel): Likewise.
21820 (reassociate_bb): Likewise.
21822 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21825 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
21826 ISA 3.0 xxperm fusion alternative.
21827 (altivec_vperm_v8hiv16qi): Likewise.
21828 (altivec_vperm_<mode>_uns_internal): Likewise.
21829 (vperm_v8hiv4si): Likewise.
21830 (vperm_v16qiv8hi): Likewise.
21832 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21833 Kelvin Nilsen <kelvin@gcc.gnu.org>
21835 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
21836 vpermr/xxpermr on ISA 3.0.
21837 (altivec_expand_vec_perm_le): Likewise.
21838 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
21839 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
21842 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
21844 * config/i386/i386.h (IS_STACK_MODE): Enable for
21845 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
21846 SSE_FLOAT_MODE_P macros.
21847 * config/i386/i386.c (ix86_preferred_reload_class): Use
21848 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
21849 Cleanup regclass processing for CONST_DOUBLE_P.
21850 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
21851 (ix86_rtx_costs): Remove redundant TARGET_80387 check
21852 with IS_STACK_MODE macro.
21853 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
21855 (*movdf_internal): Use IS_STACK_MODE macro.
21856 (*movsf_internal): Ditto.
21858 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
21860 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
21861 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
21863 2016-05-23 Jeff Law <law@redhat.com>
21865 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
21867 (fsm_find_control_statement_thread_paths): Call it.
21869 2016-05-23 Martin Jambor <mjambor@suse.cz>
21872 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
21873 from_global_constant if t is not NULL.
21875 2016-05-23 Marek Polacek <polacek@redhat.com>
21878 * common.opt (Wswitch-unreachable): New option.
21879 * doc/invoke.texi: Document -Wswitch-unreachable.
21880 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
21883 2016-05-23 Bin Cheng <bin.cheng@arm.com>
21885 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
21886 TMR_INDEX is non-NULL.
21888 2016-05-23 Richard Biener <rguenther@suse.de>
21890 PR tree-optimization/71230
21891 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
21892 (try_special_add_to_ops): ... here. Always test for single-use.
21894 2016-05-23 Martin Jambor <mjambor@suse.cz>
21896 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
21897 default block if a PHI node in the original one would be resized.
21899 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21901 PR tree-optimization/58135
21902 * tree-vect-slp.c: When group size is not multiple
21903 of vector size, allow splitting of store group at
21906 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
21908 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
21910 2016-05-22 Jakub Jelinek <jakub@redhat.com>
21912 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
21913 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
21914 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
21917 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
21918 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
21919 v constraint instead of x and vinserti32x4 insn.
21921 * config/i386/sse.md (i128vldq): New mode iterator.
21922 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
21923 avx512dq and avx512vl alternatives.
21925 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
21926 constraint, use maybe_evex prefix instead of vex.
21927 (vec_dupv4sf): Use v constraint instead of x for output
21928 operand except for noavx alternative, use Yv constraint
21929 instead of x for input. Use maybe_evex prefix instead of vex.
21930 (*vec_dupv4si): Likewise.
21931 (*vec_dupv2di): Likewise.
21933 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
21935 PR middle-end/40921
21936 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
21937 (linearize_expr_tree): Call try_special_add_to_ops.
21938 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
21940 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21942 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
21943 to computed stack_usage.
21945 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21948 * config/avr/avr.md (define_expand "mov<mode>"): If the source
21949 operand is subreg (symbol_ref) then move the symbol ref to register.
21951 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
21953 * tree.c (array_at_struct_end_p): Look through MEM_REF.
21955 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
21957 PR middle-end/71179
21958 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
21961 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
21963 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
21964 ranges by calling get_single_symbol and tidy up. Look more closely
21965 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
21967 2016-05-20 Jeff Law <law@redhat.com>
21969 * bitmap.c (bitmap_find_bit): Remove useless test.
21971 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
21973 * function.c (thread_prologue_and_epilogue_insns): Commit the
21974 insertion of the epilogue.
21976 2016-05-20 Martin Jambor <mjambor@suse.cz>
21978 PR tree-optimization/70884
21979 * tree-sra.c (initialize_constant_pool_replacements): Do not check
21980 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
21981 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
21982 of constant pool data as a reason for scalarization.
21984 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
21986 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
21987 for naked functions.
21988 (thumb1_expand_prologue): Likewise.
21990 2016-05-20 Nathan Sidwell <nathan@acm.org>
21992 * config/nvptx/nptx.c (nvptx_option_override): Only set
21993 flag_toplevel_reorder, if not explicitly specified. Set
21994 flag_no_common, unless explicitly specified.
21996 2016-05-20 David Malcolm <dmalcolm@redhat.com>
21998 * calls.c (can_implement_as_sibling_call_p): Mark param
21999 reg_parm_stack_space with ATTRIBUTE_UNUSED.
22001 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
22003 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
22004 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
22005 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
22007 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
22008 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
22009 and CASE_CONST_ANY.
22011 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
22013 * config/nvptx/nvptx.md (sincossf3): New pattern.
22015 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22017 * calls.c (maybe_complain_about_tail_call): New function.
22018 (initialize_argument_information): Call
22019 maybe_complain_about_tail_call when clearing *may_tailcall.
22020 (can_implement_as_sibling_call_p): Call
22021 maybe_complain_about_tail_call when returning false.
22022 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
22023 ensure try_tail_call is set. Call maybe_complain_about_tail_call
22024 if tail-call optimization fails.
22025 * cfgexpand.c (expand_call_stmt): Initialize
22026 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
22027 * gimple-pretty-print.c (dump_gimple_call): Dump
22028 gimple_call_must_tail_p.
22029 * gimple.c (gimple_build_call_from_tree): Call
22030 gimple_call_set_must_tail with the value of
22031 CALL_EXPR_MUST_TAIL_CALL.
22032 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
22033 (gimple_call_set_must_tail): New function.
22034 (gimple_call_must_tail_p): New function.
22035 * print-tree.c (print_node): Update printing of TREE_STATIC
22036 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
22037 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
22038 trailing comment listing applicable flags.
22039 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
22041 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22043 * calls.c (expand_call): Move "Rest of purposes for tail call
22044 optimizations to fail" to...
22045 (can_implement_as_sibling_call_p): ...this new function, and
22046 split into multiple "if" statements.
22048 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22050 * cfgloop.h (expected_loop_iterations_unbounded,
22051 expected_loop_iterations): Unconstify.
22052 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
22053 profile with known upper bound; return 3 when profile is absent.
22054 (expected_loop_iterations): Update.
22056 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22058 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
22059 and get_max_loop_iterations_int.
22061 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22063 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
22064 realistic upper bounds here.
22066 2016-05-20 Jakub Jelinek <jakub@redhat.com>
22069 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
22070 calls if the LHS is variable length or has addressable type.
22071 If targets[0]->decl is a noreturn call with void return type and
22072 zero arguments, adjust fntype and remove lhs in that case.
22074 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
22076 PR tree-optimization/71079
22077 PR tree-optimization/71206
22078 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
22080 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22082 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
22083 (get_vec_alignment_for_array_decl): Likewise.
22084 (get_vec_alignment_for_record_decl): Likewise.
22085 (increase_alignment::execute): Move code to find alignment to
22086 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
22087 (type_align_map): New hash_map.
22089 2016-05-20 Richard Guenther <rguenther@suse.de>
22091 PR tree-optimization/29756
22092 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
22093 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
22094 * fold-const.c (operand_equal_p): Likewise.
22095 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
22096 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
22097 * tree-inline.c (estimate_operator_cost): Likewise.
22098 * tree-pretty-print.c (dump_generic_node): Likewise.
22099 * tree-ssa-operands.c (get_expr_operands): Likewise.
22100 * cfgexpand.c (expand_debug_expr): Likewise.
22101 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
22102 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
22103 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
22104 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
22105 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
22106 (execute_update_addresses_taken): Do it.
22108 2016-05-20 Richard Biener <rguenther@suse.de>
22110 PR tree-optimization/71185
22111 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
22112 register operations.
22114 2016-05-20 Richard Biener <rguenther@suse.de>
22116 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
22117 gimple_seq_add_seq_without_update.
22118 (release_bb_predicate): Assert we have no operands to free.
22119 (if_convertible_loop_p_1): Calculate post dominators later.
22120 Do not free BB predicates here.
22121 (combine_blocks): Do not recompute BB predicates.
22122 (version_loop_for_if_conversion): Save BB predicates around
22125 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22127 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
22128 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
22129 code. Ignore sibcalls on EDGE_IGNORE edges.
22130 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
22131 on edges for sibcalls that run without prologue. The rest of the
22132 function is combined from...
22133 (fix_fake_fallthrough_edge): ... this, and ...
22134 (try_shrink_wrapping): ... a part of this. Remove the bb_with
22135 function argument, make it a local variable.
22137 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
22139 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
22140 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
22141 for 32-bit mode and SEH for 64-bit.
22142 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
22143 TARGET_64BIT_DEFAULT.
22145 2016-05-19 Ryan Burn <contact@rnburn.com>
22147 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
22148 * gengtype.c (open_base_files): Add cilk.h to ifiles.
22150 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
22152 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
22153 force pending loads from memory.
22155 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
22157 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
22158 (UNSPEC_DARN_32): New unspec constant.
22159 (UNSPEC_DARN_RAW): New unspec constant.
22160 (darn_32): New instruction.
22161 (darn_raw): New instruction.
22162 (darn): New instruction.
22163 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
22164 support and documentation for this macro.
22165 (BU_P9_MISC_1): New macro definition.
22166 (BU_P9_64BIT_MISC_0): New macro definition.
22167 (BU_P9_MISC_0): New macro definition.
22168 (darn_32): New builtin definition.
22169 (darn_raw): New builtin definition.
22170 (darn): New builtin definition.
22171 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
22172 RS6000_BUILTIN_0 directives to surround each occurrence of
22173 #include "rs6000-builtin.def".
22174 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
22175 RS6000_BTM_64BIT flags to the returned mask, depending on
22177 (def_builtin): Correct an error in the assignments made to the
22178 debugging variable attr_string.
22179 (rs6000_expand_builtin): Add support for no-operand built-in
22181 (builtin_function_type): Remove fatal_error assertion that is no
22183 (rs6000_common_init_builtins): Add support for no-operand built-in
22185 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
22187 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
22189 (RS6000_BTM_64BIT): New macro definition.
22190 * doc/extend.texi: Document __builtin_darn (void),
22191 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
22194 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
22196 * tree-vect-loop.c (vect_analyze_loop_2): Use also
22197 max_loop_iterations_int.
22199 2016-05-19 Marek Polacek <polacek@redhat.com>
22201 PR tree-optimization/71031
22202 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
22203 condition and adjust the code a bit.
22205 2016-05-19 Martin Liska <mliska@suse.cz>
22207 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
22208 auto_vec instead of vec.
22210 2016-05-19 Martin Liska <mliska@suse.cz>
22212 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
22214 2016-05-19 Martin Liska <mliska@suse.cz>
22216 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
22218 2016-05-19 Martin Liska <mliska@suse.cz>
22220 * ipa-pure-const.c (set_function_state): Remove an existing
22222 (remove_node_data): Do not free it as it's released
22223 in set_function_state.
22225 2016-05-19 Martin Liska <mliska@suse.cz>
22227 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
22230 2016-05-19 Martin Liska <mliska@suse.cz>
22232 * omp-simd-clone.c (simd_clone_adjust): Release vector.
22234 2016-05-19 Martin Liska <mliska@suse.cz>
22236 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
22237 an auto_vec instead of re-creating it.
22239 2016-05-19 Martin Liska <mliska@suse.cz>
22241 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
22242 auto_vec instead of vec.
22244 2016-05-19 Martin Liska <mliska@suse.cz>
22246 * lto-section-in.c (lto_get_section_data): Call
22247 lto_check_version with additional argument.
22248 * lto-streamer.c (lto_check_version): Add new argument.
22249 * lto-streamer.h (lto_check_version): Likewise.
22251 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22253 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
22254 Don't add cost of inner memory when handling sign-extended loads.
22256 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
22258 PR rtl-optimization/71148
22259 * cse.c (cse_main): Free dominance info.
22260 (rest_of_handle_cse): Don't free dominance info.
22261 (rest_of_handle_cse2): Likewise.
22262 (rest_of_handle_cse_after_global_opts): Likewise.
22264 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22267 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
22268 NULL_TREE early if NEON is not available. Remove now redundant check
22269 in ARM_CHECK_BUILTIN_MODE.
22271 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
22274 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
22275 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
22276 * doc/cpp.texi: Document new macros.
22278 2016-05-19 Bin Cheng <bin.cheng@arm.com>
22280 PR tree-optimization/69848
22281 * tree-vect-loop.c (vectorizable_reduction): Don't factor
22282 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
22284 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22286 * function.c (thread_prologue_and_epilogue_insn): Move the
22287 "goto epilogue_done" one block later.
22289 2016-05-19 Richard Biener <rguenther@suse.de>
22291 PR tree-optimization/70729
22292 * passes.def: Move LIM pass before PRE. Remove no longer
22293 required copyprop and move first DCE out of the loop pipeline.
22295 2016-05-18 David Malcolm <dmalcolm@redhat.com>
22298 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
22299 (OBJS-libcommon-target): ...here.
22300 * opts-common.c: Include spellcheck.h.
22301 (cmdline_handle_error): Build a vec of valid options and use it
22302 to suggest provide hints for misspelled arguments.
22304 2016-05-18 Jakub Jelinek <jakub@redhat.com>
22307 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
22308 lhs if it has TREE_ADDRESSABLE type.
22310 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
22313 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
22314 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
22316 2016-05-18 Martin Jambor <mjambor@suse.cz>
22319 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
22320 input for NOP_EXPR pass-through functions.
22321 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
22322 aggregate global constant VAR_DECLs in constant jump functions.
22324 2016-05-18 Martin Jambor <mjambor@suse.cz>
22327 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
22328 from TREE_READONLY parameters.
22330 2016-05-18 Martin Jambor <mjambor@suse.cz>
22333 * cgraph.h (cgraph_indirect_call_info): New field
22334 guaranteed_unmodified.
22335 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
22336 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
22338 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
22339 pass the parameter value to ipa_find_agg_cst_for_param.
22340 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
22341 guaranteed_unmodified, store AA results there instead of bailing out
22343 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
22344 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
22345 (find_constructor_constant_at_offset): New function.
22346 (ipa_find_agg_cst_from_init): Likewise.
22347 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
22348 static initializers of contants, report back through a new paameter
22349 from_global_constant if that was the case.
22350 (try_make_edge_direct_simple_call): Also pass parameter value to
22351 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
22353 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
22354 (ipa_read_indirect_edge_info): Likewise.
22355 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
22356 (ipa_load_from_parm_agg): Likewise.
22358 2016-05-18 Jiong Wang <jiong.wang@arm.com>
22360 PR rtl-optimization/71150
22361 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
22364 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22367 * config/rs6000/constraints.md (wE constraint): New constraint
22368 for a vector constant that can be loaded with XXSPLTIB.
22369 (wM constraint): New constraint for a vector constant of a 1's.
22370 (wS constraint): New constraint for a vector constant that can be
22371 loaded with XXSPLTIB and a vector sign extend instruction.
22372 * config/rs6000/predicates.md (xxspltib_constant_split): New
22373 predicates for wE/wS constraints.
22374 (xxspltib_constant_nosplit): Likewise.
22375 (easy_vector_constant): Add support for constants that can be
22376 loaded via XXSPLTIB.
22377 (all_ones_constant): New predicate for vector constant with all
22379 (splat_input_operand): Add support for ISA 3.0 word splat operations.
22380 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
22381 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
22382 instruction and possibly with a sign extension.
22383 (output_vec_const_move): Add support for XXSPLTIB. If we are
22384 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
22385 instead of XXLXOR/XXLORC.
22386 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
22388 (rs6000_legitimize_reload_address): Likewise.
22389 (rs6000_output_move_128bit): Use output_vec_const_move to emit
22391 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
22392 combine VSX_M and VSX_M2 into one iterator.
22393 (VSX_M2): Likewise.
22394 (VSINT_84): New iterators for loading constants with XXSPLTIB.
22395 (VSINT_842): Likewise.
22396 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
22397 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
22398 XXSPLTIB instruction.
22399 (xxspltib_<mode>_nosplit): Likewise.
22400 (xxspltib_<mode>_split): New insn to load up constants with
22401 XXSPLTIB and a sign extend instruction.
22402 (vsx_mov<mode>): Replace single move that handled all vector types
22403 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
22404 moves (when -mvsx-timode is in effect) into the main vector
22405 moves. Eliminate separate moves for <VSr> <VSa>, where the
22406 preferred register class (<VSr>) is listed first, and the
22407 secondary register class (<VSa>) is listed second with a '?' to
22408 discourage use. Prefer loading 0/-1 in any VSX register for ISA
22409 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
22410 that if the register was involved in a slow operation, the
22411 clear/set operation does not wait for the slow operation to
22412 finish. Adjust the length attributes for 32-bit mode. Use
22413 rs6000_output_move_128bit and drop the use of the string
22414 instructions for 32-bit movti when -mvsx-timode is in effect. Use
22415 spacing so that the alternatives and attributes don't generate
22416 long lines, and put things in columns, so that it is easier to
22417 match up the operands and attributes with the insn alternatives.
22418 (vsx_mov<mode>_64bit): Likewise.
22419 (vsx_mov<mode>_32bit): Likewise.
22420 (vsx_movti_64bit): Fold movti into normal vector moves.
22421 (vsx_movti_32bit): Likewise.
22422 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
22423 splat instructions.
22424 (vsx_splat_v4si_internal): Likewise.
22425 (vsx_splat_v4sf_internal): Likewise.
22426 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
22427 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
22428 extend vector elements.
22429 (vsx_sign_extend_hi_<mode>): Likewise.
22430 (vsx_sign_extend_si_v2di): Likewise.
22431 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
22433 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
22434 constraints. Add trailing period to wL documentation.
22436 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
22438 PR middle-end/71020
22439 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
22440 * tree-dfa.c (replace_abnormal_ssa_names): New function.
22441 * tree-call-cdce.c: Include tree-dfa.h.
22442 (can_guard_call_p): New function, extracted from...
22443 (can_use_internal_fn): ...here.
22444 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
22446 (shrink_wrap_one_built_in_call): Likewise.
22447 (use_internal_fn): Likewise.
22448 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
22449 and return void. Call replace_abnormal_ssa_names.
22450 (pass_call_cdce::execute): Check can_guard_call_p during the
22451 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
22452 will always change something.
22454 2016-05-18 Martin Jambor <mjambor@suse.cz>
22457 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
22458 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
22460 2016-05-18 Martin Jambor <mjambor@suse.cz>
22463 * ipa-inline.h (condition): New field size.
22464 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
22465 for comaprison and store it into the new condition.
22466 (evaluate_conditions_for_known_args): Use condition size to check
22467 access sizes for all but CHANGED conditions.
22468 (unmodified_parm_1): New parameter size_p, store access size into it.
22469 (unmodified_parm): Likewise.
22470 (unmodified_parm_or_parm_agg_item): Likewise.
22471 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
22472 (set_cond_stmt_execution_predicate): Extract access sizes and store
22473 them to conditions.
22474 (set_switch_stmt_execution_predicate): Likewise.
22475 (will_be_nonconstant_expr_predicate): Likewise.
22476 (will_be_nonconstant_predicate): Likewise.
22477 (inline_read_section): Stream condition size.
22478 (inline_write_summary): Likewise.
22480 2016-05-18 Richard Biener <rguenther@suse.de>
22482 * tree-ssa-loop-im.c (determine_max_movement): Properly add
22483 condition cost to PHI cost instead of total_cost.
22485 2016-05-18 Martin Liska <mliska@suse.cz>
22488 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
22491 2016-05-18 Richard Biener <rguenther@suse.de>
22493 * lto-streamer.h (LTO_major_version): Bump to 6.
22495 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
22497 * function.c (make_split_prologue_seq, make_prologue_seq,
22498 make_epilogue_seq): New functions, factored out from...
22499 (thread_prologue_and_epilogue_insns): Here.
22501 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
22503 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
22504 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
22505 of before. Add a comment.
22507 2016-05-18 Bin Cheng <bin.cheng@arm.com>
22509 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
22510 expression pointer, not pointer to the pointer.
22512 2016-05-18 Jakub Jelinek <jakub@redhat.com>
22514 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
22515 (avx2_pbroadcast<mode>): Add another alternative with v instead
22516 of x constraints in it, using <pbroadcast_evex_isa> isa.
22517 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
22519 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
22520 constraint x instead of v in second alternative, add avx512bw
22523 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
22524 constraint x instead of v in second alternative, add avx512bw
22527 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
22528 constraint x instead of v in second alternative, add avx512bw
22531 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
22532 avx512bw alternative.
22534 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
22536 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
22537 array to 128 chars.
22538 (define_insn "*andnottf3"): Ditto.
22539 (define_insn "*<code><mode>3"/any_logic): Ditto.
22540 (define_insn "*<code>tf3"/any_logic): Ditto.
22541 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
22542 operand to block AVX-512VL insn variant emit when it is not enabled.
22544 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
22546 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
22547 constraint fot SF mode.
22549 2016-05-18 Petr Murzin <petr.murzin@intel.com>
22550 Kirill Yukhin <kirill.yukhin@intel.com>
22552 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
22554 (define_insn "rsqrt14<mode>"): Ditto.
22555 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
22556 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
22557 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
22558 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
22559 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
22561 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
22562 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
22563 * config/i386/i386.c (ix86_print_operand): Expand check for size
22564 override codes for Intel syntax.
22566 2016-05-18 Richard Biener <rguenther@suse.de>
22568 PR tree-optimization/71168
22569 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
22570 initialization earlier.
22572 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
22574 * config/aarch64/aarch64-simd.md
22575 (aarch64_reduc_plus_internal<mode>): Rename to...
22576 (reduc_plus_scal): ...This, and remove previous implementation.
22578 2016-05-18 Richard Biener <rguenther@suse.de>
22580 * passes.def: Put late dse and cd_dce in canonical order.
22582 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
22584 * ipa-inline-transform.c (preserve_function_body_p): Look for
22585 first non-thunk clone.
22586 (save_function_body): Save into first non-thunk.
22587 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
22589 (lto_output_node): Inline thunks don't need body in every
22591 * lto-streamer-in.c: Do not fixup thunk clones.
22592 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
22594 * tree-inline.c (copy_bb): Be prepared for target node to be new after
22597 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
22599 PR middle-end/63586
22600 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
22601 (reassociate_bb): Call transform_add_to_multiply.
22603 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
22605 * config/aarch64/aarch64.c (all_extensions): Removed unused
22608 2016-05-17 Nathan Sidwell <nathan@acm.org>
22610 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
22611 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
22613 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
22615 PR tree-optimization/54579
22616 PR middle-end/55299
22617 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
22619 2016-05-17 Marek Polacek <polacek@redhat.com>
22622 * tree-inline.c (expand_call_inline): Call
22623 maybe_remove_unused_call_args.
22625 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
22627 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
22628 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
22629 * doc/md.texi (fmin@var{m}3): Likewise.
22631 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22633 * match.pd (X & C): New transformation.
22635 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22637 * match.pd (~X & Y): New transformation.
22639 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22641 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
22642 information for new SSA_NAME.
22643 (simplify_conversion_using_ranges): Get range through get_range_info
22644 instead of get_value_range.
22646 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22648 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
22649 Remove inline assembly.
22650 (vmvn_s16): Likewise.
22651 (vmvn_s32): Likewise.
22652 (vmvn_u8): Likewise.
22653 (vmvn_u16): Likewise.
22654 (vmvn_u32): Likewise.
22655 (vmvnq_s8): Likewise.
22656 (vmvnq_s16): Likewise.
22657 (vmvnq_s32): Likewise.
22658 (vmvnq_u8): Likewise.
22659 (vmvnq_u16): Likewise.
22660 (vmvnq_u32): Likewise.
22661 (vmvn_p8): Likewise.
22662 (vmvnq_p16): Likewise.
22664 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22666 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
22668 (vmul_n_s16): Likewise.
22669 (vmul_n_s32): Likewise.
22670 (vmul_n_u16): Likewise.
22671 (vmul_n_u32): Likewise.
22672 (vmulq_n_f32): Likewise.
22673 (vmulq_n_f64): Likewise.
22674 (vmulq_n_s16): Likewise.
22675 (vmulq_n_s32): Likewise.
22676 (vmulq_n_u16): Likewise.
22677 (vmulq_n_u32): Likewise.
22679 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22681 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
22682 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
22684 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22686 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
22687 to *aarch64_fma4_elt_from_dup<mode>.
22688 (*aarch64_fnma4_elt_to_128df): Rename to
22689 *aarch64_fnma4_elt_from_dup<mode>.
22690 * config/aarch64/arm_neon.h (vfma_n_f64): New.
22691 (vfms_n_f32): Likewise.
22692 (vfms_n_f64): Likewise.
22693 (vfmsq_n_f32): Likewise.
22694 (vfmsq_n_f64): Likewise.
22696 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
22698 * wide-int.h: Change fixed_wide_int_storage from class to struct.
22700 2016-05-17 Richard Biener <rguenther@suse.de>
22702 PR tree-optimization/71132
22703 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
22704 Only add control dependences for blocks in the loop.
22705 (build_rdg): Adjust.
22706 (generate_code_for_partition): Return whether loop should
22707 be destroyed and delay that.
22708 (distribute_loop): Likewise.
22709 (pass_loop_distribution::execute): Record loops to be destroyed
22710 and perform delayed destroying of loops.
22712 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22715 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
22717 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22719 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
22721 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
22724 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
22725 insertion point for instructions generated by validize_mem.
22727 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22729 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
22732 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22734 * config/aarch64/aarch64.c
22735 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
22736 rather than a macro.
22738 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
22740 * doc/invoke.texi (AArch64 Options): Various updates.
22742 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22744 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
22745 into instrumentation thunks.
22746 * cif-code.def (CIF_CHKP): New.
22748 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
22750 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
22752 2016-05-16 Martin Jambor <mjambor@suse.cz>
22754 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
22755 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
22757 2016-05-16 Marek Polacek <polacek@redhat.com>
22759 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
22762 2016-05-16 Martin Jambor <mjambor@suse.cz>
22765 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
22766 the outlined kernel function.
22768 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
22770 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
22771 (ISA_HAS_DLSA): Ditto.
22773 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
22775 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
22777 2016-05-16 Nathan Sidwell <nathan@acm.org>
22779 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
22780 (nvptx_name_replacement): Restore. Add comment.
22781 (write_fn_proto, write_fn_proto_from_insn,
22782 nvptx_output_call_insn): Restore
22783 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
22785 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
22787 * config/aarch64/aarch64.md
22788 (add<mode>3_compareC_cconly_imm): Remove use of %w.
22789 (add<mode>3_compareC_imm): Likewise.
22790 (<optab>si3_uxtw): Split into register and immediate variants.
22791 (andsi3_compare0_uxtw): Likewise.
22792 (and<mode>3_compare0): Likewise.
22793 (and<mode>3nr_compare0): Likewise.
22794 (stack_protect_test_<mode>): Don't use %x for memory operands.
22796 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
22798 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
22800 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
22802 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
22803 Split integer shifts into shift_reg and bfm.
22804 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
22805 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
22806 (ror<mode>3_insn): Likewise.
22807 (<optab>si3_insn_uxtw): Likewise.
22808 (<optab><mode>3_insn): Change to rotate_imm.
22809 (extr<mode>5_insn_alt): Likewise.
22810 (extrsi5_insn_uxtw): Likewise.
22811 (extrsi5_insn_uxtw_alt): Likewise.
22813 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
22815 * doc/tm.texi: Regenerate.
22816 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
22817 (TARGET_INVALID_RETURN_TYPE): Remove.
22818 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
22819 TARGET_INVALID_RETURN_TYPE.
22820 * target.def (invalid_parameter_type): Remove.
22821 (invalid_return_type): Remove.
22823 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22825 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
22826 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
22828 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
22830 (preserve_function_body_p): No need to preserve function body
22831 * cif-codes.def (CIF_THUNK): Remove.
22832 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
22834 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22836 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
22838 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22840 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
22843 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22845 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
22846 (inline_small_functions): Do not look for function symbol when
22849 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22851 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
22854 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
22855 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22856 Jiong Wang <jiong.wang@arm.com>
22858 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
22859 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
22860 Define __ARM_FP16_ARGS when appropriate.
22861 * config/arm/arm.c (arm_invalid_parameter_type): Remove
22863 (arm_invalid_return_type): Likewise.
22864 (TARGET_INVALID_PARAMETER_TYPE): Remove.
22865 (TARGET_INVALID_RETURN_TYPE): Remove.
22866 (aapcs_vfp_sub_candidate): Allow HFmode.
22867 (aapcs_vfp_allocate): Add comment. Support HFmode.
22868 (aapcs_vfp_allocate_return_reg): Likewise.
22869 (struct aapcs_cp_arg_layout): Slightly reword comments for
22870 is_return_candidate and allocate_return_reg.
22871 (output_mov_vfp): Update assert.
22872 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
22874 (arm_invalid_parameter_type): Remove.
22875 (amr_invalid_return_type): Remove.
22876 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
22877 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
22878 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
22880 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
22882 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
22883 * config/aarch64/arch64-protos.h
22884 (aarch64_legitimize_reload_address): Remove.
22885 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
22888 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
22890 * configure.ac: Add ACX_NONCANONICAL_HOST.
22891 * configure: Regenerate.
22892 * Makefile.in: Set host_noncanonical.
22894 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
22897 * config/i386/i386.md (*movtf_internal): Before register allocation,
22898 do not allow FP constants for CM_MEDIUM memory model, allow only
22899 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
22900 (*movxf_internal): Ditto.
22901 (*movdf_internal): Ditto.
22902 (*movsf_internal): Ditto.
22904 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22906 PR rtl-optimization/67483
22907 * combine.c (make_compound_operation): Don't call extract_left_shift
22908 with negative shift amounts.
22910 2016-05-13 Jakub Jelinek <jakub@redhat.com>
22913 * fold-const.c (fold_checksum_tree): Allow modification
22914 of TYPE_ALIAS_SET during folding.
22916 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
22917 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
22918 (ix86_split_to_parts): Likewise. Fix up formatting.
22920 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
22922 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
22923 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
22926 2016-05-13 Nathan Sidwell <nathan@acm.org>
22928 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
22929 (nvptx_name_replacement): Delete.
22930 (write_fn_proto, write_fn_proto_from_insn,
22931 nvptx_output_call_insn): Remove nvptx_name_replacement call.
22932 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
22933 * langhooks.c (add_builtin_funcction_common): Call
22934 targetm.mangle_decl_assembler_name.
22936 * config/nvptx/nvptx.c (write_fn_proto): Handle
22937 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
22939 2016-05-13 Martin Liska <mliska@suse.cz>
22941 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
22942 and PRIu64 in printf format.
22944 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22946 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
22949 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22951 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
22952 Change --param max-completely-peeled-times to
22953 --param max-completely-peel-times in dump file printing.
22955 2016-05-13 Richard Biener <rguenther@suse.de>
22957 PR tree-optimization/42587
22958 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
22959 (find_bswap_or_nop_1): Likewise.
22960 (bswap_replace): Likewise.
22962 2016-05-13 Martin Liska <mliska@suse.cz>
22964 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
22965 Initialize a variable with default value.
22967 2016-05-13 Martin Liska <mliska@suse.cz>
22969 * doc/invoke.texi: Enhance explanation of error recovery
22972 2016-05-13 Martin Liska <mliska@suse.cz>
22974 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
22975 (struct cost_pair): Change inv_expr_id (int) to inv_expr
22976 (iv_inv_expr_ent *).
22977 (struct iv_inv_expr_ent): Comment struct fields.
22978 (sort_iv_inv_expr_ent): New function.
22979 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
22980 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
22981 a hash_map between iv_inv_expr_ent and number of usages.
22982 (niter_for_exit): Fix coding style.
22983 (tree_ssa_iv_optimize_init): Use renamed variable.
22984 (determine_base_object): Fix coding style.
22985 (alloc_iv): Likewise.
22986 (find_interesting_uses_outside): Likewise.
22987 (add_candidate_1): Likewise.
22988 (add_standard_iv_candidates): Likewise.
22989 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
22990 (prepare_decl_rtl): Fix coding style.
22991 (get_address_cost): Likewise.
22992 (get_shiftadd_cost): Likewise.
22993 (force_expr_to_var_cost): Likewise.
22994 (compare_aff_trees): Likewise.
22995 (get_expr_id): Restructure the function.
22996 (get_loop_invariant_expr_id): Renamed to
22997 get_loop_invariant_expr.
22998 (get_computation_cost_at): Replace usage of inv_expr_id with
23000 (get_computation_cost): Likewise.
23001 (determine_group_iv_cost_generic): Likewise.
23002 (determine_group_iv_cost_address): Likewise.
23003 (iv_period): Fix coding style.
23004 (iv_elimination_compare_lt): Likewise.
23005 (may_eliminate_iv): Likewise.
23006 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
23008 (determine_group_iv_costs): Dump invariant expressions.
23009 (iv_ca_recount_cost): Use the newly added hash_map.
23010 (iv_ca_set_remove_invariants): Fix coding style.
23011 (iv_ca_set_add_invariants): Fix coding style.
23012 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
23014 (iv_ca_set_cp): Likewise.
23015 (iv_ca_new): Initialize the newly added hash_map and remove
23016 initialization of fields.
23017 (iv_ca_free): Delete the hash_map.
23018 (iv_ca_dump): Dump invariant expressions.
23019 (iv_ca_extend): Fix coding style.
23020 (try_add_cand_for): Likewise.
23021 (create_new_ivs): Dump information about # of avg iterations and
23022 # of used invariant expressions.
23023 (rewrite_use_compare): Fix coding style.
23024 (free_loop_data): Set default value for max_inv_expr_id.
23026 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
23028 * cse.c (rest_of_handle_cse): Use cleanup_cfg
23029 returned value cse_cfg_altered computation.
23030 (rest_of_handle_cse2): Likewise.
23031 (rest_of_handle_cse_after_global_opts): Likewise.
23033 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23036 * config/arm/arm.c (arm32_output_mi_thunk): New.
23037 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
23038 to split Thumb1 vs TARGET_32BIT functionality.
23039 (arm_thumb1_mi_thunk): New.
23041 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23043 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
23046 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23049 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
23051 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
23053 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
23054 (expand_builtin_trap): Emit a regular call.
23055 (set_builtin_user_assembler_name): Remove obsolete cases.
23056 * dse.c (scan_insn): Adjust.
23057 * except.c: Include calls.h.
23058 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
23059 emit a regular call to setjmp.
23060 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
23061 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
23062 (emit_block_move_via_libcall): Delete.
23063 (block_move_fn): Delete.
23064 (init_block_move_fn): Likewise.
23065 (emit_block_move_libcall_fn): Likewise.
23066 (emit_block_op_via_libcall): New function.
23067 (set_storage_via_libcall): Tidy up and use memset builtin.
23068 (block_clear_fn): Delete.
23069 (init_block_clear_fn): Likewise.
23070 (clear_storage_libcall_fn): Likewise.
23071 (expand_assignment): Call emit_block_move_via_libcall.
23072 Do not include gt-expr.h.
23073 * expr.h (emit_block_op_via_libcall): Declare.
23074 (emit_block_copy_via_libcall): New inline function.
23075 (emit_block_move_via_libcall): Likewise.
23076 (emit_block_comp_via_libcall): Likewise.
23077 (block_clear_fn): Delete.
23078 (init_block_move_fn): Likewise.
23079 (init_block_clear_fn): Likewise.
23080 (emit_block_move_via_libcall): Likewise.
23081 (set_storage_via_libcall): Add default parameter value.
23082 * libfuncs.h (enum libfunc_index): Remove obsolete values.
23083 (abort_libfunc): Delete.
23084 (memcpy_libfunc): Likewise.
23085 (memmove_libfunc): Likewise.
23086 (memcmp_libfunc): Likewise.
23087 (memset_libfunc): Likewise.
23088 (setbits_libfunc): Likewise.
23089 (setjmp_libfunc): Likewise.
23090 (longjmp_libfunc): Likewise.
23091 (profile_function_entry_libfunc): Likewise.
23092 (profile_function_exit_libfunc): Likewise.
23093 (gcov_flush_libfunc): Likewise.
23094 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
23095 and DECL_VISIBILITY on the declaration.
23096 (init_optabs): Do not initialize obsolete libfuncs.
23097 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
23098 * tree-core.h (ECF_RET1): Define.
23099 (ECF_TM_PURE): Adjust.
23100 (ECF_TM_BUILTIN): Likewise.
23101 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
23102 (build_common_builtin_nodes): Initialize abort builtin.
23103 Add ECF_RET1 on memcpy, memmove and memset builtins.
23104 Pass final flags for alloca and alloca_with_align builtins.
23105 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
23107 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
23108 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
23109 set_storage_via_libcall and call emit_block_copy_via_libcall.
23111 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
23113 * config/i386/i386.md (*call_got_x32): Change operand 0 to
23114 DImode before it is passed to ix86_output_call_operand.
23115 (*call_value_got_x32): Ditto for operand 1.
23117 2016-05-12 Jiong Wang <jiong.wang@arm.com>
23119 PR rtl-optimization/70904
23120 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
23121 reload for wide mode.
23123 2016-05-12 Marek Polacek <polacek@redhat.com>
23126 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
23127 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
23128 * langhooks.h (incomplete_type_error): Likewise.
23129 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
23130 parameter, pass it down to incomplete_type_error.
23131 * tree.h (size_in_bytes): New inline overload.
23132 (size_in_bytes_loc): Renamed from size_in_bytes.
23134 2016-05-12 Richard Biener <rguenther@suse.de>
23136 PR tree-optimization/71059
23137 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
23138 nary before looking up or entering the expression into the VN
23140 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
23141 Make sure to re-use NARYs without result as inserted by
23144 2016-05-12 Richard Biener <rguenther@suse.de>
23146 PR tree-optimization/71062
23147 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
23149 * tree-ssa-structalias.c (set_uids_in_ptset): Set
23150 vars_contains_restrict if the var is a restrict tag.
23151 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
23152 do not disambiguate pointers against it.
23153 (dump_points_to_solution): Re-structure and adjust for new
23154 vars_contains_restrict flag.
23155 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
23157 2016-05-12 Martin Liska <mliska@suse.cz>
23159 * doc/invoke.texi: Explain connection between
23160 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
23162 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
23164 PR tree-optimization/71006
23165 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
23166 consider COND_EXPR as a mask producer.
23168 2016-05-12 Marek Polacek <polacek@redhat.com>
23171 * opts.c (common_handle_option): Detect missing argument for --help^.
23173 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23176 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
23177 when popping the PC and within an interrupt handler routine.
23178 Add missing tab to output of "ldmfd".
23179 (output_return_instruction): Output LDMFD with SP update rather
23180 than POP when returning from interrupt handler.
23182 2016-05-12 Jakub Jelinek <jakub@redhat.com>
23184 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
23185 TARGET_64BIT && TARGET_AVX512DQ.
23186 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
23187 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
23188 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
23189 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
23190 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
23191 (*vec_extractv4si_zext): Add avx512dq alternative.
23192 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
23193 use v instead of x constraint in other alternatives where possible.
23195 * config/i386/sse.md (sse2_loadld): Use v instead of x
23196 constraint in alternatives 0,1,4.
23198 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
23199 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
23200 v constraints instead of x and <pinsr_evex_isa> isa attribute.
23203 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
23204 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
23205 is not emitted unless TARGET_AVX512BW.
23206 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
23207 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
23208 for the result operand.
23210 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
23211 constraint instead of x in avx alternatives. Use maybe_evex instead
23214 * config/i386/constraints.md (Yv): New constraint.
23215 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
23216 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
23217 * config/i386/i386.md (avx512fvecmode): New mode attr.
23218 (*pushtf): Use v constraint instead of x.
23219 (*movtf_internal): Likewise. For TARGET_AVX512VL and
23220 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
23221 (*absneg<mode>2): Use Yv constraint instead of x constraint.
23222 (*absnegtf2_sse): Likewise.
23223 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
23224 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
23225 avx512f alternatives.
23226 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
23228 2016-05-12 Richard Biener <rguenther@suse.de>
23230 PR tree-optimization/71060
23231 * tree-data-ref.c (initialize_data_dependence_relation): Do not
23232 require exact match of DR_BASE_OBJECT but only matching address and
23235 2016-05-12 Richard Biener <rguenther@suse.de>
23237 PR tree-optimization/70986
23238 * cfganal.c: Include cfgloop.h.
23239 (dfs_find_deadend): Prefer to take edges exiting loops.
23241 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23243 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
23244 compile and run time.
23246 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
23249 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
23251 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
23253 * config/i386/i386.c (legitimize_pic_address): Use
23254 copy_to_suggested_reg instead of gen_movsi.
23256 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23258 * config/rs6000/predicates.md (quad_memory_operand): Move most of
23259 the code into quad_address_p and call it to share code with
23260 vsx_quad_dform_memory_operand.
23261 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
23263 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
23264 bit instead of being a separate word. Split -mpower9-dform into
23265 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
23266 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
23267 for the register class supporting 128-bit quad word memory offsets.
23268 (mode_supports_vsx_dform_quad): Helper function to return if the
23269 register class uses quad word memory offsets.
23270 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
23271 (rs6000_debug_reg_global): Always print if we are using LRA or not.
23272 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
23273 instructions are enabled, set up the appropriate addr_masks for
23275 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
23276 -mpower9-dform-scalar, instead of -mpower9-dform.
23277 (rs6000_option_override_internal): Split -mpower9-dform into two
23278 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
23279 -mpower9-dform switch sets or clears both. If we are not using
23280 the LRA register allocator, do not enable -mpower9-dform-vector by
23281 default. If we are using LRA, enable -mpower9-dform-vector and
23282 -mvsx-timode if it is appropriate. Issue a warning if either
23283 -mpower9-dform-vector or -mvsx-timode are explicitly used without
23285 (quad_address_offset_p): New helper function to return if the
23286 offset is legal for quad word memory instructions.
23287 (quad_address_p): New function to determin if GPR or vector
23288 register quad word memory addresses are legal.
23289 (mem_operand_gpr): Validate quad word address offsets.
23290 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
23291 d-form (register + offset) instructions.
23292 (offsettable_ok_by_alignment): Likewise.
23293 (rs6000_legitimate_offset_address_p): Likewise.
23294 (legitimate_lo_sum_address_p): Likewise.
23295 (rs6000_legitimize_address): Likewise.
23296 (rs6000_legitimize_reload_address): Add more debug statements for
23298 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
23299 d-form instructions.
23300 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
23301 d-form instructions. Distinguish different cases in debug
23302 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
23303 d-form instructions.
23304 (rs6000_preferred_reload_class): Likewise.
23305 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
23306 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
23307 of the ISA 2.06 indexed memory instructions.
23308 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
23309 use them to save/restore the saved vector registers instead of
23310 using Altivec instructions.
23311 (rs6000_emit_epilogue): Likewise.
23312 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
23313 (rs6000_opt_masks): Split -mpower9-dform into
23314 -mpower9-dform-scalar and -mpower9-dform-vector.
23315 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
23317 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
23318 ISA 3.0 vector indexed memory instructions, and fold the code into
23319 the normal mov<mode> patterns.
23320 (p9_vecstore_<mode>): Likewise.
23321 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
23323 (vsx_movti_64bit): Likewise.
23324 (vsx_movti_32bit): Likewise.
23325 * config/rs6000/constraints.md (wO constraint): New constraint for
23326 ISA 3.0 vector d-form support.
23327 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
23328 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
23329 include -mpower9-dform-vector until we switch over to LRA.
23330 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
23331 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
23332 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
23333 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
23334 for -mpower9-dform and -mlra.
23335 * doc/md.texi (wO constraint): Document wO constraint.
23337 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
23339 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
23340 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
23341 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
23342 Move handling of non-insn arguments inline into the sole user:
23343 (output_trans_func): ...here.
23344 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
23345 in emitted function prototype.
23346 (output_internal_insn_latency_func): Ditto. Simplify.
23347 (output_internal_maximal_insn_latency_func): Ditto. Delete
23348 always-unused argument.
23349 (output_insn_latency_func): Ditto.
23350 (output_maximal_insn_latency_func): Ditto.
23352 2016-05-11 Richard Biener <rguenther@suse.de>
23354 PR tree-optimization/71055
23355 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
23356 sth with precision not equal to access size verify we don't chop
23359 2016-05-11 Richard Biener <rguenther@suse.de>
23362 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
23363 (dwarf2out_finish): Move retry_incomplete_types call ...
23364 (dwarf2out_early_finish): ... here.
23366 2016-05-11 Richard Biener <rguenther@suse.de>
23368 PR middle-end/71002
23369 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
23370 if the langhook insists on it.
23371 * fold-const.c (make_bit_field_ref): Add arg for the original
23372 reference and preserve its alias-set.
23373 (decode_field_reference): Take exp by reference and adjust it
23374 to the original memory reference.
23375 (optimize_bit_field_compare): Adjust callers.
23376 (fold_truth_andor_1): Likewise.
23377 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
23379 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
23381 PR middle-end/70807
23382 * cfgrtl.h (delete_insn_and_edges): Now return bool.
23383 * cfgrtl.c (delete_insn_and_edges): Likewise.
23384 * config/i386/i386.c (convert_scalars_to_vector): Remove
23386 * cse.c (cse_insn): Compute cse_cfg_altered.
23387 (delete_trivially_dead_insns): Likewise.
23388 (cse_cc_succs): Likewise.
23389 (rest_of_handle_cse): Free dominance info if required.
23390 (rest_of_handle_cse2): Likewise.
23391 (rest_of_handle_cse_after_global_opts): Likewise.
23393 2016-05-11 Alan Modra <amodra@gmail.com>
23395 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
23396 abi_v4_pass_in_fpr): New functions.
23397 (rs6000_function_arg_boundary): Exclude complex IBM long double
23398 from 64-bit alignment when ABI_V4.
23399 (rs6000_function_arg, rs6000_function_arg_advance_1,
23400 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
23402 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
23404 PR rtl-optimization/71028
23405 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
23406 jump with just a return in the fallthrough block if the branch
23407 block contains just a return as well.
23409 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
23411 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
23412 * match.pd ((X & Y) ^ Y): ... this.
23413 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
23414 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
23416 2016-05-10 David Malcolm <dmalcolm@redhat.com>
23418 * read-md.c (require_char_ws): New function.
23419 (read_string): Simplify using require_char_ws.
23420 (handle_constants): Likewise.
23421 (handle_enum): Likewise.
23422 (handle_file): Likewise.
23423 * read-md.h (require_char_ws): New declaration.
23424 * read-rtl.c (read_conditions): Simplify using require_char_ws.
23425 (read_mapping): Likewise.
23426 (read_rtx_code): Likewise.
23427 (read_nested_rtx): Likewise.
23429 2016-05-10 James Norris <jnorris@codesourcery.com>
23431 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
23432 if offloading is enabled and -fopenacc or -fopenmp is specified.
23433 (CRTOFFLOADEND): Likewise.
23434 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
23435 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
23437 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
23439 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
23440 gotoff_operand code paths. Use copy_to_suggested_regs and
23441 expand_simple_binop where appropriate. Cleanup.
23443 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23446 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
23448 (dimode_scalar_chain::vector_const_cost): New.
23449 (dimode_scalar_chain::compute_convert_gain): Handle constants.
23450 (dimode_scalar_chain::convert_op): Likewise.
23451 (dimode_scalar_chain::convert_insn): Likewise.
23453 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
23455 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
23456 unary operation, not a binary one.
23458 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23460 PR middle-end/70877
23461 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
23462 calls with type casted fndecl.
23464 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23466 PR tree-optimization/70786
23467 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
23468 * calls.c (initialize_argument_information): Bind bounds
23469 with corresponding args passed by reference.
23471 2016-05-10 Jakub Jelinek <jakub@redhat.com>
23474 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
23475 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
23476 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
23479 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23482 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
23483 code for a zero scale factor.
23484 (vsx_xvcvdpuxds_scale): Likewise.
23486 2016-05-10 David Malcolm <dmalcolm@redhat.com>
23488 * diagnostic-show-locus.c (layout::layout): Call show_ruler
23489 if show_ruler_p was set on the context.
23490 (layout::show_ruler): New method.
23491 * diagnostic.h (struct diagnostic_context): Add field
23494 2016-05-10 Richard Biener <rguenther@suse.de>
23496 PR tree-optimization/71039
23497 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
23498 (chk_uses): New function.
23499 (propagate_with_phi): Verify we can safely replicate the lhs of an
23500 aggregate assignment on all incoming edges.
23502 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
23504 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
23506 (rx_atomic_sequence): New class.
23507 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
23508 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
23510 (rx_atomic_sequence::rx_atomic_sequence,
23511 rx_atomic_sequence::~rx_atomic_sequence): New functions.
23512 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
23513 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
23514 CTRLREG_INTB): New constants.
23515 (FETCHOP): New code iterator.
23516 (fethcop_name, fetchop_name2): New iterator code attributes.
23517 (QIHI): New mode iterator.
23518 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
23519 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
23520 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
23522 2016-05-10 Martin Liska <mliska@suse.cz>
23524 * tree-inline.c (remap_dependence_clique): Do not remap
23525 debugging statements.
23527 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23529 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
23530 ("*fixuns_truncdfdi2_z13")
23531 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
23532 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
23533 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
23535 2016-05-10 Richard Biener <rguenther@suse.de>
23537 PR tree-optimization/70497
23538 PR tree-optimization/28367
23539 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
23541 (visit_reference_op_load): ... here.
23542 (vn_reference_lookup_3): Use it to handle subreg-like accesses
23543 with simplified BIT_FIELD_REFs.
23544 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
23545 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
23548 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
23550 * dwarf2out.c (add_abstract_origin_attribute): Adjust
23551 documentation comment. For BLOCK nodes, add a
23552 DW_AT_abstract_origin attribute that points to the DIE generated
23553 for the origin BLOCK.
23554 (gen_lexical_block_die): Call add_abstract_origin_attribute for
23555 blocks from inlined functions.
23557 2016-05-10 Alan Modra <amodra@gmail.com>
23560 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
23561 regrename modifying insns saving lr before __morestack call.
23562 * config/rs6000/rs6000.md (split_stack_return): Similarly for
23563 insns restoring lr after __morestack call.
23565 2016-05-09 Jakub Jelinek <jakub@redhat.com>
23567 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
23568 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
23570 * config/i386/sse.md (vec_interleave_high<mode>,
23571 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
23572 <avx512>_vpermt2var<mode>3_maskz): Likewise.
23574 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
23576 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
23577 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
23578 parallel reassociation for power8 and forward.
23580 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
23582 * config/i386/i386.md (absneg splitters with general regs): Use
23583 general_reg_operand predicate.
23584 (btsq peephole2): Use x86_64_immediate_operand to check if new
23585 value is suitable for immediate operand. Generate emitted insn
23586 using RTL expressions.
23587 (btcq peephole2): Ditto.
23588 (btrq peephole2): Ditto. Generate correct immediate operand
23591 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
23593 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
23596 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
23598 * tree-affine.c (wide_int_constant_multiple_p): Add missing
23599 pointer dereference.
23601 2016-05-09 Richard Biener <rguenther@suse.de>
23603 PR tree-optimization/70985
23604 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
23605 op0 isn't a gimple register.
23607 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
23609 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
23610 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
23611 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
23612 (i6400_fpu_mult): New cpu units.
23613 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
23614 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
23615 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
23616 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
23617 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
23618 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
23619 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
23620 (i6400_msa_long_float4, i6400_msa_long_float5)
23621 (i6400_msa_long_float8, i6400_msa_fdiv_df)
23622 (i6400_msa_fdiv_sf): New reservations.
23623 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
23624 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
23625 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
23626 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
23627 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
23628 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
23629 (msa_short_cmp, msa_short_float2, msa_short_logic3)
23630 (msa_short_store4, msa_long_load, msa_short_store)
23631 (msa_long_logic, msa_long_float2, msa_long_float4)
23632 (msa_long_float5, msa_long_float8, msa_long_mult)
23633 (msa_long_fdiv, msa_long_div): New reservations.
23635 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
23636 Sameera Deshpande <sameera.deshpande@imgtec.com>
23637 Matthew Fortune <matthew.fortune@imgtec.com>
23638 Graham Stott <graham.stott@imgtec.com>
23639 Chao-ying Fu <chao-ying.fu@imgtec.com>
23641 * config.gcc: Add MSA header file for mips*-*-* target.
23642 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
23643 (Ubv8i, Urv8): New constraints.
23644 * config/mips/mips-ftypes.def: Add function types for MSA
23646 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
23647 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
23648 * config/mips/mips-msa.md: New file.
23649 * config/mips/mips-protos.h
23650 (mips_split_128bit_const_insns): New prototype.
23651 (mips_msa_idiv_insns): Likewise.
23652 (mips_split_128bit_move): Likewise.
23653 (mips_split_128bit_move_p): Likewise.
23654 (mips_split_msa_copy_d): Likewise.
23655 (mips_split_msa_insert_d): Likewise.
23656 (mips_split_msa_fill_d): Likewise.
23657 (mips_expand_msa_branch): Likewise.
23658 (mips_const_vector_same_val_p): Likewise.
23659 (mips_const_vector_same_bytes_p): Likewise.
23660 (mips_const_vector_same_int_p): Likewise.
23661 (mips_const_vector_shuffle_set_p): Likewise.
23662 (mips_const_vector_bitimm_set_p): Likewise.
23663 (mips_const_vector_bitimm_clr_p): Likewise.
23664 (mips_msa_vec_parallel_const_half): Likewise.
23665 (mips_msa_output_division): Likewise.
23666 (mips_ldst_scaled_shift): Likewise.
23667 (mips_expand_vec_cond_expr): Likewise.
23668 * config/mips/mips.c (enum mips_builtin_type): Add
23669 MIPS_BUILTIN_MSA_TEST_BRANCH.
23670 (mips_gen_const_int_vector_shuffle): New prototype.
23671 (mips_const_vector_bitimm_set_p): New function.
23672 (mips_const_vector_bitimm_clr_p): Likewise.
23673 (mips_const_vector_same_val_p): Likewise.
23674 (mips_const_vector_same_bytes_p): Likewise.
23675 (mips_const_vector_same_int_p): Likewise.
23676 (mips_const_vector_shuffle_set_p): Likewise.
23677 (mips_symbol_insns): Forbid loading symbols via immediate for
23679 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
23681 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
23683 (mips_lx_address_p): Add support load indexed address for MSA.
23684 (mips_address_insns): Add calculation of instructions needed for
23685 stores and loads for MSA.
23686 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
23687 CONST_VECTOR for MSA and let it fall through.
23688 (mips_ldst_scaled_shift): New function.
23689 (mips_subword_at_byte): Likewise.
23690 (mips_msa_idiv_insns): Likewise.
23691 (mips_legitimize_move): Validate MSA moves.
23692 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
23693 calculation of costs for MSA division.
23694 (mips_split_move_p): Check if MSA moves need splitting.
23695 (mips_split_move): Split MSA moves if necessary.
23696 (mips_split_128bit_move_p): New function.
23697 (mips_split_128bit_move): Likewise.
23698 (mips_split_msa_copy_d): Likewise.
23699 (mips_split_msa_insert_d): Likewise.
23700 (mips_split_msa_fill_d): Likewise.
23701 (mips_output_move): Handle MSA moves.
23702 (mips_expand_msa_branch): New function.
23703 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
23704 Reinstate 'y' modifier.
23705 (mips_file_start): Add MSA .gnu_attribute.
23706 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
23708 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
23709 (mips_class_max_nregs): Add register size for MSA supported mode.
23710 (mips_cannot_change_mode_class): Allow conversion between MSA
23711 vector modes and TImode.
23712 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
23714 (mips_secondary_reload_class): Force MSA loads/stores via memory.
23715 (mips_preferred_simd_mode): Add preffered modes for MSA.
23716 (mips_vector_mode_supported_p): Add MSA supported modes.
23717 (mips_autovectorize_vector_sizes): New function.
23718 (mips_msa_output_division): Likewise.
23719 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
23720 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
23721 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
23722 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
23723 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
23724 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
23725 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
23726 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
23727 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
23728 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
23729 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
23730 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
23731 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
23732 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
23733 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
23734 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
23735 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
23736 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
23737 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
23738 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
23739 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
23740 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
23741 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
23742 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
23743 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
23744 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
23745 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
23746 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
23747 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
23748 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
23749 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
23750 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
23751 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
23752 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
23753 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
23754 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
23755 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
23756 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
23757 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
23758 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
23759 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
23760 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
23761 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
23762 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
23763 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
23764 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
23765 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
23766 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
23767 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
23768 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
23769 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
23770 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
23771 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
23772 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
23773 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
23774 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
23775 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
23776 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
23777 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
23778 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
23779 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
23780 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
23781 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
23782 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
23783 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
23784 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
23785 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
23786 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
23787 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
23788 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
23789 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
23790 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
23791 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
23792 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
23793 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
23794 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
23795 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
23796 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
23797 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
23798 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
23799 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
23800 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
23801 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
23802 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
23803 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
23804 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
23805 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
23806 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
23807 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
23808 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
23809 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
23810 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
23811 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
23812 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
23813 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
23814 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
23815 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
23816 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
23817 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
23818 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
23819 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
23820 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
23821 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
23822 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
23823 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
23824 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
23825 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
23826 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
23827 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
23828 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
23829 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
23830 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
23831 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
23832 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
23833 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
23834 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
23835 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
23836 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
23837 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
23838 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
23839 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
23840 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
23841 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
23842 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
23843 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
23844 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
23845 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
23846 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
23847 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
23848 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
23849 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
23850 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
23851 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
23852 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
23853 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
23854 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
23855 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
23856 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
23857 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
23858 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
23859 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
23860 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
23861 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
23862 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
23863 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
23864 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
23865 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
23866 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
23867 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
23868 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
23869 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
23871 (mips_get_builtin_decl_index): New array.
23872 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
23873 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
23874 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
23875 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
23876 (mips_init_builtins): Initialize mips_get_builtin_decl_index
23878 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
23880 (mips_expand_builtin_insn): Prepare operands for
23881 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
23882 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
23883 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
23884 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
23885 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
23886 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
23887 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
23888 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
23889 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
23890 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
23891 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
23892 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
23893 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
23894 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
23895 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
23896 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
23897 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
23898 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
23899 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
23900 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
23901 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
23902 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
23903 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
23904 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
23905 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
23906 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
23907 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
23908 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
23909 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
23910 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
23911 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
23912 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
23913 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
23914 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
23915 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
23916 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
23917 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
23918 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
23919 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
23920 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
23921 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
23922 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
23923 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
23924 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
23925 These are set implicitly and an error is reported if overridden.
23926 (mips_expand_builtin_msa_test_branch): New function.
23927 (mips_expand_msa_shuffle): Likewise.
23928 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
23929 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
23930 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
23931 (mips_expand_vec_unpack): Add support for MSA.
23932 (mips_expand_vector_init): Likewise.
23933 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
23934 instead of const0_rtx.
23935 (mips_msa_vec_parallel_const_half): New function.
23936 (mips_gen_const_int_vector): Likewise.
23937 (mips_gen_const_int_vector_shuffle): Likewise.
23938 (mips_expand_msa_cmp): Likewise.
23939 (mips_expand_vec_cond_expr): Likewise.
23940 * config/mips/mips.h
23941 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
23942 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
23944 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
23945 (ISA_HAS_MSA): New macro.
23946 (UNITS_PER_MSA_REG): Likewise.
23947 (BITS_PER_MSA_REG): Likewise.
23948 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
23949 (MSA_REG_FIRST): New macro.
23950 (MSA_REG_LAST): Likewise.
23951 (MSA_REG_NUM): Likewise.
23952 (MSA_REG_P): Likewise.
23953 (MSA_REG_RTX_P): Likewise.
23954 (MSA_SUPPORTED_MODE_P): Likewise.
23955 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
23956 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
23957 * config/mips/mips.md: Include mips-msa.md.
23958 (alu_type): Add simd_add.
23959 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
23960 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
23961 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
23962 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
23963 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
23964 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
23965 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
23966 simd_move, simd_load, simd_store. Choose "multi" for moves
23968 (qword_mode): New attribute.
23969 (insn_count): Add instruction count for quad moves.
23970 Increase the count for MIPS SIMD division.
23971 (UNITMODE): Add UNITMODEs for vector types.
23972 (addsub): New code iterator.
23973 * config/mips/mips.opt (mmsa): New option.
23974 * config/mips/msa.h: New file.
23975 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
23977 * config/mips/mti-linux.h: Likewise.
23978 * config/mips/predicates.md
23979 (const_msa_branch_operand): New constraint.
23980 (const_uimm3_operand): Likewise.
23981 (const_uimm4_operand): Likewise.
23982 (const_uimm5_operand): Likewise.
23983 (const_uimm8_operand): Likewise.
23984 (const_imm5_operand): Likewise.
23985 (aq10b_operand): Likewise.
23986 (aq10h_operand): Likewise.
23987 (aq10w_operand): Likewise.
23988 (aq10d_operand): Likewise.
23989 (const_m1_operand): Likewise.
23990 (reg_or_m1_operand): Likewise.
23991 (const_exp_2_operand): Likewise.
23992 (const_exp_4_operand): Likewise.
23993 (const_exp_8_operand): Likewise.
23994 (const_exp_16_operand): Likewise.
23995 (const_vector_same_val_operand): Likewise.
23996 (const_vector_same_simm5_operand): Likewise.
23997 (const_vector_same_uimm5_operand): Likewise.
23998 (const_vector_same_uimm6_operand): Likewise.
23999 (const_vector_same_uimm8_operand): Likewise.
24000 (par_const_vector_shf_set_operand): Likewise.
24001 (reg_or_vector_same_val_operand): Likewise.
24002 (reg_or_vector_same_simm5_operand): Likewise.
24003 (reg_or_vector_same_uimm6_operand): Likewise.
24004 * doc/extend.texi (MIPS SIMD Architecture Functions): New
24006 * doc/invoke.texi (-mmsa): Document new option.
24008 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24010 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
24011 * configure: Regenerate.
24012 * config.in: Regenerate.
24013 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
24014 on -fvtable-verify.
24015 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
24016 (ENDFILE_VTV_SPEC): Define.
24018 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
24020 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
24021 registers in all interrupt handlers if necessary.
24022 (rl78_option_override): Add warning.
24023 (MUST_SAVE_MDUC_REGISTERS): New macro.
24024 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
24025 * config/rl78/rl78.c (check_mduc_usage): New function.
24026 (mduc_regs): New structure to hold MDUC register data.
24027 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
24028 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
24029 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
24030 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
24031 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
24032 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
24034 2016-05-09 Bin Cheng <bin.cheng@arm.com>
24036 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
24037 (tree-ssa-loop-niter.h): Ditto.
24038 (idx_within_array_bound, ref_within_array_bound): New functions.
24039 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
24040 Factor out check on writable base object to ...
24041 (base_object_writable): ... here.
24043 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24045 * config/arm/arm.md (probe_stack): Add modes to set source
24048 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
24050 * regrename.c (base_reg_class_for_rename): New static function.
24051 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
24053 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
24055 * cgraph.c (thunk_adjust): Export.
24056 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
24057 * cgraphunit.c (thunk_adjust): Export.
24058 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
24060 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
24062 * tree-inline.c (expand_call_inline): Expand thunks inline.
24064 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
24067 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
24068 (*sse2_vd_cvtss2sd): Ditto.
24069 * config/i386/i386.md
24070 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
24071 Generate *sse2_vd_cvtsd2ss pattern.
24072 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
24073 Generate *sse2_vd_cvtss2sd pattern.
24075 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
24077 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
24078 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
24081 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
24083 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
24084 * config/sh/sh.c: Define and declare variables on first use throughout
24086 (current_function_interrupt): Change to bool type.
24087 (frame_insn): Rename to emit_frame_insn and update users.
24088 (push_regs): Use bool for 'interrupt_handler' argument.
24089 (save_schedule_s): Remove.
24090 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
24091 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
24092 targetm.asm_out.unaligned_op.di.
24093 (gen_far_branch): Remove redundant forward declaration.
24094 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
24095 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
24096 (sh_set_return_address, sh_function_ok_for_sibcall,
24097 scavenge_reg): Update comments.
24098 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
24099 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
24100 (sh_attr_renesas_p): Remove unnecessary parentheses.
24101 (branch_dest): Simplify.
24102 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
24103 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
24104 (CUMULATIVE_ARGS): Change macro to typedef.
24105 (current_function_interrupt): Change to bool type.
24106 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
24107 Surround with __cplusplus ifdef.
24108 (sh_compare_op0, sh_compare_op1): Remove.
24109 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
24111 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
24113 * config/arm/arm.md (arch): Add neon.
24114 (arch_enabled): Return yes for arch neon when TARGET_NEON.
24115 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
24116 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
24117 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
24118 attributes for alt renumbering. Mark alt 3 as non-predicable.
24119 (thumb2_movdf_vfp): Likewise.
24121 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
24123 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
24124 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
24125 (*andqi_1): Add preferred_for_speed attribute to disparage
24126 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
24127 (*<code>qi_1): Ditto.
24128 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
24129 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
24130 (*ashlqi3_1): Ditto.
24131 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
24132 Add preferred_for_size attribute to disparage alternative 0 and
24133 preferred_for_speed attribute to disparage alternative 1 for
24134 TARGET_PARTIAL_REG_STALL targets.
24136 2016-05-07 Tom de Vries <tom@codesourcery.com>
24138 PR tree-optimization/70956
24139 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
24142 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
24144 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
24145 * config/sh/sh.c (sh_cbranch_distance): Implement it.
24146 * config/sh/sh.md (branch_zero): Remove define_attr.
24147 (define_delay): Disable delay slot if branch distance is one insn.
24149 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24151 * config/i386/i386.md (LEAMODE): New mode attribute.
24152 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
24153 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
24154 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
24155 operand 2 predicate.
24156 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
24157 (*lea<mode>_general_3): Ditto.
24158 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
24160 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24162 * genmddump.c (main): Convert argv from char ** to const char **.
24164 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24166 * coretypes.h (OVERRIDE): New macro.
24167 (FINAL): New macro.
24169 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
24171 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
24172 allow coalescing if the types are compatible.
24174 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24176 * pass_manager.h (pass_manager::register_pass_name): New method.
24177 (pass_manager::get_pass_by_name): New method.
24178 (pass_manager::create_pass_tab): New method.
24179 (pass_manager::m_name_to_pass_map): New field.
24180 * passes.c (name_to_pass_map): Delete global in favor of field
24181 "m_name_to_pass_map" of pass_manager.
24182 (register_pass_name): Rename from a function to...
24183 (pass_manager::register_pass_name): ...this method, updating
24184 for renaming of global "name_to_pass_map" to field
24185 "m_name_to_pass_map".
24186 (create_pass_tab): Rename from a function to...
24187 (pass_manager::create_pass_tab): ...this method, updating
24188 for renaming of global "name_to_pass_map" to field.
24189 (get_pass_by_name): Rename from a function to...
24190 (pass_manager::get_pass_by_name): ...this method.
24191 (enable_disable_pass): Convert use of get_pass_by_name to
24192 a method call, locating the pass_manager singleton.
24194 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24196 * genattr-common.c (main): Convert argv from char ** to const char **.
24197 * genattr.c (main): Likewise.
24198 * genattrtab.c (main): Likewise.
24199 * genautomata.c (initiate_automaton_gen): Likewise.
24201 * gencodes.c (main): Likewise.
24202 * genconditions.c (main): Likewise.
24203 * genconfig.c (main): Likewise.
24204 * genconstants.c (main): Likewise.
24205 * genemit.c (main): Likewise.
24206 * genenums.c (main): Likewise.
24207 * genextract.c (main): Likewise.
24208 * genflags.c (main): Likewise.
24209 * genmddeps.c (main): Likewise.
24210 * genopinit.c (main): Likewise.
24211 * genoutput.c (main): Likewise.
24212 * genpeep.c (main): Likewise.
24213 * genpreds.c (main): Likewise.
24214 * genrecog.c (main): Likewise.
24215 * gensupport.c (init_rtx_reader_args_cb): Likewise.
24216 (init_rtx_reader_args): Likewise.
24217 * gensupport.h (init_rtx_reader_args_cb): Likewise.
24218 (init_rtx_reader_args): Likewise.
24219 * gentarget-def.c (main): Likewise.
24220 * read-md.c (read_md_files): Likewise.
24221 * read-md.h (read_md_files): Likewise.
24223 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24225 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
24226 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
24227 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
24228 Remove unused predicate.
24229 (register_and_not_fp_reg_operand): Ditto.
24231 2016-05-06 Martin Liska <mliska@suse.cz>
24233 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
24234 instead of vec as the vector is local to the function.
24236 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24238 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
24239 avx512bw alternative.
24241 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
24242 before the ashr<mode>3 pattern.
24244 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
24245 v instead of x in vex or maybe_vex alternatives, use
24246 maybe_evex instead of vex in prefix.
24248 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
24249 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
24250 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
24251 in vex or maybe_vex alternatives, use maybe_evex instead of vex
24254 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
24255 v instead of x in vex or maybe_vex alternatives, use
24256 maybe_evex instead of vex in prefix.
24258 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
24259 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
24260 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
24261 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
24262 alternatives, use maybe_evex instead of vex in prefix.
24264 * config/i386/sse.md (vec_interleave_lowv4sf,
24265 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
24266 v instead of x in vex or maybe_vex alternatives, use
24267 maybe_evex instead of vex in prefix.
24269 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
24270 v instead of x in vex or maybe_vex alternatives, use
24271 maybe_evex instead of vex in prefix.
24273 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
24274 v constraint instead of x.
24276 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
24278 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
24279 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
24282 2016-05-06 Richard Biener <rguenther@suse.de>
24284 PR tree-optimization/70948
24285 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24286 Properly clobber all fields of va_list for __builtin_va_start.
24288 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
24291 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
24292 loop latch destination.
24294 2016-05-06 Martin Liska <mliska@suse.cz>
24296 * tree-ssa-uninit.c: Apply manual changes
24297 to the GNU coding style.
24298 (prune_uninit_phi_opnds): Rename from
24299 prune_uninit_phi_opnds_in_unrealizable_paths.
24301 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24303 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
24304 mspace): Remove deprecated options.
24305 * doc/invoke.texi (SH options): Remove -mspace.
24307 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24309 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
24311 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24313 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
24314 corresponding combine split pattern.
24316 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24319 * config/sh/predicates.md (long_displacement_mem_operand): New.
24320 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
24321 Add movi20, movi20s alternatives. Adjust length attribute for
24323 (movsi_ie): Allow for any FPU. Adjust length attribute for
24325 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
24326 attribute for alternatives.
24327 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
24328 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
24329 length attribute for alternatives.
24331 2016-05-06 Richard Biener <rguenther@suse.de>
24333 PR tree-optimization/70960
24334 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
24336 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24339 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
24340 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
24342 2016-05-06 Marek Polacek <polacek@redhat.com>
24345 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
24347 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24350 * config/sh/sh.md (*rotcr): Add another variant.
24352 2016-05-06 Richard Biener <rguenther@suse.de>
24354 PR middle-end/70931
24355 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
24357 2016-05-06 Richard Biener <rguenther@suse.de>
24359 PR middle-end/70941
24360 * fold-const.c (split_tree): Always convert to the original type
24363 2016-05-06 Richard Biener <rguenther@suse.de>
24365 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
24366 (fwprop_addr): Likewise.
24368 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24371 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
24373 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
24374 * config/i386/i386.md (push mem splitter): Use find_constant_src in
24375 the splitter condition.
24376 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
24377 the splitter condition.
24378 (FP float_extend load splitter): Ditto.
24380 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
24382 * config/i386/i386.md (peehole2 patterns): Change true_regnum
24383 to REGNO in all peephole2 patterns.
24384 (post-reload splitters): Change true_regnum to REGNO in
24385 post-reload splitters.
24386 (zero_extend splitters): Use general_reg_operand and
24387 nonimmediate_gr_operand predicates.
24389 2016-05-05 Jakub Jelinek <jakub@redhat.com>
24391 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
24392 v constraint instead of x.
24394 2016-05-05 Alan Modra <amodra@gmail.com>
24397 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
24398 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
24399 TARGET_NO_FP_IN_TOC for -mrelocatable.
24400 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
24401 TARGET_RELOCATABLE test.
24402 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24403 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24404 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
24405 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24406 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24407 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
24408 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24409 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24410 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
24411 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
24413 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
24414 (rs6000_stack_info): Likewise.
24415 (rs6000_elf_asm_out_constructor): Likewise.
24416 (rs6000_elf_asm_out_destructor): Likewise.
24417 (rs6000_elf_declare_function_name): Likewise.
24418 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
24419 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
24422 2016-05-05 Alan Modra <amodra@gmail.com>
24424 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
24426 2016-05-05 Alan Modra <amodra@gmail.com>
24428 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
24429 out-of-line gpr restore for one or two regs if that would add
24432 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
24435 * config/i386/i386.md
24436 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
24437 Change to post-epilogue_completed late splitter. Use sse_reg_operand
24438 as operand 0 predicate.
24439 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
24441 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
24442 Ditto. Emit the pattern using RTX.
24444 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
24445 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
24446 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
24447 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
24449 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
24450 sse_reg_operand as operand 0 predicate.
24452 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
24453 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
24454 instead of gen_rtx_REG.
24455 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
24458 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24460 * function.c (emit_use_return_register_into_block): Delete.
24461 (gen_return_pattern): Delete.
24462 (emit_return_into_block): Delete.
24463 (active_insn_between): Delete.
24464 (convert_jumps_to_returns): Delete.
24465 (emit_return_for_exit): Delete.
24466 (thread_prologue_and_epilogue_insns): Delete all code dealing with
24467 simple_return for shrink-wrapped blocks.
24468 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
24469 end of blocks that need one.
24470 (get_unconverted_simple_return): Delete.
24471 (convert_to_simple_return): Delete.
24472 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
24473 (convert_to_simple_return): Ditto.
24475 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24477 * cfgcleanup.c (bb_is_just_return): New function.
24478 (try_optimize_cfg): Simplify jumps to return, branches to return,
24479 and branches around return.
24481 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24483 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
24484 branch to a return.
24486 2016-05-04 Jakub Jelinek <jakub@redhat.com>
24490 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
24491 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
24492 assert flags & OEP_HASH_CHECK, instead of asserting it
24493 never happens. Handle TARGET_EXPR.
24494 * fold-const.c (operand_equal_p): For hash verification,
24495 or in OEP_HASH_CHECK into flags.
24497 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
24499 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
24501 (compute_samebase_partition_bases): Fix typo.
24503 2016-05-04 Jakub Jelinek <jakub@redhat.com>
24505 * config/i386/sse.md (vec_interleave_highv8sf,
24506 vec_interleave_lowv8sf, vec_interleave_highv4df,
24507 vec_interleave_lowv4df): Remove constraints from expanders.
24509 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
24511 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
24513 * tree-inline.c (expand_call_inline): Fix path dealing with
24514 making lhs of call statement undefined.
24516 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
24518 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24519 Check availability on NODE, too.
24520 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
24521 (cgraph_node::call_for_symbol_and_aliases): Likewise.
24522 (varpool_node::call_for_symbol_and_aliase): Likewise.
24523 * ipa-pure-const.c (add_new_function): Analyze all bodies.
24524 (propagate_pure_const): Propagate across interposable functions, too.
24525 (skip_function_for_local_pure_const): Do not skip interposable bodies
24527 (pass_local_pure_const::execute): Update.
24529 2016-05-04 Marek Polacek <polacek@redhat.com>
24531 * doc/invoke.texi: Document -Wdangling-else.
24533 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
24535 * config.gcc: Error out when conflicting multilib is detected. Do not
24536 loop over multilibs since no combination is legal.
24538 2016-05-04 Alan Modra <amodra@gmail.com>
24540 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
24541 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
24542 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
24545 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
24547 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
24548 Clean up p5600 comments.
24550 2016-05-04 Richard Biener <rguenther@suse.de>
24552 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
24553 constructor simplifications.
24554 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
24556 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
24558 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
24559 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
24560 result.set_rtx is null instead of aborting.
24561 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
24563 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
24564 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
24565 *mov<mode>_store_postinc): New patterns.
24567 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
24569 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
24570 as commutative. Check both conversions are NOP.
24571 ((A & B) OP (C & B)): Remove.
24573 2016-05-04 Alan Modra <amodra@gmail.com>
24575 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
24577 2016-05-04 Alan Modra <amodra@gmail.com>
24580 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
24581 when cr2,3,4 are all fixed regs.
24583 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
24585 PR rtl-optimization/57193
24586 * opts.c (default_options_table): Revert OPT_frename_registers change.
24587 * doc/invoke.texi (-frename-registers, -O2): Likewise.
24589 2016-05-03 Martin Sebor <msebor@redhat.com>
24592 * builtins.c (fold_builtin_FILE): New function.
24593 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
24594 (fold_builtin_0): Call them.
24595 * gimplify.c (gimplify_call_expr): Remove the handling of
24596 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
24599 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
24600 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
24604 * doc/extend.texi (Function Names as Strings): Update __func__,
24605 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
24608 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24609 Richard Biener <rguenther@suse.de>
24611 PR tree-optimization/70916
24612 * tree-if-conv.c: Include cfganal.h.
24613 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
24614 and remove_fake_exit_edges around the optimization pass.
24616 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
24618 * cgraph.c (symbol_table::create_edge): Set inline_failed.
24619 (cgraph_edge::make_direct): Likewise.
24620 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
24621 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
24622 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
24623 (CIF_THUNK): New code.
24624 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
24625 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
24626 (compute_inline_parameters): Set inline_failed for thunks.
24627 (inline_analyze_function): Cleanup.
24628 * ipa-inline.c (can_inline_edge_p): Do not deal with
24629 call_stmt_cannot_inline_p.
24630 (can_early_inline_edge_p): Likewise.
24631 (early_inliner): Initialize inline_failed.
24632 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
24634 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
24636 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
24637 from nonimm_ssenomem_operand.
24638 (nonimm_ssenomem_operand): New predicate.
24639 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
24640 as operand 0 predicate.
24641 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
24642 Disable unsupported alternatives using "enabled" attribute.
24643 Use register_ssemem_operand as operand 0 predicate.
24644 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
24646 2016-05-03 Marek Polacek <polacek@redhat.com>
24649 * input.c (expansion_point_location): New function.
24650 * input.h (expansion_point_location): Declare.
24652 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
24654 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
24655 occurence with frame_offset_ ones.
24657 2016-05-03 Alan Modra <amodra@gmail.com>
24659 PR rtl-optimization/70890
24660 * ira.c (combine_and_move_insns): When moving def_insn, remove
24661 equivs on use_insn.
24663 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
24665 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
24666 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
24667 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
24668 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
24670 2016-05-03 Alan Modra <amodra@gmail.com>
24672 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
24673 for SAVE_MULTIPLE/STORE_MULTIPLE.
24675 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24677 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
24678 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
24680 2016-05-03 Richard Biener <rguenther@suse.de>
24682 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
24684 (gimplify_arg): Likewise.
24685 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
24686 re-writing the result to a decl if required.
24687 (internal_get_tmp_var): Add allow_ssa parameter
24688 and override into_ssa with it.
24689 (get_formal_tmp_var): Adjust.
24690 (get_initialized_tmp_var): Add allow_ssa parameter.
24691 (gimplify_arg): Add allow_ssa parameter and avoid generating
24692 SSA names for the result false.
24693 (gimplify_call_expr): If the call may return twice do not
24694 gimplify parameters into SSA.
24695 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
24696 (gimplify_modify_expr): Adjust assert. For noreturn calls
24697 with a SSA name LHS adjust its def.
24698 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
24699 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
24700 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
24701 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
24702 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
24703 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
24704 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
24705 (optimize_target_teams): Do not allow SSA names for clause operands.
24706 (gimplify_expr): Likewise for where we mark the result addressable.
24707 * passes.def (pass_init_datastructures): Remove.
24708 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
24709 (rewrite_stmt): Likewise.
24710 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
24711 (replace_locals_op): Replace SSA names.
24712 (copy_gimple_seq_and_replace_locals): Init src_cfun.
24713 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
24714 * cgraph.c (release_function_body): Free CFG annotations only
24715 when we have a CFG. Simplify.
24716 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
24717 force_gimple_operand instead of get_initialized_tmp_var.
24718 * tree-pass.h (make_pass_init_datastructures): Remove.
24719 * tree-ssa.c (execute_init_datastructures): Remove.
24720 (pass_data_init_datastructures): Likewise.
24721 (class pass_init_datastructures): Likewise.
24722 (make_pass_init_datastructures): Likewise.
24723 * omp-low.c (create_omp_child_function): Init SSA data structures.
24724 (grid_expand_target_grid_body): Likewise.
24725 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
24726 name before adding it to names_to_release.
24727 (remove_bb): Always release SSA defs.
24728 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
24729 before dereferencing it.
24730 * cgraphunit.c (init_lowered_empty_function): Always
24731 int SSA data structures.
24732 * tree-ssanames.c (release_defs): Remove assert that we are in
24734 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
24736 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24737 Uros Bizjak <ubizjak@gmail.com>
24739 PR rtl-optimization/70467
24740 * config/i386/predicates.md (x86_64_hilo_int_operand,
24741 x86_64_hilo_general_operand): New predicates.
24742 * config/i386/constraints.md (Wd): New constraint.
24743 * config/i386/i386.md (mode attr di): Use Wd instead of e.
24744 (general_hilo_operand): New mode attr.
24745 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
24746 instead of <general_operand>.
24747 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
24748 x86_64_hilo_general_operand instead of <general_operand>.
24750 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24752 PR tree-optimization/70916
24753 * tree-if-conv.c (constant_or_ssa_name): Removed.
24754 (fold_build_cond_expr): Use is_gimple_val instead of
24755 constant_or_ssa_name.
24757 PR tree-optimization/70916
24758 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
24759 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
24762 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
24763 (optimize_atomic_bit_test_and): New function.
24764 (pass_fold_builtins::execute): Use it.
24765 * optabs.def (atomic_bit_test_and_set_optab,
24766 atomic_bit_test_and_complement_optab,
24767 atomic_bit_test_and_reset_optab): New optabs.
24768 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
24769 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
24770 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
24771 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
24772 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
24773 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
24774 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
24775 * doc/md.texi (atomic_bit_test_and_set@var{mode},
24776 atomic_bit_test_and_complement@var{mode},
24777 atomic_bit_test_and_reset@var{mode}): Document.
24778 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
24779 atomic_bit_test_and_complement<mode>,
24780 atomic_bit_test_and_reset<mode>): New expanders.
24781 (atomic_bit_test_and_set<mode>_1,
24782 atomic_bit_test_and_complement<mode>_1,
24783 atomic_bit_test_and_reset<mode>_1): New insns.
24785 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
24787 PR rtl-optimization/70687
24788 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
24789 instead of unsigned HOST_WIDE_INT.
24791 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
24793 PR rtl-optimization/44281
24794 * hard-reg-set.h (struct target_hard_regs): New field
24795 x_fixed_nonglobal_reg_set.
24796 (fixed_nonglobal_reg_set): New macro.
24797 * reginfo.c (init_reg_sets_1): Initialize it.
24798 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
24800 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
24802 2016-05-03 Bin Cheng <bin.cheng@arm.com>
24804 PR tree-optimization/56541
24805 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
24806 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
24807 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
24808 (any_complicated_phi): new static variable.
24809 (aggressive_if_conv): delete.
24810 (if_convertible_phi_p): support phis with more than two arguments.
24811 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
24812 critical pred edges.
24813 (ifcvt_split_critical_edges): support phis with more than two
24814 arguments by checking new parameter. only split critical edges
24816 (tree_if_conversion): handle simd pragma marked loop using new
24817 local variable aggressive_if_conv. check any_complicated_phi.
24819 2016-05-03 Bin Cheng <bin.cheng@arm.com>
24821 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
24824 2016-05-03 Bin Cheng <bin.cheng@arm.com>
24826 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
24829 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24831 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
24832 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
24833 define_insn_and_split.
24834 (mulsi3_i): New define_insn_and_split.
24835 (mulsi3_call): Convert to define_insn.
24836 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
24837 Remove constraints.
24839 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24841 * machmode.h (mode_complex): Add support to give the complex mode
24843 (GET_MODE_COMPLEX_MODE): Likewise.
24844 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
24845 stored by build_complex_type and gfc_build_complex_type instead of
24846 trying to figure out the appropriate mode based on the size. Raise
24847 an assertion error, if the type was not set.
24848 * genmodes.c (struct mode_data): Add field for the complex type of
24850 (blank_mode): Likewise.
24851 (make_complex_modes): Remember the complex mode created in the
24853 (emit_mode_complex): Write out the mode_complex array to map a
24854 type mode to the complex version.
24855 (emit_insn_modes_c): Likewise.
24856 * tree.c (build_complex_type): Set the complex type to use before
24857 calling layout_type.
24858 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
24859 support for __float128 complex datatypes.
24860 (rs6000_hard_regno_mode_ok): Likewise.
24861 (rs6000_setup_reg_addr_masks): Likewise.
24862 (rs6000_complex_function_value): Likewise.
24863 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
24864 __float128 and __ibm128 complex.
24865 (FLOAT128_IBM_P): Likewise.
24866 (ALTIVEC_ARG_MAX_RETURN): Likewise.
24867 * doc/extend.texi (Additional Floating Types): Document that
24868 -mfloat128 must be used to enable __float128. Document complex
24869 __float128 and __ibm128 support.
24871 2016-05-02 Jakub Jelinek <jakub@redhat.com>
24874 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
24875 char/short arguments promoted to int because of promote_prototypes.
24877 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
24879 * config/i386/predicates.md (register_ssemem_operand): New predicate.
24880 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
24881 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
24882 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
24883 alternatives using "enabled" attribute. Use register_ssemem_operand
24884 as operand 1 predicate.
24885 (*cmpi<unord>xf_i387): Split XFmode pattern from
24886 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
24887 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
24888 *absneg<mode>2_i387. Disable unsupported alternatives using
24889 "enabled" attribute.
24890 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
24892 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
24894 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
24896 (oacc_loop_process): Check mask for loop termination.
24898 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
24900 * cif-code.def (CIF_THUNK): Add.
24901 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
24904 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
24906 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
24907 (dump_inline_summary): Dump it.
24908 (fp_expression_p): New predicate.
24909 (estimate_function_body_sizes): Use it.
24910 (inline_merge_summary): Merge fp_expressions.
24911 (inline_read_section): Read fp_expressions.
24912 (inline_write_summary): Write fp_expressions.
24913 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
24914 codegen boundary if either caller or callee is !fp_expressions.
24915 * ipa-inline.h (inline_summary): Add fp_expressions.
24916 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
24917 to fp_expressions be sure the fp generation flags are updated.
24919 2016-05-02 Jakub Jelinek <jakub@redhat.com>
24921 PR rtl-optimization/70467
24922 * cse.c (cse_insn): Handle no-op MEM moves after folding.
24924 PR rtl-optimization/70467
24925 * ipa-pure-const.c (check_call): Handle internal calls even in
24926 ipa mode like in local mode.
24928 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
24930 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
24932 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
24934 * match.pd (X u< X, X u> X): New transformations.
24936 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
24938 * flag-types.h (enum warn_strict_overflow_code): Move ...
24939 * coretypes.h: ... here.
24940 * fold-const.h (fold_overflow_warning): Declare.
24941 * fold-const.c (fold_overflow_warning): Make non-static.
24942 (fold_comparison): Move the transformation of X +- C1 CMP C2
24943 into X CMP C2 -+ C1 ...
24944 * match.pd: ... here.
24945 * gimple-fold.c (fold_stmt_1): Protect with
24946 fold_defer_overflow_warnings.
24948 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
24950 * omp-low.c (struct oacc_loop): Add 'inner' field.
24951 (new_oacc_loop_raw): Initialize it to zero.
24952 (oacc_loop_fixed_partitions): Initialize it.
24953 (oacc_loop_auto_partitions): Partition outermost loop to outermost
24954 available partitioning.
24956 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
24958 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
24960 (umulsidi3): Likewise.
24961 (indirect_jump): Fix jump instruction assembly patterns.
24963 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
24966 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
24967 (nvptx_function_value): Assert non-NULL cfun.
24969 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
24971 PR rtl-optimization/70886
24972 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
24974 * cselib.h (rtx_equal_for_cselib_1): Declare.
24975 (rtx_equal_for_cselib_p: New inline function.
24976 * cselib.c (rtx_equal_for_cselib_p): Delete.
24977 (rtx_equal_for_cselib_1): Make public.
24979 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
24981 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
24982 (register_mixssei387nonimm_operand): Remove predicate.
24983 * config/i386/i386.md (*fop_<mode>_comm): Merge from
24984 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
24985 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
24986 for TARGET_MIX_SSE_I387 alternatives.
24987 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
24988 Disable unsupported alternatives using "enabled" attribute. Use
24989 nonimm_ssenomem_operand as operand 1 predicate. Also check
24990 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
24992 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
24994 * tree.c (cst_and_fits_in_hwi): Simplify.
24996 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
24998 * tree.h (wi::to_wide): New function.
24999 * expr.c (expand_expr_real_1): Use wi::to_wide.
25000 * fold-const.c (int_const_binop_1): Likewise.
25001 (extract_muldiv_1): Likewise.
25003 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25005 * wide-int.h: Update offset_int and widest_int documentation.
25006 (WI_SIGNED_SHIFT_RESULT): New macro.
25007 (wi::binary_shift): Define signed_shift_result_type for
25008 shifts on offset_int- and widest_int-like types.
25009 (generic_wide_int): Support <<= and >>= if << and >> are supported.
25010 * tree.h (int_bit_position): Use shift operators instead of wi::
25012 * alias.c (adjust_offset_for_component_ref): Likewise.
25013 * expr.c (get_inner_reference): Likewise.
25014 * fold-const.c (fold_comparison): Likewise.
25015 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
25016 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
25017 * tree-dfa.c (get_ref_base_and_extent): Likewise.
25018 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25019 (stmt_kills_ref_p): Likewise.
25020 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
25021 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
25022 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
25023 (ao_ref_init_from_vn_reference): Likewise.
25025 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25027 * wide-int.h: Update offset_int and widest_int documentation.
25028 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
25029 (wi::binary_traits): Allow ordered comparisons between offset_int and
25030 offset_int, between widest_int and widest_int, and between either
25031 of these types and basic C types.
25032 (operator <, <=, >, >=): Define for the same combinations.
25033 * tree.h (tree_int_cst_lt): Use comparison operators instead
25034 of wi:: comparisons.
25035 (tree_int_cst_le): Likewise.
25036 * gimple-fold.c (fold_array_ctor_reference): Likewise.
25037 (fold_nonarray_ctor_reference): Likewise.
25038 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
25039 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
25040 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
25041 * tree-sra.c (completely_scalarize): Likewise.
25042 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
25043 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
25044 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
25045 (check_for_binary_op_overflow): Likewise.
25046 (search_for_addr_array): Likewise.
25047 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
25049 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25051 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
25052 (arc_save_restore): Likewise.
25053 (arc_dwarf_register_span): Likewise.
25054 (arc_output_pic_addr_const): Initialize suffix variable.
25056 2016-05-02 Martin Liska <mliska@suse.cz>
25058 * symbol-summary.h (function_summary::function_summary):
25059 Remove checking assert for all cgraph nodes.
25060 (function_summary::get): Check summary_uid.
25061 (symtab_insertion): Check summary_uid.
25063 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25065 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
25066 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
25067 bmaskn instruction.
25068 (arc_dwarf_register_span): Remove enum keyword.
25069 (compact_memory_operand_p): New function.
25070 * config/arc/arc.h (reg_class): Add code density register classes.
25071 (REG_CLASS_NAMES): Likewise.
25072 (REG_CLASS_CONTENTS): Likewise.
25073 * config/arc/arc.md (*movqi_insn): Add code density instructions.
25074 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
25075 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
25076 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
25077 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
25079 (h, Rcd, Rsd, Rzd): New register constraints.
25080 (T): Use compact_memory_operand_p function.
25081 * config/arc/predicates.md (compact_load_memory_operand): Remove.
25083 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
25085 * config/sh/sh.md (*negnegt, *movtt): Remove.
25087 2016-05-02 Marek Polacek <polacek@redhat.com>
25088 Tom de Vries <tom@codesourcery.com>
25090 PR tree-optimization/70700
25091 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
25092 bigger than FIRST_REF_NODE.
25094 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
25097 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
25099 (prepare_cbranch_operands): Don't use scratch register. Assume that
25100 function is used when pseudos can be created.
25101 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
25102 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
25103 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
25104 define_expand. Allow it only when pseudos can be created.
25105 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
25107 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
25109 * config/i386/constraints.md (BC): Only allow -1 operands.
25110 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
25111 Add "enabled" attribute. Update XI mode attribute calculation.
25112 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
25113 (*movoi_internal_avx): Update XI mode attribute calculation.
25114 (*movti_internal): Ditto.
25116 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25118 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
25119 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
25121 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
25123 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
25124 statement on instruction code. Remove trailing spaces.
25125 (altivec_expand_stv_builtin): Likewise.
25127 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25129 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
25130 (TARGET_FPU_DOUBLE): Simplify.
25131 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
25132 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
25133 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
25134 with 'TARGET_FPU_DOUBLE'.
25135 * config/sh/sh.md: Likewise.
25137 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
25139 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
25140 SH_DIV_STR_FOR_SIZE): Remove.
25141 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
25142 SH_DIV_STR_FOR_SIZE): Remove.
25144 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25146 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
25147 logical_reg_operand): Delete.
25148 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
25149 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
25150 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
25151 match_operand and match_test.
25152 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
25153 variables on their first use. Return bool values.
25154 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
25155 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
25156 arith_reg_operand for input operand. Remove empty constraints.
25158 (*xorsi3_compact): Rename to xorsi3.
25159 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
25160 (*zero_extend<mode>si2_disp_mem): Update comment.
25163 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25165 * config/sh/t-sh: Remove SH5 support.
25166 * config.gcc: Likewise.
25167 * configure: Likewise.
25169 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25171 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
25173 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25175 * config/sh/sh.c (register_sh_passes, sh_option_override,
25176 sh_print_operand, prepare_move_operands,
25177 sh_can_follow_jump): Remove TARGET_SH1 checks.
25178 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
25179 PROMOTE_MODE): Likewise.
25180 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
25183 2016-04-30 Alan Modra <amodra@gmail.com>
25185 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
25186 restoring when fixed_reg_p, but allow out-of-line or stmw save.
25187 Check for user regs later to avoid unnecessary looping over regs.
25188 Merge user reg check with non-saved reg check. Don't force
25189 inline VR restore when static chain used.
25190 (rs6000_frame_related): Omit eh_frame info for user regs when
25192 (fixed_regs_p): Delete.
25194 2016-04-30 Alan Modra <amodra@gmail.com>
25196 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
25197 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
25200 2016-04-30 Alan Modra <amodra@gmail.com>
25203 * config/rs6000/rs6000.c (fixed_reg_p): New function.
25204 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
25207 2016-04-30 Alan Modra <amodra@gmail.com>
25209 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
25210 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
25211 flag_pic test for Darwin.
25213 2016-04-30 Alan Modra <amodra@gmail.com>
25215 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
25216 throw_calls_crossed.
25217 (REG_FREQ_CALLS_CROSSED): Delete.
25218 (REG_N_THROWING_CALLS_CROSSED): Delete.
25219 * regstat.c (regstat_bb_compute_ri): Don't calculate
25220 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
25221 (dump_reg_info): Don't print call cross frequency.
25222 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
25223 and REG_N_THROWING_CALLS_CROSSED.
25225 2016-04-30 Alan Modra <amodra@gmail.com>
25227 * regs.h (struct reg_info_t): Delete live_length.
25228 (REG_LIVE_LENGTH): Delete macro.
25229 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
25230 local_live, local_processed and local_live_last_luid params.
25231 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
25233 (regstat_compute_ri): Adjust for above. Don't set
25235 (dump_reg_info): Don't print live length.
25236 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
25237 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
25238 Localize loop_depth var.
25240 2016-04-30 Alan Modra <amodra@gmail.com>
25242 * ira.c (enum valid_equiv): New.
25243 (validate_equiv_mem): Return enum.
25244 (update_equiv_mem): Create replacement in more cases.
25245 (add_store_equivs): Update validate_equiv_mem call.
25247 2016-04-30 Alan Modra <amodra@gmail.com>
25249 * ira.c (combine_and_move_insns): Rather than scanning insns,
25250 use DF infrastucture to find use and def insns.
25252 2016-04-30 Alan Modra <amodra@gmail.com>
25254 ira.c (combine_and_move_insns): Move invariant conditions..
25255 (ira.c): ..to here. Call combine_and_move_insns before
25256 add_store_equivs. Call grow_reg_equivs later. Allocate
25257 req_equiv later using max_reg_num() rather than global max_regno.
25258 (contains_replace_regs): Delete.
25259 (add_store_equivs): Remove contains_replace_regs test.
25261 2016-04-30 Alan Modra <amodra@gmail.com>
25263 * ira.c (struct equiv_mem_data): New.
25264 (equiv_mem, equiv_mem_modified): Delete static vars.
25265 (validate_equiv_mem_from_store): Use "data" param to communicate..
25266 (validate_equiv_mem): ..from here.
25268 2016-04-30 Alan Modra <amodra@gmail.com>
25270 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
25272 (update_reg_equivs): ..here. Move allocation and freeing of
25273 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
25274 end_alias_analysis to..
25277 2016-04-30 Alan Modra <amodra@gmail.com>
25279 * ira.c (pdx_subregs): Delete.
25280 (struct equivalence): Add pdx_subregs field.
25281 (set_paradoxical_subreg): Remove pdx_subregs param. Update
25282 pdx_subregs access.
25283 (update_equiv_regs): Don't create or free pdx_subregs. Update
25284 pdx_subregs access.
25286 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25288 * config/rs6000/altivec.h: Change definitions of vec_xl and
25290 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
25291 (LD_ELEMREV_V2DI): New.
25292 (LD_ELEMREV_V4SF): New.
25293 (LD_ELEMREV_V4SI): New.
25294 (LD_ELEMREV_V8HI): New.
25295 (LD_ELEMREV_V16QI): New.
25296 (ST_ELEMREV_V2DF): New.
25297 (ST_ELEMREV_V2DI): New.
25298 (ST_ELEMREV_V4SF): New.
25299 (ST_ELEMREV_V4SI): New.
25300 (ST_ELEMREV_V8HI): New.
25301 (ST_ELEMREV_V16QI): New.
25304 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25305 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
25306 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
25307 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
25308 (altivec_expand_builtin): Add handling for
25309 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
25310 (rs6000_invalid_builtin): Add error-checking for
25311 RS6000_BTM_P9_VECTOR.
25312 (altivec_init_builtins): Define builtins used to implement vec_xl
25314 (rs6000_builtin_mask_names): Define power9-vector.
25315 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
25316 (RS6000_BTM_P9_VECTOR): Define.
25317 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
25318 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
25319 (vsx_ld_elemrev_v2df): Likewise.
25320 (vsx_ld_elemrev_v4sf): Likewise.
25321 (vsx_ld_elemrev_v4si): Likewise.
25322 (vsx_ld_elemrev_v8hi): Likewise.
25323 (vsx_ld_elemrev_v16qi): Likewise.
25324 (vsx_st_elemrev_v2df): Likewise.
25325 (vsx_st_elemrev_v2di): Likewise.
25326 (vsx_st_elemrev_v4sf): Likewise.
25327 (vsx_st_elemrev_v4si): Likewise.
25328 (vsx_st_elemrev_v8hi): Likewise.
25329 (vsx_st_elemrev_v16qi): Likewise.
25330 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
25333 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
25335 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
25337 (simplify_control_stmt_condition_1): ... here. Recurse into
25338 BIT_AND_EXPRs and BIT_IOR_EXPRs.
25340 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
25343 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
25344 (zero_extendqi<mode>2_dot): Revert earlier conversion from
25345 define_insn_and_split to define_insn.
25346 (zero_extendqi<mode>2_dot2): Same.
25347 (extendqi<mode>2_dot): Same.
25348 (extendqi<mode>2_dot2): Same.
25350 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25352 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
25353 (probe_stack): New expander.
25354 (probe_stack_<mode>): New insn pattern.
25356 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25358 * config/i386/i386.md
25359 (operations with memory inputs setting flags peephole2):
25360 Remove uneeded REG_P checks. Cleanup pattern generation.
25362 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
25364 * tree-vect-loop.c (vect_transform_loop): Fix
25365 nb_iterations_upper_bound computation for vectorized loop.
25367 2016-04-29 Marek Polacek <polacek@redhat.com>
25368 Jakub Jelinek <jakub@redhat.com>
25371 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
25372 TARGET_EXPR_SLOT as a base.
25374 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
25376 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
25377 with 'rCm2' constraints to limit possible immediate size.
25378 (*load_zeroextendqisi_update): Likewise.
25379 (*load_signextendqisi_update): Likewise.
25380 (*loadhi_update): Likewise.
25381 (*load_zeroextendhisi_update): Likewise.
25382 (*load_signextendhisi_update): Likewise.
25383 (*loadsi_update): Likewise.
25384 (*loadsf_update): Likewise.
25386 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25388 * config/i386/predicates.md (constm1_operand): Fix comparison.
25390 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
25392 * testsuite/gcc.target/arc/ieee_eq.c: New test.
25394 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
25396 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
25397 remaining SH5 related settings.
25398 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
25399 shmedia_prepare_call_address): Delete.
25400 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
25401 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
25402 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
25403 UNSUPPORTED_SH2A): Remove m5 checks.
25404 (sh_divide_strategy_e): Remove SH5 division strategies.
25405 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
25406 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
25408 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
25410 * config/s390/s390.c (s390_rtx_costs): Update documentation.
25412 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25414 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
25415 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
25416 Change lder to ldr.
25417 * config/s390/vector.md ("mov<mode>"): Likewise.
25419 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
25421 * config/s390/constraints.md ("U", "W"): Invoke
25422 s390_mem_constraint with "ZR" and "ZT".
25423 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
25424 addresses when using LRA. Accept also short displacements for S
25425 and T constraints. Do not check for long displacement target for
25426 S and T constraints.
25427 (s390_mem_constraint): Remove handling of U and W constraints.
25428 * config/s390/s390.md (various patterns): Remove the short
25429 displacement constraints (Q and R) if a long displacement
25430 constraint is present. Add longdisp as required CPU capability.
25431 * config/s390/vector.md: Likewise.
25432 * config/s390/vx-builtins.md: Likewise.
25434 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25437 * reload1.c (reload): Call finish_spills before
25438 restarting reload loop. Skip select_reload_regs
25439 if update_eliminables_and_spill returns true.
25441 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
25443 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
25444 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
25445 (umulhisi3_imm): Update predicates and constraint letters.
25446 (umulhisi3_reg): Declare instruction as commutative.
25447 * config/arc/constraints.md (J12, J16): New constraints.
25448 * config/arc/predicates.md (short_unsigned_const_operand): New
25450 (arc_short_operand): Likewise.
25451 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
25453 2016-04-29 Richard Biener <rguenther@suse.de>
25455 PR tree-optimization/13962
25456 PR tree-optimization/65686
25457 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
25458 * tree-ssa-alias.c (ptrs_compare_unequal): New function
25459 using PTA to compare pointers.
25460 * match.pd: Add pattern for pointer equality compare simplification
25461 using ptrs_compare_unequal.
25463 2016-04-29 Richard Biener <rguenther@suse.de>
25465 * stor-layout.c (layout_type): Do not build a pointer-to-element
25468 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25470 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
25471 Use SWI mode iterator. Use general_reg_operand predicate.
25472 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
25473 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
25476 2016-04-29 Jakub Jelinek <jakub@redhat.com>
25478 PR middle-end/70843
25479 * fold-const.c (operand_equal_p): Don't verify hash value equality
25481 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
25484 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25487 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
25488 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
25489 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
25490 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
25491 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
25493 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25495 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
25496 to info. Don't initialize separate fields to 0. Clean up
25499 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25501 * config/i386/i386.md (peephole2s for operations with memory inputs):
25502 Use SWI mode iterator.
25503 (peephole2s for operations with memory outputs): Ditto.
25504 Do not check for stack checking probe.
25506 (probe_stack): Remove expander.
25508 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25509 Andrew Burgess <andrew.burgess@embecosm.com>
25511 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
25512 operands as 32-bits.
25514 2016-04-28 Jason Merrill <jason@redhat.com>
25516 * gdbinit.in: Skip line-map.h.
25518 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25519 Andrew Burgess <andrew.burgess@embecosm.com>
25521 * config/arc/arc.c (arc_conditional_register_usage): Take
25522 TARGET_RRQ_CLASS into account.
25523 (arc_print_operand): Support printing 'p' and 's' operands.
25524 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
25526 (TARGET_RRQ_CLASS): Define.
25527 (IS_POWEROF2_OR_0_P): Define.
25528 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
25530 (*tst_movb): New define_insn.
25531 (*tst): Avoid recognition if it could prevent '*tst_movb'
25532 combination; replace c/CnL with c/Chs alternative.
25533 (*tst_bitfield_tst): New define_insn.
25534 (*tst_bitfield_asr): New define_insn.
25535 (*tst_bitfield): New define_insn.
25536 (andsi3_i): Add Rrq variant.
25537 (extzv): New define_expand.
25538 (insv): New define_expand.
25539 (*insv_i): New define_insn.
25540 (*movb): New define_insn.
25541 (*movb_signed): New define_insn.
25542 (*movb_high): New define_insn.
25543 (*movb_high_signed): New define_insn.
25544 (*movb_high_signed + 1): New define_split pattern.
25545 (*mrgb): New define_insn.
25546 (*mrgb + 1): New define_peephole2 pattern.
25547 (*mrgb + 2): New define_peephole2 pattern.
25548 * config/arc/arc.opt (mbitops): New option for nps400, uses
25549 TARGET_NPS_BITOPS_DEFAULT.
25550 * config/arc/constraints.md (q): Make register class conditional.
25551 (Rrq): New register constraint.
25552 (Chs): New constraint.
25553 (Clo): New constraint.
25554 (Chi): New constraint.
25555 (Cbf): New constraint.
25556 (Cbn): New constraint.
25557 (C18): New constraint.
25558 (Cbi): New constraint.
25560 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25562 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
25564 (bitmap_intersection_of_preds): Ditto.
25565 (bitmap_union_of_succs): Ditto.
25566 (bitmap_union_of_preds): Ditto.
25567 * sbitmap.c (do_popcount): Delete.
25568 (BITMAP_DEBUGGING): Delete.
25569 (sbitmap_verify_popcount): Delete.
25570 (sbitmap_alloc): Don't initialize the popcount field.
25571 (sbitmap_alloc_with_popcount): Delete.
25572 (sbitmap_resize): Don't resize the popcount array.
25573 (sbitmap_vector_alloc): Don't initialize the popcount field.
25574 (bitmap_copy): Don't copy the popcount array.
25575 (bitmap_clear): Don't clear the popcount array.
25576 (bitmap_clear): Delete the popcount array handling.
25577 (bitmap_ior_and_compl): Delete the popcount assert.
25578 (bitmap_not): Ditto.
25579 (bitmap_and_compl): Ditto.
25580 (bitmap_and): Delete the popcount array handling.
25581 (bitmap_xor): Ditto.
25582 (bitmap_ior): Ditto.
25583 (bitmap_or_and): Delete the popcount assert.
25584 (bitmap_and_or): Ditto.
25585 (popcount_table): Delete.
25586 (sbitmap_elt_popcount): Delete.
25587 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
25588 (bitmap_set_bit): Delete the popcount assert.
25589 (bitmap_clear_bit): Ditto.
25590 (sbitmap_free): Don't free the popcount array.
25591 (sbitmap_alloc_with_popcount): Delete declaration.
25592 (sbitmap_popcount): Ditto.
25594 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25595 Andrew Burgess <andrew.burgess@embecosm.com>
25597 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
25598 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
25599 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
25600 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
25601 * config/arc/arc.opt (mcmem): New option.
25602 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
25603 supply length for r/m alternative.
25604 (*extendqisi2_ac): Likewise.
25605 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
25607 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
25608 (movhi_insn): Likewise.
25609 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
25610 (*zero_extendqihi2_i): Add r/Ucm alternative.
25611 (*zero_extendqisi2_ac): Likewise.
25612 (*zero_extendhisi2_i): Likewise.
25613 * config/arc/constraints.md (Uex): New memory constraint.
25614 (Ucm): New define_constraint.
25615 * config/arc/predicates.md (long_immediate_loadstore_operand):
25616 Return 0 for MEM with cmem_address address.
25617 (cmem_address_0): New predicates.
25618 (cmem_address_1): Likewise.
25619 (cmem_address_2): Likewise.
25620 (cmem_address): Likewise.
25622 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25624 * config/rs6000/rs6000.c (machine_function): Rename
25625 insn_chain_scanned_p to spe_insn_chain_scanned_p.
25626 (rs6000_stack_info): Adjust.
25628 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25629 Andrew Burgess <andrew.burgess@embecosm.com>
25631 * config/arc/constraints.md (Usd): Convert to define_constraint.
25635 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25638 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
25639 Add new peephole2 where the first insn is *mov<mode>_or instead of
25640 *mov<mode>_internal.
25642 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
25644 * tracer.c (bb_seen): Make static.
25646 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
25648 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
25649 support, setup defaults.
25650 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
25651 * config/arc/arc.c (arc_init): Add NPS400 support.
25652 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
25653 (TARGET_ARC700): NPS400 is also an ARC700.
25654 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
25656 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25659 * config/nds32/nds32.md (casesi): Don't access the operands array
25662 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25664 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
25665 (or $-1,reg peephole2): Ditto.
25666 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
25668 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
25670 * doc/extend.texi (Common Function Attributes) [optimize]:
25671 Discourage use of the optimize attribute.
25673 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
25675 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
25676 special case builtin.
25677 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
25678 ALTIVEC_BUILTIN_VEC_ADDE.
25679 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
25680 support for ALTIVEC_BUILTIN_VEC_ADDE.
25681 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
25682 for __builtin_vec_adde.
25684 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25686 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
25687 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
25689 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25692 * doc/sourcebuild.texi (Effective-Target Keywords, Other
25693 attributes): Document cilkplus_runtime.
25695 2016-04-28 Martin Jambor <mjambor@suse.cz>
25697 * tree-cfg.c (verify_expr): Verify that local declarations belong to
25698 this function. Call verify_expr on MEM_REFs and bases of other
25699 handled_components.
25701 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25703 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
25704 for WORD_REGISTER_OPERATIONS to runtime check.
25706 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25708 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
25710 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25712 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
25713 big-endian compilation.
25714 * config/arc/arc.md (addf3): Likewise.
25715 (subdf3): Likewise.
25716 (muldf3): Likewise.
25718 2016-04-28 Richard Biener <rguenther@suse.de>
25720 PR tree-optimization/70840
25721 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
25722 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
25723 Mark x * pow(x,c) -> pow(x,c+1) commutative.
25724 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
25726 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25728 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
25729 and explain why in a comment.
25731 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25733 * config/arc/arc.md (cpu_facility): Add fpx variant.
25734 (subdf3): Prohibit use reverse sub when assist operations option
25736 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
25737 instructions only when FPX is enabled.
25738 * testsuite/gcc.target/arc/trsub.c: New test.
25740 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25742 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
25743 mult_operator when calculating "type" attribute.
25744 (*fop_<mode>_1_i387): Ditto.
25745 (*fop_xf_1_i387): Ditto.
25746 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
25747 Use std::swap to swap operands. Use RTL expressions to generate
25750 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25751 Joern Rennecke <joern.rennecke@embecosm.com>
25753 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
25755 (emit_pic_move): Remove.
25756 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
25757 * config/arc/arc.c (emit_pic_move): Removed.
25758 (TARGET_HAVE_TLS): Define.
25759 (arc_conditional_register_usage): Test for arc_tp_regno.
25760 (arc_print_operand, arc_print_operand_address): Handle TLS
25762 (arc_needs_pcl_p): New function.
25763 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
25764 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
25765 (arc_raw_symbolic_reference_mentioned_p): Likewise.
25766 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
25767 (arc_legitimize_tls_address): Likewise.
25768 (DTPOFF_ZERO_SYM): Define.
25769 (arc_legitimize_pic_address): Make it static, handle TLS cases.
25770 (arc_output_pic_addr_const): Print TLS unspecs.
25771 (prepare_pic_move): New function, replaces emit_pic_move.
25772 (arc_legitimate_constant_p): Handle TLS unspecs.
25773 (arc_legitimate_address_p): Likewise.
25774 (arc_rewrite_small_data_p): Use assert for TLS constants.
25775 (prepare_move_operands): Use prepare_pic_move.
25776 (arc_legitimize_address): Legitimize tls addresses.
25777 (arc_epilogue_uses): Check for arc_tp_regno.
25778 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
25779 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
25781 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
25783 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
25784 %(arc_tls_extra_start_spec).
25785 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
25786 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
25788 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
25789 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
25790 (UNSPEC_TLS_OFF): Add.
25792 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
25793 (get_thread_pointersi): New patterns.
25794 * config/arc/arc.opt (mtp-regno): New option.
25795 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
25796 (move_dest_operand): Likewise.
25797 * configure: Regenerate.
25798 * configure.ac: Add arc*-*-* case to test for tls.
25799 * doc/invoke.texi (ARC options): Document mtp-regno.
25801 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25803 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
25804 the new ARC HS SIMD instructions.
25805 (arc_preferred_simd_mode): New function.
25806 (arc_autovectorize_vector_sizes): Likewise.
25807 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
25808 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
25809 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
25810 (arc_init_builtins): Add new SIMD builtin types.
25811 (arc_split_move): Handle 64 bit vector moves.
25812 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
25813 (TARGET_PLUS_QMACW): Define.
25814 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
25815 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
25816 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
25817 (VSUBADD4H): New builtins.
25818 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
25819 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
25821 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
25822 Matthias Klose <doko@debian.org>
25824 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
25826 2016-04-28 Richard Biener <rguenther@suse.de>
25828 PR middle-end/70777
25829 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
25832 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
25834 * common/config/sh/sh-common.c: Remove SH5 support.
25835 * config/sh/constraints.md: Likewise.
25836 * config/sh/config/sh/elf.h: Likewise.
25837 * config/sh/linux.h: Likewise.
25838 * config/sh/netbsd-elf.h: Likewise.
25839 * config/sh/predicates.md: Likewise.
25840 * config/sh/sh-c.c: Likewise.
25841 * config/sh/sh-protos.h: Likewise.
25842 * config/sh/sh.c: Likewise.
25843 * config/sh/sh.h: Likewise.
25844 * config/sh/sh.md: Likewise.
25845 * config/sh/sh.opt: Likewise.
25846 * config/sh/sync.md: Likewise.
25847 * config/sh/sh64.h: Delete.
25848 * config/sh/shmedia.h: Likewise.
25849 * config/sh/shmedia.md: Likewise.
25850 * config/sh/sshmedia.h: Likewise.
25851 * config/sh/t-netbsd-sh5-64: Likewise.
25852 * config/sh/t-sh64: Likewise.
25853 * config/sh/ushmedia.h: Likewise.
25855 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25857 * config/i386/i386.md (sign_extend to memory peephole2s): Use
25858 general_reg_operand instead of register_operand predicate.
25860 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25862 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
25864 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
25866 * match.pd (A - B > A, A + B < A): New transformations.
25868 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
25870 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
25871 which defaults to true. Emit an outer pair of parentheses only if
25872 EMIT_PARENS. When continuing a chain of && or || (or & or |),
25873 don't emit parentheses for the right-hand operand.
25875 2016-04-27 Jeff Law <law@redhat.com>
25877 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
25879 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25881 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
25882 (altivec_lvx_<mode>_internal): Document.
25883 (altivec_lvx_<mode>_2op): New define_insn.
25884 (altivec_lvx_<mode>_1op): Likewise.
25885 (altivec_lvx_<mode>_2op_si): Likewise.
25886 (altivec_lvx_<mode>_1op_si): Likewise.
25887 (altivec_stvx_<mode>): Remove.
25888 (altivec_stvx_<mode>_internal): Document.
25889 (altivec_stvx_<mode>_2op): New define_insn.
25890 (altivec_stvx_<mode>_1op): Likewise.
25891 (altivec_stvx_<mode>_2op_si): Likewise.
25892 (altivec_stvx_<mode>_1op_si): Likewise.
25893 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25894 Expand vec_ld and vec_st during parsing.
25895 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
25897 (altivec_expand_stvx_be): Likewise.
25898 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
25899 address-masking behavior in RTL.
25900 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
25901 address-masking behavior in RTL.
25902 (altivec_expand_builtin): Change builtin code arguments for calls
25903 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
25904 (insn_is_swappable_p): Avoid incorrect swap optimization in the
25905 presence of lvx/stvx patterns.
25906 (alignment_with_canonical_addr): New function.
25907 (alignment_mask): Likewise.
25908 (find_alignment_op): Likewise.
25909 (recombine_lvx_pattern): Likewise.
25910 (recombine_stvx_pattern): Likewise.
25911 (recombine_lvx_stvx_patterns): Likewise.
25912 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
25913 stvx patterns from expand.
25914 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
25916 (vector_altivec_store_<mode>): Likewise.
25918 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
25920 * config/aarch64/aarch64.md
25921 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
25922 remove the "fp" attributes.
25923 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
25924 add the "simd" attributes.
25925 (*movdf_aarch64): Likewise.
25926 (*movtf_aarch64): Remove the "fp" attributes.
25927 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
25928 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
25930 2016-04-27 David Malcolm <dmalcolm@redhat.com>
25932 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
25933 rtx to rtx_code_label *.
25934 * rtl.h (maybe_set_first_label_num): Likewise.
25936 2016-04-27 David Malcolm <dmalcolm@redhat.com>
25938 * df-core.c (df_add_problem): Make the problem param be const.
25939 (df_remove_problem): Make local "problem" be const.
25940 * df-problems.c (problem_RD): Make const.
25941 (problem_LR): Likewise.
25942 (problem_LIVE): Likewise.
25943 (problem_MIR): Likewise.
25944 (problem_CHAIN): Likewise.
25945 (problem_WORD_LR): Likewise.
25946 (problem_NOTE): Likewise.
25947 (problem_MD): Likewise.
25948 * df-scan.c (problem_SCAN): Likewise.
25949 * df.h (struct df_problem): Make field "dependent_problem" be
25951 (struct dataflow): Likewise for field "problem".
25952 (df_add_problem): Make param const.
25954 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
25956 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
25957 inter-unit moves to/from vector registers are enabled. Do not disable
25960 2016-04-27 David Malcolm <dmalcolm@redhat.com>
25962 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
25963 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
25965 (enum df_problem_id): ...this new enum.
25966 (struct df_problem): Convert field "id" from "int" to
25967 enum df_problem_id.
25969 2016-04-27 David Malcolm <dmalcolm@redhat.com>
25971 * rtl.def: Update comment for "things in the instruction chain" to
25972 reflect the removal of the leading "i" field for INSN_UID in
25973 r210360. Fix bogus apostrophe.
25975 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
25977 * config/i386/i386.md
25978 (lea arith with mem operand + setcc peephole2): Set operator mode.
25980 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
25983 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
25984 (dimode_scalar_to_vector_candidate_p): This.
25985 (timode_scalar_to_vector_candidate_p): New function.
25986 (scalar_to_vector_candidate_p): Likewise.
25987 (timode_check_non_convertible_regs): Likewise.
25988 (timode_remove_non_convertible_regs): Likewise.
25989 (remove_non_convertible_regs): Likewise.
25990 (remove_non_convertible_regs): Renamed to ...
25991 (dimode_remove_non_convertible_regs): This.
25992 (scalar_chain::~scalar_chain): Make it virtual.
25993 (scalar_chain::compute_convert_gain): Make it pure virtual.
25994 (scalar_chain::mark_dual_mode_def): Likewise.
25995 (scalar_chain::convert_insn): Likewise.
25996 (scalar_chain::convert_registers): Likewise.
25997 (scalar_chain::add_to_queue): Make it protected.
25998 (scalar_chain::emit_conversion_insns): Likewise.
25999 (scalar_chain::replace_with_subreg): Likewise.
26000 (scalar_chain::replace_with_subreg_in_insn): Likewise.
26001 (scalar_chain::convert_op): Likewise.
26002 (scalar_chain::convert_reg): Likewise.
26003 (scalar_chain::make_vector_copies): Likewise.
26004 (scalar_chain::convert_registers): New pure virtual function.
26005 (class dimode_scalar_chain): New class.
26006 (class timode_scalar_chain): Likewise.
26007 (scalar_chain::mark_dual_mode_def): Renamed to ...
26008 (dimode_scalar_chain::mark_dual_mode_def): This.
26009 (timode_scalar_chain::mark_dual_mode_def): New function.
26010 (timode_scalar_chain::convert_insn): Likewise.
26011 (dimode_scalar_chain::convert_registers): Likewise.
26012 (scalar_chain::compute_convert_gain): Renamed to ...
26013 (dimode_scalar_chain::compute_convert_gain): This.
26014 (scalar_chain::replace_with_subreg): Renamed to ...
26015 (dimode_scalar_chain::replace_with_subreg): This.
26016 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
26017 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
26018 (scalar_chain::make_vector_copies): Renamed to ...
26019 (dimode_scalar_chain::make_vector_copies): This.
26020 (scalar_chain::convert_reg): Renamed to ...
26021 (dimode_scalar_chain::convert_reg ): This.
26022 (scalar_chain::convert_op): Renamed to ...
26023 (dimode_scalar_chain::convert_op): This.
26024 (scalar_chain::convert_insn): Renamed to ...
26025 (dimode_scalar_chain::convert_insn): This.
26026 (scalar_chain::convert): Call convert_registers.
26027 (convert_scalars_to_vector): Change to scalar_chain pointer to
26028 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
26029 in 32-bit mode. Delete scalar_chain pointer. Call
26030 free_dominance_info in 64-bit mode.
26031 (pass_stv::gate): Remove TARGET_64BIT check.
26032 (ix86_option_override): Put the 64-bit STV pass before the CSE
26035 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
26037 * dwarf2out.h (struct dw_loc_descr_node): Remove the
26038 dw_loc_frame_offset field.
26039 * dwarf2out.c (new_loc_descr): Likewise.
26040 (resolve_args_picking_1): Turn the VISITED hash set into a
26041 FRAME_OFFSET hash map. Use it to associate a frame offset to
26042 visited nodes. Remove uses of the CHECKING_P macro.
26043 (resolve_args_picking): Update call to resolve_args_picking_1.
26045 2016-04-27 Martin Liska <mliska@suse.cz>
26047 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
26048 (free_loop_data): Release vuses of groups.
26050 2016-04-27 Bin Cheng <bin.cheng@arm.com>
26052 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
26053 instead of redundant use_id and boolean have_use_for.
26054 (struct iv_use): Change sub_id into group_id. Remove field next.
26055 Move fields: related_cands, n_map_members, cost_map and selected
26057 (struct iv_group): ... here. New structure.
26058 (struct iv_common_cand): Use structure declaration directly.
26059 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
26060 (MAX_CONSIDERED_USES): Rename macro to ...
26061 (MAX_CONSIDERED_GROUPS): ... here.
26062 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
26063 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
26064 (dump_uses): Rename to ...
26065 (dump_groups): ... here. Update all uses.
26066 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
26067 (find_induction_variables): Refactor format of dump information.
26068 (record_sub_use): Delete.
26069 (record_use): Update all uses.
26070 (record_group): New function.
26071 (record_group_use, find_interesting_uses_op): Call above functions.
26073 (find_interesting_uses_cond): Ditto.
26074 (group_compare_offset): New function.
26075 (split_all_small_groups): Rename to ...
26076 (split_small_address_groups_p): ... here. Update all uses.
26077 (split_address_groups): Update all uses.
26078 (find_interesting_uses): Refactor format of dump information.
26079 (add_candidate_1): Update all uses. Remove redundant check on iv,
26081 (add_candidate, record_common_cand): Remove redundant assert.
26082 (add_iv_candidate_for_biv): Update use.
26083 (add_iv_candidate_derived_from_uses): Update all uses.
26084 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
26085 (alloc_use_cost_map): Ditto.
26086 (set_use_iv_cost, get_use_iv_cost): Rename to ...
26087 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
26088 (determine_use_iv_cost_generic): Ditto.
26089 (determine_group_iv_cost_generic): Ditto.
26090 (determine_use_iv_cost_address): Ditto.
26091 (determine_group_iv_cost_address): Ditto.
26092 (determine_use_iv_cost_condition): Ditto.
26093 (determine_group_iv_cost_cond): Ditto.
26094 (determine_use_iv_cost): Ditto.
26095 (determine_group_iv_cost): Ditto.
26096 (set_autoinc_for_original_candidates): Update all uses.
26097 (find_iv_candidates): Update all uses. Refactor dump information.
26098 (determine_use_iv_costs): Ditto.
26099 (determine_iv_costs): Ditto.
26100 (iv_ca_cand_for_use): Rename to ...
26101 (iv_ca_cand_for_group): ... here. Update all uses.
26102 (iv_ca_add_use, iv_ca_add_group): Ditto.
26103 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
26104 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
26105 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
26106 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
26107 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
26108 (create_new_iv, adjust_iv_update_pos): Ditto.
26109 (rewrite_use_address): Delete.
26110 (rewrite_use_address_1): Rename to ...
26111 (rewrite_use_address): ... here.
26112 (rewrite_use_compare): Update all uses.
26113 (rewrite_use): Delete.
26114 (rewrite_uses): Rename to ...
26115 (rewrite_groups): ... here. Update all uses.
26116 (remove_unused_ivs, free_loop_data): Update all uses.
26117 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
26119 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26121 * rtlanal.c (nonzero_bits1): Convert preprocessor check
26122 for WORD_REGISTER_OPERATIONS to runtime check.
26124 2016-04-27 Richard Biener <rguenther@suse.de>
26127 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
26128 aggregate_value_p to determine if a function result is
26129 returned by reference.
26130 (ipa_pta_execute): Functions having their address taken are
26131 not automatically nonlocal.
26133 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26136 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
26137 * fold-const.c (operand_equal_p): If flag_checking and
26138 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
26139 and if it returns non-zero, assert iterative_hash_expr on both
26142 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26144 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
26146 2016-04-27 Nick Clifton <nickc@redhat.com>
26148 PR middle-end/49889
26149 * varasm.c (merge_weak): Generate an error if an attempt is made
26150 to convert a non-weak static function into a weak, public function.
26152 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26154 * params.def (MAX_PARTITION_SIZE): New param.
26155 * doc/invoke.texi: Document lto-max-partition.
26157 2016-04-27 Richard Biener <rguenther@suse.de>
26160 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
26161 function cummulating used_from_other_partition, externally_visible
26162 and force_output from aliases.
26163 (refered_from_nonlocal_var): Likewise.
26164 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
26165 node flags properly.
26167 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26169 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
26170 (-Wmemset-elt-size): New item.
26172 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
26175 * stor-layout.h (internal_reference_types): Delete.
26176 * stor-layout.c (reference_types_internal): Likewise.
26177 (internal_reference_types): Likewise.
26178 (layout_type) <REFERENCE_TYPE>: Adjust.
26180 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26183 * tree.h (inchash::add_expr): Add FLAGS argument.
26184 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
26185 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
26186 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
26187 Formatting fix. Adjust recursive calls. For tcc_comparison,
26188 if swap_tree_comparison (code) is smaller than code, hash that
26189 and arguments in the other order. Hash CONVERT_EXPR the same
26190 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
26191 of ADDR_EXPR of decl as the decl itself. Add or remove
26192 OEP_ADDRESS_OF from recursive flags as needed. For
26193 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
26194 operands commutatively and only the third one normally.
26195 For internal CALL_EXPR hash in CALL_EXPR_IFN.
26197 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
26199 * config/rtems.h (LIB_SPEC): Add -latomic.
26201 2016-04-27 Joel Sherrill <joel@rtems.org>
26203 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
26204 xilink.ld and flags not relevant to RTEMS.
26206 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26208 * toplev.c (backend_init_target): Avoid calling init_reload when using
26211 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26213 * reorg.c (try_merge_delay_insns): Declare i and j inside the
26214 for loops rather than one for the whole function.
26216 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26218 * match.pd (X + CST CMP X): New transformation.
26220 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26222 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
26223 * fold-const.c (fold_binary_loc): Remove 2 transformations
26224 superseded by match.pd.
26225 * match.pd (x+x -> x*2): Generalize to integers.
26227 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
26229 * config/i386/i386.md (operation on memory peephole): Duplicate an
26230 existing peephole and adapt it to match lea rather than an operation
26233 PR rtl-optimization/57193
26234 * opts.c (default_options_table): Add OPT_frename_registers at -O2
26236 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
26238 2016-04-26 Bin Cheng <bin.cheng@arm.com>
26240 * tree-if-conv.c (any_pred_load_store): New static variable.
26241 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
26242 any_pred_load_store instead of and_mask_load_store.
26243 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
26244 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
26245 (combine_blocks, tree_if_conversion): Ditto.
26247 2016-04-26 Bin Cheng <bin.cheng@arm.com>
26249 PR tree-optimization/70771
26250 PR tree-optimization/70775
26251 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
26252 virtual PHI nodes. Delete parameter.
26253 (if_convertible_loop_p_1): Delete argument to above function.
26254 (predicate_all_scalar_phis): Delete code handling single-argument
26256 (tree_if_conversion): Mark and update virtual SSA.
26258 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26261 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
26262 (x86_elf_aligned_common): Rename to ...
26263 (x86_elf_aligned_decl_common): ... this.
26264 Add decl arg. Switch to .lbss for largecomm object. Use
26265 LARGECOMM_SECTION_ASM_OP.
26266 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
26268 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
26269 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
26271 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
26272 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
26274 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26277 * config/i386/i386.c (SECTION_LARGE): Define.
26278 (x86_64_elf_select_section): Set it for large data/bss sections.
26279 Only clear SECTION_WRITE for .lrodata.
26280 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
26282 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
26283 * varasm.c (default_elf_asm_named_section): Grow flagchars.
26284 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
26286 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
26287 * doc/tm.texi: Regenerate.
26289 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26292 * configure.ac (--enable-checking): Document extra flag, for
26293 non-release builds default to --enable-checking=yes,extra.
26294 If misc checking and extra checking, define CHECKING_P to 2 instead
26296 * common.opt (fchecking=): Add.
26297 * doc/invoke.texi (-fchecking=): Document.
26298 * doc/install.texi: Document --enable-checking changes.
26299 * configure: Regenerated.
26300 * config.in: Regenerated.
26302 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26304 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
26305 attribute instead of which_alternative.
26306 * config/i386/sse.md (*mov<mode>_internal): Ditto.
26307 Use EXT_REX_SSE_REG_P where appropriate.
26309 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26311 * config/i386/predicates.md (const0_operand): Do not match
26312 const_wide_int code.
26313 (const1_operand): Ditto.
26315 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26317 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
26318 for SSE constm1 operands and TARGET_AVX512VL.
26319 (*movti_internal): Ditto.
26320 (*mov<mode>_or): Use constm1_operand predicate.
26321 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
26322 for SSE vector_all_ones operands and TARGET_AVX512VL.
26323 * config/i386/predicates.md (constm1_operand): New predicate.
26324 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
26325 emission of constant -1 load.
26327 2016-04-25 Jason Merrill <jason@redhat.com>
26329 * gdbinit.in: Skip is-a.h.
26331 * attribs.c (register_scoped_attributes): Fix logic.
26332 * attribs.h: Declare register_scoped_attributes.
26334 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26336 * config/rs6000/rs6000-builtin.def: Correct pasto error for
26337 stxvd2x and stxvw4x built-in functions.
26339 2016-04-25 DJ Delorie <dj@redhat.com>
26341 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
26342 (ashrhi3): Likewise.
26343 (lshrhi3): Likewise.
26345 2016-04-25 Richard Biener <rguenther@suse.de>
26347 PR tree-optimization/70780
26348 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
26349 wasn't visited yet.
26350 (compute_antic): Mark blocks with abnormal preds as visited as
26351 they have a final empty antic-in solution already.
26353 2016-04-25 Michael Collison <michael.collison@linaro.org>
26355 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
26357 2016-04-25 Michael Collison <michael.collison@linaro.org>
26359 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
26360 mode is VQI to improve mixed mode vectorization.
26361 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
26362 define_insn to match low half of signed vaddw.
26363 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
26364 define_insn to match high half of signed vaddw.
26365 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
26366 define_insn to match low half of unsigned vaddw.
26367 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
26368 define_insn to match high half of unsigned vaddw.
26369 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
26370 (arm_simd_check_vect_par_cnst_half_p): Likewise.
26371 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
26373 (arm_simd_check_vect_par_cnst_half_p): Likewise.
26374 * config/arm/predicates.md (vect_par_constant_high): Support
26375 big endian and simplify by calling
26376 arm_simd_check_vect_par_cnst_half
26377 (vect_par_constant_low): Likewise.
26379 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26381 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
26382 predicate for operand 2.
26384 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
26385 H.J. Lu <hongjiu.lu@intel.com>
26387 * config/i386/i386-protos.h (standard_sse_constant_p): Add
26388 machine_mode argument.
26389 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
26390 constm1_rtx operands. For VOIDmode constants, get mode from
26391 pred_mode. Check mode size if the mode is supported by ABI.
26392 (standard_sse_constant_opcode): Do not use standard_constant_p.
26393 Strictly check ABI support for all-ones operands.
26394 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
26395 immediates. Update calls to standard_sse_constant_p.
26396 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
26397 (ix86_rtx_costs): Ditto.
26398 * config/i386/i386.md (*movxi_internal_avx512f): Use
26399 nonimmediate_or_sse_const_operand instead of vector_move_operand.
26400 Use (v,BC) alternative instead of (v,C). Use register_operand
26401 checks instead of MEM_P.
26402 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
26403 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
26404 isa attribute. Use register_operand checks instead of MEM_P.
26405 (*movti_internal): Use nonimmediate_or_sse_const_operand for
26406 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
26407 alternative and corresponding sse2 isa attribute.
26408 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
26409 to standard_sse_constant_p.
26410 (FP constant splitters): Ditto.
26411 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
26413 * config/i386/predicates.md (constm1_operand): Remove.
26414 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
26415 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
26416 vector_all_ones_operand instead of constm1_operand.
26418 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26420 * print-rtl.c (print_rtx_insn_vec): New function.
26421 * print-rtl.h: New prototype.
26422 * store-motion.c (struct st_expr): Make avail_stores a vector.
26423 (st_expr_entry): Adjust.
26424 (free_st_expr_entry): Likewise.
26425 (print_store_motion_mems): Likewise.
26426 (find_moveable_store): Likewise.
26427 (compute_store_table): Likewise.
26428 (delete_store): Likewise.
26429 (build_store_vectors): Likewise.
26431 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26433 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
26435 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26437 * vec.h (vec_safe_contains): New function.
26438 (vec::contains): Likewise.
26439 (vec::begin): Likewise.
26440 (vec::end): Likewise.
26442 2016-04-23 Jakub Jelinek <jakub@redhat.com>
26445 * cfgexpand.c (expand_stack_vars): Fix typo.
26447 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
26449 * system.h (list, map, set, vector): Include conditionally.
26450 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
26451 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
26452 * ipa-icf.c (INCLUDE_LIST): Define.
26453 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
26454 * config/sh/sh.c (INCLUDE_VECTOR): Define.
26455 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
26456 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
26457 * cp/logic.cc (INCLUDE_LIST): Define.
26458 * fortran/trans-common.c (INCLUDE_MAP): Define.
26460 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
26462 * auto-profile.c: Remove <string.h> include.
26463 * ipa-icf-gimple.c: Remove <list> include.
26464 * diagnostic.c: Remove <new> include.
26465 * genmatch.c: Likewise.
26466 * pretty-print.c: Likewise.
26467 * toplev.c: Likewise
26468 * c/c-objc-common.c: Likewise.
26469 * cp/error.c: Likewise.
26470 * fortran/error.c: Likewise.
26472 2016-04-22 Richard Biener <rguenther@suse.de>
26474 * lto-streamer-in.c (input_ssa_names): Do not allocate
26475 GIMPLE_NOP for all SSA names.
26476 * lto-streamer-out.c (output_ssa_names): Do not output
26477 SSA names that should have been released.
26479 2016-04-22 Richard Biener <rguenther@suse.de>
26481 PR tree-optimization/70740
26482 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
26485 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
26488 * config/i386/predicates.md (call_insn_operand): Replace
26489 sibcall_memory_operand with memory_operand.
26491 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
26493 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
26494 has_single_use() tests.
26495 (register_edge_assert_for_1): Likewise.
26496 (find_assert_locations_1): Check the liveness bitmap instead of
26497 checking has_single_use().
26499 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
26502 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
26503 Extract AVX-512BW constraint from AVX.
26505 2016-04-21 Richard Biener <rguenther@suse.de>
26507 PR tree-optimization/70725
26508 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
26509 for phi_convertible_by_degenerating_args.
26510 (predicate_all_scalar_phis): Handle single-argument PHIs.
26512 2016-04-21 Richard Biener <rguenther@suse.de>
26514 PR middle-end/70747
26515 * fold-const.c (fold_comparison): Return properly typed
26518 2016-04-21 Bin Cheng <bin.cheng@arm.com>
26520 PR tree-optimization/70715
26521 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
26522 after expanding BASE using expand_simple_operations.
26524 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
26526 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
26527 New transformations.
26529 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
26531 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
26533 2016-04-20 Jan Hubicka <jh@suse.cz>
26535 * ipa-inline.c (can_inline_edge_p): Pass caller info to
26536 ultiimate_alias_target.
26537 (update_callee_keys): Likewise.
26538 (lookup_recursive_calls): Likewise.
26539 (speculation_useful_p): Likewise.
26541 2016-04-20 Jan Hubicka <jh@suse.cz>
26544 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
26545 (set_nothrow_flag_1): ... this; handle interposition correctly;
26546 recurse on aliases and thunks.
26547 (cgraph_node::set_nothrow_flag): New.
26548 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
26549 functions compiled with non-call exceptions that binds to current
26551 (propagate_nothrow): Be safe WRT interposition.
26552 * cgraph.h (set_nothrow_flag): Update prototype.
26554 2016-04-18 Jan Hubicka <jh@suse.cz>
26556 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
26557 max_loop_iterations_int.
26558 (tree_unswitch_outer_loop): Likewise.
26560 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26562 PR tree-optimization/69489
26563 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
26564 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
26565 Revise dump message.
26566 (if_convertible_bb_p): Remove check on edge count of basic block's
26569 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26571 PR tree-optimization/56625
26572 PR tree-optimization/69489
26573 * tree-data-ref.h (DR_INNERMOST): New macro.
26574 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
26575 hashing struct innermost_loop_behavior.
26576 (ref_DR_map): Remove.
26577 (innermost_DR_map): New map.
26578 (baseref_DR_map): Revise comment.
26579 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
26580 to innermost_DR_map accroding to its innermost loop behavior.
26581 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
26582 to its innermost loop behavior.
26583 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
26584 Add initialization for innermost_DR_map. Record memory reference
26585 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
26586 have innermost loop behavior.
26587 (if_convertible_loop_p): Remove release for ref_DR_map. Release
26590 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
26592 * config/i386/i386.md (*lea<mode>_general_1): Rename from
26593 *lea_general_1. Use explicit SWI12 mode interator.
26594 (*lea<mode>_general_2): Rename from *lea_general_2.
26595 Use explicit SWI12 mode interator.
26596 (*lea<mode>_general_3): Rename from *lea_general_3.
26597 Use explicit SWI12 mode interator.
26598 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
26599 Use explicit SWI12 mode interator.
26600 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
26601 Use explicit SWI48 mode interator.
26603 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
26605 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
26606 Short-cut unaligned load and store cases. Handle all integer
26608 (ix86_expand_vector_move_misalign): Short-cut unaligned load
26609 and store cases. Call ix86_avx256_split_vector_move_misalign
26610 directly without checking mode class.
26612 2016-04-20 Andrew Pinski <apinski@cavium.com>
26613 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26616 * config/aarch64/aarch64.md (sibcall): Force call
26617 address to be DImode for ILP32.
26618 (sibcall_value): Likewise.
26620 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
26622 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
26624 2016-04-20 Richard Biener <rguenther@suse.de>
26626 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
26627 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
26628 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
26629 (maybe_push_res_to_seq): Adjust.
26630 * gimple-fold.c (maybe_build_generic_op): Likewise.
26632 2016-04-20 Marek Polacek <polacek@redhat.com>
26634 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
26637 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
26639 * config/i386/sse.md (vec_unpacks_lo_hi): Always
26640 use kmovw to support AVX512F target.
26642 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26644 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
26646 2016-04-20 Marek Polacek <polacek@redhat.com>
26648 PR tree-optimization/70725
26649 * tree-if-conv.c (is_false_predicate): New function.
26650 (predicate_mem_writes): Use it.
26652 2016-04-20 Richard Biener <rguenther@suse.de>
26654 PR tree-optimization/70726
26655 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
26656 shift amounts from a pattern stmt operand.
26658 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26661 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
26662 stack_restore_from_fpr pattern when restoring r15.
26663 (s390_optimize_prologue): Strip away the memory barrier in the
26664 parallel when trying to get rid of restore insns.
26665 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
26666 definition for loading the stack pointer from an FPR. Compared to
26667 the normal move insn this pattern includes a full memory barrier.
26669 2016-04-19 Jakub Jelinek <jakub@redhat.com>
26671 PR middle-end/70680
26672 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
26673 implicitly linear or lastprivate iterator on the outer context.
26675 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
26677 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
26679 * config/i386/i386.md (ssememalign): Removed.
26680 * config/i386/sse.md: Remove ssememalign attribute from patterns.
26682 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
26685 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
26686 const short * to __builtin_ia32_loaddquhi512_mask.
26687 (_mm512_maskz_loadu_epi16): Likewise.
26688 (_mm512_mask_storeu_epi16): Pass short * to
26689 __builtin_ia32_storedquhi512_mask.
26690 (_mm512_mask_loadu_epi8): Pass const char * to
26691 __builtin_ia32_loaddquqi512_mask.
26692 (_mm512_maskz_loadu_epi8): Likewise.
26693 (_mm512_mask_storeu_epi8): Pass char * to
26694 __builtin_ia32_storedquqi512_mask.
26695 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
26696 const double * to __builtin_ia32_loadupd512_mask.
26697 (_mm512_mask_loadu_pd): Likewise.
26698 (_mm512_maskz_loadu_pd): Likewise.
26699 (_mm512_storeu_pd): Pass double * to
26700 __builtin_ia32_storeupd512_mask.
26701 (_mm512_mask_storeu_pd): Likewise.
26702 (_mm512_loadu_ps): Pass const float * to
26703 __builtin_ia32_loadups512_mask.
26704 (_mm512_mask_loadu_ps): Likewise.
26705 (_mm512_maskz_loadu_ps): Likewise.
26706 (_mm512_storeu_ps): Pass float * to
26707 __builtin_ia32_storeups512_mask.
26708 (_mm512_mask_storeu_ps): Likewise.
26709 (_mm512_mask_loadu_epi64): Pass const long long * to
26710 __builtin_ia32_loaddqudi512_mask.
26711 (_mm512_maskz_loadu_epi64): Likewise.
26712 (_mm512_mask_storeu_epi64): Pass long long *
26713 to __builtin_ia32_storedqudi512_mask.
26714 (_mm512_loadu_si512): Pass const int * to
26715 __builtin_ia32_loaddqusi512_mask.
26716 (_mm512_mask_loadu_epi32): Likewise.
26717 (_mm512_maskz_loadu_epi32): Likewise.
26718 (_mm512_storeu_si512): Pass int * to
26719 __builtin_ia32_storedqusi512_mask.
26720 (_mm512_mask_storeu_epi32): Likewise.
26721 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
26722 char * to __builtin_ia32_storedquqi256_mask.
26723 (_mm_mask_storeu_epi8): Likewise.
26724 (_mm256_mask_loadu_epi16): Pass const short * to
26725 __builtin_ia32_loaddquhi256_mask.
26726 (_mm256_maskz_loadu_epi16): Likewise.
26727 (_mm_mask_loadu_epi16): Pass const short * to
26728 __builtin_ia32_loaddquhi128_mask.
26729 (_mm_maskz_loadu_epi16): Likewise.
26730 (_mm256_mask_loadu_epi8): Pass const char * to
26731 __builtin_ia32_loaddquqi256_mask.
26732 (_mm256_maskz_loadu_epi8): Likewise.
26733 (_mm_mask_loadu_epi8): Pass const char * to
26734 __builtin_ia32_loaddquqi128_mask.
26735 (_mm_maskz_loadu_epi8): Likewise.
26736 (_mm256_mask_storeu_epi16): Pass short * to.
26737 __builtin_ia32_storedquhi256_mask.
26738 (_mm_mask_storeu_epi16): Pass short * to.
26739 __builtin_ia32_storedquhi128_mask.
26740 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
26741 const double * to __builtin_ia32_loadupd256_mask.
26742 (_mm256_maskz_loadu_pd): Likewise.
26743 (_mm_mask_loadu_pd): Pass onst double * to
26744 __builtin_ia32_loadupd128_mask.
26745 (_mm_maskz_loadu_pd): Likewise.
26746 (_mm256_mask_storeu_pd): Pass double * to
26747 __builtin_ia32_storeupd256_mask.
26748 (_mm_mask_storeu_pd): Pass double * to
26749 __builtin_ia32_storeupd128_mask.
26750 (_mm256_mask_loadu_ps): Pass const float * to
26751 __builtin_ia32_loadups256_mask.
26752 (_mm256_maskz_loadu_ps): Likewise.
26753 (_mm_mask_loadu_ps): Pass const float * to
26754 __builtin_ia32_loadups128_mask.
26755 (_mm_maskz_loadu_ps): Likewise.
26756 (_mm256_mask_storeu_ps): Pass float * to
26757 __builtin_ia32_storeups256_mask.
26758 (_mm_mask_storeu_ps): ass float * to
26759 __builtin_ia32_storeups128_mask.
26760 (_mm256_mask_loadu_epi64): Pass const long long * to
26761 __builtin_ia32_loaddqudi256_mask.
26762 (_mm256_maskz_loadu_epi64): Likewise.
26763 (_mm_mask_loadu_epi64): Pass const long long * to
26764 __builtin_ia32_loaddqudi128_mask.
26765 (_mm_maskz_loadu_epi64): Likewise.
26766 (_mm256_mask_storeu_epi64): Pass long long * to
26767 __builtin_ia32_storedqudi256_mask.
26768 (_mm_mask_storeu_epi64): Pass long long * to
26769 __builtin_ia32_storedqudi128_mask.
26770 (_mm256_mask_loadu_epi32): Pass const int * to
26771 __builtin_ia32_loaddqusi256_mask.
26772 (_mm256_maskz_loadu_epi32): Likewise.
26773 (_mm_mask_loadu_epi32): Pass const int * to
26774 __builtin_ia32_loaddqusi128_mask.
26775 (_mm_maskz_loadu_epi32): Likewise.
26776 (_mm256_mask_storeu_epi32): Pass int * to
26777 __builtin_ia32_storedqusi256_mask.
26778 (_mm_mask_storeu_epi32): Pass int * to
26779 __builtin_ia32_storedqusi128_mask.
26780 * config/i386/i386-builtin-types.def (PCSHORT): New.
26781 (PINT64): Likewise.
26782 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
26783 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
26784 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
26785 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
26786 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
26787 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
26788 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
26789 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
26790 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
26791 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
26792 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
26793 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
26794 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
26795 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
26796 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
26797 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
26798 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
26799 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
26800 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
26801 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
26802 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
26803 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
26804 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
26805 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
26806 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
26807 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
26808 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
26809 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
26810 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
26811 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
26812 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
26813 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
26814 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
26815 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
26816 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
26817 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
26818 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
26819 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
26820 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
26821 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
26822 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
26823 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
26824 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
26825 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
26826 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
26827 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
26828 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
26829 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
26830 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
26832 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
26833 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
26835 (ix86_expand_vector_move_misalign): Likewise.
26836 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
26837 to scalar function prototype for unaligned load/store builtins.
26838 (ix86_expand_special_args_builtin): Updated.
26839 * config/i386/sse.md (UNSPEC_LOADU): Removed.
26840 (UNSPEC_STOREU): Likewise.
26841 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
26842 (VI_ULOADSTORE_F_AVX512VL): Likewise.
26843 (ssescalarsize): Handle V4TI, V2TI and V1TI.
26844 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
26845 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
26846 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
26847 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
26848 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
26849 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
26850 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
26851 (<avx512>_storedqu<mode>_mask): Likewise.
26852 (*sse4_2_pcmpestr_unaligned): Likewise.
26853 (*sse4_2_pcmpistr_unaligned): Likewise.
26854 (*mov<mode>_internal): Renamed to ...
26855 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
26856 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
26857 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
26858 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
26860 2016-04-19 Richard Biener <rguenther@suse.de>
26862 PR tree-optimization/70171
26863 * tree-ssa-phiprop.c: Include stor-layout.h.
26864 (phiprop_insert_phi): Handle the aggregate copy case.
26865 (propagate_with_phi): Likewise.
26867 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
26869 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
26870 instead of simplify_gen_subreg (... , 0).
26871 (ix86_delegitimize_address): Ditto.
26872 (ix86_split_divmod): Ditto.
26873 (ix86_split_copysign_const): Ditto.
26874 (ix86_split_copysign_var): Ditto.
26875 (ix86_expand_args_builtin): Ditto.
26876 (ix86_expand_round_builtin): Ditto.
26877 (ix86_expand_special_args_builtin): Ditto.
26878 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
26879 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
26880 (udivmodqi4): Ditto.
26881 (absneg splitters): Ditto.
26882 (*jcc_bt<mode>_1): Ditto.
26884 2016-04-19 Richard Biener <rguenther@suse.de>
26886 PR tree-optimization/70724
26887 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
26888 restoring out from ...
26889 (free_scc_vn): ... here.
26890 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
26891 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
26893 (pass_fre::execute): Restore SSA info.
26895 2016-04-19 Richard Biener <rguenther@suse.de>
26897 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
26898 * gimple-walk.c (walk_gimple_op): Initialize it.
26899 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
26900 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
26901 remapping SSA names of defs.
26902 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
26905 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
26907 PR middle-end/70689
26908 * lra-constraints.c (equiv_substition_p): New.
26909 (process_alt_operands): Use it.
26910 (swap_operands): Swap it.
26911 (curr_insn_transform): Update it.
26913 2016-04-18 Michael Matz <matz@suse.de>
26915 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
26916 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
26917 * tree-core.h (tree_type_common.align): Use bit-field.
26918 (tree_type_common.spare): New.
26919 (tree_decl_common.off_align): Make smaller.
26920 (tree_decl_common.align): Use bit-field.
26922 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
26923 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
26924 (scan_sharing_clauses): Ditto.
26925 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
26926 (omp_finish_file): Ditto.
26927 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
26928 (layout_decl): Ditto.
26929 (relayout_decl): Ditto.
26930 (finalize_record_size): Use SET_TYPE_ALIGN.
26931 (finalize_type_size): Ditto.
26932 (finish_builtin_struct): Ditto.
26933 (layout_type): Ditto.
26934 (initialize_sizetypes): Ditto.
26935 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
26936 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
26937 (lookup_field_for_decl): Use SET_DECL_ALIGN.
26938 (get_chain_field): Ditto.
26939 (get_trampoline_type): Ditto.
26940 (get_nl_goto_field): Ditto.
26941 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26943 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
26944 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
26945 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
26946 (build_qualified_type): Use SET_TYPE_ALIGN.
26947 (build_aligned_type, build_range_type_1): Ditto.
26948 (build_atomic_base): Ditto.
26949 (build_common_tree_nodes): Ditto.
26950 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
26951 (expand_one_stack_var_at): Ditto.
26952 * coverage.c (build_var): Use SET_DECL_ALIGN.
26953 * except.c (init_eh): Ditto.
26954 * function.c (assign_parm_setup_block): Ditto.
26955 * symtab.c (increase_alignment_1): Ditto.
26956 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
26957 * tree-vect-stmts.c (ensure_base_align): Ditto.
26958 * varasm.c (align_variable): Ditto.
26959 (assemble_variable): Ditto.
26960 (build_constant_desc): Ditto.
26961 (output_constant_def_contents): Ditto.
26963 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
26964 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
26965 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
26966 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
26967 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
26969 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
26972 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
26973 replace %vmovsd with "%vmovq".
26974 (vec_concatv2df): Likewise.
26976 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
26978 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
26979 (*vec_extractv2si_0): Ditto.
26980 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
26981 (zero_extended_scalar_load_operand splitters): Ditto.
26982 (vec_extract splitters): Ditto.
26983 (*vec_extractv4si_0_zext): Ditto.
26984 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
26985 and lowpart_subreg.
26986 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
26987 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
26988 (*sse4_1_extractps): Use lowpart_subreg.
26989 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
26991 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26993 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
26995 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
26996 Mention Solaris 11 packaging changes.
26997 Update gas and gld requirements.
26998 Remove reference to pre-Solaris 10 bug.
26999 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
27001 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
27004 2016-04-17 Jan Hubicka <jh@suse.cz>
27006 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
27007 max_loop_iterations_int.
27009 2016-04-18 Richard Biener <rguenther@suse.de>
27011 PR tree-optimization/43434
27012 * tree-ssa-structalias.c (struct vls_data): New.
27013 (visit_loadstore): Handle all pointer-based accesses.
27014 (compute_dependence_clique): Compute a bitmap of restrict tags
27015 assigned bases and pass it to visit_loadstore.
27017 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
27020 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
27021 armv8.1-a and armv8.1-a+crc.
27023 2016-04-18 Richard Biener <rguenther@suse.de>
27025 PR tree-optimization/70701
27026 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
27027 references after translating through a memcpy.
27029 2016-04-18 Richard Biener <rguenther@suse.de>
27031 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
27032 (compute_antic): ... here. For partial antic use regular
27033 postorder and scrap iteration.
27034 (compute_partial_antic_aux): Remove unused return value.
27035 (init_pre): Do not allocate postorder.
27036 (fini_pre): Do not free postorder.
27038 2016-04-18 Richard Biener <rguenther@suse.de>
27040 PR middle-end/37870
27041 * expmed.c (extract_bit_field_1): Remove broken case
27042 using a wider MODE_INT mode.
27044 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
27046 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
27047 unless compiling with at least GCC-4.8.
27049 2016-04-17 Jan Hubicka <jh@suse.cz>
27052 * graphite.c (graphite_finalize): Update call to
27053 tree_estimate_probability.
27054 * predict.h (tree_estimate_probability): Update prototype.
27056 2016-04-17 Jan Hubicka <jh@suse.cz>
27058 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
27059 (tree_estimate_probability): Likewise.
27060 (pass_profile::execute): Update.
27061 (report_predictor_hitrates): New function.
27062 * profile.c (compute_branch_probabilities): Use it.
27063 * predict.h (report_predictor_hitrates): Declare.
27065 2016-04-17 Jan Hubicka <jh@suse.cz>
27068 * cgraph.h (cgraph_node::set_const_flag,
27069 cgraph_node::set_pure_flag): Update prototype to return bool;
27071 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
27072 of interposable symbol are interposable, too.
27073 (cgraph_set_const_flag_1): Rename to ...
27074 (set_const_flag_1): ... this one; change to self recursive function
27075 instead of call_for_symbol_thunks_and_aliases. Handle correctly
27076 clearnig the flag in all variants and also virtual thunks of const
27077 functions are pure; track if any change was done.
27078 (cgraph_node::set_const_flag): Update.
27079 (struct set_pure_flag_info): New struct.
27080 (cgraph_set_pure_flag_1): Rename to ...
27081 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
27082 rather than pointer encoded flags; track if any changes was done;
27083 handle correctly clearning flag and setting flag of aliases already
27085 (cgraph_node::set_pure_flag): Update.
27086 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
27088 2016-04-17 Tom de Vries <tom@codesourcery.com>
27091 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
27092 backslash in label.
27094 2016-04-17 Tom de Vries <tom@codesourcery.com>
27096 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
27097 '{}<> ' as escape-for-record.
27099 2016-04-17 Tom de Vries <tom@codesourcery.com>
27101 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
27104 2016-04-17 Tom de Vries <tom@codesourcery.com>
27107 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
27108 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
27109 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
27110 * passes.c (finish_optimization_passes): Only call
27111 finish_graph_dump_file if dfi->graph_dump_initialized.
27112 (execute_function_dump, pass_init_dump_file): Use
27113 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
27115 2016-04-17 Tom de Vries <tom@codesourcery.com>
27117 PR tree-optimization/70256
27118 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
27119 (debug_varmap): New function.
27121 2016-04-17 Tom de Vries <tom@codesourcery.com>
27124 * passes.c (pass_manager::register_pass): Propagate pflags.
27126 2016-04-17 Tom de Vries <tom@codesourcery.com>
27129 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
27130 * passes.c (pass_manager::pass_manager): Declare and init p_start in
27131 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
27132 check if it's equal to p_start.
27133 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
27135 2016-04-15 Jan Hubicka <jh@suse.cz>
27138 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
27139 function does not bind to current def.
27140 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
27141 handle conservatively calls to functions that does not need to bind
27143 (check_call): Update call of worse_state.
27144 (ignore_edge_for_nothrow): Update.
27145 (ignore_edge_for_pure_const): Likewise.
27146 (propagate_pure_const): Update calls to worse_state.
27147 (skip_function_for_local_pure_const): Reformat comments.
27149 2016-04-15 Jan Hubicka <jh@suse.cz>
27152 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
27153 (cgraph_node::function_symbol): Likewise.
27154 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27155 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
27156 (symtab_node::ultimate_alias_target): Add REF parameter.
27157 (symtab_node::binds_to_current_def_p): Declare.
27158 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
27159 (cgraph_node::function_symbol): Likewise.
27160 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27161 (cgraph_node::get_availability): Likewise.
27162 (cgraph_edge::binds_to_current_def_p): New inline function.
27163 (varpool_node::get_availability): Add REF parameter.
27164 (varpool_node::ultimate_alias_target): Likewise.
27165 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
27166 (symtab_node::binds_to_current_def_p): Likewise.
27167 * varpool.c (varpool_node::get_availability): Likewise.
27169 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27172 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
27173 Fix mode size check.
27175 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27177 * BASE-VER: Set to 7.0.0.
27179 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
27181 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
27183 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27185 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
27186 architecture revisions.
27188 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
27190 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
27191 * config/i386/i386.c (ix86_using_red_zone): No longer static.
27192 * config/i386/i386.md (stack decrement to push peepholes): Guard
27193 with !x86_using_red_zone ().
27195 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27198 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
27199 to dump_generic_node.
27200 (NIY): Pass also flags to do_niy.
27202 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
27204 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
27205 (simd_clone_vector_of_formal_parm_types)
27206 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
27207 (simd_clone_mangle, simd_clone_create)
27208 (simd_clone_adjust_return_type, create_tmp_simd_array)
27209 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
27210 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
27211 (ipa_simd_modify_function_body, simd_clone_linear_addend)
27212 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
27213 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
27214 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
27215 * omp-simd-clone.c: ... this new file.
27216 (simd_clone_vector_of_formal_parm_types): Make it static.
27217 * Makefile.in (OBJS): Add omp-simd-clone.o.
27219 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27222 * config/i386/sse.md: Use proper memory operand modifiers.
27225 2016-04-15 Richard Biener <rguenther@suse.de>
27226 Alan Modra <amodra@gmail.com>
27228 PR tree-optimization/70130
27229 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
27230 when alignment stays not the same and no not use the realign
27233 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27236 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27237 direct move handlers for KFmode. Change TFmode handlers test from
27238 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
27240 2016-04-14 Jakub Jelinek <jakub@redhat.com>
27243 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
27244 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
27245 (inlined_polymorphic_ctor_dtor_block_p): Use it.
27246 * tree-ssa-live.c (remove_unused_scope_block_p): When
27247 in_ctor_dtor_block, avoid discarding not just BLOCKs with
27248 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
27249 block_ultimate_origin is FUNCTION_DECL.
27250 (remove_unused_locals): If current_function_decl is
27251 polymorphic_ctor_dtor_p, pass initial true to
27252 remove_unused_scope_block_p' is_ctor_dtor_block.
27254 2016-04-14 Martin Sebor <msebor@redhat.com>
27259 * doc/extend.texi (Variable Length): Revert.
27261 2016-04-14 Marek Polacek <polacek@redhat.com>
27262 Jan Hubicka <hubicka@ucw.cz>
27265 * tree.c (verify_type): Disable the canonical type of main variant
27268 2016-04-14 Jason Merrill <jason@redhat.com>
27270 * cfgexpand.c, expr.c: Revert previous change.
27272 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
27274 PR middle-end/70643
27275 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
27276 when building a mem ref for the incoming reduction variable.
27278 2016-04-14 Richard Biener <rguenther@suse.de>
27280 PR tree-optimization/70614
27281 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
27282 loop if the evolution dropped to chrec_dont_know.
27283 (interpret_condition_phi): Likewise.
27285 2016-04-14 Richard Biener <rguenther@suse.de>
27287 PR tree-optimization/70623
27288 * tree-ssa-pre.c (changed_blocks): Make global ...
27289 (compute_antic): ... local here. Move and fix worklist
27290 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
27291 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
27292 worklist handling, dump when ANTIC_IN changed.
27293 (compute_partial_antic_aux): Remove worklist handling.
27294 (init_pre): Do not compute post dominators. Add a comment about
27295 the CFG order chosen.
27296 (fini_pre): Do not free post dominators.
27298 2016-04-13 Martin Sebor <msebor@redhat.com>
27303 * doc/extend.texi (Variable Length): Document C++ specifics.
27305 2016-04-13 Jakub Jelinek <jakub@redhat.com>
27308 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
27309 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
27310 eh edges have been purged.
27313 * tree-sra.c (create_access_replacement,
27314 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
27316 * tree-pretty-print.c (dump_fancy_name): New function.
27317 (dump_decl_name, dump_generic_node): Use it.
27319 2016-04-13 Jason Merrill <jason@redhat.com>
27321 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
27322 * expr.c (expand_expr_real_1): Likewise.
27324 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
27326 * config/i386/i386.md (kunpckhi): Swap operands.
27327 (kunpcksi): Likewise.
27328 (kunpckdi): Likewise.
27329 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
27330 (vec_pack_trunc_<mode>): Likewise.
27332 2016-04-13 Jakub Jelinek <jakub@redhat.com>
27335 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
27337 PR middle-end/70633
27338 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
27339 gimplification turns some element into non-constant.
27342 * rtl.h (convert_memory_address_addr_space_1): New prototype.
27343 * explow.c (convert_memory_address_addr_space_1): No longer static,
27344 add NO_EMIT argument and don't call convert_modes if true, pass
27345 it down recursively, remove break after return.
27346 (convert_memory_address_addr_space): Adjust caller.
27347 * simplify-rtx.c (simplify_unary_operation_1): Call
27348 convert_memory_address_addr_space_1 instead of convert_memory_address,
27349 if it returns NULL, don't simplify.
27351 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
27354 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
27356 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27358 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27359 Bump the upper SIMDLEN limits, so that if the return type or
27360 characteristic type if the return type is void can be passed in
27361 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
27364 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
27367 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
27368 Do not use "=" constraint on an input constraint.
27369 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
27370 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
27371 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
27372 generates (neg (abs ...)) instead of (abs ...).
27374 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27376 PR rtl-optimization/70596
27377 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
27378 just invalidate LRA data and reset them. Adjust dump wording.
27380 2016-04-12 Martin Liska <mliska@suse.cz>
27383 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
27385 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
27387 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27388 max_loop_iterations_int.
27389 (tree_unswitch_outer_loop): Likewise.
27390 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
27391 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
27393 2016-04-12 Tom de Vries <tom@codesourcery.com>
27395 PR tree-optimization/68756
27396 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
27397 instead of new_name.
27399 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27401 PR tree-optimization/70602
27402 * tree-sra.c (generate_subtree_copies): Don't write anything into
27403 constant pool decls.
27405 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
27406 regardless whether there are depend clauses or not.
27408 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27411 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
27412 target attribute and pragma from changing the -mfloat128
27413 and -mfloat128-hardware options.
27415 * doc/extend.texi (Additional Floating Types): Document PowerPC
27416 __float128 restrictions.
27418 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27421 * config/aarch64/driver-aarch64.c
27422 (aarch64_get_extension_string_for_isa_flags): New.
27423 (arch_extension): Rename to...
27424 (aarch64_arch_extension): ...This.
27425 (ext_to_feat_string): Rename to...
27426 (aarch64_extensions): ...This.
27427 (aarch64_core_data): Keep track of architecture extension flags.
27428 (cpu_data): Rename to...
27429 (aarch64_cpu_data): ...This.
27430 (aarch64_arch_driver_info): Keep track of architecture extension
27432 (get_arch_name_from_id): Rename to...
27433 (get_arch_from_id): ...This, change return type.
27434 (host_detect_local_cpu): Update and reformat for renames, handle
27435 extensions through common infrastructure.
27437 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27440 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
27441 track of a canonical flag name.
27442 (all_extensions): Likewise.
27443 (arch_to_arch_name): Also track extension flags enabled by the arch.
27444 (all_architectures): Likewise.
27445 (aarch64_parse_extension): Move to here.
27446 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
27448 (aarch64_rewrite_selected_cpu): Update for above change.
27449 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
27450 are handled, such that the single explicit value enabled by an
27451 extension is kept seperate from the implicit values it also enables.
27452 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
27454 (aarch64_parse_extension): New.
27455 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
27456 here to config/aarch64/aarch64-protos.h.
27457 (aarch64_parse_extension): Move from here to
27458 common/config/aarch64/aarch64-common.c.
27459 (aarch64_option_print): Update.
27460 (aarch64_declare_function_name): Likewise.
27461 (aarch64_start_file): Likewise.
27462 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
27463 the canonical flag for extensions.
27464 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
27467 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27469 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
27472 2016-04-09 Tom de Vries <tom@codesourcery.com>
27474 PR tree-optimization/68953
27475 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
27476 first to last subscript.
27478 2016-04-09 Jakub Jelinek <jakub@redhat.com>
27480 PR tree-optimization/70586
27481 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
27484 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
27488 PR tree-optimization/70373
27489 PR middle-end/70533
27490 PR middle-end/70534
27491 PR middle-end/70535
27492 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
27493 clauses for acc parallel reductions as necessary. Error on those
27495 * omp-low.c (scan_sharing_clauses): Don't install variables which
27496 are used in acc parallel reductions.
27497 (lower_rec_input_clauses): Remove dead code.
27498 (lower_oacc_reductions): Add support for reference reductions.
27499 (lower_reduction_clauses): Remove dead code.
27500 (lower_omp_target): Don't remap variables appearing in acc parallel
27502 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
27504 2016-04-08 Jakub Jelinek <jakub@redhat.com>
27506 PR middle-end/70593
27507 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
27508 with multiple SSA_NAME defs, force the outputs other than first
27509 to be live before calling live_track_process_def on each output.
27511 PR rtl-optimization/70574
27512 * fwprop.c (forward_propagate_and_simplify): Don't add
27513 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
27514 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
27515 paradoxical subregs within *loc.
27517 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
27519 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
27520 -ftree-parallelize-loops={0,1}.
27521 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
27522 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
27523 * config/ia64/hpux.h (LIB_SPEC): Likewise.
27524 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27525 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
27527 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
27530 * asan.c (instrument_derefs): If we get unknown location, extract it
27531 with EXPR_LOCATION.
27532 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
27534 2016-04-08 Tom de Vries <tom@codesourcery.com>
27536 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
27537 implicit firstprivate clause.
27539 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27542 * config/arm/thumb2.md (tst + branch-> lsls + branch
27543 peephole below *orsi_not_shiftsi_si): Require that condition
27544 register is dead after the peephole.
27545 (second peephole after the above): Likewise.
27547 2016-04-08 Alan Modra <amodra@gmail.com>
27550 * builtins.c (fold_builtin_classify): For IBM extended precision,
27551 look at just the high-order double to test for NaN.
27552 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
27553 test just the high double for Inf but both doubles for subnormal
27556 2016-04-07 Jakub Jelinek <jakub@redhat.com>
27558 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
27559 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
27560 node->simdclone->mask_mode != VOIDmode masks.
27561 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
27562 earlier, use it instead of node->simdclone.
27563 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27564 Set clonei->mask_mode.
27566 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
27569 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
27570 Pass it through to cp_parser_already_scoped_statement.
27571 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
27572 it through to cp_parser_statement.
27573 (cp_parser_statement): Pass IF_P through to
27574 cp_parser_iteration_statement.
27575 (cp_parser_pragma): Adjust call to
27576 cp_parser_iteration_statement.
27578 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
27581 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
27582 resolve a future -Wparentheses warning.
27583 * omp-low.c (scan_sharing_clauses): Likewise.
27584 * tree-parloops.c (eliminate_local_variables): Likewise.
27586 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
27588 PR rtl-optimization/70398
27589 * lra-constraints.c (process_address_1): Check zero scale and code
27590 for reloading with zero scale.
27592 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
27594 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
27595 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
27597 2016-04-06 Jakub Jelinek <jakub@redhat.com>
27599 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27600 Add support for AVX512F clones, include them by default for
27601 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
27602 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
27605 PR middle-end/70550
27606 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
27607 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
27608 firstprivate clauses.
27609 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
27610 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
27611 (lower_omp_target): Set TREE_NO_WARNING for
27612 non-addressable possibly uninitialized vars which are copied into
27613 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
27615 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
27617 * config/pa/predicates.md (integer_store_memory_operand): Accept
27618 REG+D operands with a large offset when reload_in_progress is true.
27619 (floating_point_store_memory_operand): Likewise.
27621 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27624 * match.pd (nested int casts): Limit to GIMPLE.
27626 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
27629 * ipa-devirt.c (maybe_record_node): Fix comment; use
27630 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
27632 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27634 PR rtl-optimization/70542
27635 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
27636 if there are any uses other than insn or debug insns.
27638 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
27639 Jakub Jelinek <jakub@redhat.com>
27641 PR tree-optimization/70509
27642 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
27643 Shift HOST_WIDE_INT_1U instead of 1.
27645 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
27647 PR tree-optimization/70509
27648 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
27649 of the vector base type for index.
27651 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
27654 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
27656 2016-04-05 Richard Biener <rguenther@suse.de>
27658 PR tree-optimization/70526
27659 * tree-sra.c (build_ref_for_offset): Use prev_base to
27660 extract the alias pointer type.
27662 2016-04-05 Richard Biener <rguenther@suse.de>
27664 * dse.c (struct store_info): Remove alias_set member.
27665 (struct read_info_type): Likewise.
27666 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
27667 spill_deleted, clear_alias_set_lookup): Remove.
27668 (get_group_info): Remove dead base == NULL_RTX case.
27669 (dse_step0): Remove initialization of removed variables.
27670 (delete_dead_store_insn): Reomve alias set dumping.
27671 (free_read_records): Remove alias_set handling.
27672 (canon_address): Remove alias_set_out parameter.
27673 (record_store): Remove spill_alias_set, it's always zero.
27674 (check_mem_read_rtx): Likewise.
27675 (dse_step2): Rename from ...
27676 (dse_step2_nospill): ... this. Adjust.
27677 (scan_stores): Rename from ...
27678 (scan_stores_nospill): ... this.
27679 (scan_reads): Rename from ...
27680 (scan_reads_nospill): ... this.
27681 (scan_stores_spill, scan_reads_spill): Remove.
27682 (dse_step3_scan): Remove for_spills argument which is always false.
27683 (dse_step3): Likewise.
27684 (dse_step5): Rename from ...
27685 (dse_step5_nospill): ... this. Remove alias_set handling.
27686 (rest_of_handle_dse): Adjust.
27688 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27691 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
27692 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
27693 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
27694 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
27696 2016-04-05 Richard Biener <rguenther@suse.de>
27698 PR middle-end/70499
27699 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
27700 non-register type temporaries into SSA.
27702 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
27705 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
27706 calls when sanitizing.
27707 (possible_polymorphic_call_target_p): Fix formatting.
27709 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27710 Jakub Jelinek <jakub@redhat.com>
27712 PR middle-end/70457
27713 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
27714 to ensure a call statement is compatible with a built-in's
27716 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
27719 2016-04-04 Richard Biener <rguenther@suse.de>
27721 PR rtl-optimization/70484
27722 * rtl.h (canon_output_dependence): Declare.
27723 * alias.c (canon_output_dependence): New function.
27724 * dse.c (record_store): Use canon_output_dependence rather
27725 than canon_true_dependence.
27727 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
27730 * cgraph.h (symtab_node::copy_visibility_from): New function.
27731 * symtab.c (symtab_node::copy_visibility_from): New function.
27732 * ipa-visibility.c (optimize_weakref): New function.
27733 (function_and_variable_visibility): Use it.
27735 2016-04-04 Martin Liska <mliska@suse.cz>
27738 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
27739 value that is really in range handled by SBR instruction.
27740 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
27741 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
27742 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
27744 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
27748 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
27749 set, but not for SP_REG operands.
27751 2016-04-02 Martin Sebor <msebor@redhat.com>
27754 * fold-const.c (maybe_nonzero_address): New function.
27755 (fold_comparison): Call it. Fold equality and relational
27756 expressions involving null pointers.
27757 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
27759 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
27761 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
27762 the "Y" constraint (scalar FP 0.0 immediate).
27764 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
27765 Add the "const_double" to the list of operand constraints.
27767 2016-04-01 Jakub Jelinek <jakub@redhat.com>
27769 PR rtl-optimization/70467
27770 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
27771 If low word of the last operand is 0, just emit addition/subtraction
27774 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27777 * config/s390/s390.c (s390_expand_insv): Check for everything
27778 constant instead of just VOIDmode stuff.
27780 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27783 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
27785 2016-04-01 Nathan Sidwell <nathan@acm.org>
27787 * tree.def (TRY_CATCH_EXPR): Correct documentation.
27789 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
27791 PR rtl-optimization/70461
27792 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
27795 2016-03-31 Martin Liska <mliska@suse.cz>
27798 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
27799 a tree value or an immediate integer value to a buffer
27800 that is eventually copied to a BRIG section.
27801 (emit_immediate_operand): Call the function here.
27802 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
27803 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
27804 of class' fields that are removed.
27805 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
27806 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
27807 m_brig_repr_size fields.
27809 2016-03-31 Martin Liska <mliska@suse.cz>
27812 * hsa-gen.c (hsa_function_representation::update_dominance): New
27814 (convert_addr_to_flat_segment): Likewise.
27815 (gen_hsa_memory_set): New alignment argument.
27816 (gen_hsa_ctor_assignment): Likewise.
27817 (gen_hsa_insns_for_single_assignment): Provide alignment
27818 to gen_hsa_ctor_assignment.
27819 (gen_hsa_insns_for_direct_call): Add new argument.
27820 (expand_lhs_of_string_op): New function.
27821 (expand_string_operation_builtin): Likewise.
27822 (expand_memory_copy): New function.
27823 (expand_memory_set): New function.
27824 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
27825 (convert_switch_statements): Change signature.
27826 (generate_hsa): Use a return value of the function.
27827 (pass_gen_hsail::execute): Do not call
27828 convert_switch_statements here.
27829 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
27830 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
27831 (hsa_function_representation::update_dominance): New function.
27833 2016-03-31 Martin Liska <mliska@suse.cz>
27836 * hsa-brig.c (emit_directive_variable): Emit alignment
27837 according to hsa_symbol::m_align.
27838 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
27839 (dump_hsa_symbol): Dump alignment of HSA symbols.
27840 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
27841 (gen_hsa_addr_with_align): New function.
27842 (hsa_bitmemref_alignment): Use newly added function.
27843 (gen_hsa_insns_for_load): Likewise.
27844 (gen_hsa_insns_for_store): Likewise.
27845 (gen_hsa_memory_copy): New argument added.
27846 (gen_hsa_insns_for_single_assignment): Respect
27847 alignment for assignments processed via gen_hsa_memory_copy.
27848 (gen_hsa_insns_for_direct_call): Likewise.
27849 (gen_hsa_insns_for_return): Likewise.
27850 (gen_function_def_parameters): Set default alignment.
27851 * hsa.c (hsa_object_alignment): New function.
27852 (hsa_byte_alignment): Pasted function.
27853 * hsa.h (hsa_symbol::m_align): New field.
27855 2016-03-31 Bin Cheng <bin.cheng@arm.com>
27857 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
27858 scratch field for goto case.
27860 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
27862 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
27864 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
27867 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
27868 (scalar_chain::convert_insn): Call convert_op for reg
27869 moves to handle undefined registers.
27871 2016-03-31 Nathan Sidwell <nathan@acm.org>
27874 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
27875 Assert we don't want to move backwards.
27877 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
27880 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
27882 2016-03-31 Jakub Jelinek <jakub@redhat.com>
27884 PR rtl-optimization/70460
27885 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
27886 with operand from REG_LABEL_OPERAND, instead substitute
27887 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
27888 Don't do anything for REG_NON_LOCAL_GOTO jumps.
27890 2016-03-31 Martin Liska <mliska@suse.cz>
27892 * passes.c (execute_one_pass): Do not call
27893 todo_after for a discarded function.
27895 2016-03-31 Bin Cheng <bin.cheng@arm.com>
27897 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
27898 (no_cost, infinite_cost): Initialize the new field.
27899 (get_computation_cost_at): Record setup cost.
27900 (determine_use_iv_cost_address): Skip cost computation for sub
27901 uses if we can estimate it without losing accuracy.
27903 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
27905 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
27907 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27908 max_loop_iterations_int.
27909 (tree_unswitch_outer_loop): Likewise.
27910 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
27911 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
27913 2016-03-30 Richard Biener <rguenther@suse.de>
27915 PR middle-end/70450
27916 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
27918 2016-03-30 Jakub Jelinek <jakub@redhat.com>
27921 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
27922 in gen_blendm expander.
27924 2016-03-30 Nick Clifton <nickc@redhat.com>
27927 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
27928 case where we are already provided with an SImode SUBREG.
27930 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
27933 * config/i386/i386.c (ix86_expand_epilogue): Properly check
27934 conflict between DRAP register and __builtin_eh_return.
27936 2016-03-30 Michael Matz <matz@suse.de>
27937 Richard Biener <rguenther@suse.de>
27940 * ipa-polymorphic-call.c (struct type_change_info): Change
27941 speculative to an unsigned allowing to limit the work we do.
27942 (csftc_abort_walking_p): New inline function..
27943 (check_stmt_for_type_change): Limit the number of may-defs
27944 skipped for speculative devirtualization to
27945 max-speculative-devirt-maydefs.
27946 * params.def (max-speculative-devirt-maydefs): New param.
27947 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
27949 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
27952 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
27955 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
27957 PR tree-optimization/59124
27958 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
27959 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
27961 2016-03-29 Jeff Law <law@redhat.com>
27963 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
27965 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
27967 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
27970 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
27972 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
27973 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
27974 gcrt0.o if linking dynamically.
27976 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
27979 * ipa-devirt.c (methods_equal_p): New function.
27980 (compare_virtual_tables): Use it.
27981 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
27982 * cgraphclones.c (clone_function_name_1): Use
27983 symbol_table::symbol_suffix_separator.
27984 * coverage.c (build_var): Likewise.
27985 * symtab.c (symbol_table::symbol_suffix_separator): New.
27987 2016-03-29 Jakub Jelinek <jakub@redhat.com>
27989 PR rtl-optimization/70429
27990 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
27991 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
27992 mode != result_mode.
27995 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
27997 PR tree-optimization/70405
27998 * ssa-iterators.h (num_imm_uses): Add missing braces.
28000 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
28002 PR rtl-optimization/68695
28003 * ira-color.c (allocno_copy_cost_saving): New.
28004 (improve_allocation): Use it.
28006 2016-03-29 Richard Henderson <rth@redhat.com>
28008 PR middle-end/70355
28009 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
28011 2016-03-29 Richard Biener <rguenther@suse.de>
28013 PR middle-end/70424
28014 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
28015 use alignment returned by get_pointer_alignment_1 if it is
28016 bigger than BITS_PER_UNIT.
28017 * builtins.c (get_pointer_alignment_1): Do not return true
28018 for alignment extracted from SSA info.
28020 2016-03-28 James Bowman <james.bowman@ftdichip.com>
28022 * config/ft32/ft32.opt (mnodiv): New.
28023 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
28024 * doc/invoke.texi (FT32 Options -mnodiv): New.
28026 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
28029 * config/i386/i386.md (define_split, andn): Fix modes.
28031 2016-03-26 Richard Biener <rguenther@suse.de>
28032 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28035 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
28037 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
28038 as 2nd argument to cl_optimization_restore().
28040 2016-03-25 Richard Henderson <rth@redhat.com>
28043 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
28044 * config/aarch64/aarch64-protos.h: Declare it.
28045 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
28047 2016-03-25 Alan Modra <amodra@gmail.com>
28050 * config/rs6000/constraints.md (j): Simplify.
28051 * config/rs6000/predicates.md (easy_fp_constant): Exclude
28053 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
28054 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
28055 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
28056 in all constraint alternatives.
28057 (movtd_64bit_nodm): Delete "j" constraint alternative.
28059 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
28061 * tree-ssa-propagate.c: Enhance docs for
28062 SSA_PROP_NOT_INTERESTING.
28064 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
28066 * doc/extend.texi: Fix typo in documentation to pure attribute.
28068 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
28071 * config/pa/pa.md (bswapdi2): Use a scratch register.
28073 2016-03-24 Richard Henderson <rth@redhat.com>
28075 PR middle-end/69845
28076 * fold-const.c (extract_muldiv_1): Correct test for multiplication
28079 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
28081 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
28082 using ix86_expand_binary_operator instead of gen_andsi3.
28084 2016-03-24 Richard Biener <rguenther@suse.de>
28086 PR tree-optimization/70396
28087 * tree-vect-stmts.c (vectorizable_comparison): Use
28088 get_vectype_for_scalar_type.
28090 2016-03-24 Richard Biener <rguenther@suse.de>
28092 PR middle-end/70370
28093 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
28094 with register bases.
28096 2016-03-24 Richard Biener <rguenther@suse.de>
28098 PR tree-optimization/70372
28099 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
28100 build_all_ones_cst to also handle vector types correctly.
28102 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28105 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
28108 2016-03-23 Marek Polacek <polacek@redhat.com>
28111 * doc/invoke.texi: Document -Wignored-attributes.
28113 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28115 PR tree-optimization/69042
28116 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
28117 parameter from 30 to 40.
28119 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28121 PR tree-optimization/69042
28122 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
28123 for use with constant offset stripped in base.
28125 2016-03-23 Richard Biener <rguenther@suse.de>
28127 PR middle-end/70251
28128 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
28129 mode compatibility check.
28130 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28132 2016-03-23 Jeff Law <law@redhat.com>
28134 PR tree-optimization/64058
28135 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
28137 (struct ssa_conflicts): Move up earlier in the file.
28138 (conflicts_, var_map_): New static variables.
28139 (initialize_conflict_count): New function to initialize the
28140 CONFLICT_COUNT field for each conflict pair.
28141 (compare_pairs): Lazily initialize the conflict count and use it
28142 as the first tie-breaker.
28143 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
28144 and wipe conflicts_ and map_ around the call to qsort. Remove
28145 special case for 2 coalesce pairs.
28146 * bitmap.c (bitmap_count_unique_bits): New function.
28147 (bitmap_count_bits_in_word): New function, extracted from
28149 (bitmap_count_bits): Use bitmap_count_bits_in_word.
28150 * bitmap.h (bitmap_count_unique_bits): Declare it.
28152 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
28155 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
28156 transparent alias chain for decl assembler name.
28157 * config/sol2.c (solaris_assemble_visibility): Likewise.
28159 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28161 * config/arm/arm1020e.md (1020call_op): Reduce reservation
28163 (v10_fdivs): Likewise.
28164 (v10_fdivd): Likewise.
28166 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28169 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
28170 to not call fclose twice on file.
28172 2016-03-23 Jakub Jelinek <jakub@redhat.com>
28174 PR tree-optimization/70354
28175 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
28176 oprnd0 is wider than oprnd1 and there is a cast from the wider
28177 type to oprnd1, mask it with the mask of the narrower type.
28180 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
28181 Optimize TARGET_STV splitters, if high or low word of last argument
28184 2016-03-22 Jeff Law <law@redhat.com>
28187 tree-ssa-threadbackward.c
28188 (fsm_find_control_statement_thread_paths): Correctly distinguish
28189 between old style jump threads vs FSM jump threads.
28191 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
28194 * config/i386/i386.c (scalar_chain::convert_op): Support
28195 uninitialized register usage case.
28197 2016-03-22 Richard Biener <rguenther@suse.de>
28199 PR middle-end/70251
28200 * genmatch.c (gen_transform): Adjust last parameter to a three-state
28202 (capture::gen_transform): ... to change behavior when substituting
28203 a condition into cond or not-cond expr context.
28204 (dt_simplify::gen_1): Adjust.
28205 * gimple-match-head.c: Include gimplify.h for unshare_expr.
28206 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
28207 last change and instead change to
28208 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
28209 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28211 2016-03-22 Anthony Green <green@moxielogic.com>
28213 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
28214 issue for moxiebox targets.
28215 (CC1PLUS_SPEC): Ditto.
28217 2016-03-22 Richard Biener <rguenther@suse.de>
28219 PR middle-end/70333
28220 * fold-const.c (extract_muldiv_1): Properly perform multiplication
28223 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28225 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
28227 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28230 * config/i386/i386.c (def_builtin): Handle
28231 OPTION_MASK_ISA_AVX512VL to be and-ed with other
28233 (const struct builtin_description bdesc_special_args[]):
28234 Remove duplicate ISA bits.
28236 2016-03-22 Jakub Jelinek <jakub@redhat.com>
28239 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
28240 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
28241 in a way that works also for AVX512BW.
28244 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
28245 instead of source if operands[1] is xmm16 and above and
28246 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
28247 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
28250 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
28251 on assign if (*from_p) is a comparison, set it to
28252 TREE_NO_WARNING (*from_p).
28254 2016-03-21 Jakub Jelinek <jakub@redhat.com>
28256 PR middle-end/70326
28257 * lra.c (restore_scratches): Ignore deleted insns.
28259 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
28260 Jakub Jelinek <jakub@redhat.com>
28262 PR tree-optimization/70317
28263 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
28266 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
28269 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
28270 of ix86_expand_move.
28272 (movti): Use general_operand for operand 1 predicate.
28274 2016-03-21 Martin Liska <mliska@suse.cz>
28276 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
28278 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
28280 2016-03-21 Martin Liska <mliska@suse.cz>
28283 * ipa-icf.c (sem_function::parse): Skip static
28284 constructors and destructors.
28286 2016-03-21 Jakub Jelinek <jakub@redhat.com>
28289 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
28290 function-like macro, peek following token(s) if it is followed
28291 by CPP_OPEN_PAREN token with optional padding in between, and
28292 if not, don't treat it like a macro.
28294 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
28295 Alexander Monakov <amonakov@ispras.ru>
28297 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
28298 for the stabs debug format.
28300 2016-03-21 Richard Biener <rguenther@suse.de>
28302 PR tree-optimization/70310
28303 * tree-vect-generic.c (expand_vector_condition): Fold the built
28306 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
28309 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
28310 Block third alternative for AVX-512VL target,
28312 2016-03-21 Martin Liska <mliska@suse.cz>
28315 * hsa-brig.c (emit_function_directives): Mark unemitted
28316 global variables for emission.
28317 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
28318 (get_symbol_for_decl): Likewise.
28319 * hsa.h (struct hsa_symbol): New flag.
28321 2016-03-21 Richard Biener <rguenther@suse.de>
28323 PR tree-optimization/70288
28324 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
28325 we do not estimate unsimplified all-constant conditionals or
28326 switches as optimized away.
28328 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
28330 PR rtl-optimization/69102
28331 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
28332 when we have a readonly dependency context.
28334 2016-03-18 Jeff Law <law@redhat.com>
28336 PR rtl-optimization/70263
28337 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
28338 (update_equiv_regs): When trying to move a store to after the insn
28339 that sets the source of the store, make sure the store occurs after
28340 the insn that sets the source of the store. When successful note
28341 the REG_EQUIV note created in the dump file.
28343 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
28344 Bernd Schmidt <bschmidt@redhat.com>
28346 * doc/extend.texi: Document more potential problems with basic asms.
28348 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
28350 PR rtl-optimization/70278
28351 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
28354 2016-03-18 Jason Merrill <jason@redhat.com>
28356 * calls.c (load_register_parameters): Fix zero size sibcall logic.
28358 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
28360 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
28361 values to 128b regs.
28363 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
28365 PR tree-optimization/70252
28366 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
28367 boolean vector has a proper number of elements.
28368 (supportable_narrowing_operation): Likewise.
28370 2016-03-18 Tom de Vries <tom@codesourcery.com>
28373 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
28375 2016-03-18 Jakub Jelinek <jakub@redhat.com>
28377 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
28378 instead of replace_rtx for DEBUG_INSNs.
28380 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28382 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
28383 load type reservations.
28385 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
28388 * config/pa/constraints.md: Revert 2015-02-13 change. Use
28389 define_constraint for "Q" and "T" constraints.
28391 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
28393 Tweak the pipeline model for Exynos M1
28395 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
28398 2016-03-17 David Malcolm <dmalcolm@redhat.com>
28401 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
28402 where one or both locations aren't within a line_map.
28404 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
28407 * opts.c (finish_options): Don't set flag_pie to the default if
28408 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
28411 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
28413 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
28414 true as ALL_REGS argument to replace_rtx.
28416 2016-03-17 Richard Biener <rguenther@suse.de>
28419 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
28422 2016-03-17 Jakub Jelinek <jakub@redhat.com>
28425 * rtl.h (replace_rtx): Add ALL_REGS argument.
28426 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
28427 equality and assert mode is the same, instead of just rtx pointer
28429 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
28430 true as ALL_REGS argument to replace_rtx.
28432 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
28434 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
28435 for boolean vector with vector mode only.
28436 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28438 2016-03-17 Nick Clifton <nickc@redhat.com>
28441 * config/rx/rx.c (rx_print_integer): Print negative constants in
28444 2016-03-17 Jakub Jelinek <jakub@redhat.com>
28447 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
28449 2016-03-16 Richard Henderson <rth@redhat.com>
28450 Richard Biener <rguenth@suse.de>
28452 PR middle-end/70240
28453 PR middle-end/68215
28455 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
28456 first operand as is_gimple_condexpr.
28458 PR middle-end/70240
28459 PR middle-end/68215
28461 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
28462 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
28463 Do not gimplify the result.
28464 (do_unop): Adjust call to tree_vec_extract.
28465 (do_binop): Likewise.
28466 (do_compare): Likewise.
28467 (do_plus_minus): Likewise.
28468 (do_negate): Likewise.
28469 (expand_vector_condition): Likewise.
28470 (do_cond): Likewise.
28472 2016-03-16 Richard Henderson <rth@redhat.com>
28475 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
28476 (aarch64_classify_address): Use it.
28477 (aarch64_legitimize_address): Force all subexpressions of PLUS
28478 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
28480 2016-03-16 Jakub Jelinek <jakub@redhat.com>
28481 Richard Biener <rguenth@suse.de>
28484 * rtlanal.c (replace_rtx): For REG, if from is a REG,
28485 return to even if only REGNO is equal, and assert
28488 2016-03-11 Jeff Law <law@redhat.com>
28490 PR rtl-optimization/70224
28491 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
28493 2016-03-16 Richard Henderson <rth@redhat.com>
28495 PR middle-end/70199
28496 * function.h (struct function): Add has_forced_label_in_static.
28497 * gimplify.c (force_labels_r): Set it.
28498 * lto-streamer-in.c (input_struct_function_base): Read it.
28499 * lto-streamer-out.c (output_struct_function_base): Write it.
28500 * tree-inline.c (has_label_address_in_static_1): Remove.
28501 (copy_forbidden): Remove fndecl parameter; test
28502 has_forced_label_in_static.
28503 (inline_forbidden_p): Update call to copy_forbidden.
28504 (tree_versionable_function_p): Likewise.
28505 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
28506 (chkp_versioning): Likewise.
28507 * tree-inline.h (copy_forbidden): Update decl.
28509 2016-03-16 Marek Polacek <polacek@redhat.com>
28512 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
28513 function being thunked if the result type doesn't have fixed size.
28514 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
28515 doesn't have fixed size.
28517 2016-03-16 Bin Cheng <bin.cheng@arm.com>
28519 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
28520 reporting malformed loop nest.
28522 2016-03-16 Tom de Vries <tom@codesourcery.com>
28525 * ipa-devirt.c (possible_polymorphic_call_targets): Move
28526 nodes.length () == 1 test to before first nodes[0] access.
28528 2016-03-16 Tom de Vries <tom@codesourcery.com>
28530 PR tree-optimization/68715
28531 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
28532 single_pred_p test.
28534 2016-03-16 Tom de Vries <tom@codesourcery.com>
28536 PR tree-optimization/68809
28537 * graphite-scop-detection.c (same_close_phi_node): Test if result types
28540 2016-03-16 Carlos O'Donell <carlos@redhat.com>
28541 Sandra Loosemore <sandra@codesourcery.com>
28543 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
28544 on leaf attribute. Mention ELF interposition problems.
28546 2016-03-16 Alan Modra <amodra@gmail.com>
28548 PR rtl-optimization/69195
28549 PR rtl-optimization/47992
28550 * ira.c (indirect_jump_optimize): Ignore artificial defs.
28553 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
28556 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
28558 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28560 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
28562 2016-03-15 Jakub Jelinek <jakub@redhat.com>
28564 PR rtl-optimization/70222
28565 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
28566 optimization if mode is different from result_mode, queue up masking
28567 of the result in outer_op. Formatting fix.
28569 PR middle-end/70239
28570 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
28573 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28575 PR rtl-optimization/69032
28576 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
28577 looping backwards over basic block insns.
28579 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28582 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
28583 to non-speculative when propagating trap bits.
28585 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28587 PR rtl-optimization/63384
28588 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
28589 DEBUG_INSN_P insns.
28591 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28594 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
28595 factored out from ...
28596 (sched_analyze_insn): ... here.
28597 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
28598 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
28599 get_implicit_reg_pending_clobbers in it.
28600 (setup_id_reg_sets): Use setup_id_implicit_regs.
28601 (deps_init_id): Ditto.
28603 2016-03-15 Tom de Vries <tom@codesourcery.com>
28606 * cgraph.c (cgraph_node::get_body): Save, reset and restore
28608 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
28609 execute_function_dump.
28610 (execute_one_pass): Don't dump function if it will be dumped after ipa
28613 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
28615 * genrecog.c (match_pattern_2): If pred is NULL don't call
28616 safe_predicate_mode on it.
28618 2016-03-14 Jakub Jelinek <jakub@redhat.com>
28620 PR middle-end/70219
28621 * lra-constraints.c (delete_move_and_clobber): Change assertion
28622 to also allow dregno == 0.
28624 2016-03-14 Richard Henderson <rth@redhat.com>
28627 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
28628 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
28629 (reassociate_bb): Use optimize_vec_cond_expr; avoid
28630 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
28633 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
28636 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
28638 (lra_create_live_ranges_1): initialize hard register biggest_mode to
28640 * lra-constraints.c (split_reg): For hard regs, try to find the
28641 biggest single-register mode used in the function.
28643 2016-03-14 Richard Biener <rguenther@suse.de>
28645 PR tree-optimization/56365
28646 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
28647 constants to compare against.
28649 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
28652 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
28653 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
28654 (define_split for the GPR case): Use int_reg_operand instead of
28655 gpc_reg_operand for the output.
28657 2016-03-14 Tom de Vries <tom@codesourcery.com>
28659 PR tree-optimization/70045
28660 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
28661 create_empty_if_region_on_edge argument.
28663 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
28665 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
28666 (STACK_CHECK_PROTECT): Likewise.
28667 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
28668 (STACK_CHECK_PROTECT): Likewise.
28669 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
28670 (STACK_CHECK_PROTECT): Likewise.
28671 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
28672 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
28673 (STACK_CHECK_PROTECT): Likewise.
28675 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
28677 PR rtl-optimization/69307
28678 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
28679 registers in modes that span more than one register.
28681 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
28684 * lra-constraints.c (delete_move_and_clobber): New.
28685 (remove_inheritance_pseudos): Use it.
28687 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
28690 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
28691 the libcall is LCT_THROW.
28692 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
28693 for the checking routine.
28695 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28698 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
28699 optimization if we have direct move.
28700 (roundu32<mode>2_fprs): Likewise.
28702 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
28705 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
28707 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
28708 Arguments swapped. All callers changed. Take reg_renumber into
28709 account, and Calculate and compare register ranges for hard regs.
28711 2016-03-11 Jeff Law <law@redhat.com>
28713 PR tree-optimization/70190
28714 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
28715 Handle cases where we can not extract the taken edge, even though we
28716 found a constant value.
28718 PR tree-optimization/64058
28719 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
28720 (num_coalesce_pairs): Move up earlier in file.
28721 (find_coalesce_pair): Initialize the INDEX field for each pair
28723 (compare_pairs): No longer sort on the elements in each pair.
28724 Instead break ties with the index of the coalesce pair.
28726 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28729 * config/aarch64/aarch64-protos.h
28730 (aarch64_save_restore_target_globals): New prototype.
28731 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
28732 Call the above when popping pragma.
28733 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
28735 (aarch64_set_current_function): Rewrite using the above.
28737 2016-03-11 Jakub Jelinek <jakub@redhat.com>
28739 PR tree-optimization/70177
28740 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
28741 (extract_ops_from_tree): ... this. In the 2 argument
28742 overload remove _1 suffix.
28743 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
28744 (extract_ops_from_tree): ... this.
28745 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
28747 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
28748 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
28749 extract_ops_from_tree instead of 2 operand one.
28751 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
28753 PR tree-optimization/70013
28754 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
28755 for constant-pool entries.
28757 2016-03-11 Jakub Jelinek <jakub@redhat.com>
28759 PR rtl-optimization/70174
28760 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
28761 followed by gen_lowpart on force_reg instead of just gen_lowpart.
28763 PR tree-optimization/70169
28764 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
28765 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
28768 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
28769 Jakub Jelinek <jakub@redhat.com>
28772 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
28773 of uninitialized values.
28775 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28777 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
28779 ("*trunctddd2"): New pattern definition.
28780 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
28783 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28785 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
28786 definitions for BFP and DFP rounding modes.
28787 ("fixuns_truncdddi2", "fixuns_trunctddi2")
28788 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
28789 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
28790 ("fix_trunctf<mode>2"): Use the new constants instead of magic
28793 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28795 * config/s390/constraints.md: Adjust comment.
28796 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
28797 s390_decompose_addrstyle_without_index.
28798 * config/s390/predicates.md (shift_count_or_setmem_operand):
28799 Rename to setmem_operand.
28800 * config/s390/s390-protos.h
28801 (s390_decompose_shift_count): Rename to
28802 s390_decompose_addrstyle_without_index.
28803 * config/s390/s390.c (s390_decompose_shift_count)
28804 (s390_mem_constraint, print_shift_count_operand)
28805 (print_operand_address, print_operand): Rename
28806 s390_decompose_shift_count to
28807 s390_decompose_addrstyle_without_index and rename
28808 print_shift_count_operand to print_addrstyle_operand troughout the
28810 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
28811 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
28812 Rename shift_count_or_setmem_operand to setmem_operand.
28813 * config/s390/vx-builtins.md ("vec_insert<mode>")
28814 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
28817 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28820 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
28821 Handle overlapping retval and newval.
28823 2016-03-10 Nick Clifton <nickc@redhat.com>
28826 * config/aarch64/aarch64.c
28827 (aarch64_override_options_after_change_1): When forcing
28828 flag_omit_frame_pointer to be true, use a special value that can
28829 be detected if this function is called again, thus preventing
28830 flag_omit_leaf_frame_pointer from being forced to be false.
28832 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28834 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
28835 Set x_flag_omit_leaf_frame_pointer when handling
28836 -momit-leaf-frame-pointer.
28838 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28841 * cgraph.c (cgraph_node::dump): Dump split_part and
28842 indirect_call_target.
28843 * cgraph.h (cgraph_node): Add indirect_call_target flag.
28844 * ipa.c (has_addr_references_p): Cleanup.
28845 (is_indirect_call_target_p): New.
28846 (walk_polymorphic_call_targets): Do not mark virtuals that may be
28847 called indirectly as local.
28848 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
28850 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28853 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
28854 on cxa_pure_virtual.
28856 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28859 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
28861 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28864 * tree.c (need_assembler_name_p): Only record main variant type names.
28866 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
28869 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
28870 Always define to 0 or 1.
28871 (TARGET_FIX_ERR_A53_843419): New macro.
28872 * config/aarch64/aarch64-elf-raw.h
28873 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
28874 * config/aarch64/aarch64-linux.h: Likewise.
28875 * config/aarch64/aarch64.c
28876 (aarch64_override_options_after_change_1): Do not default
28877 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
28879 (aarch64_attributes): Handle fix-cortex-a53-843419.
28880 (aarch64_can_inline_p): Likewise.
28881 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
28883 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
28884 Jakub Jelinek <jakub@redhat.com>
28886 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
28887 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
28888 DECL_COMMONS if flag_unconstrained_commons is set.
28889 * tree-dfa.c (get_ref_base_and_extent): Likewise.
28890 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
28891 (funconstrained-commons): Document.
28893 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
28895 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
28896 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
28898 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
28900 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
28901 has a proper number of elements.
28903 2016-03-10 Alan Modra <amodra@gmail.com>
28905 PR rtl-optimization/69195
28906 PR rtl-optimization/47992
28907 * ira.c (recorded_label_ref): Delete.
28908 (update_equiv_regs): Return void.
28909 (indirect_jump_optimize): New function.
28910 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
28911 before regstat_compute_ri. Don't rebuild_jump_labels here.
28912 Delete update_regstat.
28914 2016-03-10 Richard Biener <rguenther@suse.de>
28916 PR tree-optimization/70128
28917 * tree-ssa-structalias.c (set_uids_in_ptset): Set
28918 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
28920 2016-03-09 Jakub Jelinek <jakub@redhat.com>
28922 PR tree-optimization/70152
28923 * tree-sra.c (replace_removed_params_ssa_names): Copy over
28924 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
28927 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
28928 instead of gen_sse2_loadlpd.
28929 * config/i386/sse.md (*vec_concatv2df): Rename to...
28930 (vec_concatv2df): ... this.
28932 PR tree-optimization/70127
28933 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
28935 2016-03-09 David Malcolm <dmalcolm@redhat.com>
28939 * diagnostic-show-locus.c (compatible_locations_p): New function.
28940 (layout::layout): Sanitize ranges using compatible_locations_p.
28942 2016-03-09 David Malcolm <dmalcolm@redhat.com>
28946 * diagnostic-show-locus.c (layout_range::layout_range): Replace
28947 location_range param with three const expanded_locations * and a
28949 (layout::layout): Replace call to
28950 rich_location::lazily_expand_location with get_expanded_location.
28951 Extract the range and perform location expansion here, passing
28952 the results to the layout_range ctor.
28953 * diagnostic.c (source_range::debug): Delete.
28954 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
28955 of rich_location::get_expanded_location.
28956 * gcc-rich-location.c (get_range_for_expr): Delete.
28957 (gcc_rich_location::add_expr): Reimplement to avoid the
28958 rich_location::add_range overload that took a location_range,
28959 passing a location_t instead.
28961 2016-03-09 Richard Biener <rguenther@suse.de>
28962 Jakub Jelinek <jakub@redhat.com>
28964 PR tree-optimization/70138
28965 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
28966 Also skip vect_double_reduction_def.
28968 2016-03-09 Jakub Jelinek <jakub@redhat.com>
28971 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
28972 if the operand is "m".
28974 2016-03-09 Nathan Sidwell <nathan@acm.org>
28976 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
28978 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28980 * config/i386/i386.c (processor_target_table): Fix cost table
28981 intialization order for znver1.
28983 2016-03-08 Jakub Jelinek <jakub@redhat.com>
28985 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
28986 - becuase -> because.
28987 * ipa-reference.c (ignore_module_statics): Likewise.
28988 * cgraph.c (cgraph_node::get_body): Likewise.
28989 * ipa-inline.c (early_inliner): Likewise.
28990 * ipa-devirt.c (types_same_for_odr): Likewise.
28991 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
28992 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
28994 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28996 * tree-ssa-math-opts.c: Fix typo in comment.
28998 2016-03-08 Jakub Jelinek <jakub@redhat.com>
29001 * config/i386/i386.c (scalar_chain::make_vector_copies,
29002 scalar_chain::convert_reg): Call end_sequence in between
29003 get_insns and emit_conversion_insns rather than after both
29006 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
29009 * config/i386/i386.h (machine_function): Add
29010 pc_thunk_call_expanded flag.
29011 (ix86_pc_thunk_call_expanded): New define.
29012 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
29013 (*set_got): Rename insn pattern from set_got.
29014 (*set_got_labelled): Rename inst pattern from set_got_labelled.
29015 * config/i386/i386.c (ix86_compute_frame_layout): Use
29016 ix86_pc_thunk_call_expanded to prevent red-zone.
29018 2016-03-07 Martin Jambor <mjambor@suse.cz>
29020 * hsa.h (hsa_get_ctor_statements): Declare.
29021 (hsa_get_dtor_statements): Likewise.
29022 (hsa_get_kernel_dispatch_type): Likewise.
29023 * hsa.c (hsa_get_ctor_statements): New function.
29024 (hsa_get_dtor_statements): Likewise.
29025 (hsa_get_kernel_dispatch_type): Likewise.
29026 * hsa-brig.c (hsa_cdtor_statements): Removed.
29027 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
29028 hsa_get_dtor_statements.
29029 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
29030 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
29032 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
29034 * config/arm/arm-cores.def (cortex-r8): New.
29035 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
29036 * config/arm/arm-tune.md: Likewise.
29037 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
29039 2016-03-07 Martin Sebor <msebor@redhat.com>
29041 PR rtl-optimization/19705
29042 * doc/invoke.texi (Options That Control Optimization): Clarify
29043 -fno-branch-count-reg.
29045 2016-02-26 Richard Biener <rguenther@suse.de>
29046 Jeff Law <law@redhat.com>
29048 PR tree-optimization/69740
29049 * cfghooks.c (remove_edge): Request loop fixups if we delete
29050 an edge that might turn an irreducible loop into a natural
29052 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
29053 Move after definition of loops_state_clear.
29055 2016-03-07 Bin Cheng <bin.cheng@arm.com>
29057 PR rtl-optimization/69052
29058 * rtlanal.c (commutative_operand_precedence): Set higher precedence
29061 2016-03-07 Tom de Vries <tom@codesourcery.com>
29063 PR tree-optimization/70116
29064 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
29065 is_tm_ending stmts and ubsan/asan internal functions.
29066 (find_duplicate): Use it. Don't test is_tm_ending here.
29068 2016-03-07 Richard Biener <rguenther@suse.de>
29070 PR tree-optimization/70115
29071 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
29072 (propagate_constants_for_unrolling): Use replace_uses_by.
29074 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
29076 PR middle-end/69916
29077 * omp-low.c (struct oacc_loop): Add ifns.
29078 (new_oacc_loop_raw): Initialize it.
29079 (finish_oacc_loop): Clear mask & flags if no ifns.
29080 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
29081 (oacc_loop_xform_loop): Add ifns arg & adjust.
29082 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
29084 2016-03-07 Richard Henderson <rth@redhat.com>
29087 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
29088 (insert_value_copy_on_edge): Likewise.
29090 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29092 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
29094 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29097 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
29099 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29101 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
29103 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29105 Fix sseimul type attribute.
29106 * config/i386/znver1.md
29107 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
29108 znver1_sseimul_avx256_load) : Fix the type attribute.
29109 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
29110 pipe usage and latency.
29112 2016-03-05 Jakub Jelinek <jakub@redhat.com>
29115 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
29116 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
29119 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29122 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
29124 PR rtl-optimization/69941
29125 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
29126 the reg share its mode.
29128 2016-03-04 Jeff Law <law@redhat.com>
29130 PR tree-optimization/69196
29131 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29132 If the both SSA_NAMEs are anonymous, then consider them unassociated
29133 and include the PHI in the statement count.
29135 2016-03-05 Tom de Vries <tom@codesourcery.com>
29137 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
29138 construct in oacc routine. Check for oacc region in oacc routine.
29140 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29143 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
29144 2016-02-22 changes, instead don't recurse if RECUR is already true.
29145 Don't change *dynamic_check if RECUR. Adjust recursive caller
29146 to pass true to the new argument.
29147 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
29150 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
29151 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
29153 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
29155 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29157 PR rtl-optimization/57676
29158 * lra-assigns.c (lra_assign): Guard test for maximum iterations
29159 with flag_checking.
29161 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
29163 * tree-vect-patterns.c (search_type_for_mask): Handle
29164 comparison of booleans.
29166 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29168 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
29172 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
29173 all other ops that have dw_val_class_die_ref operands,
29174 and DW_OP_GNU_entry_value.
29176 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29178 PR rtl-optimization/69904
29179 * config/arm/arm.c (arm_cannot_copy_insn_p):
29180 Return true for load-exclusive instructions.
29182 2016-03-03 Jakub Jelinek <jakub@redhat.com>
29185 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
29186 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
29187 the pattern no matter if it is used just by non-pattern, pattern
29189 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
29190 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29191 oprnd1 def_stmt is in pattern, don't look through it.
29193 2016-03-03 Marek Polacek <polacek@redhat.com>
29195 PR middle-end/70050
29196 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
29198 2016-03-03 Martin Liska <mliska@suse.cz>
29200 PR tree-optimization/70043
29201 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
29202 previous statement if we see a debug statement.
29204 2016-03-03 Richard Biener <rguenther@suse.de>
29206 PR tree-optimization/55936
29207 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
29208 parameter and guard unsafe equivalence use.
29209 (vrp_evaluate_conditional_warnv_with_ops): Always use
29210 safe equivalences but not via the quadratic compare_names
29213 2016-03-03 Michael Collison <michael.collison@linaro.org>
29216 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
29217 for operand 1 to s_register_operand. Change predicate for operand
29218 2 to arm_not_immediate_operand.
29220 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
29222 * doc/tm.texi: Regenerated.
29224 2016-03-02 Richard Henderson <rth@redhat.com>
29227 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
29228 simplification when all args are positive non-fixed registers.
29230 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
29232 * target.def (lra_p): Specify that new ports should use LRA.
29234 2016-03-02 Jakub Jelinek <jakub@redhat.com>
29237 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
29238 gimplify_type_sizes the type they refer to.
29239 (omp_notice_variable): Handle reference vars to VLAs.
29240 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
29241 reference to VLA decls in the second pass instead of first pass.
29243 2016-03-02 Tom de Vries <tom@codesourcery.com>
29245 PR tree-optimization/68659
29246 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
29247 new_expr == NULL_TREE.
29248 (get_new_name): Handle ADDR_EXPR.
29250 2016-03-02 Bin Cheng <bin.cheng@arm.com>
29252 PR rtl-optimization/69052
29253 * loop-invariant.c (canonicalize_address): New function.
29254 (inv_can_prop_to_addr_use): Check validity of address expression
29255 which is canonicalized by above function.
29257 2016-03-02 Alan Modra <amodra@gmail.com>
29260 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
29263 2016-03-02 Jakub Jelinek <jakub@redhat.com>
29266 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
29267 (*movhi_internal): Put mask moves from and to memory separately
29268 from moves from/to GPRs.
29270 2016-03-02 Richard Biener <rguenther@suse.de>
29272 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
29273 GENERIC expressions in GIMPLE.
29275 2016-03-02 Richard Biener <rguenther@suse.de>
29277 * config/i386/i386.c (type_natural_mode): Fix typo.
29279 2016-03-02 Nick Clifton <nickc@redhat.com>
29281 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
29283 2016-03-02 Richard Biener <rguenther@suse.de>
29284 Uros Bizjak <ubizjak@gmail.com>
29287 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
29289 2016-03-02 Richard Biener <rguenther@suse.de>
29291 PR middle-end/67278
29292 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
29294 2016-03-02 Marek Polacek <polacek@redhat.com>
29297 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
29298 "is promoted to" warning.
29300 2016-03-01 DJ Delorie <dj@redhat.com>
29302 * config.gcc: Deprecate mep-*.
29304 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
29306 PR middle-end/70025
29307 * lra-constraints.c (regno_val_use_in): New.
29308 (match_reload): Use it instead of regno_use_in.
29310 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
29312 PR rtl-optimization/70007
29313 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
29314 references present in REG_EQUAL notes attached to non-SET patterns.
29316 2016-03-01 Jeff Law <law@redhat.com>
29318 PR tree-optimization/69196
29319 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29320 Appropriately clamp the number of statements to copy when the
29321 thread path does not traverse a loop backedge.
29323 PR tree-optimization/69196
29324 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29325 Do count some PHIs in the thread path against the insn count. Decrease
29326 final statement count by one as the control statement in the last
29327 block will get removed. Remove special cased code for handling PHIs
29330 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
29333 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
29334 asm dialect alternatives to explicit GOTPCREL calls.
29336 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
29339 * ira.c (do_reload): Issue warning for generic stack checking here...
29340 * reload1.c (reload): ...instead of here and streamline it.
29342 2016-03-01 Nick Clifton <nickc@redhat.com>
29344 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
29346 2016-03-01 Richard Biener <rguenther@suse.de>
29348 PR tree-optimization/69983
29349 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
29350 types and fall back to operand_equal_p.
29352 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29355 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29357 * config/s390/constraints.md ("jm8"): New constraint.
29358 * config/s390/predicates.md ("const_int_8bitset_operand"): New
29360 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
29362 ("*setmem_long<setmem_and>"): New pattern.
29363 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
29365 ("*setmem_long_31z<setmem_and>"): New pattern.
29366 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
29367 New substitution rules with the required attributes.
29370 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29373 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29375 * gensupport.c (process_substs_on_one_elem): Split loop to
29376 complete mark_operands_used_in_match_dup on all expressions in the
29378 (adjust_operands_numbers): Inline into process_substs_on_one_elem
29379 and remove function.
29381 2016-03-01 Richard Biener <rguenther@suse.de>
29383 PR middle-end/70022
29384 * fold-const.c (fold_indirect_ref_1): Fix range checking for
29385 vector BIT_FIELD_REF extract.
29387 2016-03-01 Richard Biener <rguenther@suse.de>
29389 PR tree-optimization/69994
29390 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
29392 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
29394 PR tree-optimization/69956
29395 * tree-vect-stmts.c (supportable_widening_operation): Support
29396 multi-step conversion of boolean vectors.
29397 (supportable_narrowing_operation): Likewise.
29399 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29401 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
29404 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29406 * config/s390/subst.md (DSI_VI): New mode iterator.
29407 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
29408 * config/s390/vector.md ("vec_set<mode>"): Move expander before
29409 the insn definition.
29410 ("*vec_set<mode>"): Change predicate and add alternative to
29411 support only either register or const_int operands as element
29413 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
29415 ("vec_extract<mode>"): New expander.
29416 ("*vec_extract<mode>"): New insn definition supporting reg and
29417 const_int element selectors.
29418 ("*vec_extract<mode>_plus"): New insn definition supporting
29419 reg+const_int element selectors.
29420 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
29421 following expander+insn definition.
29422 ("<vec_shifts_name><mode>3"): New expander.
29423 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
29425 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29427 * config/s390/s390.md ("*tabort_1"): Change predicate to
29428 nonmemory_operand. Add a second alternative to cover
29429 register as well as const int operands.
29430 ("*tabort_1_plus"): New pattern definition.
29432 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29434 * config/s390/s390.md ("*ashrdi3_cc_31")
29435 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
29436 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
29437 Merge insn definitions into ...
29438 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
29439 New pattern definition.
29440 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
29441 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
29442 ("*ashr<mode>3_and"): Merge insn definitions into ...
29443 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
29444 New pattern definition.
29445 * config/s390/subst.md ("addr_style_op_cc_subst")
29446 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
29447 substitutions patterns plus attributes.
29448 Add ashiftrt to SUBST iterator.
29450 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29452 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
29453 op2 to nonmemory_operand.
29454 ("*<shift>di3_31", "*<shift>di3_31_and"):
29455 Merge into single pattern definition ...
29456 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
29457 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
29458 pattern definition ...
29459 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
29460 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
29463 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29465 * config/s390/predicates.md (const_int_6bitset_operand): New
29467 * config/s390/s390.md: Include subst.md.
29468 ("rotl<mode>3"): New expander.
29469 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
29471 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
29472 * config/s390/subst.md: New file.
29474 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29476 * config/s390/s390.md ("op_type", "atype", "length" attributes):
29477 Remove RRR type. It doesn't really exist.
29478 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
29480 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
29481 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
29482 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
29483 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
29484 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
29485 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
29486 `enabled' attribute.
29488 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29490 * gensupport.c (process_substs_on_one_elem): Split loop to
29491 complete mark_operands_used_in_match_dup on all expressions in the
29493 (adjust_operands_numbers): Inline into process_substs_on_one_elem
29494 and remove function.
29496 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
29499 * config/sparc/sparc.c (NWORDS_UP): Rename to...
29500 (CEIL_NWORDS): ...this. Use CEIL macro.
29501 (compute_fp_layout): Adjust to above renaming.
29502 (function_arg_union_value): Likewise.
29503 (sparc_arg_partial_bytes): Likewise.
29504 (sparc_function_arg_advance): Likewise.
29506 2016-02-29 Jeff Law <law@redhat.com>
29508 PR tree-optimization/70005
29509 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
29510 where an object with a boolean range is compared against a value
29513 PR tree-optimization/69999
29514 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
29515 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
29518 2016-02-29 Richard Biener <rguenther@suse.de>
29520 PR tree-optimization/69994
29521 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
29522 (get_unary_op): Look through nop conversions.
29523 (ops_equal_values_p): New function, look for equality diregarding
29525 (eliminate_plus_minus_pair): Use ops_equal_values_p
29526 (repropagate_negates): Do not use get_unary_op here.
29528 2016-02-29 Martin Liska <mliska@suse.cz>
29530 * system.h: Poison ENABLE_CHECKING macro.
29532 2016-02-29 Martin Liska <mliska@suse.cz>
29534 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
29535 is presented in dump flags.
29536 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
29537 (hsa_regalloc): Likewise.
29539 2016-02-19 Richard Biener <rguenther@suse.de>
29541 PR tree-optimization/69980
29542 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
29543 permutation of those we need to keep.
29545 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
29548 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
29549 (NWORDS_UP): ...this
29550 (init_cumulative_args): Minor tweaks.
29551 (sparc_promote_function_mode): Likewise.
29552 (scan_record_type): Delete.
29553 (traverse_record_type): New function template.
29554 (classify_data_t): New structure type.
29555 (classify_registers): New inline function.
29556 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
29557 exhausted. Instantiate traverse_record_type on classify_registers and
29558 deal with the case of a structure passed in slot #15 with no FP field
29560 (assign_data_t): New structure type.
29561 (compute_int_layout): New static function.
29562 (compute_fp_layout): Likewise.
29563 (count_registers): New inline function.
29564 (assign_int_registers): New static function.
29565 (assign_fp_registers): Likewise.
29566 (assign_registers): New inline function.
29567 (function_arg_record_value_1): Delete.
29568 (function_arg_record_value_2): Likewise.
29569 (function_arg_record_value_3): Likewise.
29570 (function_arg_record_value): Adjust to above changes. Instantiate
29571 traverse_record_type on count_registers to first count the number of
29572 registers to be used and then on assign_registers to assign them.
29573 (function_arg_union_value): Adjust to above renaming.
29574 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
29575 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
29576 case of a structure passed in slot #15
29577 (sparc_function_arg_advance): Likewise.
29578 (function_arg_padding): Minor tweak.
29580 2016-02-29 Richard Biener <rguenther@suse.de>
29582 PR tree-optimization/69720
29583 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
29584 the adjustment_def path for possibly vectorized defs.
29585 (vect_create_epilog_for_reduction): Handle vectorized initial
29588 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
29590 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
29592 2016-02-27 Jeff Law <law@redhat.com>
29595 2016-02-26 Richard Biener <rguenther@suse.de>
29596 Jeff Law <law@redhat.com>
29598 PR tree-optimization/69740
29599 * cfghooks.c (remove_edge): Request loop fixups if we delete
29600 an edge that might turn an irreducible loop into a natural
29603 2016-02-27 Jakub Jelinek <jakub@redhat.com>
29605 PR rtl-optimization/69896
29606 * tree-vect-generic.c (get_compute_type): Avoid single element
29609 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
29611 Rename the AArch64 tuning option and related functions to enable the
29612 Newton series for the reciprocal square root to reflect its
29613 approximative characteristic.
29615 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
29616 function to "aarch64_emit_approx_rsqrt".
29617 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
29618 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
29619 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
29620 (xgene1_tunings): Likewise.
29621 (use_rsqrt_p): Likewise.
29622 (aarch64_emit_swrsqrt): Use new function name.
29623 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
29624 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
29625 text explaining this option.
29626 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
29628 2016-02-26 Jakub Jelinek <jakub@redhat.com>
29631 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29632 complain about -mallow-movmisalign without -mvsx if
29633 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
29635 2016-02-26 Joel Sherrill <joel@rtems.org>
29637 * config.gcc: Add x86_64-*-rtems*.
29638 * config/i386/rtems-64.h: New file.
29640 2016-02-26 Joel Sherrill <joel@rtems.org>
29642 * config.gcc: Add aarch64-*-rtems*.
29643 * config/aarch64/rtems.h: New file.
29645 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
29648 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
29649 shift amount using %h. Add comment.
29651 2016-02-26 Richard Biener <rguenther@suse.de>
29652 Jeff Law <law@redhat.com>
29654 PR tree-optimization/69740
29655 * cfghooks.c (remove_edge): Request loop fixups if we delete
29656 an edge that might turn an irreducible loop into a natural
29659 2016-02-26 Martin Jambor <mjambor@suse.cz>
29661 PR middle-end/69920
29662 * tree-sra.c (sra_modify_assign): Do not remove loads of
29663 uninitialized aggregates to SSA_NAMEs.
29665 2016-02-26 Richard Henderson <rth@redhat.com>
29668 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
29669 pseudo in case the target rtx matches the source of the left
29672 2016-02-26 Martin Jambor <mjambor@suse.cz>
29675 * hsa.h (hsa_type_packed_p): Declare.
29676 * hsa.c (hsa_type_packed_p): New function.
29677 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
29679 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
29680 * hsa-brig.c (emit_basic_insn): Likewise.
29682 2016-02-26 Martin Jambor <mjambor@suse.cz>
29685 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
29687 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
29689 2016-02-26 Martin Jambor <mjambor@suse.cz>
29691 * hsa.h (is_a_helper): New overload for hsa_op_immed for
29692 hsa_op_with_type operands.
29693 (hsa_unsigned_type_for_type): Declare.
29694 * hsa.c (hsa_unsigned_type_for_type): New function.
29695 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
29696 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
29697 the finalizer. Do not emit extra move.
29699 2016-02-26 Martin Jambor <mjambor@suse.cz>
29701 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
29702 atomic operations in private segment.
29704 2016-02-26 Martin Jambor <mjambor@suse.cz>
29706 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
29707 statements to wi->info. Also disallow omp simd constructs.
29708 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
29709 for not gridifying. Dump special string for omp_for.
29711 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29714 * config/aarch64/aarch64.c (aarch64_set_current_function):
29715 Save/restore target globals when switching to
29716 target_option_default_node.
29718 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29721 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
29722 Return 0 if !SHIFT_COUNT_TRUNCATED.
29724 2016-02-26 Jakub Jelinek <jakub@redhat.com>
29725 Eric Botcazou <ebotcazou@adacore.com>
29727 PR rtl-optimization/69891
29728 * dse.c (scan_insn): If we can't figure out memset arguments
29729 or they are non-constant, call clear_rhs_from_active_local_stores.
29731 2016-02-26 Martin Liska <mliska@suse.cz>
29733 * doc/extend.texi: Mention clog10, clog10f an clog10l
29734 in Builtins section.
29736 2016-02-26 Martin Liska <mliska@suse.cz>
29738 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
29740 (resolve_args_picking_1): Likewise.
29741 * dwarf2out.h (struct GTY): Likewise.
29743 2016-02-26 Martin Liska <mliska@suse.cz>
29745 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
29746 with flag_checking.
29747 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
29749 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
29750 Martin Liska <mliska@suse.cz>
29752 * doc/install.texi: Mention --enable-valgrind-annotations.
29754 2016-02-26 Richard Biener <rguenther@suse.de>
29756 PR tree-optimization/69551
29757 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
29758 looking through aliases adjust DECL_PT_UID to refer to the
29759 ultimate alias target.
29761 2016-02-25 Martin Liska <mliska@suse.cz>
29763 PR middle-end/69919
29764 * alloc-pool.c (after_memory_report): New variable.
29765 * alloc-pool.h (base_pool_allocator ::release): Do not use
29766 the infrastructure if after_memory_report.
29767 * toplev.c (toplev::main): Mark after memory report.
29769 2016-02-25 Richard Biener <rguenther@suse.de>
29771 PR tree-optimization/48795
29772 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
29774 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
29777 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
29778 offloading is enabled and -fopenacc or -fopenmp is specified.
29779 (CRTOFFLOADEND): Likewise.
29780 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
29781 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
29782 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
29783 (offload_objects_file_name): New static var.
29784 (tool_cleanup): Remove offload_objects_file_name file.
29785 (find_offloadbeginend): Replace with ...
29786 (find_crtoffloadtable): ... this.
29787 (run_gcc): Remove offload_argc and offload_argv.
29788 Get offload_objects_file_name from -foffload-objects=... option.
29789 Read names of object files with offload from this file, pass them to
29790 compile_images_for_offload_targets. Don't call find_offloadbeginend and
29791 don't pass offloadbegin and offloadend to the linker. Don't pass
29792 offload non-LTO files to the linker, because now they're not claimed.
29794 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
29797 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
29798 on builtin_unreachable.
29800 2016-02-25 Jakub Jelinek <jakub@redhat.com>
29802 PR rtl-optimization/69896
29803 * regcprop.c: Include cfgrtl.h.
29804 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
29805 than remembered mode, either delete it (if noop_move_p), or
29806 treat like copy_p but not noop_p instruction.
29808 2016-02-24 Jakub Jelinek <jakub@redhat.com>
29811 * dwarf2out.c (gen_variable_die): Work around buggy LTO
29812 - allow NULL decl for Fortran DW_TAG_common_block variables.
29814 2016-02-24 Jason Merrill <jason@redhat.com>
29816 * common.opt (flifetime-dse): Add -flifetime-dse=1.
29818 2016-02-24 Richard Biener <rguenther@suse.de>
29819 Jakub Jelinek <jakub@redhat.com>
29821 PR middle-end/69760
29822 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
29823 conditionally executed ops to well-defined overflow behavior.
29825 2016-02-24 Jakub Jelinek <jakub@redhat.com>
29827 PR middle-end/69915
29828 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
29831 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29833 PR rtl-optimization/69886
29834 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
29835 argument. Use it when checking validity of set instructions.
29836 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
29837 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
29839 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
29840 * store-motion.c (find_moveable_store): Update
29841 can_assign_to_reg_without_clobbers_p callsite.
29843 2016-02-24 Richard Biener <rguenther@suse.de>
29845 PR middle-end/68963
29846 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
29848 (record_nonwrapping_iv): Do not fall back to the low/high bound
29849 for non-constant IV bases if the stmt is not always executed.
29851 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29853 * config/arm/arm-cores.def (cortex-a32): New entry.
29854 * config/arm/arm-tables.opt: Regenerate.
29855 * config/arm/arm-tune.md: Regenerate.
29856 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
29857 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
29858 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
29859 for -mcpu and -mtune.
29861 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29864 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
29865 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
29866 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
29867 (atomic_loaddi_1): Delete.
29868 (atomic_loaddi): Rewrite expander using the above changes.
29870 2016-02-24 Jakub Jelinek <jakub@redhat.com>
29873 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
29876 2016-02-24 Jakub Jelinek <jakub@redhat.com>
29877 Richard Biener <rguenth@suse.de>
29879 PR middle-end/69909
29880 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
29881 set_mem_attributes if tem is SSA_NAME which got expanded
29884 2016-02-24 Richard Biener <rguenther@suse.de>
29886 PR tree-optimization/69907
29887 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
29888 end of permutations for BB vectorization.
29890 2016-02-24 Christian Bruel <christian.bruel@st.com>
29892 * config/arm/arm-c.c (arm_option_override): Initialize
29893 target_option_current_node.
29894 * config/arm/arm.c (arm_pragma_target_parse): Replace
29895 build_target_option_node call by target_option_current_node.
29896 Set target_option_current_node.
29899 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
29902 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
29903 define_insn_and_split to define_insn.
29904 (zero_extendqi<mode>2_dot2): Same.
29905 (extendqi<mode>2_dot): Same.
29906 (extendqi<mode>2_dot2): Same.
29908 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
29910 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
29911 and add bypass for AES{D,E} and AESMC pairs.
29912 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
29915 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
29917 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
29918 series for reciprocal square root in Exynos M1.
29920 2016-02-23 Martin Sebor <msebor@redhat.com>
29923 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
29924 __builtin_alloca_with_align.
29926 2016-02-23 Richard Henderson <rth@redhat.com>
29928 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
29929 (ix86_register_pragmas): Remove __seg_tls.
29930 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
29931 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
29932 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
29933 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
29934 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
29935 * doc/extend.texi (__seg_tls): Remove item.
29937 2016-02-23 Richard Biener <rguenther@suse.de>
29939 * alloc-pool.h (struct allocation_object): Make id member
29940 conditional on CHECKING_P again.
29941 (get_instance): Adjust.
29942 (base_pool_allocator): Likewise.
29944 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
29946 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
29947 (parallelize_loops): In OpenACC kernels mode, set n_threads to
29949 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
29951 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
29953 2016-02-23 Richard Biener <rguenther@suse.de>
29955 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
29956 * bitmap.h (struct bitmap_usage): Likewise.
29957 (bitmap_move): Declare.
29958 * bitmap.c (register_overhead): Take size_t argument.
29959 (bitmap_move): New function.
29960 * df-problems.c (df_rd_transfer_function): Use bitmap_move
29961 to properly account overhead.
29962 * tree.c (free_node): Use tree_size.
29964 2016-02-23 Jakub Jelinek <jakub@redhat.com>
29967 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
29968 when inverting comparison.
29971 * common.opt (Wunreachable-code): Add Warning flag.
29973 2016-02-23 Mark Wielaard <mjw@redhat.com>
29974 Jakub Jelinek <jakub@redhat.com>
29977 * cgraphunit.c (check_global_declaration): Check main_input_filename
29978 and DECL_SOURCE_FILE are not NULL.
29980 2016-02-23 Martin Jambor <mjambor@suse.cz>
29982 PR tree-optimization/69666
29983 * tree-sra.c (sra_modify_assign): Do not attempt to create
29984 default_def replacements for unscalarizable regions.
29986 2016-02-20 Mark Wielaard <mjw@redhat.com>
29989 * cgraphunit.c (check_global_declaration): Check level of
29990 warn_unused_const_variable and main_input_filename.
29991 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
29992 (-Wunused-variable): For C implies -Wunused-const-variable=1.
29993 (-Wunused-const-variable): Explain levels 1 and 2.
29995 2016-02-22 Jakub Jelinek <jakub@redhat.com>
29998 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
29999 identical arguments. Formatting and spelling fixes.
30002 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
30007 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
30008 and m68k-devices.def.
30009 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
30010 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
30012 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
30014 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
30015 and HImode registers.
30017 2016-02-22 Richard Biener <rguenther@suse.de>
30019 PR tree-optimization/69882
30020 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
30021 preserve permutations present because of gaps.
30022 (vect_supported_load_permutation_p): Always continue checking
30023 permutations after vect_attempt_slp_rearrange_stmts.
30025 2016-02-22 Bin Cheng <bin.cheng@arm.com>
30027 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
30028 min_profitable_estimate, rather than min_profitable_iters.
30030 2016-02-22 Jakub Jelinek <jakub@redhat.com>
30033 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
30034 SImode for last match_operand.
30036 2016-02-22 Martin Liska <mliska@suse.cz>
30038 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
30039 return bitsize - 1 as the return value.
30041 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
30045 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
30046 Handle negative shift counts.
30047 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
30048 force_reg on the shift constant.
30049 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
30050 (lshrsi3_d): Handle negative shift counts.
30052 2016-02-22 Richard Biener <rguenther@suse.de>
30053 Tom de Vries <tom@codesourcery.com>
30055 * graph.c: Include dumpfile.h.
30056 (print_graph_cfg): Split into three overloads.
30057 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
30059 2016-02-22 Tom de Vries <tom@codesourcery.com>
30061 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
30064 2016-02-22 Richard Biener <rguenther@suse.de>
30067 * ipa-inline-transform.c (inline_call): When not updating
30068 overall summaries adjust self size by the growth estimate.
30069 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
30070 hash-set, do not update overall summaries here. Renamed from ...
30071 (inline_to_all_callers): ... this which is now wrapping the
30072 above and performing delayed overall summary update.
30073 (early_inline_small_functions): Delay updating of the overall
30076 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
30078 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
30081 2016-02-19 Jakub Jelinek <jakub@redhat.com>
30084 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
30085 :%* in %:gt() argument.
30086 (greater_than_spec_func): Adjust for expecting only numbers,
30087 if there are more than two numbers, compare the last two.
30089 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
30091 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
30092 -Wnarrowing with -std.
30094 2016-02-19 Jakub Jelinek <jakub@redhat.com>
30097 * expr.c (store_field): Don't use bit-field path if exp is
30098 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
30099 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
30100 and the assignment can be performed by bitwise copy. Formatting
30103 PR middle-end/69838
30104 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
30105 call copy_reg_eh_region_note_forward on before and/or after sequences
30106 and remove note from insn if it no longer can throw.
30109 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
30110 if TARGET_AVX512BW.
30112 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30114 * config/s390/vector.md: Add missing commutative operand markers
30115 to the patterns which qualify for one.
30116 * config/s390/vx-builtins.md: Likewise.
30118 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30120 * config/s390/vector.md (VI, VI_QHS): Add single element vector
30121 types to mode iterators.
30122 (vec_double): ... and mode attribute.
30123 * config/s390/vx-builtins.md (non_vec_int): Likewise.
30125 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30127 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
30128 Change the predicate of op2 from nonimmediate to general and let
30129 reload fix it if necessary.
30131 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30133 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
30135 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30137 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
30140 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30142 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
30143 * config/s390/s390.c (s390_expand_vec_movstr): New function.
30144 * config/s390/s390.md ("movstr<P:mode>"): Call
30145 s390_expand_vec_movstr.
30147 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30149 * config/s390/s390.md: Add missing output modifier for operand 1
30150 to print it as address properly.
30152 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30154 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
30155 * config/s390/2964.md: New file.
30156 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
30157 of insn grouping attributes depending on the CPU level.
30158 (s390_get_unit_mask): New function.
30159 (s390_sched_score): Remove the OOO from the scheduling macros.
30160 Add loop to calculate a score for the instruction mix.
30161 (s390_sched_reorder): Likewise plus improve debug output.
30162 (s390_sched_variable_issue): Rename macros as above. Calculate
30163 the unit distances after actually scheduling an insn. Improve
30165 (s390_sched_init): Clear last_scheduled_unit_distance array.
30166 * config/s390/s390.md: Include 2964.md.
30168 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30171 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
30172 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
30173 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
30174 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
30175 *avx512f_<code>v8div16qi2_mask_1): New insns.
30177 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
30180 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
30183 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
30184 earlyclobber from target. Use wF constraint for fused memory
30186 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
30188 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30189 Martin Liska <mliska@suse.cz>
30192 * cfgexpand.c (asan_sanitize_stack_p): New function.
30193 (partition_stack_vars): Use the function.
30194 (expand_stack_vars): Likewise.
30195 (defer_stack_allocation): Likewise.
30196 (expand_used_vars): Likewise.
30198 2016-02-18 Richard Biener <rguenther@suse.de>
30200 PR middle-end/69553
30201 * fold-const.c (operand_equal_p): Properly compare offsets for
30202 IMAGPART_EXPR and ARRAY_REF.
30204 2016-02-18 Nick Clifton <nickc@redhat.com>
30208 * config/arm/arm.c (arm_option_override_internal): Disable
30209 interworking if the target does not support thumb instructions.
30210 (arm_reload_in_hi): Handle the case where a register to register
30211 move needs reloading because there is no simple pattern to handle
30213 (arm_reload_out_hi): Likewise.
30215 2016-02-18 Richard Biener <rguenther@suse.de>
30217 PR middle-end/69854
30218 * match.pd: Don't use fold_binary or fold_unary for folding
30221 2016-02-17 Jakub Jelinek <jakub@redhat.com>
30224 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
30225 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
30226 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
30227 warn on gimple_no_warning_p statements.
30229 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
30231 * doc/extend.texi (C++ Attributes): Correct description of
30232 warn_unused type attribute.
30234 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30236 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
30237 correct instruction.
30239 2016-02-17 Richard Biener <rguenther@suse.de>
30241 PR rtl-optimization/69609
30242 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
30243 (find_traces_1_round): When ending a trace update cached priority
30245 (bb_to_key): Use cached priority when available.
30246 (copy_bb): Initialize cached priority.
30247 (reorder_basic_blocks_software_trace_cache): Likewise.
30249 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30252 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
30254 (aarch64_comparison_operator): Break overly long line into two.
30255 (aarch64_comparison_operation): Likewise.
30256 * config/aarch64/aarch64.md (cstorecc4): Use
30257 aarch64_comparison_operator_mode instead of
30258 aarch64_comparison_operator.
30259 (cstore<mode>4): Likewise.
30260 (aarch64_cstore<mode>): Likewise.
30261 (*cstoresi_insn_uxtw): Likewise.
30262 (cstore<mode>_neg): Likewise.
30263 (*cstoresi_neg_uxtw): Likewise.
30265 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30268 * config/arm/predicates.md (arm_comparison_operator_mode):
30270 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
30271 instead of arm_comparison_operator.
30272 (*mov_negscc): Likewise.
30273 (*mov_notscc): Likewise.
30274 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
30275 (*thumb2_mov_negscc): Likewise.
30276 (*thumb2_mov_negscc_strict_it): Likewise.
30277 (*thumb2_mov_notscc): Likewise.
30278 (*thumb2_mov_notscc_strict_it): Likewise.
30280 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
30282 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
30283 Add missing return.
30285 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
30287 * config/visium/visium.c (machine_libfunc_index): New enum.
30288 (machine_libfuncs): New structure.
30289 (visium_libfuncs): New static variable.
30290 (TARGET_INIT_LIBFUNCS): Define to...
30291 (visium_init_libfuncs): ...this. New function.
30292 (expand_block_move_4): Use the appropriate libfunc.
30293 (expand_block_move_2): Likewise.
30294 (expand_block_move_1): Likewise.
30295 (expand_block_set_4): Likewise.
30296 (expand_block_set_2): Likewise.
30297 (expand_block_set_1): Likewise.
30298 (visium_trampoline_init): Likewise.
30300 2016-02-17 Nick Clifton <nickc@redhat.com>
30302 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
30303 TI's devices.csv file as of March 2016.
30305 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
30308 * opts-global.c (handle_common_deferred_options): Introduce and
30309 initialize two global variables to remember command-line options
30310 specifying a stack-limiting register.
30311 * opts.h: Add extern declarations of the two new global variables.
30312 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
30313 variable based on the values of the two new global variables.
30315 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30318 * common.opt (Wnonnull-compare): New warning.
30319 * doc/invoke.texi (-Wnonnull): Remove text about comparison
30320 of arguments against NULL.
30321 (-Wnonnull-compare): Document.
30322 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
30323 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
30324 * passes.def (pass_warn_nonnull_compare): Add.
30325 * gimple-ssa-nonnull-compare.c: New file.
30327 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30329 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
30330 AARCH64_EXTRA_TUNE_RECIP_SQRT.
30332 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30334 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
30335 reciprocal sqrt for -mlow-precision-recip-sqrt.
30337 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30338 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30340 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
30341 always use lane loads to construct non-constant vectors.
30343 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30345 * config/aarch64/aarch64.md
30346 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
30347 constraints for operand 3.
30348 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
30350 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30351 Richard Biener <rguenther@suse.de>
30353 PR tree-optimization/69820
30354 * tree-vect-patterns.c (type_conversion_p): Return false if
30355 *orig_type is unsigned single precision or boolean.
30356 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
30359 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30361 PR rtl-optimization/69764
30362 PR rtl-optimization/69771
30363 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
30364 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
30366 2016-02-16 Richard Biener <rguenther@suse.de>
30368 PR tree-optimization/69776
30369 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
30371 (indirect_refs_may_alias_p): Likewise.
30372 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
30373 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
30374 according to tbaa_p.
30375 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
30376 (optimize_stmt): For redundant store discovery do not allow tbaa.
30378 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
30380 PR tree-optimization/69714
30381 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
30382 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
30384 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
30386 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
30387 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
30388 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
30389 * config/arc/arc.c (arc_init): Check FPU options.
30390 (get_arc_condition_code): Handle new CC_FPU* modes.
30391 (arc_select_cc_mode): Likewise.
30392 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
30393 register pair only. Allow access for ARCv2 accumulator.
30394 (gen_compare_reg): Whenever we have FPU support use FPU compare
30396 (arc_reorg): Don't generate brcc insns when FPU compare
30397 instructions are involved.
30398 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
30399 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
30400 floating point emulation.
30401 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
30402 (REVERSE_CONDITION): Add new CC_FPU* modes.
30403 (TARGET_FP_SP_BASE): Define.
30404 (TARGET_FP_DP_BASE): Likewise.
30405 (TARGET_FP_SP_FUSED): Likewise.
30406 (TARGET_FP_DP_FUSED): Likewise.
30407 (TARGET_FP_SP_CONV): Likewise.
30408 (TARGET_FP_DP_CONV): Likewise.
30409 (TARGET_FP_SP_SQRT): Likewise.
30410 (TARGET_FP_DP_SQRT): Likewise.
30411 (TARGET_FP_DP_AX): Likewise.
30412 * config/arc/arc.md (ARCV2_ACC): New constant.
30413 (type): New fpu type attribute.
30414 (SDF): Conditional iterator.
30415 (cstore<mode>, cbranch<mode>): Change expand condition.
30416 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
30417 handles FPU/FPX cases as well.
30418 * config/arc/arc.opt (mfpu): New option.
30419 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
30421 (adddf3, muldf3, subdf3): Removed.
30422 * config/arc/predicates.md (proper_comparison_operator): Recognize
30424 * config/arc/fpu.md: New file.
30425 * doc/invoke.texi (ARC Options): Document mfpu option.
30427 2016-02-16 Richard Biener <rguenther@suse.de>
30429 PR rtl-optimization/69291
30430 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
30431 noce_operand_ok check.
30433 2016-02-16 Tom de Vries <tom@codesourcery.com>
30436 * omp-low.c (simd_clone_create): Remove call to
30437 symtab->call_cgraph_insertion_hooks.
30439 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30441 PR tree-optimization/69802
30442 * tree-ssa-reassoc.c (update_range_test): If op is
30443 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
30444 op == 1 test of precision 1 integral op, otherwise handle
30445 that case as op itself. Fix up formatting.
30446 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
30449 2016-02-16 Richard Biener <rguenther@suse.de>
30451 PR tree-optimization/69586
30452 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
30453 types for conversion sources.
30455 2016-02-16 Richard Biener <rguenther@suse.de>
30457 PR middle-end/69801
30458 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
30459 mask OEP_ADDRESS_OF.
30461 2016-02-16 Alan Modra <amodra@gmail.com>
30464 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
30465 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
30466 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
30468 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
30469 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
30470 (p8_fmrgow_<mode>): Likewise.
30471 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
30473 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
30474 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
30475 to use movdi_internal64. Remove op0_di.
30476 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
30478 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
30480 Add support for the FCCMP insn types
30482 * config/aarch64/aarch64.md (fccmp): Change insn type.
30483 (fccmpe): Likewise.
30484 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
30485 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
30486 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
30487 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
30488 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
30489 * config/arm/types.md (fccmps): Add new insn type.
30490 (fccmpd): Likewise.
30492 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
30494 * alias.c (get_alias_set): Fix a typo in comment.
30496 2016-02-15 Richard Biener <rguenther@suse.de>
30498 PR tree-optimization/69595
30499 * match.pd: Complete range test simplification to true.
30501 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
30503 PR rtl-optimization/69648
30504 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
30505 pic_offset_table_rtx.
30507 PR rtl-optimization/69752
30508 * ira.c (update_equiv_regs): When looking for more than a single SET,
30509 also take other side effects into account.
30511 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
30513 * config/s390/s390.c (s390_function_profiler): Add a new sequence
30514 for z900+ CPUs in 31-bit mode.
30516 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
30518 * common/config/s390/s390-common.c (s390_supports_split_stack):
30520 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
30521 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
30522 * config/s390/s390.c (struct machine_function): New field
30523 split_stack_varargs_pointer.
30524 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
30525 in s390_emit_prologue.
30526 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
30528 (morestack_ref): New global.
30529 (SPLIT_STACK_AVAILABLE): New macro.
30530 (s390_expand_split_stack_prologue): New function.
30531 (s390_live_on_entry): New function.
30532 (s390_va_start): Use split-stack vararg pointer if appropriate.
30533 (s390_asm_file_end): Emit the split-stack note sections.
30534 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
30535 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
30536 (UNSPECV_SPLIT_STACK_CALL): New unspec.
30537 (UNSPECV_SPLIT_STACK_DATA): New unspec.
30538 (split_stack_prologue): New expand.
30539 (split_stack_space_check): New expand.
30540 (split_stack_data): New insn.
30541 (split_stack_call): New expand.
30542 (split_stack_call_*): New insn.
30543 (split_stack_cond_call): New expand.
30544 (split_stack_cond_call_*): New insn.
30546 2016-02-15 Richard Biener <rguenther@suse.de>
30548 PR tree-optimization/69783
30549 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30550 Add trivially correct cases.
30552 2016-02-15 Tom de Vries <tom@codesourcery.com>
30555 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
30557 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
30559 2016-02-15 Richard Biener <rguenther@suse.de>
30561 PR tree-optimization/69776
30562 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
30563 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
30564 indicate whether we can use TBAA to disambiguate against stores.
30565 Use alias-set zero if not.
30566 (visit_reference_op_store): Do not use TBAA when looking up
30568 * tree-ssa-pre.c (compute_avail): Use TBAA here.
30569 (eliminate_dom_walker::before_dom_children): But not when looking
30570 up redundant stores.
30572 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
30574 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
30576 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30578 * config/i386/znver1.md
30579 (znver1_pop, znver1_pop_mem,
30580 znver1_load_imov_double_store,
30581 znver1_load_imov_direct_store,
30582 znver1_load_imov_direct_load,
30583 znver1_load_imov_double_load): Add new.
30584 (znver1_insn, znver1_insn_load): Add icmov type.
30585 (znver1_sseavx_fma,
30586 znver1_sseavx_fma_load,
30588 znver1_avx256_fma_load): Fix pipe usage.
30590 2016-02-14 Alan Modra <amodra@gmail.com>
30593 * reload.c (find_reloads_address_1): For pre/post-inc/dec
30594 with an invalid hard reg, reload just the reg not the entire
30595 pre/post-inc/dec address expression.
30597 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
30600 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
30601 fixed R1_REG scratch reg.
30602 (sibcall_value_pcrel_fdpic): Likewise.
30604 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
30608 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
30610 2016-02-12 Walter Lee <walt@tilera.com>
30612 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
30613 * config/tilegx/t-tilegx: Likewise.
30615 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30618 * diagnostic-show-locus.c (struct line_span): New struct.
30619 (layout::get_first_line): Delete.
30620 (layout::get_last_line): Delete.
30621 (layout::get_num_line_spans): New member function.
30622 (layout::get_line_span): Likewise.
30623 (layout::print_heading_for_line_span_index_p): Likewise.
30624 (layout::get_expanded_location): Likewise.
30625 (layout::calculate_line_spans): Likewise.
30626 (layout::m_first_line): Delete.
30627 (layout::m_last_line): Delete.
30628 (layout::m_line_spans): New field.
30629 (layout::layout): Update comment. Replace m_first_line and
30630 m_last_line with m_line_spans, replacing their initialization
30631 with a call to calculate_line_spans.
30632 (diagnostic_show_locus): When printing source lines and
30633 annotations, rather than looping over a single span
30634 of lines, instead loop over each line_span within
30635 the layout, with an inner loop over the lines within them.
30636 Call the context's start_span callback when changing line spans.
30637 * diagnostic.c (diagnostic_initialize): Initialize start_span.
30638 (diagnostic_build_prefix): Break out the building of the location
30639 part of the string into...
30640 (diagnostic_get_location_text): ...this new function, rewriting
30641 it from nested ternary expressions to a sequence of "if"
30643 (default_diagnostic_start_span_fn): New function.
30644 * diagnostic.h (diagnostic_start_span_fn): New typedef.
30645 (diagnostic_context::start_span): New field.
30646 (default_diagnostic_start_span_fn): New prototype.
30648 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30651 * gcc.c (driver::finalize): Fix cleanup of "specs".
30653 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30657 * gcc.c (driver::driver): Initialize m_option_suggestions.
30658 (driver::~driver): Clean up m_option_suggestions.
30659 (suggest_option): Convert to...
30660 (driver::suggest_option): ...this, and split out into
30661 driver::build_option_suggestions and find_closest_string.
30662 (driver::build_option_suggestions): New function, from
30663 first half of suggest_option. Special-case
30664 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
30665 the sanitizer_opts array. For options of enum types, add the
30666 various enum values to the candidate strings.
30667 (driver::handle_unrecognized_options): Remove "const".
30668 * gcc.h (driver::handle_unrecognized_options): Likewise.
30669 (driver::build_option_suggestions): New decl.
30670 (driver::suggest_option): New decl.
30671 (driver::m_option_suggestions): New field.
30672 * opts-common.c (add_misspelling_candidates): New function.
30673 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
30674 and make non-static.
30675 * opts.h (sanitizer_opts): New array decl.
30676 (add_misspelling_candidates): New function decl.
30677 * spellcheck.c (find_closest_string): New function.
30678 * spellcheck.h (find_closest_string): New function decl.
30680 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30682 PR rtl-optimization/69764
30683 PR rtl-optimization/69771
30684 * optabs.c (expand_binop_directly): For shift_optab_p, force
30685 convert_modes with VOIDmode if xop1 has VOIDmode.
30687 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
30690 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
30691 to correctly determine instrumentation thunks.
30693 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30696 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
30697 type by reference, force lhs on the call.
30700 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
30701 Compute retval and retbnd early in all cases if split_part_return_p
30702 and return_bb is not EXIT. Remove all clobber stmts and reset
30703 all debug stmts that refer to SSA_NAMEs defined in split part,
30704 except if it is retval, in that case replace the old retval with the
30705 lhs of the call to the split part.
30707 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30710 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30712 PR middle-end/66726
30713 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
30714 whose result is used in PHI.
30715 (maybe_optimize_range_tests): Likewise.
30716 (final_range_test_p): Likweise.
30718 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30720 PR middle-end/66726
30721 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
30722 whose result is used in PHI.
30723 (maybe_optimize_range_tests): Likewise.
30724 (final_range_test_p): Likweise.
30726 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30728 * cgraph.c: Spelling fixes - behaviour -> behavior and
30729 neighbour -> neighbor.
30730 * target.def: Likewise.
30731 * sel-sched.c: Likewise.
30732 * config/mips/mips.c: Likewise.
30733 * config/arc/arc.md: Likewise.
30734 * config/arm/cortex-a57.md: Likewise.
30735 * config/arm/arm.c: Likewise.
30736 * config/arm/neon.md: Likewise.
30737 * config/arm/arm-c.c: Likewise.
30738 * config/vms/vms-c.c: Likewise.
30739 * config/s390/s390.c: Likewise.
30740 * config/i386/znver1.md: Likewise.
30741 * config/i386/i386.c: Likewise.
30742 * config/ia64/hpux-unix2003.h: Likewise.
30743 * config/msp430/msp430.md: Likewise.
30744 * config/rx/rx.c: Likewise.
30745 * config/rx/rx.md: Likewise.
30746 * config/aarch64/aarch64-simd.md: Likewise.
30747 * config/aarch64/aarch64.c: Likewise.
30748 * config/nvptx/nvptx.c: Likewise.
30749 * config/bfin/bfin.c: Likewise.
30750 * config/cris/cris.opt: Likewise.
30751 * config/rs6000/rs6000.c: Likewise.
30752 * target.h: Likewise.
30753 * spellcheck.c: Likewise.
30754 * ira-build.c: Likewise.
30755 * tree-inline.c: Likewise.
30756 * builtins.c: Likewise.
30757 * lra-constraints.c: Likewise.
30758 * explow.c: Likewise.
30759 * hwint.h: Likewise.
30760 * targhooks.c: Likewise.
30761 * tree-vect-data-refs.c: Likewise.
30762 * expr.c: Likewise.
30763 * doc/tm.texi: Likewise.
30764 * doc/extend.texi: Likewise.
30765 * doc/install.texi: Likewise.
30766 * doc/md.texi: Likewise.
30767 * tree-ssa-tail-merge.c: Likewise.
30768 * sched-int.h: Likewise.
30769 * match.pd: Likewise.
30770 * sched-ebb.c: Likewise.
30771 * target.def (omit_struct_return_reg): Likewise.
30772 * gimple-ssa-isolate-paths.c: Likewise.
30773 (find_implicit_erroneous_behaviour): Renamed to...
30774 (find_implicit_erroneous_behavior): ... this.
30775 (find_explicit_erroneous_behaviour): Renamed to...
30776 (find_explicit_erroneous_behavior): ... this.
30777 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
30779 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
30781 PR rtl-optimization/64682
30782 PR rtl-optimization/69567
30783 PR rtl-optimization/69737
30784 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
30785 in I2 as well, just lose it.
30787 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30789 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
30791 (aarch64_last_printed_tune_string): Likewise.
30792 (aarch64_declare_function_name): Only output .arch assembler
30793 directive if it will be different from the previously output
30794 directive. Same for .tune comment but only if -dA is set.
30795 (aarch64_start_file): New function.
30796 (TARGET_ASM_FILE_START): Define.
30798 2016-02-11 David Malcolm <dmalcolm@redhat.com>
30801 * Makefile.in (PLUGIN_HEADERS): Add params.list.
30803 2016-02-11 Jakub Jelinek <jakub@redhat.com>
30806 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
30807 -Wmaybe-uninitialized warning.
30809 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
30812 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
30814 2016-02-11 Richard Biener <rguenther@suse.de>
30816 PR rtl-optimization/69291
30817 * ifcvt.c (noce_try_store_flag_constants): Do not allow
30818 subexpressions affected by changing the result.
30820 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
30823 * lra-constraints.c (curr_insn_transform): Find in/out operands
30824 for secondary memory moves. Update dups.
30826 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
30828 PR tree-optimization/69652
30829 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
30830 to nested loop, did source re-formatting, skip debug statements,
30831 add check on statement with volatile operand, remove dead scalar
30834 2016-02-10 Jakub Jelinek <jakub@redhat.com>
30835 Patrick Palka <ppalka@gcc.gnu.org>
30839 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
30840 calls if the return type is TREE_ADDRESSABLE.
30841 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
30842 * ipa-split.c (split_function): Fix doubled "we" in comment.
30843 Use void return type for the split part even if
30844 !split_point->split_part_set_retval.
30846 2016-02-10 Bin Cheng <bin.cheng@arm.com>
30848 PR tree-optimization/68021
30849 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
30850 when computing the value of biv cand by itself.
30852 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
30854 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
30855 (cortexa57_tunings): Likewise.
30856 (cortexa72_tunings): Likewise.
30857 (arch_macro_fusion_pair_p): Add support for AES fusion.
30858 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
30859 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
30860 Allow virtual registers before reload so early scheduling works.
30861 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
30862 correct latency and pipeline.
30863 (cortex_a57_crypto_complex): Likewise.
30864 (cortex_a57_crypto_xor): Likewise.
30865 (define_bypass): Add AES bypass.
30867 2016-02-10 Richard Biener <rguenther@suse.de>
30869 PR tree-optimization/69726
30870 * passes.def: Add DCE pass before late uninit.
30871 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
30872 really fixup if-conversions job.
30874 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
30876 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
30877 (arm_cortex_a57_tune): Likewise.
30878 (aarch_macro_fusion_pair_p): Add support for AES fusion.
30879 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
30881 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
30883 * timevar.def (TV_PHASE_DBGINFO): Delete.
30884 (TV_PHASE_CHECK_DBGINFO): Likewise.
30885 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
30887 2016-02-10 Richard Biener <rguenther@suse.de>
30889 PR tree-optimization/69719
30890 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30891 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
30893 2016-02-09 Andrew Pinski <apinski@cavium.com>
30896 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
30897 get_vcond_mask_icode returns false.
30899 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
30902 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
30903 an ADDIS that adds a pointer to a large constant that sets the
30904 upper16 bits with a load operation.
30906 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
30909 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
30911 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
30913 (vzipq_s16): Likewise.
30914 (vzipq_s32): Likewise.
30915 (vzipq_f32): Likewise.
30916 (vzipq_u8): Likewise.
30917 (vzipq_u16): Likewise.
30918 (vzipq_u32): Likewise.
30919 (vzipq_p8): Likewise.
30920 (vzipq_p16): Likewise.
30922 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
30925 * config/arm/arm.c (neon_endian_lane_map): New function.
30926 (neon_vector_pair_endian_lane_map): New function.
30927 (arm_evpc_neon_vuzp): Allow for big endian lane order.
30928 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
30930 (vuzpq_s16): Likewise.
30931 (vuzpq_s32): Likewise.
30932 (vuzpq_f32): Likewise.
30933 (vuzpq_u8): Likewise.
30934 (vuzpq_u16): Likewise.
30935 (vuzpq_u32): Likewise.
30936 (vuzpq_p8): Likewise.
30937 (vuzpq_p16): Likewise.
30939 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
30942 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
30945 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
30947 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
30948 truncate const_int operand 1 to QImode.
30950 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
30952 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
30953 corresponding to an abnormal edge.
30955 2016-02-09 Tom de Vries <tom@codesourcery.com>
30957 PR tree-optimization/69599
30958 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
30960 (find_func_aliases_for_builtin_call, find_func_clobbers)
30961 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
30964 2016-02-09 Richard Biener <rguenther@suse.de>
30966 PR tree-optimization/69715
30967 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
30968 LHS on calls as non-rewritable.
30970 2016-02-09 Tom de Vries <tom@codesourcery.com>
30973 * lto-wrapper.c (append_diag_options): New function.
30974 (compile_offload_image): Call append_diag_options.
30976 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
30979 * doc/extend.texi (Flag Output Operands): Correct sectioning.
30980 Minor copy-edit to fix verb tenses.
30982 2016-02-08 Jakub Jelinek <jakub@redhat.com>
30984 PR tree-optimization/69209
30985 * ipa-split.c (split_function): If split part is not
30986 returning retval, retval has gimple type but is not
30987 gimple value, force it into a SSA_NAME first.
30989 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
30991 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
30994 2016-02-08 Jason Merrill <jason@redhat.com>
30997 * convert.c (convert_to_integer_1): Check dofold on truncation
30999 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
31000 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
31001 Rename from *_nofold.
31002 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
31003 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
31005 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
31008 * tree.c (build_common_tree_nodes): Remove short_double argument.
31009 All callers changed.
31010 * tree.h (build_common_tree_nodes): Adjust declaration.
31011 * doc/invoke.texi (-fshort-double): Remove documentation.
31012 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
31013 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
31014 * lto-wrapper.c (merge_and_complain, append_compiler_options)
31015 (append_linker_options): Don't handle OPT_fshort_double.
31017 PR rtl-optimization/68730
31018 * lra-remat.c (insn_to_cand_activation): New static variable.
31019 (lra_remat): Allocate and free it.
31020 (create_cand): New arg activation. Initialize a field in
31021 insn_to_cand_activation if it is nonnull.
31022 (create_cands): Pass the activation insn to create_cand when making
31023 a candidate involving an output reload. Reorganize code a little.
31024 (do_remat): Keep track of active status of candidates in a separate
31027 2016-02-08 Richard Biener <rguenther@suse.de>
31029 PR tree-optimization/69719
31030 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31031 Properly use absolute of the difference of the two offsets to
31032 compare or adjust the segment length.
31034 2016-02-08 Richard Biener <rguenther@suse.de>
31035 Jeff Law <law@redhat.com>
31038 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
31039 types for anonymous SSA names.
31041 2016-02-08 Richard Biener <rguenther@suse.de>
31043 PR rtl-optimization/69274
31044 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
31046 2016-02-08 Jeff Law <law@redhat.com>
31048 PR tree-optimization/65917
31049 * tree-ssa-dom.c (record_temporary_equivalences): Record both
31050 equivalences from if (x == y) style conditionals.
31051 (loop_depth_of_name): Remove.
31052 (record_equality): Remove loop depth check.
31053 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
31054 (const_and_copies::record_const_or_copy_raw): New member function.
31055 * tree-ssa-scopedtables.c
31056 (const_and_copies::record_const_or_copy_raw): New, factored out of
31057 (const_and_copies::record_const_or_copy): Call new member function.
31059 2016-02-05 Jeff Law <law@redhat.com>
31061 PR tree-optimization/68541
31062 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
31063 (count_stmts_in_block): New function.
31064 (poor_ifcvt_candidate_code): Likewise.
31065 (is_feasible_trace): Add some heuristics to determine when path
31066 splitting is profitable.
31067 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
31068 is a diamond with a single exit.
31070 2016-02-05 Martin Sebor <msebor@redhat.com>
31073 * doc/invoke.texi: Update -Wplacement-new to take an optional
31076 2016-02-06 Richard Henderson <rth@redhat.com>
31079 * tree.c (tree_nop_conversion_p): Do not strip casts into or
31080 out of non-standard address spaces.
31082 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31084 PR rtl-optimization/69691
31085 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
31087 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
31089 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
31090 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
31091 (*ieee128_mfvsrd_64bit): Likewise.
31092 (*ieee128_mfvsrd_32bit): Likewise.
31094 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
31098 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
31100 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
31101 instrumented_version.
31103 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
31105 * doc/invoke.texi (Optimize Options): In table of --param options
31106 rename second occurrence of tracer-min-branch-ratio to
31107 tracer-min-branch-probability, rename
31108 tracer-min-branch-ratio-feedback to
31109 tracer-min-branch-probability-feedback and clarify description,
31110 rename sched-spec-state-edge-prob-cutoff to
31111 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
31112 to selsched-insns-to-rename, rename lto-minpartition to
31113 lto-min-partition, delete reorder-blocks-duplicate and
31114 reorder-blocks-duplicate-feedback.
31116 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31118 * config/s390/s390.c (s390_register_info_set_ranges): Remove
31121 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
31123 * doc/extend.texi: S/390: Correct some typos.
31125 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31127 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
31129 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31132 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
31133 (s390_register_info_gprtofpr): Use new macros above.
31134 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
31136 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
31137 its name. Adjust restore and save gpr ranges.
31138 (s390_register_info_set_ranges): New function.
31139 (s390_register_info): Use new macros above. Call
31140 s390_register_info_set_ranges.
31141 (s390_optimize_register_info): Likewise.
31142 (s390_hard_regno_rename_ok): Use new macros.
31143 (s390_hard_regno_scratch_ok): Likewise.
31144 (s390_emit_epilogue): Likewise.
31145 (s390_can_use_return_insn): Likewise.
31146 (s390_optimize_prologue): Likewise.
31147 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
31149 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31152 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
31154 (ix86_option_override_internal): Disable TARGET_STV even for
31155 -m{incoming,preferred}-stack-boundary=3.
31157 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31159 * config.gcc: Mark deprecated rtems targets as obsolete.
31161 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
31163 PR rtl-optimization/64682
31164 PR rtl-optimization/69567
31165 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
31166 before I2 only if the register is both used and set in I2.
31168 2016-02-04 DJ Delorie <dj@redhat.com>
31170 * config/msp430/msp430.c (msp430_start_function): Add function type.
31172 2016-02-04 Jakub Jelinek <jakub@redhat.com>
31175 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
31177 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
31179 PR rtl-optimization/69577
31181 2015-10-29 Richard Henderson <rth@redhat.com>
31185 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
31186 sse check to the exact conditions of PR 67609.
31188 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
31191 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
31192 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
31193 not allowed into the traditional Altivec registers.
31194 (movtd_64bit_nodm): Likewise.
31195 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
31197 2016-02-04 David Malcolm <dmalcolm@redhat.com>
31199 * config/aarch64/cortex-a57-fma-steering.c
31200 (aarch64_register_fma_steering): Remove "static" from arguments
31203 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
31206 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
31207 twice when complex.
31209 2016-02-04 Mike Frysinger <vapier@gentoo.org>
31211 * doc/invoke.texi: Delete -mno-fma4.
31213 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
31215 PR rtl-optimization/69577
31216 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
31217 (find_subregs_of_mode): Update accordingly. Iterate over partial
31220 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
31222 * config/arm/arm-protos.h (neon_reinterpret): Remove.
31223 * config/arm/arm.c (neon_reinterpret): Remove.
31224 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
31225 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
31226 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
31227 vreinterpretti): Remove.
31228 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
31229 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
31230 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
31231 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
31232 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
31233 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
31234 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
31235 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
31236 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
31237 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
31238 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
31239 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
31240 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
31241 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
31242 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
31243 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
31244 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
31245 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
31246 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
31247 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
31248 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
31249 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
31250 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
31251 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
31252 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
31253 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
31254 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
31255 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
31256 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
31257 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
31258 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
31259 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
31260 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
31261 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
31262 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
31263 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
31264 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
31265 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
31266 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
31267 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
31268 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
31269 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
31270 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
31271 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
31272 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
31273 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
31274 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
31275 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
31276 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
31277 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
31278 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
31279 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
31280 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
31281 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
31282 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
31283 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
31284 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
31285 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
31286 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
31287 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
31288 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
31289 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
31290 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
31291 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
31292 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
31293 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
31294 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
31295 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
31296 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
31297 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
31298 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
31299 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
31300 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
31301 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
31302 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
31303 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
31304 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
31305 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
31306 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
31307 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
31308 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
31309 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
31310 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
31311 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
31312 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
31313 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
31314 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
31315 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
31316 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
31317 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
31318 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
31319 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
31320 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
31321 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
31322 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
31323 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
31324 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
31325 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
31326 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
31327 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
31328 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
31329 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
31330 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
31332 2016-02-04 Martin Liska <mliska@suse.cz>
31335 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
31336 that are gimple_store_p.
31337 (maybe_instrument_call): Likewise.
31339 2016-02-04 Bin Cheng <bin.cheng@arm.com>
31341 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
31342 register scaling out of memory reference and comment why.
31344 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31348 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
31349 folding the source of a SET.
31351 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31355 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
31356 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
31358 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
31362 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
31365 2016-02-04 Christian Bruel <christian.bruel@st.com>
31367 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
31368 * config/arm/arm.c (arm_set_current_function): Likewise.
31370 2016-02-04 Jakub Jelinek <jakub@redhat.com>
31371 Ilya Enkovich <enkovich.gnu@gmail.com>
31372 H.J. Lu <hongjiu.lu@intel.com>
31375 * config/i386/i386.c (convert_scalars_to_vector): Remove
31376 stack alignment fixes.
31377 (ix86_option_override_internal): Disable TARGET_STV if stack
31378 might not be aligned enough.
31379 (ix86_minimum_alignment): Assert that TARGET_STV is false.
31381 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
31383 * config/i386/x86-tune.def: Disable default prefetching
31386 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
31387 Vladimir Makarov <vmakarov@redhat.com>
31390 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
31391 in validating fused toc addresses.
31393 2016-02-03 Jakub Jelinek <jakub@redhat.com>
31396 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
31397 range->m_caret fields if range->m_show_caret_p is false.
31400 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
31401 Force oldval into register if it does not satisfy reg_or_short_operand
31402 predicate. Fix up formatting.
31404 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
31405 Alexandre Oliva <aoliva@redhat.com>
31408 * lra-constraints.c (simplify_operand_subreg): Check additionally
31409 address validity after potential reloading.
31410 (process_address_1): Check insns validity. In case of failure do
31413 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
31416 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
31419 2016-02-02 Jakub Jelinek <jakub@redhat.com>
31421 * wide-int.cc (canonize_uhwi): New function.
31422 (wi::divmod_internal): Use it.
31424 2016-02-02 James Norris <jnorris@codesourcery.com>
31426 * gimplify.c (omp_notice_variable): Add usage check.
31428 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
31430 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
31431 like LE, GE, LT, GT when emitting relational operator.
31433 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
31435 * ira-costs.c (find_costs_and_classes): Add extra argument.
31436 * target.def (ira_change_pseudo_allocno_class): Add parameter.
31437 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
31438 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
31439 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
31440 Add best_class parameter, and return it if not ALL_REGS.
31441 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
31443 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
31444 Update target hook.
31446 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
31448 * config/aarch64/aarch64.c
31449 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
31450 (aarch64_ira_change_pseudo_allocno_class): New function.
31452 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
31455 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
31457 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31459 * config/avr/avr.c (avr_option_override): Set
31460 PARAM_ALLOW_STORE_DATA_RACES to 1.
31462 2016-02-02 Richard Biener <rguenther@suse.de>
31464 PR tree-optimization/69595
31465 * match.pd: Add range test simplifications to true/false.
31467 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
31469 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
31470 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
31473 2016-02-02 Richard Biener <rguenther@suse.de>
31475 PR tree-optimization/69606
31476 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
31477 info on the result before moving a stmt.
31479 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
31481 PR middle-end/68542
31482 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
31483 branch with vector comparison.
31484 * config/i386/sse.md (VI48_AVX): New mode iterator.
31485 (define_expand "cbranch<mode>4): Add support for conditional branch
31486 with vector comparison.
31487 * tree-vect-loop.c (optimize_mask_stores): New function.
31488 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
31489 has_mask_store field of vect_info.
31490 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
31491 vectorized loops having masked stores after vec_info destroy.
31492 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
31493 correspondent macros.
31494 (optimize_mask_stores): Add prototype.
31496 2016-02-02 Alan Modra <amodra@gmail.com>
31499 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
31502 2016-02-02 Alan Modra <amodra@gmail.com>
31505 * config/rs6000/rs6000.c (need_toc_init): New var, set it
31506 whenever toc_label_name used.
31507 (rs6000_file_start): Don't set up toc section here,
31508 (rs6000_output_function_epilogue): do so here instead,
31509 (rs6000_xcoff_file_start): and here.
31510 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
31511 (load_toc_aix_di): Likewise.
31513 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31515 PR rtl-optimization/69592
31516 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
31517 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
31518 (num_sign_bit_copies_binary_arith_p): New inline function.
31519 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
31521 2016-02-01 Jeff Law <law@redhat.com>
31523 PR tree-optimization/69580
31524 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
31525 * tree-ssa-threadbackward.c
31526 (fsm_find_control_statement_thread_paths): Do not try to walk
31527 through large PHI nodes.
31529 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31531 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
31532 when count is incremented above limit, don't analyze further
31535 * omp-low.c (oacc_parse_default_dims): Avoid
31536 -Wsign-compare warning, make sure value fits into int
31537 rather than just unsigned int.
31539 2016-02-01 Bin Cheng <bin.cheng@arm.com>
31541 PR tree-optimization/67921
31542 * fold-const.c (split_tree): New parameters. Convert pointer
31543 type variable part to proper type before negating.
31544 (fold_binary_loc): Pass new arguments to split_tree.
31546 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
31548 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
31549 (nvptx_goacc_validate_dims): Extend to handle global defaults.
31550 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
31551 * doc/tm.texti: Rebuilt.
31552 * doc/invoke.texi (fopenacc-dim): Document.
31553 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
31554 (append_compiler_options): Likewise.
31555 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
31556 (oacc_parse_default_dims): New.
31557 (oacc_validate_dims): Add USED arg. Select non-unity default when
31559 (oacc_loop_fixed_partitions): Return mask of used partitions.
31560 (oacc_loop_auto_partitions): Emit dump info.
31561 (oacc_loop_partition): Return mask of used partitions.
31562 (execute_oacc_device_lower): Parse default dimension arg. Adjust
31563 loop partitioning and validation calls.
31565 2016-02-01 Richard Biener <rguenther@suse.de>
31567 PR middle-end/69556
31568 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
31570 2016-02-01 Richard Biener <rguenther@suse.de>
31572 PR tree-optimization/69574
31573 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
31574 of asserting return chrec_dont_know.
31576 2016-02-01 Martin Liska <mliska@suse.cz>
31578 * mem-stats-traits.h: Add copyright header.
31579 * mem-stats.h: Likewise.
31581 2016-02-01 Richard Biener <rguenther@suse.de>
31583 PR tree-optimization/69579
31584 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
31585 Do not propagate through abnormal PHI results.
31587 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
31589 * postreload.c (reload_cse_simplify): Remove dead code.
31591 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31593 PR rtl-optimization/69570
31594 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
31595 if there is more than one set, not if there is a single set.
31597 2016-02-01 Richard Henderson <rth@redhat.com>
31600 * combine.c (make_compound_operation): When looking through a
31601 subreg, make sure to re-extend to the width of the outer mode.
31603 2016-01-30 Jakub Jelinek <jakub@redhat.com>
31605 PR tree-optimization/69546
31606 * wide-int.cc (wi::divmod_internal): For unsigned division
31607 where both operands fit into uhwi, if o1 is 1 and o0 has
31608 msb set, if divident_prec is larger than bits per hwi,
31609 clear another quotient word and return 2 instead of 1.
31610 Similarly for remainder with msb in HWI set, if dividend_prec
31611 is larger than bits per hwi.
31613 2016-01-29 Martin Jambor <mjambor@suse.cz>
31615 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
31616 Use short lowercase names.
31617 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
31618 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
31619 acq_rel one. Protect warning agains segfaults if
31620 get_memory_order_name returns NULL.
31621 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
31622 with release semantics. Do not warn if get_memory_order already did.
31623 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
31624 semantics. Fix check for relaxed or acquire semantics. Do not warn
31625 if get_memory_order already did.
31627 2016-01-29 Sebastian Pop <s.pop@samsung.com>
31629 * doc/install.texi: Document that isl-0.16 is supported.
31631 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
31634 * config/i386/constraints.md (Bm): Describe as special memory
31636 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
31637 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31638 * genpreds.c (struct constraint_data): Add is_special_memory.
31639 (have_special_memory_constraints, special_memory_start): New
31641 (special_memory_end): Ditto.
31642 (add_constraint): Add new arg is_special_memory. Add code to
31643 process its true value. Update have_special_memory_constraints.
31644 (process_define_constraint): Pass the new arg.
31645 (process_define_register_constraint): Ditto.
31646 (choose_enum_order): Process special memory.
31647 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
31648 function insn_extra_special_memory_constraint.
31649 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31650 * gensupport.c (process_rtx): Process
31651 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31652 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
31653 * ira-lives.c (single_reg_class): Use
31654 insn_extra_special_memory_constraint.
31655 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
31656 * lra-constraints.c (process_alt_operands): Ditto.
31657 (curr_insn_transform): Use insn_extra_special_memory_constraint.
31658 * recog.c (asm_operand_ok, preprocess_constraints): Process
31660 * reload.c (find_reloads): Ditto.
31661 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
31662 * stmt.c (parse_input_constraint): Use
31663 insn_extra_special_memory_constraint.
31665 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
31668 * lra-splill.c (lra_final_code_change): Revert r229087 by
31669 removing all sub-registers.
31671 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
31674 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
31676 2016-01-29 Jakub Jelinek <jakub@redhat.com>
31679 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
31680 SSE1, copy target into the temporary reg first before recursing
31683 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
31685 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
31688 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
31690 * ginclude/stdarg.h: Test __cplusplus instead of
31691 __GXX_EXPERIMENTAL_CXX0X__.
31693 2016-01-29 Richard Biener <rguenther@suse.de>
31695 PR tree-optimization/69547
31696 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
31697 Do not mark clobbers necessary.
31698 (mark_all_reaching_defs_necessary_1): Likewise.
31700 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
31702 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
31703 declaration name with %qs and print it in both error messages.
31704 Also fix indentation.
31706 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
31709 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
31710 trailing blank line from error message.
31712 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
31715 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
31718 2016-01-29 Richard Biener <rguenther@suse.de>
31720 PR middle-end/69537
31721 * match.pd: Allow all integral types when simplifying a
31722 widening or sign-changing conversion.
31724 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31726 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
31727 back to setting codegen_error to fail codegen.
31729 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
31732 * config/i386/constraints.md (C): Only accept constant zero operand.
31733 (BC): New constraint.
31734 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
31735 instead of C constraint.
31736 * doc/md.texi (Machine Constraints): Update description
31739 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
31742 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
31744 2016-01-28 Jakub Jelinek <jakub@redhat.com>
31746 PR middle-end/69542
31747 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
31750 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
31752 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
31753 branches if using guessed profile.
31755 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
31757 * graphite-optimize-isl.c (optimize_isl): Fix dump.
31759 2016-01-28 Richard Henderson <rth@redhat.com>
31762 * config/aarch64/aarch64-modes.def (CC_Cmode): New
31763 * config/aarch64/aarch64-protos.h: Update.
31764 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
31765 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
31766 (aarch64_get_condition_code_1): Handle CC_Cmode.
31767 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
31768 (*add<mode>3_compareC_cconly_imm): New.
31769 (*add<mode>3_compareC_cconly): New.
31770 (*add<mode>3_compareC_imm): New.
31771 (add<mode>3_compareC): New.
31772 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
31773 to be first. Use aarch64_carry_operation.
31774 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
31775 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
31776 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
31777 (subti3): Use subdi3_compare1.
31778 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
31779 (sub<mode>3_compare1): New.
31780 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
31781 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
31782 (*subsi3_carryin_uxtw): Likewise.
31783 (*ngc<mode>, *ngcsi_uxtw): Likewise.
31784 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
31785 * config/aarch64/iterators.md (DWI): New.
31786 * config/aarch64/predicates.md (aarch64_carry_operation): New.
31787 (aarch64_borrow_operation): New.
31789 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
31791 * graphite-optimize-isl.c (optimize_isl): Print a different debug
31792 message when isl does not return a valid schedule.
31794 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31796 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
31797 Remove comments from class declarations: they are already in the code
31800 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31802 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
31804 (ternary_op_to_tree): Same.
31805 (unary_op_to_tree): Same.
31806 (nary_op_to_tree): Same.
31807 (gcc_expression_from_isl_expr_op): Same.
31808 (gcc_expression_from_isl_expression): Same.
31809 (graphite_create_new_loop): Same.
31810 (graphite_create_new_loop_guard): Same.
31811 (build_iv_mapping): Same.
31812 (graphite_create_new_guard): Same.
31813 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
31814 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
31816 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31818 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
31819 instead of setting codegen_error to fail codegen.
31821 2016-01-28 Jason Merrill <jason@redhat.com>
31823 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
31825 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
31827 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
31828 Remove CONST_INT_P check in CCMP cost calculation.
31830 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
31832 * config/aarch64/aarch64.c (generic_vector_cost):
31833 Set vec_permute_cost.
31834 (cortexa57_vector_cost): Likewise.
31835 (exynosm1_vector_cost): Likewise.
31836 (xgene1_vector_cost): Likewise.
31837 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
31838 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
31839 Add vec_permute_cost entry.
31841 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
31843 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
31845 (add<mode>3_compare0): Likewise.
31846 (addsi3_compare0_uxtw): Likewise.
31847 (add<mode>3nr_compare0): Likewise.
31848 (compare_neg<mode>): Likewise.
31849 (<optab><mode>3): Likewise.
31851 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
31853 * tree-vect-stmts.c (vectorizable_comparison): Add
31854 NULL check for vectype.
31856 2016-01-28 Richard Biener <rguenther@suse.de>
31858 PR tree-optimization/69466
31859 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
31860 Account for PHIs we couldn't duplicate.
31862 2016-01-28 Martin Liska <mliska@suse.cz>
31865 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
31866 instead of ENABLE_VALGRIND_CHECKING.
31868 2016-01-27 Richard Henderson <rth@redhat.com>
31871 * lra-remat.c (subreg_regs): New.
31872 (dump_candidates_and_remat_bb_data): Dump it.
31873 (operand_to_remat): Reject if operand in subreg_regs.
31874 (set_bb_regs): Collect subreg_regs.
31875 (lra_remat): Init and free subreg_regs. Compute
31876 calculate_local_reg_remat_bb_data before create_cands.
31878 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
31881 * config/i386/i386.c (ix86_update_stack_boundary): Don't
31882 change stack_alignment_needed for __tls_get_addr call.
31884 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
31886 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
31888 2016-01-27 Jeff Law <law@redhat.com>
31890 PR tree-optimization/68398
31891 PR tree-optimization/69196
31892 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
31893 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
31894 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
31895 Only count PHIs in the last block in the path. The others will
31896 const/copy propagate away. Add heuristic to allow more irreducible
31897 subloops to be created when it is likely profitable to do so.
31899 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
31900 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
31901 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
31903 2016-01-27 Jakub Jelinek <jakub@redhat.com>
31906 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
31907 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
31908 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
31909 * tree-streamer-in.c: Include asan.h.
31910 (streamer_get_builtin_tree): For builtins in sanitizer
31911 range call initialize_sanitizer_builtins and retry.
31913 2016-01-27 Ian Lance Taylor <iant@google.com>
31915 * common.opt (fkeep-gc-roots-live): New undocumented option.
31916 * tree-ssa-loop-ivopts.c (add_candidate_1): If
31917 -fkeep-gc-roots-live, skip pointers.
31918 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
31921 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
31924 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
31925 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
31927 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
31930 * configure.ac: NetBSD provides SSP in its C library.
31931 * configure: Updated.
31933 2016-01-27 Richard Biener <rguenther@suse.de>
31935 PR tree-optimization/69166
31936 * tree-vect-loop.c (vect_is_simple_reduction): Always check
31937 reduction code for commutativity / associativity.
31939 2016-01-27 Martin Jambor <mjambor@suse.cz>
31941 PR tree-optimization/69355
31942 * tree-sra.c (analyze_access_subtree): Correct hole detection when
31943 total_scalarization fails.
31945 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
31947 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
31950 2016-01-27 Christian Bruel <christian.bruel@st.com>
31953 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
31954 Move arm_reset_previous_fndecl and set_target_option_current_node in
31955 the conditional part. Call save_restore_target_globals.
31956 * config/arm/arm.c (arm_set_current_function):
31957 Refactor to better support #pragma target and attribute mix.
31958 Call save_restore_target_globals.
31959 * config/arm/arm-protos.h (save_restore_target_globals): New function.
31961 2016-01-27 Martin Liska <mliska@suse.cz>
31963 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
31964 reference for an HSA kernel and its host function.
31966 2016-01-27 Jakub Jelinek <jakub@redhat.com>
31968 PR tree-optimization/69399
31969 * wide-int.h (wi::lrshift): For larger precisions, only
31970 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
31972 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
31974 * config/arc/predicates.md (proper_comparison_operator): Reject
31975 constant-constant comparison.
31977 2016-01-26 Tom de Vries <tom@codesourcery.com>
31979 PR tree-optimization/69110
31980 * tree-data-ref.c (initialize_data_dependence_relation): Handle
31981 DR_NUM_DIMENSIONS == 0.
31983 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
31984 Sebastian Pop <s.pop@samsung.com>
31986 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
31987 isl_ast_op_cond and isl_ast_op_select.
31988 (gcc_expression_from_isl_expr_op): Same.
31990 2016-01-26 Jason Merrill <jason@redhat.com>
31993 * tree.c (recompute_constructor_flags): Split out from
31995 (verify_constructor_flags): New.
31996 * tree.h: Declare them.
31998 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
32000 PR rtl-optimization/69217
32001 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
32002 are no TYPE_FIELDS set for the record type.
32004 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32007 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
32008 toc_label_name unconditionally.
32009 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
32010 SYMBOL_REF string. Use toc_label_name instead of constructing
32012 (rs6000_elf_declare_function_name): Use toc_label_name instead of
32013 constructing LCTOC1.
32015 2016-01-26 Martin Sebor <msebor@redhat.com>
32018 * doc/extend.texi (Common Type Attributes): Move text that talks about
32019 attribute packed from attribute aligned to the section discussing
32020 the former attribute for clarity.
32022 2016-01-26 Richard Henderson <rth@redhat.com>
32024 PR middle-end/60908
32025 * trans-mem.c (tm_region_init): Mark entry block as visited.
32027 2016-01-26 David Malcolm <dmalcolm@redhat.com>
32030 * diagnostic-show-locus.c (layout::print_source_line): Replace
32031 call to pp_newline with call to layout::print_newline.
32032 (layout::print_annotation_line): Likewise.
32033 (layout::move_to_column): Likewise.
32034 (layout::print_any_fixits): After printing any fixits, print a
32035 trailing newline, if necessary.
32036 (layout::print_newline): New method, resetting any colorization
32038 (diagnostic_show_locus): Move the pp_newline to before the
32039 early bailout. Remove dummy block enclosing the layout instance.
32040 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
32041 of pp_newline_and_flush with pp_flush.
32042 (diagnostic_append_note): Delete use of pp_newline.
32043 (diagnostic_append_note_at_rich_loc): Delete.
32044 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
32045 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
32046 when newline characters are added to the buffer.
32048 2016-01-26 Michael Matz <matz@suse.de>
32050 * configure.ac (ac_cv_std_swap_in_utility): New test.
32051 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
32052 * configure: Regenerate.
32053 * config.in: Regenerate.
32055 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
32057 * config/arc/arc.md (cstoresi4): Force operand into register.
32058 (arcset<code>): Fix predicate.
32059 (arcsetltu): Likewise.
32060 (arcsetgeu): Likewise.
32061 (arcsethi): Likewise.
32062 (arcsetls): Likewise.
32064 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32066 PR tree-optimization/69483
32067 * gimple-fold.c (canonicalize_constructor_val): Return NULL
32068 if base has error_mark_node type.
32070 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
32073 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
32074 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
32076 (vget_lane_f16): Handle big-endian.
32077 (vgetq_lane_f16): Likewise.
32078 (vset_lane_f16): Likewise.
32079 (vsetq_lane_f16): Likewise.
32080 * config/arm/iterators.md (VQXMOV): Add V8HF.
32081 (VDQ): Add V4HF and V8HF.
32082 (V_reg): Handle V4HF and V8HF.
32083 (Is_float_mode): Likewise.
32084 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
32085 neon_vdup_nv8hf): New patterns.
32086 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
32087 Use VD_LANE iterator.
32088 (neon_vld1_dup<mode>): Use VQ2 iterator.
32090 2016-01-26 Nathan Sidwell <nathan@acm.org>
32092 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
32093 (set_oacc_fn_attrib): Add IS_KERNEL arg.
32094 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
32095 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
32096 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
32097 (oacc_validate_dims): Add LEVEL arg, don't return level.
32098 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
32099 oacc_validate_dims.
32100 (execute_oacc_device_lower): Adjust, add more dump output.
32101 * tree-ssa-loop.c (gate_oacc_kernels): Use
32102 oacc_fn_attrib_kernels_p.
32103 * tree-parloops.c (create_parallel_loop): Adjust
32104 set_oacc_fn_attrib call.
32106 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32109 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
32110 (append_compiler_options): Handle -fcilkplus.
32111 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
32113 2016-01-26 Nick Clifton <nickc@redhat.com>
32116 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
32117 been marked as DECL_ONE_ONLY but we do not the means to make it
32118 so, then do not allow it to bind locally.
32120 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32123 * opts.h (parse_sanitizer_options): New prototype.
32124 * opts.c (sanitizer_opts): New array.
32125 (parse_sanitizer_options): New function.
32126 (common_handle_option): Use parse_sanitizer_options.
32128 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
32131 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
32132 alignment adjustment to ...
32133 (ix86_update_stack_boundary): Here. Don't over-align stack for
32135 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
32136 if __tls_get_addr is called.
32138 2016-01-26 Christian Bruel <christian.bruel@st.com>
32140 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
32142 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
32144 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
32146 2016-01-26 Richard Biener <rguenther@suse.de>
32148 PR middle-end/69467
32149 * match.pd: Guard X * CST CMP 0 pattern with single_use.
32151 2016-01-26 Richard Biener <rguenther@suse.de>
32153 PR tree-optimization/69452
32154 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
32155 (move_computations_dom_walker::before_dom_children): Rename
32157 (move_computations_worker): This.
32158 (move_computations): Perform an RPO rather than a DOM walk.
32160 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32163 * combine.c (combine_instructions): For REG_EQUAL note with
32164 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
32165 to the underlying register.
32166 * doc/rtl.texi (REG_EQUAL): Document the behavior of
32167 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
32169 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
32172 * config/aarch64/aarch64-builtins.c
32173 (aarch64_init_simd_builtin_types): Do not set structural
32174 equality to __Poly{8,16,64,128}_t types.
32176 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
32178 PR tree-optimization/69400
32179 * wide-int.cc (wi_pack): Take the precision as argument and
32180 perform canonicalization here rather than in the callers.
32181 Use the main loop to handle all full-width HWIs. Add a
32182 zero HWI if in_len isn't a full result.
32183 (wi::divmod_internal): Update accordingly.
32184 (wi::mul_internal): Likewise. Simplify.
32186 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32187 Sebastian Pop <s.pop@samsung.com>
32189 * graphite-poly.c (apply_poly_transforms): Simplify.
32190 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
32191 (print_isl_map): Same.
32192 (print_isl_union_map): Same.
32193 (print_isl_schedule): New.
32194 (debug_isl_schedule): New.
32195 * graphite-dependences.c (scop_get_reads): Do not call
32196 isl_union_map_add_map that is undocumented isl functionality.
32197 (scop_get_must_writes): Same.
32198 (scop_get_may_writes): Same.
32199 (scop_get_original_schedule): Remove.
32200 (scop_get_dependences): Do not call isl_union_map_compute_flow that
32201 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
32202 (compute_deps): Remove.
32203 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
32204 (debug_schedule_ast): New.
32205 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
32206 set_separate_option.
32207 (graphite_regenerate_ast_isl): Add dump.
32208 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
32209 from scop->transformed_schedule.
32210 (graphite_regenerate_ast_isl): Add more dump.
32211 * graphite-optimize-isl.c (optimize_isl): Set
32212 scop->transformed_schedule. Check whether schedules are equal.
32213 (apply_poly_transforms): Move here.
32214 * graphite-poly.c (apply_poly_transforms): ... from here.
32215 (free_poly_bb): Static.
32216 (free_scop): Static.
32217 (pbb_number_of_iterations_at_time): Remove.
32218 (print_isl_ast): New.
32219 (debug_isl_ast): New.
32220 (debug_scop_pbb): New.
32221 * graphite-scop-detection.c (print_edge): Move.
32222 (print_sese): Move.
32223 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
32224 (build_scop_scattering): Remove.
32225 (create_pw_aff_from_tree): Assert instead of bailing out.
32226 (add_condition_to_pbb): Remove unused code, do not fail.
32227 (add_conditions_to_domain): Same.
32228 (add_conditions_to_constraints): Remove.
32229 (build_scop_context): New.
32230 (add_iter_domain_dimension): New.
32231 (build_iteration_domains): Initialize pbb->iterators.
32232 Call add_conditions_to_domain.
32235 (index_outermost_in_loop): New.
32236 (index_pbb_in_loop): New.
32237 (outermost_pbb_in): New.
32238 (add_in_sequence): New.
32239 (add_outer_projection): New.
32240 (outer_projection_mupa): New.
32241 (add_loop_schedule): New.
32242 (build_schedule_pbb): New.
32243 (build_schedule_loop): New.
32244 (embed_in_surrounding_loops): New.
32245 (build_schedule_loop_nest): New.
32246 (build_original_schedule): New.
32247 (build_poly_scop): Call build_original_schedule.
32248 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
32249 (free_poly_dr): Remove.
32250 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
32251 (free_poly_bb): Remove.
32252 (debug_loop_vec): Remove.
32253 (print_isl_ast): Declare.
32254 (debug_isl_ast): Declare.
32255 (scop_do_interchange): Remove.
32256 (scop_do_strip_mine): Remove.
32257 (scop_do_block): Remove.
32258 (flatten_all_loops): Remove.
32259 (optimize_isl): Remove.
32260 (pbb_number_of_iterations_at_time): Remove.
32261 (debug_scop_pbb): Declare.
32262 (print_schedule_ast): Declare.
32263 (debug_schedule_ast): Declare.
32264 (struct scop): Remove schedule. Add original_schedule,
32265 transformed_schedule.
32266 (free_gimple_poly_bb): Remove.
32267 (print_generated_program): Remove.
32268 (debug_generated_program): Remove.
32269 (unify_scattering_dimensions): Remove.
32270 * sese.c (print_edge): ... here.
32271 (print_sese): ... here.
32272 (debug_edge): ... here.
32273 (debug_sese): ... here.
32274 * sese.h (print_edge): Declare.
32275 (print_sese): Declare.
32276 (dump_edge): Declare.
32277 (dump_sese): Declare.
32279 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32280 Sebastian Pop <s.pop@samsung.com>
32282 * Makefile.in: Set ISLVER in site.exp.
32284 2016-01-25 Jakub Jelinek <jakub@redhat.com>
32286 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
32287 DECL_VALUE_EXPR of new_var even for the non-array case. Look
32288 through DECL_VALUE_EXPR for expansion.
32290 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
32292 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
32293 the frame info after reload completed.
32295 2016-01-25 Jeff Law <law@redhat.com>
32297 PR tree-optimization/69196
32298 PR tree-optimization/68398
32299 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
32300 tree-ssa-threadupdate.c.
32301 (determine_bb_domination_status): Prototype
32302 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
32303 (determine_bb_domination_status): No longer static.
32304 (valid_jump_thread_path): Remove code to detect characteristics
32305 of the jump thread path not associated with correctness.
32306 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
32307 Correct test for thread path length. Count PHIs for real operands as
32308 statements that need to be copied. Do not count ASSERT_EXPRs.
32309 Look at all the blocks in the thread path. Compute and selectively
32310 filter thread paths based on threading through the latch, threading
32311 a multiway branch or crossing a multiway branch.
32313 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32315 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
32316 decl with __attribute__ ((unused)) annotation.
32318 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
32321 * tree-vect-stmts.c (vectorizable_condition): Check vectype
32322 of operands is compatible with a statement vectype.
32324 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
32326 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
32327 improve wording for mixed storage order support.
32329 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
32331 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
32332 (vcvt_u64_f64): Likewise.
32333 (vcvta_s64_f64): Likewise.
32334 (vcvta_u64_f64): Likewise.
32335 (vcvtm_s64_f64): Likewise.
32336 (vcvtm_u64_f64): Likewise.
32337 (vcvtn_s64_f64): Likewise.
32338 (vcvtn_u64_f64): Likewise.
32339 (vcvtp_s64_f64): Likewise.
32340 (vcvtp_u64_f64): Likewise.
32342 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
32344 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
32345 (arc_init): Check validity mll64 option.
32346 (arc_save_restore): Use double load/store instruction.
32347 (arc_expand_movmem): Likewise.
32348 (arc_split_move): Don't split if we have double load/store
32349 instructions. Returns a boolean.
32350 (arc_process_double_reg_moves): Change function to return boolean
32351 instead of a sequence of instructions.
32352 (arc_dwarf_register_span): New function.
32353 * config/arc/arc-protos.h (arc_split_move): Change prototype.
32354 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
32355 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
32356 (*movdf_insn): Likewise.
32357 * config/arc/arc.opt (mll64): New option.
32358 * config/arc/predicates.md (even_register_operand): New predicate.
32359 * doc/invoke.texi (ARC Options): Add mll64 documentation.
32361 2016-01-25 Richard Biener <rguenther@suse.de>
32364 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
32365 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
32367 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
32369 2016-01-25 Richard Biener <rguenther@suse.de>
32371 PR tree-optimization/69376
32372 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
32374 (VN_INFO_ANTI_RANGE_P): New inline.
32375 (VN_INFO_RANGE_TYPE): Likewise.
32376 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
32377 SSA_NAME_ANTI_RANGE_P.
32378 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
32379 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32380 Properly query VN_INFO_RANGE_TYPE.
32382 2016-01-25 Nick Clifton <nickc@redhat.com>
32385 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
32387 2016-01-23 Tom de Vries <tom@codesourcery.com>
32389 PR tree-optimization/69426
32390 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
32393 2016-01-23 Jakub Jelinek <jakub@redhat.com>
32395 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
32396 "the the" with "the" in the comments.
32397 * ipa-devirt.c (build_type_inheritance_graph,
32398 update_type_inheritance_graph): Likewise.
32399 * tree.c (build_function_type_list_1): Likewise.
32400 * cfgloopmanip.c (scale_loop_profile): Likewise.
32401 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
32402 * gimple-ssa-split-paths.c
32403 (find_block_to_duplicate_for_splitting_paths): Likewise.
32404 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
32405 * expr.c (convert_move): Likewise.
32406 * var-tracking.c (vt_stack_adjustments): Likewise.
32407 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
32408 * tree-vrp.c (test_for_singularity): Likewise.
32410 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
32411 directly instead of building a temporary tree.
32414 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
32415 remove <algorithm> include.
32417 2016-01-22 Jakub Jelinek <jakub@redhat.com>
32420 * config/i386/i386.c: Include dojump.h.
32421 (expand_small_movmem_or_setmem,
32422 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
32424 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
32425 if dynamic_check != -1.
32427 2016-01-21 Jeff Law <law@redhat.com>
32429 PR middle-end/69347
32430 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
32431 record_temporary_equivalences. Rewritten to avoid unnecessary calls
32432 into dominated_by_p.
32433 (cprop_into_successor_phis): Avoid unnecessary tests.
32435 2016-01-22 Richard Henderson <rth@redhat.com>
32438 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
32439 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
32441 2016-01-22 Michael Matz <matz@suse.de>
32443 * system.h (string, algorithm): Include only conditionally.
32444 (new): Include always under C++.
32445 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
32446 * final.c (toplevel): Ditto.
32447 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
32448 * genconditions.c (write_header): Make gencondmd.c define
32450 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
32452 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
32453 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
32455 2016-01-22 Christian Bruel <christian.bruel@st.com>
32458 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
32460 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32463 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
32464 define_insn_and_split. Ensure operands[1] and operands[0] do not
32465 get assigned the same register.
32467 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
32469 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
32471 2016-01-22 Christian Bruel <christian.bruel@st.com>
32473 * config/arm/arm-c.c (arm_pragma_target_parse):
32474 Remove warn_builtin_macro_redefined overwrite.
32476 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
32478 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
32479 flag_non_call_exceptions compatibility.
32481 2016-01-22 Jakub Jelinek <jakub@redhat.com>
32484 * dwarf2out.c (add_child_die_after): New function.
32485 (dwarf_qual_info_t): New type.
32486 (dwarf_qual_info): New variable.
32487 (qualified_die_p): New function.
32488 (modified_type_die): For -fdebug-types-section, ensure
32489 canonical order of qualifiers. Put qualified DIEs adjacent
32490 to the corresponding non-qualified type DIE and search there
32491 for existing qualified DIEs.
32493 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
32495 * doc/extend.texi (scalar_storage_order type attribute): Document
32496 restriction on type punning and aliasing, and remove future tense.
32498 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
32501 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
32504 2016-01-21 Jeff Law <law@redhat.com>
32506 PR middle-end/69347
32507 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
32508 useless call to record_temporary_equivalences.
32509 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
32510 allocate 10 slots in the bb_path vector and let it grow as needed.
32511 (fsm_find_control_statement_thread_paths): Similarly for the next_path
32514 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
32516 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
32518 * configure: Regenerate.
32520 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
32522 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
32523 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
32525 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
32527 PR middle-end/66178
32528 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
32529 drop EXPAND_INITIALIZER.
32530 * rtl.h (contains_symbolic_reference_p): Declare.
32531 * rtlanal.c (contains_symbolic_reference_p): New function.
32532 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
32533 a subtraction into a NOT if symbolic constants are involved.
32535 2016-01-21 Anton Blanchard <anton@samba.org>
32536 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32539 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
32541 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
32544 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
32546 * config/microblaze/microblaze.c
32547 (get_branch_target): New.
32548 (insert_wic_for_ilb_runout): New.
32550 (microblaze_machine_dependent_reorg): New.
32551 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
32552 * config/microblaze/microblaze.md
32553 (UNSPEC_IPREFETCH): Define.
32554 (iprefetch): New pattern
32555 * config/microblaze/microblaze.opt
32556 (mxl-prefetch): New flag.
32558 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
32560 * config/microblaze/microblaze.h
32561 (FIXED_REGISTERS): Update in macro.
32562 (CALL_USED_REGISTERS): Update in macro.
32564 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
32566 PR rtl-optimization/68920
32567 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
32570 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
32572 PR rtl-optimization/68990
32573 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
32574 pseudo instead of inheritance ones.
32576 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32577 Nick Clifton <nickc@redhat.com>
32581 * config/mips/mips.c (mips_compute_frame_info): Initialise
32582 args_size and hard_frame_pointer_offset fields of the frame
32583 structure before calling mips_global_pointer.
32585 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
32587 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
32589 * configure: Regenerate.
32591 2016-01-21 Richard Biener <rguenther@suse.de>
32593 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
32595 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
32597 * config/s390/s390.c (s390_asm_declare_function_size): Add code
32598 to actually emit the .size directive.
32600 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
32601 Jakub Jelinek <jakub@redhat.com>
32605 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
32606 args array size by one to avoid buffer overflow.
32608 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
32610 * config/s390/s390.md (pool_section_start): Use switch_to_section
32611 to select proper read-only data section instead of hardcoding
32613 (pool_section_end): Use switch_to_section to match the above.
32615 2016-01-21 Richard Biener <rguenther@suse.de>
32617 PR tree-optimization/69378
32618 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
32619 (set_ssa_val_to): Use it for dominance checks taking into
32620 account not executable edges.
32622 2016-01-21 Jakub Jelinek <jakub@redhat.com>
32625 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
32626 for bitsize instead of GET_MODE_PRECISION (mode).
32628 2016-01-20 Martin Sebor <msebor@redhat.com>
32631 * extend.texi (__sync Builtins): Clarify the semantics of
32632 __sync_fetch_and_OP built-ins on pointers.
32633 (__atomic Builtins): Same.
32635 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32636 Sebastian Pop <s.pop@samsung.com>
32638 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
32639 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
32640 (is_valid_rename): Same.
32641 (translate_isl_ast_to_gimple::get_rename): Same.
32642 (translate_isl_ast_to_gimple::rename_all_uses): Same.
32643 (translate_isl_ast_to_gimple::rename_uses): Same.
32644 (get_new_name): Check for close_phi nodes.
32645 (copy_loop_phi_args): Use phi_node_kind.
32646 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
32647 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
32649 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32650 Sebastian Pop <s.pop@samsung.com>
32652 Revert commit r229783.
32653 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
32654 Remove use of parameter_rename_map.
32655 (copy_def): Remove.
32656 (copy_internal_parameters): Remove.
32657 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
32658 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
32659 (free_sese_info): Do not free parameter_rename_map.
32660 (set_rename): Do not use parameter_rename_map.
32661 (rename_uses): Update call to set_rename.
32662 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
32663 * sese.h (parameter_rename_map_t): Remove.
32664 (struct sese_info_t): Remove field parameter_rename_map.
32666 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32667 Sebastian Pop <s.pop@samsung.com>
32669 * graphite-isl-ast-to-gimple.c: Fix comment.
32670 * graphite-scop-detection.c (defined_in_loop_p): New.
32671 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
32672 names defined in loop.
32674 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32675 Sebastian Pop <s.pop@samsung.com>
32677 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
32678 Discard unstructured if-then-else regions.
32680 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32681 Sebastian Pop <s.pop@samsung.com>
32683 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
32684 (cleanup_loop_iter_dom): Remove.
32685 (build_loop_iteration_domains): Remove.
32686 (build_scop_context): Remove.
32687 (build_scop_iteration_domain): Remove.
32688 (add_loop_constraints): New.
32689 (build_iteration_domains): New.
32690 (build_poly_scop): Call build_iteration_domains.
32692 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32693 Sebastian Pop <s.pop@samsung.com>
32695 * graphite-scop-detection.c
32696 (scop_detection::harmful_loop_in_region): Free dom and loops.
32697 (scop_detection::loop_body_is_valid_scop): Free bbs.
32699 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32700 Sebastian Pop <s.pop@samsung.com>
32702 * graphite-scop-detection.c (record_loop_in_sese): New.
32703 (gather_bbs::before_dom_children): Call record_loop_in_sese.
32704 (build_scops): Remove call to build_sese_loop_nests.
32705 * sese.c (sese_record_loop): Remove.
32706 (build_sese_loop_nests): Remove.
32707 (new_sese_info): Remove region->loops.
32708 (free_sese_info): Same.
32709 * sese.h (sese_contains_loop): Same.
32710 (build_sese_loop_nests): Remove.
32711 (sese_contains_loop): Remove.
32713 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32714 Sebastian Pop <s.pop@samsung.com>
32716 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
32717 loop_is_valid_in_scop.
32718 (scop_detection::harmful_stmt_in_region): Renamed
32719 harmful_loop_in_region.
32720 Call loop_is_valid_in_scop.
32722 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32723 Sebastian Pop <s.pop@samsung.com>
32725 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
32728 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32729 Sebastian Pop <s.pop@samsung.com>
32731 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
32732 * graphite.h (struct poly_bb): Remove field is_reduction.
32733 (PBB_IS_REDUCTION): Remove.
32735 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32736 Sebastian Pop <s.pop@samsung.com>
32738 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
32739 (add_pdr_constraints): Same.
32740 (scop_get_reads): Same.
32741 (scop_get_must_writes): Same.
32742 (scop_get_may_writes): Same.
32743 (scop_get_original_schedule): Same.
32744 (extend_schedule): Same.
32745 (apply_schedule_on_deps): Same.
32746 (carries_deps): Same.
32747 (compute_deps): Same.
32748 (scop_get_dependences): Same.
32749 * graphite-isl-ast-to-gimple.c
32750 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
32751 * graphite-optimize-isl.c (get_schedule_for_band): Same.
32752 (get_schedule_for_band_list): Same.
32753 (get_schedule_map): Same.
32754 (apply_schedule_map_to_scop): Same.
32755 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
32756 (build_loop_iteration_domains): Same.
32757 (add_condition_to_pbb): Same.
32758 (add_param_constraints): Same.
32759 (pdr_add_memory_accesses): Same.
32760 (pdr_add_data_dimensions): Same.
32762 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
32764 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
32767 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
32769 * common.opt (feliminate-dwarf2-dups): Replace references to
32770 "DWARF 2" with just "DWARF".
32771 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
32772 * doc/extend.texi: Likewise.
32773 * doc/cpp.texi: Likewise.
32774 * doc/invoke.texi: Likewise.
32775 (Option Summary): Add -gdwarf to list of Debugging Options.
32776 (Debugging Options): Document -gdwarf.
32777 * doc/contrib.texi: Spell "DWARF" like that.
32779 2016-01-21 Jakub Jelinek <jakub@redhat.com>
32781 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
32782 warning. Fix up formatting.
32784 PR middle-end/67653
32785 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
32786 attempt to mark memory input operand addressable and
32787 call prepare_gimple_addressable in that case. Don't adjust
32788 input_location for diagnostics, use error_at instead.
32790 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
32792 * config/rs6000/ppc-auxv.h: New file.
32793 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
32794 (cpu_is): Likewise.
32795 (cpu_supports): Likewise.
32796 * config/rs6000/rs6000.c: include "ppc-auxv.h".
32797 (cpu_is_info): New variable.
32798 (cpu_supports_info): Likewise.
32799 (tcb_verification_symbol): Likewise.
32800 (cpu_builtin_p): Likewise.
32801 (cpu_expand_builtin): New function.
32802 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
32803 (rs6000_init_builtins): Likewise.
32804 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
32805 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
32806 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
32807 * configure: Regenerate.
32808 * config.in: Likewise.
32809 * doc/extend.texi (PowerPC Built-in Functions): Document
32810 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
32812 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
32815 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
32817 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
32820 2016-01-20 Richard Henderson <rth@redhat.com>
32826 * tree.c (tm_define_builtin): New.
32827 (find_tm_vector_type): New.
32828 (build_tm_vector_builtins): New.
32829 (build_common_builtin_nodes): Call it.
32831 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
32833 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
32834 (arm_fp_ok): Likewise.
32835 (arm_fp): Likewise.
32836 (arm_crypto): Likewise.
32838 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
32839 Richard Biener <rguenther@suse.de>
32841 PR tree-optimization/69328
32842 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
32843 vectors have same number of elements.
32844 (vectorizable_condition): Fix masked version recognition.
32846 2016-01-20 Richard Biener <rguenther@suse.de>
32848 PR tree-optimization/69345
32849 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
32850 (VN_INFO_PTR_INFO): Likewise.
32851 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
32852 info when it is equal between non-dominating SSA names.
32853 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32854 Make sure to look at original SSA infos.
32856 2016-01-20 Jeff Law <law@redhat.com>
32859 * config/m68k/predicates.md (pow2_m1_operand): New predicate
32861 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
32862 (pc_or_label_operand): New predicate.
32863 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
32864 tests for small integers that are 2^n - 1.
32866 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
32868 * doc/invoke.texi (Options Summary): Add '.' after @xref.
32870 2016-01-19 Jeff Law <law@redhat.com>
32872 PR middle-end/69347
32873 * tree-ssa-threadbackwards.c
32874 (fsm_find_control_statement_thread_paths): Do not try to lookup
32875 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
32877 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
32879 * doc/lto.texi: Remove text that says only Gold has linker plugin
32882 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
32884 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
32885 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
32886 the DIE accordingly.
32887 (modified_type_die): Add REVERSE parameter and pass it recursively,
32888 as well as to base_type_die. Adjust presence check accordingly.
32889 (base_type_for_mode): Adjust call to modified_type_die.
32890 (add_type_attribute): Add REVERSE parameter and pass it to
32892 (generic_parameter_die): Adjust call to add_type_attribute.
32893 (add_scalar_info): Likewise.
32894 (add_subscript_info): Likewise.
32895 (gen_array_type_die): Likewise.
32896 (gen_descr_array_type_die): Likewise.
32897 (gen_entry_point_die): Likewise.
32898 (gen_enumeration_type_die): Likewise.
32899 (gen_formal_parameter_die): Likewise.
32900 (gen_subprogram_die): Likewise.
32901 (gen_variable_die ): Likewise.
32902 (gen_const_die): Likewise.
32903 (gen_field_die): Likewise.
32904 (gen_pointer_type_die): Likewise.
32905 (gen_reference_type_die): Likewise.
32906 (gen_ptr_to_mbr_type_die): Likewise.
32907 (gen_inheritance_die): Likewise.
32908 (gen_subroutine_type_die): Likewise.
32909 (gen_typedef_die): Likewise.
32910 (force_type_die): Adjust call to modified_type_die.
32912 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
32914 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
32915 flow throughout the file. Fix broken link to Objective-C 2.0
32917 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
32920 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32922 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
32924 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32927 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
32928 (maybe_record_node): Record cxa_pure_virtual as the only possible
32929 target if there are not ohter candidates.
32930 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
32932 2016-01-19 Richard Biener <rguenther@suse.de>
32934 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
32935 (get_memory_order): Likewise.
32937 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
32939 * tree-vect-stmts.c (vectorizable_store): Check
32942 2016-01-19 David Malcolm <dmalcolm@redhat.com>
32945 * gcc.c (driver::decode_argv): Add call to
32946 init_opts_obstack before init_options_struct.
32947 * opts.c (init_opts_obstack): Remove idempotency.
32948 (init_options_struct): Replace call to init_opts_obstack
32949 with a gcc_assert to verify that it has already been called.
32950 * toplev.c (toplev::main): Add call to init_opts_obstack before
32951 calls to init_options_struct.
32952 (toplev::finalize): Move cleanup of opts_obstack next to
32953 cleanup of save_decoded_options, clearing the latter, and
32954 save_decoded_options_count.
32956 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32959 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
32960 attribute to unconditional. Remove %? from output template.
32962 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32963 Jiong Wang <jiong.wang@arm.com>
32965 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
32966 generated from different expand order.
32968 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32970 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
32971 Add support for CCMP costing.
32973 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32975 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
32976 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
32977 (fccmpe<mode>): Likewise.
32978 (fcmp): Rename to fcmp and globalize pattern.
32980 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
32981 (aarch64_gen_ccmp_next): Add FP support.
32983 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32985 * target.def (gen_ccmp_first): Update documentation.
32986 (gen_ccmp_next): Likewise.
32987 * doc/tm.texi (gen_ccmp_first): Update documentation.
32988 (gen_ccmp_next): Likewise.
32989 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
32990 expand_ccmp_expr_1. Improve comments.
32991 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
32992 (ccmp_ior<mode>): Remove pattern.
32993 (cmp<mode>): Remove expand.
32994 (cmp): Globalize pattern.
32995 (cstorecc4): Use cc_register.
32996 (mov<mode>cc): Remove ccmp_cc_register check.
32997 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
32998 Simplify after removal of CC_DNE/* modes.
32999 (aarch64_ccmp_mode_to_code): Remove.
33000 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
33001 In 'k' case use integer as condition.
33002 (aarch64_nzcv_codes): Remove inverted cases.
33003 (aarch64_code_to_ccmode): Remove.
33004 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
33005 comparison with CC register to be used in folowing CCMP/branch/CSEL.
33006 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
33007 pattern. Return the comparison with CC register. Invert conditions
33008 when bitcode is OR.
33009 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
33010 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
33012 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33014 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
33015 instrumented_version.
33017 2016-01-19 Richard Biener <rguenther@suse.de>
33019 PR tree-optimization/69336
33020 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
33021 handled components with get_ref_base_and_extent.
33022 (equal_mem_array_ref_p): Adjust.
33024 2016-01-19 Jakub Jelinek <jakub@redhat.com>
33027 * shrink-wrap.c: Include valtrack.h.
33028 (move_insn_for_shrink_wrap): Add DEBUG argument. If
33029 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
33030 in between insn and where it will be moved to. Call
33031 dead_debug_insert_temp.
33032 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
33033 first and dead_debug_local_finish at the end.
33034 For uses and defs bitmap, handle all regs in between REGNO and
33035 END_REGNO, not just the first one.
33037 2016-01-19 Richard Biener <rguenther@suse.de>
33039 PR tree-optimization/69352
33040 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
33041 (equal_mem_array_ref_p): Constrain size and max size properly.
33042 Compare the reverse flag.
33044 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
33046 * ira.c (ira): Update regstat data if we deleted insns.
33048 2016-01-19 Jakub Jelinek <jakub@redhat.com>
33050 PR rtl-optimization/68955
33051 PR rtl-optimization/64557
33052 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
33053 here. Fix up formatting.
33054 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
33056 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33059 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
33060 assume that the node has body.
33061 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
33064 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33066 * lto-streamer-out.c (lto_output): Do not stream instrumentation
33069 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33071 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
33072 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
33074 2016-01-19 Martin Jambor <mjambor@suse.cz>
33075 Martin Liska <mliska@suse.cz>
33076 Michael Matz <matz@suse.de>
33078 * Makefile.in (OBJS): Add new source files.
33079 (GTFILES): Add hsa.c.
33080 * common.opt (disable_hsa): New variable.
33081 (-Whsa): New warning.
33082 * config.in (ENABLE_HSA): New.
33083 * configure.ac: Treat hsa differently from other accelerators.
33084 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
33085 $enable_offloading.
33086 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
33087 * doc/install.texi (Configuration): Document --with-hsa-runtime,
33088 --with-hsa-runtime-include, --with-hsa-runtime-lib and
33089 --with-hsa-kmt-lib.
33090 * doc/invoke.texi (-Whsa): Document.
33091 (hsa-gen-debug-stores): Likewise.
33092 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
33093 to invoke offload compiler for hsa acclerator.
33094 * opts.c (common_handle_option): Determine whether HSA offloading
33095 should be performed.
33096 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
33097 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
33098 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
33099 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
33100 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
33101 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
33102 GF_OMP_FOR_KIND_GRID_LOOP.
33103 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
33104 (pp_gimple_stmt_1): Likewise.
33105 * gimple-walk.c (walk_gimple_stmt): Likewise.
33106 * gimple.c (gimple_build_omp_grid_body): New function.
33107 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
33108 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
33109 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
33110 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
33111 GF_OMP_TEAMS_GRID_PHONY.
33112 (gimple_statement_omp_single_layout): Updated comments.
33113 (gimple_build_omp_grid_body): New function.
33114 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
33115 (gimple_omp_for_grid_phony): New function.
33116 (gimple_omp_for_set_grid_phony): Likewise.
33117 (gimple_omp_parallel_grid_phony): Likewise.
33118 (gimple_omp_parallel_set_grid_phony): Likewise.
33119 (gimple_omp_teams_grid_phony): Likewise.
33120 (gimple_omp_teams_set_grid_phony): Likewise.
33121 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
33122 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
33123 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
33124 (BUILT_IN_GOMP_TARGET): Updated type.
33125 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
33126 (adjust_for_condition): New function.
33127 (get_omp_for_step_from_incr): Likewise.
33128 (extract_omp_for_data): Moved parts to adjust_for_condition and
33129 get_omp_for_step_from_incr.
33130 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
33131 (fixup_child_record_type): Bail out if receiver_decl is NULL.
33132 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
33133 (scan_omp_parallel): Do not create child functions for phony
33135 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
33136 (scan_omp_1_op): Checking assert we are not remapping to
33137 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
33138 (parallel_needs_hsa_kernel_p): New function.
33139 (expand_parallel_call): Register apprpriate parallel child
33140 functions as HSA kernels.
33141 (grid_launch_attributes_trees): New type.
33142 (grid_attr_trees): New variable.
33143 (grid_create_kernel_launch_attr_types): New function.
33144 (grid_insert_store_range_dim): Likewise.
33145 (grid_get_kernel_launch_attributes): Likewise.
33146 (get_target_argument_identifier_1): Likewise.
33147 (get_target_argument_identifier): Likewise.
33148 (get_target_argument_value): Likewise.
33149 (push_target_argument_according_to_value): Likewise.
33150 (get_target_arguments): Likewise.
33151 (expand_omp_target): Call get_target_arguments instead of looking
33152 up for teams and thread limit.
33153 (grid_expand_omp_for_loop): New function.
33154 (grid_arg_decl_map): New type.
33155 (grid_remap_kernel_arg_accesses): New function.
33156 (grid_expand_target_kernel_body): New function.
33157 (expand_omp): Call it.
33158 (lower_omp_for): Do not emit phony constructs.
33159 (lower_omp_taskreg): Do not emit phony constructs but create for them
33160 a temporary variable receiver_decl.
33161 (lower_omp_taskreg): Do not emit phony constructs.
33162 (lower_omp_teams): Likewise.
33163 (lower_omp_grid_body): New function.
33164 (lower_omp_1): Call it.
33165 (grid_reg_assignment_to_local_var_p): New function.
33166 (grid_seq_only_contains_local_assignments): Likewise.
33167 (grid_find_single_omp_among_assignments_1): Likewise.
33168 (grid_find_single_omp_among_assignments): Likewise.
33169 (grid_find_ungridifiable_statement): Likewise.
33170 (grid_target_follows_gridifiable_pattern): Likewise.
33171 (grid_remap_prebody_decls): Likewise.
33172 (grid_copy_leading_local_assignments): Likewise.
33173 (grid_process_kernel_body_copy): Likewise.
33174 (grid_attempt_target_gridification): Likewise.
33175 (grid_gridify_all_targets_stmt): Likewise.
33176 (grid_gridify_all_targets): Likewise.
33177 (execute_lower_omp): Call grid_gridify_all_targets.
33178 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
33179 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
33180 (tree_omp_clause): Added union field dimension.
33181 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
33182 * tree.c (omp_clause_num_ops): Added number of arguments of
33183 OMP_CLAUSE__GRIDDIM_.
33184 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
33185 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
33186 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
33187 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
33188 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
33189 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
33190 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
33191 * tree-pass.h (make_pass_gen_hsail): Declare.
33192 (make_pass_ipa_hsa): Likewise.
33193 * ipa-hsa.c: New file.
33194 * lto-section-in.c (lto_section_name): Add hsa section name.
33195 * lto-streamer.h (lto_section_type): Add hsa section.
33196 * timevar.def (TV_IPA_HSA): New.
33197 * hsa-brig-format.h: New file.
33198 * hsa-brig.c: New file.
33199 * hsa-dump.c: Likewise.
33200 * hsa-gen.c: Likewise.
33203 * toplev.c (compile_file): Call hsa_output_brig.
33204 * hsa-regalloc.c: New file.
33206 2016-01-18 Jeff Law <law@redhat.com>
33208 PR tree-optimization/69320
33209 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
33210 ranged object, do nothing if the RHS constant is not [0..1].
33211 (optimize_stmt): Comparing a boolean ranged object against a
33212 constant outside [0..1] results in a compile-time constant.
33214 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
33217 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
33219 * doc/invoke.texi (Invoking GCC): Add new section to menu.
33220 (Option Summary): Update to reflect new section and moved options.
33221 (C++ Dialect Options): Move -fstats to new section.
33222 (Debugging Options): Move all dump, statistics, and other GCC
33223 developer options to new section. Rewrite section introduction
33224 and re-order remaining options to put the more basic ones first.
33225 (Optimization Options): Move -fira-verbose and -flto-report* to
33227 (Developer Options): New section incorporating moved options.
33228 * doc/cppopts.texi (-dM): Update cross-reference.
33230 2016-01-18 Richard Henderson <rth@redhat.com>
33233 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
33234 operands to pseudo only if CSE is expected. Split long immediate
33235 operands only after reload, and for the stack pointer.
33236 (*add<GPI>3_pluslong): Remove.
33237 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
33238 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
33239 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
33240 (*add<GPI>3 peepholes): New.
33241 (*add<GPI>3 splitters): New.
33242 * config/aarch64/constraints.md (Upl): New.
33243 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
33245 2016-01-18 Richard Biener <rguenther@suse.de>
33247 PR tree-optimization/69297
33248 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
33250 (vect_bb_vectorization_profitable_p): Clear visited flag again.
33252 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
33254 PR middle-end/68542
33255 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
33256 of mixind vector and scalar types.
33257 (fold_relational_const): Add handling of vector
33258 comparison with boolean result.
33259 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
33260 comparison of vector operands with boolean result for EQ/NE only.
33261 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
33262 (verify_gimple_cond): Likewise.
33263 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
33266 2016-01-18 Joseph Myers <joseph@codesourcery.com>
33268 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
33271 2016-01-18 Richard Biener <rguenther@suse.de>
33273 PR middle-end/69308
33274 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
33276 2016-01-18 Tom de Vries <tom@codesourcery.com>
33278 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
33280 2016-01-18 Tom de Vries <tom@codesourcery.com>
33282 * omp-low.c (set_oacc_fn_attrib): Make extern.
33283 * omp-low.h (set_oacc_fn_attrib): Declare.
33284 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
33285 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
33286 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
33287 Add and handle function parameter oacc_kernels_p.
33288 (find_reduc_addr, get_omp_data_i_param): New function.
33289 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
33290 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
33291 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
33292 Calculate dominance info. Skip loops that are not in a kernels region
33293 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
33294 (pass_parallelize_loops::execute): Call parallelize_loops with
33295 oacc_kernels_p argument.
33296 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
33297 New member function.
33298 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
33299 * passes.def: Add argument to pass_parallelize_loops instantation.
33301 2016-01-18 Tom de Vries <tom@codesourcery.com>
33303 * tree-parloops.c (pass_parallelize_loops::execute): Allow
33304 pass_parallelize_loops to be run outside the loop pipeline.
33306 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33308 * tree-scalar-evolution.c (follow_copies_to_constant): New.
33309 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
33311 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33314 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
33315 using get_ref_base_and_extent.
33316 (equal_mem_array_ref_p): New.
33317 (hashable_expr_equal_p): Add call to previous.
33319 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33322 * tree-sra.c (disqualified_constants, constant_decl_p): New.
33323 (sra_initialize): Allocate disqualified_constants.
33324 (sra_deinitialize): Free disqualified_constants.
33325 (disqualify_candidate): Update disqualified_constants when appropriate.
33326 (create_access): Scan for constant-pool entries as we go along.
33327 (scalarizable_type_p): Add check against type_contains_placeholder_p.
33328 (maybe_add_sra_candidate): Allow constant-pool entries.
33329 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
33330 (initialize_constant_pool_replacements): New.
33331 (sra_modify_assign): Avoid mangling assignments created by previous,
33332 and don't generate writes into constant pool.
33333 (sra_modify_function_body): Call initialize_constant_pool_replacements.
33335 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
33337 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
33338 andnot instruction.
33339 (scalar_chain::convert_op): Likewise.
33340 * config/i386/i386.md (*andndi3_doubleword): New.
33342 2016-01-18 Richard Biener <rguenther@suse.de>
33344 PR tree-optimization/69170
33345 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
33346 building a vector from scalar results of a pattern stmt.
33348 2016-01-18 Jakub Jelinek <jakub@redhat.com>
33350 * haifa-sched.c (autopref_multipass_init): Work around
33351 -Wmaybe-uninitialized warning.
33353 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
33355 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
33356 against the constant 0.
33358 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33360 PR tree-optimization/68799
33361 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
33362 look up phi candidates in the statement-candidate map.
33363 (phi_add_costs): Likewise.
33364 (record_phi_increments): Likewise.
33365 (phi_incr_cost): Likewise.
33366 (ncd_with_phi): Likewise.
33367 (all_phi_incrs_profitable): Likewise.
33369 2016-01-17 Jakub Jelinek <jakub@redhat.com>
33371 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
33372 -Wmaybe-uninitialized warning.
33374 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
33376 * doc/invoke.texi (Invoking GCC): Add new section to menu.
33377 (Option Summary): Update to reflect new section and moved options.
33378 (C++ Dialect Options): Move -fvtable-verify and related options.
33379 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
33380 and profiling-related options.
33381 (Optimization Options): Move profile generation options and
33382 -fstack-protector and related options.
33383 (Instrumentation Options): New section incorporating moved options.
33384 (Code Generation Options): Move -finstrument-functions and
33385 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
33387 2016-01-16 Tom de Vries <tom@codesourcery.com>
33389 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
33391 2016-01-16 Tom de Vries <tom@codesourcery.com>
33393 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
33395 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
33397 * hash-table.h (hash_table::empty): Turn into an inline wrapper
33398 that checks whether the table is already empty. Rename the
33399 original implementation to...
33400 (hash_table::empty_slot): ...this new private function.
33402 2016-01-15 David Malcolm <dmalcolm@redhat.com>
33404 PR diagnostic/68899
33405 * diagnostic-show-locus.c (layout::print_source_line): Move x
33406 offset of line until after call to
33407 get_line_width_without_trailing_whitespace.
33409 2016-01-15 Jeff Law <law@redhat.com>
33411 PR tree-optimization/69270
33412 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
33413 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
33414 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
33415 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
33416 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
33417 ssa_name_has_boolean_range and constant_boolean_node.
33419 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
33421 PR rtl-optimization/69030
33422 * lra-spills.c (remove_pseudos): Check nrefs and make the function
33424 (spill_pseudos): Delete debug insn for dead pseudo.
33425 (lra_spill): Initiate spill_hard_reg and slots memory separately.
33427 2016-01-15 Jiong Wang <jiong.wang@arm.com>
33429 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
33431 (TYPES_UNOPUS): Likewise.
33432 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
33433 builtin type, from UNOP to UNOPUS.
33434 (lbtruncuv4sf): Likewise.
33435 (lbtruncuv2df): Likewise.
33436 (lrounduv2sf): Likewise.
33437 (lrounduv4sf): Likewise.
33438 (lrounduv2df): Likewise.
33439 (lroundusf): Likewise.
33440 (lroundusf): Likewise.
33441 (lceiluv2sf): Likewise.
33442 (lceiluv4sf): Likewise.
33443 (lceiluv2df): Likewise.
33444 (lceilusf): Likewise.
33445 (lceiludf): Likewise.
33446 (lflooruv2sf): Likewise.
33447 (lflooruv4sf): Likewise.
33448 (lflooruv2df): Likewise.
33449 (lfloorusf): Likewise.
33450 (lfloorudf): Likewise.
33451 (lfrintnuv2sf): Likewise.
33452 (lfrintnuv4sf): Likewise.
33453 (lfrintnuv2df): Likewise.
33454 (lfrintnusf): Likewise.
33455 (lfrintnudf): Likewise.
33456 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
33458 (vcvtq_u32_f32): Likewise.
33459 (vcvtq_u64_f64): Likewise.
33460 (vcvta_u32_f32): Likewise.
33461 (vcvtaq_u32_f32): Likewise.
33462 (vcvtaq_u64_f64): Likewise.
33463 (vcvtm_u32_f32): Likewise.
33464 (vcvtmq_u32_f32): Likewise.
33465 (vcvtmq_u64_f64): Likewise.
33466 (vcvtn_u32_f32): Likwise.
33467 (vcvtnq_u32_f32): Likewise.
33468 (vcvtnq_u64_f64): Likewise.
33469 (vcvtp_u32_f32): Likewise.
33470 (vcvtpq_u32_f32): Likewise.
33471 (vcvtpq_u64_f64): Likewise.
33472 (vcvtmd_u64_f64): Likewise.
33473 (vcvtms_u32_f32): Likewise.
33474 (vcvtad_u64_f64): Likewise.
33475 (vcvtas_u32_f32): Likewise.
33476 (vcvtnd_u64_f64): Likewise.
33477 (vcvtns_u32_f32): Likewise.
33478 (vcvtpd_u64_f64): Likewise.
33479 (vcvtps_u32_f32): Likewise.
33481 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33483 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
33484 CSEL of zero_extended registers.
33486 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33488 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
33489 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
33491 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33493 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
33494 false when argument string is not found in the attributes table
33497 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
33500 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
33501 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
33502 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
33503 precision estimate.
33505 2016-01-15 Richard Biener <rguenther@suse.de>
33507 PR tree-optimization/66856
33508 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
33509 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
33510 (vect_create_new_slp_node): Increment stmt reference count.
33511 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
33512 an SLP tree before swapping operands.
33513 (vect_build_slp_tree): Likewise.
33514 (destroy_bb_vec_info): Free stmt info after SLP instances.
33515 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
33516 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
33517 (STMT_VINFO_NUM_SLP_USES): New macro.
33519 2016-01-15 Richard Biener <rguenther@suse.de>
33522 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
33523 (add_linkage_name): ... here.
33524 (gen_typedef_die): Use add_linkage_name_raw instead of
33525 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
33528 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
33530 * gimplify.c (oacc_default_clause): Decode reference and pointer
33531 types for both kernels and parallel regions.
33533 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
33535 PR middle-end/69246
33536 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
33538 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
33540 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
33541 (convert_scalars_to_vector): Likewise.
33543 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
33545 * doc/extend.texi (Type Traits): Fix grammar.
33547 2016-01-15 Martin Jambor <mjambor@suse.cz>
33549 * tree-inline.c (remap_decl): Use existing dclarations if
33550 remapping a type and prevent_decl_creation_for_types.
33551 (replace_locals_stmt): Do an initial remapping of non-VLA typed
33552 decls first. Do real remapping with
33553 prevent_decl_creation_for_types set.
33554 * tree-inline.h (copy_body_data): New field
33555 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
33558 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
33560 * config/s390/s390.opt (mmvcle): More verbose help text.
33562 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
33564 * config/s390/s390.opt: Add period to -mzvector option text.
33566 2016-01-15 Richard Biener <rguenther@suse.de>
33568 PR tree-optimization/68961
33569 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
33570 of invariants in stores again.
33572 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
33574 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
33576 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
33578 * config/i386/i386.c (ix86_expand_branch): Don't split
33579 DI mode xor instruction to SI mode.
33581 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
33584 * ipa-icf.c (sem_function::merge): Virtual functions may become
33585 reachable even if they address is not taken and there are no
33588 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
33590 * lto-streamer-out.c (subtract_estimated_size): New function.
33591 (get_symbol_initial_value): Use it.
33593 2016-01-15 Christian Bruel <christian.bruel@st.com>
33596 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
33597 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
33598 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
33599 use add_builtin_function_ext_scope instead of add_builtin_function.
33600 (neon_set_p, neon_crypto_set_p): Remove.
33601 (arm_init_builtins): Always call arm_init_neon_builtins and
33602 arm_init_crypto_builtins.
33603 (arm_expand_builtin): Check that builtins are allowed for the arch.
33604 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
33605 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
33606 arm_init_neon_builtins call.
33608 2016-01-15 Richard Biener <rguenther@suse.de>
33610 PR tree-optimization/69117
33611 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
33612 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
33613 of the leader conservatively.
33614 (free_scc_vn): Restore original SSA name infos.
33616 2016-01-14 Jeff Law <law@redhat.com>
33618 PR tree-optimization/69270
33619 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
33620 single bit of precision, verify it's also unsigned.
33621 (record_edge_info): Use constant_boolean_node rather than fold_convert
33622 to convert boolean_true/boolean_false to the right type.
33624 2016-01-14 Richard Henderson <rth@redhat.com>
33627 * loop-doloop.c (record_reg_sets): New.
33628 (doloop_optimize): Reject the transform if the sequence
33629 clobbers registers live at the end of the loop block.
33630 (doloop_optimize_loops): Enable df_live if needed.
33632 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
33634 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
33635 * config/rs6000/rs6000.c: Likewise.
33636 * config/rs6000/rs6000.h: Likewise.
33637 * config/rs6000/rs6000.md: Likewise.
33638 * doc/extend.texi: Likewsie.
33640 2016-01-14 Jeff Law <law@redhat.com>
33642 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
33645 2016-01-14 Richard Henderson <rth@redhat.com>
33649 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
33650 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
33651 instead of builtin_decl_declared_p to test for declaration.
33653 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
33655 * doc/loop.texi (Loop Analysis and Representation): Document
33656 loop_depth function.
33658 2016-01-14 Tom de Vries <tom@codesourcery.com>
33660 PR tree-optimization/68773
33661 * omp-low.c (expand_omp_target): Don't set force_output.
33662 * varpool.c (varpool_node::get_create): Same.
33663 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
33664 offload_funcs with force_output.
33666 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33669 * lra-eliminations.c (move_plus_up): Don't change anything if either
33670 the outer or inner subreg mode is not MODE_INT.
33671 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
33672 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
33674 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
33676 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
33677 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
33678 reduc_uplus_@var{m}): Remove.
33679 * expr.c (expand_expr_real_2): Remove expansion path for
33680 reduc_[us](min|max|plus) optabs.
33681 * optabs-tree.c (scalar_reduc_to_vector): Remove.
33682 * optabs-tree.h (scalar_reduc_to_vector): Remove.
33683 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
33684 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
33685 * tree-vect-loop.c (vectorizable_reduction): Remove test for
33686 reduc_[us](min|max|plus) optabs.
33688 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
33690 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
33691 (reduc_plus_scal_v2sf): New.
33692 (reduc_smax_v2sf): Rename to...
33693 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
33694 (reduc_smin_v2sf): Rename to...
33695 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
33697 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
33699 * alias.c (compare_base_symbol_refs): New function.
33700 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
33703 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33705 PR middle-end/68146
33706 PR tree-optimization/69155
33707 * tree-complex.c: Include cfganal.h.
33708 (phis_to_revisit): New variable.
33709 (extract_component): Add phiarg_p argument. Assert that returned
33710 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
33711 (update_phi_components): Partly rewrite to use loop over real/imag
33712 components instead of code duplication. If extract_component returns
33713 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
33714 create_tmp_reg into the PHI node instead, and mention the phi triplet
33715 in phis_to_revisit.
33716 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
33717 in phis_to_revisit at the end.
33719 2016-01-14 Richard Biener <rguenther@suse.de>
33721 PR tree-optimization/68060
33722 * tree-vect-loop.c (vect_is_simple_reduction): Check the
33723 outer loop reduction is only used in the inner loop before
33724 detecting a double reduction.
33726 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33729 * combine.c (expand_field_assignment): Punt if compute_mode is
33730 unsupported scalar mode.
33732 2016-01-14 Richard Biener <rguenther@suse.de>
33734 PR tree-optimization/66856
33735 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
33736 SLP node only if it built successfully.
33737 (vect_analyze_slp_instance): Adjust.
33739 2016-01-14 Jeff Law <law@redhat.com>
33741 PR tree-optimization/69270
33742 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
33743 (record_edge_info): Use it. Convert boolean_{true,false}_node
33744 to the type of op0.
33746 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
33749 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
33750 use block_ultimate_origin
33751 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
33753 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
33755 * doc/invoke.texi (Submodel Options): Rename section to
33756 "Machine-Dependent Options" to better reflect its content.
33757 Rewrite introductory text to remove archaic CPU names.
33760 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
33762 * doc/invoke.texi (Code Gen Options): Move section up in file,
33763 before target-specific options. Update menu and option summary
33764 to reflect the new section ordering.
33766 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
33768 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
33769 (C++ Dialect Options): Add cross-reference to -std option.
33770 * doc/standards.texi (C++ Language): Document C++14 support.
33772 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
33774 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
33775 for pack/unpack functions for __ibm128.
33776 (PACK_IF): Likewise.
33777 (UNPACK_IF): Likewise.
33779 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
33780 support for __ibm128 pack/unpack functions.
33781 (rs6000_invalid_builtin): Likewise.
33782 (rs6000_init_builtins): Likewise.
33783 (rs6000_opt_masks): Likewise.
33785 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
33786 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
33788 (RS6000_BTM_COMMON): Likewise.
33790 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
33791 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
33792 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
33793 128-bit floating point. Add support for the double values to be
33794 in Altivec registers for TF/IF packing and unpacking, but restrict
33795 TD packing sub-fields to be FPR registers. Don't allow overlapped
33796 register support for packing. Allow pack inputs to be memory
33797 locations. Don't build generator functions for unpack<mode>_dm
33798 and unpack<mode>_nodm.
33799 (unpack<mode>_dm): Likewise.
33800 (unpack<mode>_nodm): Likewise.
33801 (pack<mode>): Likewise.
33803 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
33804 built-in functions to pack/unpack explicit __ibm128 values.
33805 (__builtin_unpack_ibm128): Likewise.
33807 * doc/extend.texi (PowerPC Built-in Functions): Document
33808 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
33810 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
33813 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
33814 Add new arg loc and pass it down as context.
33815 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
33816 to the location to use for the warning.
33817 (check_function_arguments): New arg loc. All callers changed. Pass
33818 it to check_function_nonnull.
33819 * c-common.h (check_function_arguments): Adjust declaration.
33821 2016-01-13 Jakub Jelinek <jakub@redhat.com>
33823 PR tree-optimization/69156
33824 * gimple.c (validate_type): Removed.
33825 (gimple_builtin_call_types_compatible_p): Use
33826 useless_type_conversion_p instead of validate_type.
33827 * value-prof.c (gimple_stringop_fixed_value): Fold
33828 icall_size to correct type.
33830 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
33832 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
33835 2016-01-13 Richard Henderson <rth@redhat.com>
33838 * target.def (builtin_tm_load, builtin_tm_store): Remove.
33839 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
33840 (ix86_builtin_tm_store): Remove.
33841 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
33842 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
33843 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
33844 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
33845 * doc/tm.texi: Rebuild.
33847 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
33848 (BUILT_IN_TM_MEMCPY_RTWN): New.
33849 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
33850 fallback from vector to integer helpers.
33851 (build_tm_load): Handle vector types directly, instead of
33853 (build_tm_store): Likewise.
33854 (expand_assign_tm): Prepare for register types not handled by
33855 the above. Copy them to memory and use memcpy.
33856 * tree.c (tm_define_builtin): New.
33857 (find_tm_vector_type): New.
33858 (build_tm_vector_builtins): New.
33859 (build_common_builtin_nodes): Call it.
33861 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
33863 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
33864 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
33866 2016-01-13 Tom de Vries <tom@codesourcery.com>
33868 PR tree-optimization/69169
33869 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
33870 handled_struct_type param.
33871 (create_variable_info_for, intra_create_variable_infos): Call
33872 create_variable_info_for_1 with extra arg.
33874 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
33876 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
33877 and "armv8.1-a+crc" entries.
33879 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
33882 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
33883 Change first operand predicate from register_or_constm1_operand
33884 to register_operand.
33885 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
33886 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
33887 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
33888 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
33889 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
33890 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
33891 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
33892 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
33893 comparison with constm1_rtx from vec_prefetch_gen part.
33895 2016-01-13 Richard Biener <rguenther@suse.de>
33897 PR tree-optimization/69013
33898 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
33899 Exchange assert for a test.
33901 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33904 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
33906 2016-01-13 Richard Biener <rguenther@suse.de>
33908 PR tree-optimization/69242
33909 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
33910 assert with a check.
33912 2016-01-13 Richard Biener <rguenther@suse.de>
33914 PR tree-optimization/69186
33915 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
33916 Properly guard vect_update_misalignment_for_peel call.
33918 2016-01-12 Jeff Law <law@redhat.com>
33920 PR tree-optimization/pr67755
33921 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
33922 "need_profile_correction".
33923 (thread_block_1): Initialize new field to false by default. If we
33924 have multiple thread paths through a common joiner to different
33925 final targets, then set new field to true.
33926 (compute_path_counts): Only do count adjustment when it's really
33929 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
33931 * doc/invoke.texi (Spec Files): Move section down in file, past
33932 all command-line option descriptions.
33934 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33936 PR middle-end/54809
33937 * doc/gty.texi: Remove documentation of mark_hook.
33938 * gengtype.c (struct write_types_data): Remove code to support
33939 mark_hook attribute.
33940 (walk_type): Likewise.
33941 (write_func_for_structure): Likewise.
33943 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
33945 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
33946 Directory Options, and -specs= to Overall Options.
33947 (Overall Options): Adjust similarly. Reorder to group related
33948 options together. Make -specs= cross-reference the spec file details.
33949 (Directory Options): Adjust similarly.
33951 2016-01-12 Jeff Law <law@redhat.com>
33953 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
33955 2016-01-12 Olivier Hainque <hainque@adacore.com>
33957 * gcc.c (spec_undefvar_allowed): New global.
33958 (process_command): Set to true when running for --version or --help,
33960 (getenv_spec_function): When the variable is not defined, use the
33961 variable name as the variable value if we're allowed not to issue
33964 2016-01-12 Bin Cheng <bin.cheng@arm.com>
33966 PR tree-optimization/68911
33967 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
33968 information computed for expression "init + nit * step".
33970 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
33972 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
33973 about name of GCC executable. Remove deleted node from menu.
33974 (Directory Options) <-B>: Remove cross-reference to deleted node.
33975 (Target Options): Delete section.
33977 2016-01-12 Christian Bruel <christian.bruel@st.com>
33980 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
33981 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
33983 2016-01-12 Jakub Jelinek <jakub@redhat.com>
33986 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
33987 aligned_mem is properly set for AVX512-VL floating point masked
33991 * ifcvt.c (cond_exec_process_if_block): When removing the last
33992 insn from then_bb, remove also any possible barriers that follow it.
33994 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
33998 * config/i386/iamcu.h (SIZE_TYPE): New macro.
33999 (PTRDIFF_TYPE): Likewise.
34000 (WCHAR_TYPE): Likewise.
34001 (WCHAR_TYPE_SIZE): Likewise.
34002 (STDINT_LONG32): Likewise.
34004 2016-01-12 Richard Biener <rguenther@suse.de>
34006 PR tree-optimization/69053
34007 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
34008 convert initial value for cond reductions.
34010 2016-01-12 Richard Biener <rguenther@suse.de>
34012 PR tree-optimization/69007
34013 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
34014 widen_sum after dot_prod and sad.
34016 2016-01-12 Richard Biener <rguenther@suse.de>
34018 PR tree-optimization/69168
34019 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
34020 pattern stmt SLP type.
34021 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
34022 end up unused so cope with that case.
34024 2016-01-12 Richard Biener <rguenther@suse.de>
34026 PR tree-optimization/69157
34027 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
34028 stmts def type only during analyze phase.
34029 (vectorizable_call): Likewise.
34030 (vectorizable_simd_clone_call): Likewise.
34031 (vectorizable_conversion): Likewise.
34032 (vectorizable_assignment): Likewise.
34033 (vectorizable_shift): Likewise.
34034 (vectorizable_operation): Likewise.
34035 (vectorizable_store): Likewise.
34036 (vectorizable_load): Likewise.
34038 2016-01-12 Richard Biener <rguenther@suse.de>
34040 PR tree-optimization/69174
34041 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
34043 (vectorizable_load): Properly compute the number of loads needed
34044 for permuted strided SLP loads and do not spuriously assign
34045 to SLP_TREE_VEC_STMTS.
34047 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
34049 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
34050 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
34051 (MD_EXEC_PREFIX): Remove.
34052 (MD_STARTFILE_PREFIX) Removee.
34053 (FILE_NAME_ABSOLUTE_P): Remove.
34054 (CPP_SPEC): Do not read macros from sys/version.h.
34055 (LINK_COMMAND_SPEC): Remove.
34056 (LOCAL_INCLUDE_DIR): Remove.
34057 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
34058 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
34059 (POST_LINK_SPEC): Define to invoke stubify after linker
34060 (LIBSTDCXX): Remove define
34061 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
34062 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
34063 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
34064 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
34065 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
34066 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
34067 (i386_djgpp_asm_named_section): Add propotype of new procedure
34069 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
34070 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
34071 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
34072 in config/i386/djgpp.h).
34073 (STANDARD_STARTFILE_PREFIX_2): Define identical to
34074 STANDARD_STARTFILE_PREFIX_1.
34075 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
34076 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
34077 installation errors.
34078 (MAX_OFILE_ALIGNMENT): Define to 128.
34079 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
34081 * config/i386/djgpp.c: New file. Add implementation of
34082 i386_djgpp_asm_named_section.
34084 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
34086 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
34087 Add rule for building djgpp.o.
34089 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34091 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
34092 (rtx_is_swappable_p): Reductions are swappable.
34093 (insn_is_swappable_p): V2DF reductions are swappable.
34095 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
34097 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
34098 reloads for other unsupported memory operands.
34100 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
34101 Jim Wilson <jim.wilson@linaro.org>
34104 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
34105 copy_to_mode_reg instead of force_reg.
34107 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34110 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
34111 TARGET_80387 is true.
34113 2016-01-11 Jakub Jelinek <jakub@redhat.com>
34116 * lra-eliminations.c (move_plus_up): Only move plus up
34117 if subreg of the constant can be simplified into constant
34118 and use the simplified subreg of the constant instead of
34119 the original constant.
34121 * fold-const.c (fold_convertible_p): Don't return true
34122 for conversion of VECTOR_TYPE to same sized integral type.
34123 (fold_convert_loc): Fix up formatting. Fold conversion of
34124 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
34125 instead of NOP_EXPR.
34127 PR tree-optimization/69214
34128 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
34129 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
34132 PR tree-optimization/69207
34133 * tree-vect-slp.c (vect_get_constant_vectors): For
34134 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
34135 fold_convertible_p to vector_type's element type, and always
34136 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
34138 2016-01-11 Richard Biener <rguenther@suse.de>
34140 PR tree-optimization/69173
34141 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
34142 fixup the cycle if all stmts are in a pattern.
34144 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
34146 PR middle-end/68999
34147 * alias.c (base_alias_check): Move check for addresses with
34148 alignment ANDs before the call for compare_base_decls.
34149 (memrefs_conflict_p): Return -1 for different decls
34150 that went through alignment adjustments.
34152 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34154 PR rtl-optimization/68796
34155 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
34156 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
34157 and QImode comparisons against zero with CC_NZmode.
34158 * config/aarch64/iterators.md (short_mask): New mode_attr.
34160 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34162 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
34163 (<avx512>_store<mode>_mask): Likewise.
34165 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
34166 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34168 PR rtl-optimization/68841
34169 * ifcvt.c (struct noce_if_info): Add orig_x field.
34170 (bbs_ok_for_cmove_arith): Add to_rename parameter.
34171 Don't record conflicts on to_rename if it's present.
34172 Allow memory destinations in sets.
34173 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
34174 blocks, passing orig_x to the checks.
34175 (noce_process_if_block): Set if_info->orig_x appropriately.
34177 2016-01-11 Tom de Vries <tom@codesourcery.com>
34179 PR tree-optimization/69069
34180 * tree-parloops.c (create_parallel_loop): Add missing phi args.
34182 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
34184 PR rtl-optimization/68920
34185 * config/i386/i386.c (ix86_option_override_internal): Restrict number
34186 of conditional moves for RTL if-conversion to 1 for
34187 TARGET_ONE_IF_CONV_INSN.
34188 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
34189 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
34190 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
34191 parameter to restirct number of conditional moves for
34193 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
34194 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
34197 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
34200 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
34201 onepart vars. Fix typo in comment. Fix reversed condition in
34203 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
34206 * var-tracking.c (dump_onepart_variable_differences): New.
34207 (dataflow_set_different): If a detailed dump is requested,
34208 delay early returns and dump differences between onepart
34209 variables present before and after, and added variables.
34211 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
34214 * expr.c (expand_expr_real_1): For boolean vector constants
34215 with a scalar mode use const_scalar_mask_from_tree.
34216 (const_scalar_mask_from_tree): New.
34217 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
34218 assigned to a mask type to handle constants.
34220 2016-01-11 Martin Jambor <mjambor@suse.cz>
34223 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
34224 useless parameters if we cannot change function signature.
34226 2016-01-11 Martin Jambor <mjambor@suse.cz>
34229 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
34232 2016-01-11 Tom de Vries <tom@codesourcery.com>
34234 PR tree-optimization/69109
34235 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
34238 2016-01-11 Tom de Vries <tom@codesourcery.com>
34240 PR tree-optimization/69108
34241 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
34242 res is not used in a phi.
34244 2016-01-11 Yury Gribov <y.gribov@samsung.com>
34247 * common.opt (frandom-seed): Fix parameter name.
34248 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
34250 2016-01-11 Tom de Vries <tom@codesourcery.com>
34252 PR tree-optimization/69058
34253 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
34256 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
34258 * config/arc/arc.opt (mdiv-rem): Add period to the end.
34259 (mcode-density): Likewise.
34261 2016-01-10 Tom de Vries <tom@codesourcery.com>
34263 PR tree-optimization/69062
34264 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
34265 (parallelize_loops): Don't paralelize loop that has phi with address
34268 2016-01-10 Tom de Vries <tom@codesourcery.com>
34270 PR tree-optimization/69039
34271 * tree-parloops.c (try_create_reduction_list): Only allow single exit
34274 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
34276 PR middle-end/68743
34277 * match.pd: Require target has function_c99_misc before doing
34278 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
34280 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
34282 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
34284 * configure: Regenerate.
34286 2016-01-09 Jakub Jelinek <jakub@redhat.com>
34288 PR middle-end/50865
34289 PR tree-optimization/69097
34290 * fold-const.h (expr_not_equal_to): New prototype.
34291 * fold-const.c: Include stringpool.h and tree-ssanames.h.
34292 (expr_not_equal_to): New function.
34293 * match.pd (X % -Y is the same as X % Y): Don't optimize
34294 unless X is known not to be equal to minimum or Y is known
34295 not to be equal to -1.
34296 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
34297 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
34298 (simplify_stmt_using_ranges): Adjust caller.
34299 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
34300 substitute_and_fold.
34302 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
34304 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
34307 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34309 PR tree-optimization/69167
34310 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
34311 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
34313 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
34315 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
34316 Richard Biener <rguenther@suse.de>
34318 PR tree-optimization/68707
34319 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
34320 instances that can be handled via vect_load_lanes.
34322 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
34324 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
34325 if we can't determine address equivalence.
34326 * alias.c (compare_base_decl): Update for changed return value of
34327 symtab_node::equal_address_to.
34329 2016-01-08 Jason Merrill <jason@redhat.com>
34333 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
34334 * expr.c (store_field): Not here.
34335 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
34336 call with TREE_ADDRESSABLE type.
34337 * tree-cfg.c (verify_gimple_call): Adjust.
34339 2016-01-08 Olivier Hainque <hainque@adacore.com>
34341 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
34344 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
34346 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
34347 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
34348 (reduc_smin_v2sf): Rename to...
34349 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
34350 (reduc_splus_v2sf): Rename to...
34351 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
34353 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34355 PR tree-optimization/69162
34356 * gimplify.c (gimplify_va_arg_expr): Encode original type of
34357 valist argument in another argument.
34358 (gimplify_modify_expr): Adjust for the above change. Cleanup.
34359 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
34360 to determine the va_list type, build a MEM_REF instead of
34361 build_fold_indirect_ref.
34363 PR tree-optimization/69172
34364 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
34367 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
34369 PR tree-optimization/67781
34370 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
34371 and cmpnop in two steps: first the ones not accessed in original
34372 gimple expression in a endian independent way and then the ones not
34373 accessed in the final result in an endian-specific way.
34375 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34377 PR tree-optimization/69083
34378 * tree-vect-slp.c (vect_get_constant_vectors): For
34379 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
34380 element type. If op is fold_convertible_p to vector_type's element
34381 type, use NOP_EXPR instead of VCE.
34383 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
34385 PR rtl-optimization/67778
34386 PR rtl-optimization/68634
34387 PR rtl-optimization/68909
34388 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
34389 block from the stack until done with it. Remove a superfluous
34390 bitmap set. Remove a superfluous bitmap test.
34392 2016-01-07 Martin Sebor <msebor@redhat.com>
34395 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
34396 constraint on the type of arguments.
34398 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
34400 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
34401 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
34402 unaligned_access on the gcc_options set.
34403 * config/arm/arm.c (arm_option_override_internal): Use
34404 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
34406 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
34409 * config/i386/i386.c (ix86_frame_pointer_required): Enable
34410 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
34412 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
34415 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
34418 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
34419 depending on frame_pointer_needed before remaining integer and SSE
34420 registers are saved.
34422 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
34425 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
34427 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
34430 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
34431 Use the "xBm" constraint.
34432 (float<sseintvecmodelower><mode>2<mask_name><round_name):
34434 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
34435 (sse_cvtsi2ssq<round_name>): Likewise.
34436 (sse_cvtss2si<round_name>): Likewise.
34437 (sse_cvtss2siq<round_name>): Likewise.
34438 (sse2_cvtsi2sdq<round_name>): Likewise.
34439 (sse2_cvtsd2si<round_name>): Likewise.
34440 (sse2_cvtsd2siq<round_name>): Likewise.
34441 * config/i386/subst.md (round_nimm_scalar_predicate): New
34444 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
34446 PR middle-end/67639
34447 * varasm.c (make_decl_rtl): Mark invalid register vars as
34450 PR rtl-optimization/66206
34451 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
34452 All callers changed.
34454 2016-01-07 Jakub Jelinek <jakub@redhat.com>
34456 PR tree-optimization/69141
34457 * tree-ssa-pre.c: Include langhooks.h.
34458 (eliminate_dom_walker::before_dom_children): Use
34459 lang_hooks.decl_printable_name instead of
34460 cgraph_node::get ()->name ().
34462 PR middle-end/68960
34463 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
34464 it and DECL_ALIGN too.
34466 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
34468 * config/mips/mips-ftypes.def: Sort to lexicographical order.
34470 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
34473 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
34474 depending on frame_pointer_needed before remaining integer and SSE
34475 registers are saved.
34477 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34479 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
34480 mode iterator with VSX_M2.
34481 (*p9_vecstore_<mode>): Likewise.
34482 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
34483 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
34484 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
34485 (define_split for VSX_LE128 stores): Likewise.
34486 (define_peephole2 for TImode LE swaps): Likewise.
34487 (define_split for VSX_LE128 post-reload stores): Likewise.
34489 2016-01-06 Marek Polacek <polacek@redhat.com>
34492 * convert.c (convert_to_integer_1): Adjust call to
34493 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
34494 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
34495 EXPR instead of ARG.
34496 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
34498 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34501 * doc/extend.texi (RL78 Variable Attributes): New section.
34503 2016-01-05 Marek Polacek <polacek@redhat.com>
34506 * builtins.c (get_memmodel): Use expansion point location rather than
34507 the input location. Call warning_at rather than warning.
34508 (expand_builtin_atomic_compare_exchange): Likewise.
34509 (expand_builtin_atomic_load): Likewise.
34510 (expand_builtin_atomic_store): Likewise.
34511 (expand_builtin_atomic_clear): Likewise.
34513 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
34516 * config/i386/i386.c (ix86_expand_vector_logical_operator):
34517 Replace nonimmediate_operand with vector_operand.
34518 * config/i386/predicates.md (vector_operand): New predicate.
34519 (general_vector_operand): Replace nonimmediate_operand with
34521 * config/i386/sse.md: Replace nonimmediate_operand with
34522 vector_operand and m constraint with Bm constraint on SSE
34523 patterns with 16-byte memory operand.
34524 * config/i386/subst.md (round_nimm_predicate): Replace
34525 nonimmediate_operand with vector_operand.
34526 (round_saeonly_nimm_predicate): Likewise.
34527 (round_saeonly_nimm_scalar_predicate): New.
34529 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
34532 * config/i386/constraints.md (Bm): New constraint.
34533 * config/i386/predicates.md (vector_memory_operand): New
34535 * config/i386/sse.md: Replace xm with xBm in plusminus and
34536 any_logic patterns.
34538 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34541 * doc/extend.texi (V850 Function Attributes): New section.
34542 (V850 Variable Attributes): New section.
34544 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34547 * doc/extend.texi (MicroBlaze Function Attributes): Document
34548 interrupt_handler and fast_interrupt attributes.
34550 2016-01-05 Sergei Trofimovich <siarheit@google.com>
34553 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
34554 for local symbolic operands.
34555 * config/ia64/predicates.md (local_symbolic_operand64): New
34558 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34560 PR rtl-optimization/68651
34561 * combine.c (combine_simplify_rtx): Canonicalize x + x into
34564 2016-01-05 Nathan Sidwell <nathan@acm.org>
34566 * alias.c (compare_base_decls): Use symtab_node::get.
34568 2016-01-05 Nick Clifton <nickc@redhat.com>
34571 * ira-costs.c (copy_cost): Initialise the t_icode field of the
34572 secondary_reload_info structure.
34575 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
34576 decls if weak support is available.
34578 2016-01-04 Martin Sebor <msebor@redhat.com>
34580 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
34582 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
34584 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
34585 OPTION_MASK_P9_DFORM.
34587 * config/rs6000/constraints.md (wo constraint): New constraint for
34590 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
34592 (rs6000_init_hard_regno_mode_ok): Likewise.
34594 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
34597 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
34598 expanders not to have constraints. Add support for ISA 3.0 xxperm
34599 instruction. Add support for fusing xxlor with xxperm.
34600 (altivec_vperm_<mode>_internal): Likewise.
34601 (altivec_vperm_v8hiv16qi): Likewise.
34602 (altivec_vperm_<mode>v16q): Likewise.
34603 (altivec_vperm_<mode>_uns): Likewise.
34604 (vperm_v8hiv4si): Likewise.
34605 (vperm_v16qiv8hi): Likewise.
34607 * doc/md.texi (RS/6000 constraints): Document wo constraint.
34609 2016-01-04 Jakub Jelinek <jakub@redhat.com>
34611 Update copyright years.
34613 * gcc.c (process_command): Update copyright notice dates.
34614 * gcov-dump.c (print_version): Ditto.
34615 * gcov.c (print_version): Ditto.
34616 * gcov-tool.c (print_version): Ditto.
34617 * gengtype.c (create_file): Ditto.
34618 * doc/cpp.texi: Bump @copying's copyright year.
34619 * doc/cppinternals.texi: Ditto.
34620 * doc/gcc.texi: Ditto.
34621 * doc/gccint.texi: Ditto.
34622 * doc/gcov.texi: Ditto.
34623 * doc/install.texi: Ditto.
34624 * doc/invoke.texi: Ditto.
34626 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34628 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
34629 modes larger than TImode as TImode if NEON is not enabled.
34631 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34634 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
34635 mode for %f0-%f31 only if TARGET_FPU.
34637 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34640 * config/sparc/sparc.c (scan_record_type): Take into account subfields
34641 to compute the PACKED_P predicate.
34642 (function_arg_record_value): Minor tweaks.
34644 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
34646 * doc/install.texi (--with-multilib-list): Describe the meaning of the
34647 option for arm*-*-* targets.
34649 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
34651 * doc/extend.texi (Common Function Attributes): Move docs for
34652 MSP430-specific attributes to....
34653 (MSP430 Function Attributes): ...here. Delete the redundant
34654 entries and copy-edit the remaining text.
34655 (MSP430 Variable Attributes): Use uniform format for index
34656 entries and add a cross-reference to the corresponding function
34659 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
34661 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
34663 (x86 Options): Likewise.
34665 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
34669 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
34670 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
34671 to corresponding attribute.
34673 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
34675 * doc/extend.texi (Common Function Attributes) <noplt>: Move
34676 to correct alphabetization of table. Copy-edit and correct
34678 <stack_protect>: Likewise.
34679 <target_clones>: Likewise.
34681 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
34682 Correct punctuation.
34683 (Code Gen Options) <-fno-plt>: Copy-edit.
34685 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
34688 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
34689 SI values. Explicitly convert SI to DI and vice-versa.
34691 2016-01-01 Jakub Jelinek <jakub@redhat.com>
34693 PR tree-optimization/69070
34694 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
34695 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
34698 * ubsan.c (ubsan_instrument_float_cast): Call
34699 initialize_sanitizer_builtins.
34702 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
34704 Copyright (C) 2016 Free Software Foundation, Inc.
34706 Copying and distribution of this file, with or without modification,
34707 are permitted in any medium without royalty provided the copyright
34708 notice and this notice are preserved.