1 2016-12-11 Iain Sandoe <iain@codesourcery.com>
3 * configure.ac (CROSS directory tests): Remove the assumption that
4 Darwin hosts contain suitable target sysroots in "/".
5 * configure: Regenerate.
7 2016-12-11 Iain Sandoe <iain@codesourcery.com>
9 PR rtl-optimization/71496
10 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
11 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
12 reload_macho_picbase_di): Likewise.
14 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
16 * config/pa/pa.c (pa_callee_copies): New function.
17 * config/pa/pa.opt (mcaller-copies): New option.
18 * doc/invoke.texi (mcaller-copies): Document option.
20 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
23 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
24 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
26 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
27 constant shifts larger or equal than 32.
29 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
31 * config/i386/x86-64.h: Append --32 to the assembler options when
32 -m16 is used on non-glibc systems as well.
34 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
37 * config/i386/mmintrin.h (__m64_u): New type
38 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
39 Make the allowed unaligned memory access explicit.
41 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
43 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
44 Generally use cpu generic.
46 2016-12-10 Jakub Jelinek <jakub@redhat.com>
47 Marc Glisse <marc.glisse@inria.fr>
49 PR tree-optimization/78720
50 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
51 is negative, sign extend to @1's type and than AND with C.
53 2016-12-10 Jakub Jelinek <jakub@redhat.com>
56 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
57 non-zero low bound or non-standard element sizes.
60 * lto-streamer-in.c (input_function): In addition to debug stmts
61 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
64 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
66 * config/rs6000/rs6000-passes.def: New file.
67 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
68 * config/rs6000/rs6000.c (rs6000_option_override): Remove
69 registration of machine-specific passes.
70 (pass_analyze_swaps::clone): New function.
71 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
73 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
76 * ipa-cp.c (propagate_vr_accross_jump_function): Call
77 drop_tree_overflow after fold_convert.
79 2016-12-09 Jakub Jelinek <jakub@redhat.com>
82 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
83 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
86 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
89 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
90 GET_MODE_BITSIZE. Return 2.
91 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
92 TARGET_POPCNTD the same as TARGET_CTZ.
93 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
94 (ffs<mode>2): Reimplement.
96 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
98 PR rtl-optimization/78255
99 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
100 NO_FUNCTION_CSE is true.
102 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
105 * ipa-icf.c (sem_function::parse): Don't process functions with
106 oacc decl attributes, as they may be OpenACC routines.
108 2016-12-09 David Malcolm <dmalcolm@redhat.com>
110 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
113 2016-12-09 Nathan Sidwell <nathan@acm.org>
116 * convert.c (convert_to_integer_1): Maybe fold conversions to
117 integral types with fewer bits than its mode.
119 2016-12-09 Martin Liska <mliska@suse.cz>
121 * tree-pretty-print.c (pretty_print_string): Escape non-printable
124 2016-12-09 Jakub Jelinek <jakub@redhat.com>
126 PR tree-optimization/78726
127 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
128 argument. For lhs uses in debug stmts, don't replace lhs with
129 new_lhs, but with a debug temp set to new_lhs opcode op.
130 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
131 OP down to make_new_ssa_for_def.
132 (zero_one_operation): Call make_new_ssa_for_all_defs even when
133 stmts_to_fix is empty, if *def has not changed yet. Pass
134 OPCODE to make_new_ssa_for_all_defs.
136 2016-12-08 Martin Sebor <msebor@redhat.com>
139 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
140 identifier tree nodes.
141 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
142 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
143 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
144 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
145 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
146 * builtins.c (expand_builtin_alloca): Call
147 maybe_warn_alloc_args_overflow.
148 * builtins.def (aligned_alloc, calloc, malloc, realloc):
149 Add attribute alloc_size.
150 (alloca): Add attribute alloc_size and returns_nonnull.
151 * calls.h (maybe_warn_alloc_args_overflow): Declare.
152 * calls.c (alloc_max_size, operand_signed_p): New functions.
153 (maybe_warn_alloc_args_overflow): Define.
154 (initialize_argument_information): Diagnose overflow in functions
155 declared with attaribute alloc_size.
156 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
157 -Walloc-size-larger-than.
159 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
161 PR rtl-optimization/78671
162 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
165 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
167 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
168 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
170 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
173 * config/aarch64/aarch64.c (aarch64_classify_address):
174 Set load_store_pair_p for TImode and TFmode.
176 2016-12-08 David Malcolm <dmalcolm@redhat.com>
178 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
179 regno_reg_rtx resizing logic to...
180 (emit_status::ensure_regno_capacity): ...this new method,
181 and ensure that the buffers are large enough.
182 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
183 rather than ggc_vec_alloc.
184 * function.h (emit_status::ensure_regno_capacity): New method.
186 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
188 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
189 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
190 * doc/invoke.texi (-fsanitize=kernel-address):
191 Don't say that it enables -fsanitize-address-use-after-scope.
193 2016-12-08 Bin Cheng <bin.cheng@arm.com>
196 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
197 sign bit for index step of data reference.
199 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
201 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
202 Handle SYMBOL_SMALL_TLSGD for ILP32.
203 * config/aarch64/aarch64.md : tlsgd_small modified into
204 tlsgd_small_<mode> to support SImode and DImode.
205 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
208 2016-12-08 Andrew Pinski <apinski@cavium.com>
210 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
211 Access the lower part of RTX appropriately.
213 2016-12-07 David Malcolm <dmalcolm@redhat.com>
215 * genpreds.c (write_tm_constrs_h): Update for renaming of
216 rtx_reader_ptr to md_reader_ptr.
217 (write_tm_preds_h): Likewise.
218 (write_insn_preds_c): Likewise.
219 * read-md.c (rtx_reader_ptr): Rename to...
220 (md_reader_ptr): ...this, and convert from an
221 rtx_reader * to a md_reader *.
222 (rtx_reader::set_md_ptr_loc): Rename to...
223 (md_reader::set_md_ptr_loc): ...this.
224 (rtx_reader::get_md_ptr_loc): Rename to...
225 (md_reader::get_md_ptr_loc): ...this.
226 (rtx_reader::copy_md_ptr_loc): Rename to...
227 (md_reader::copy_md_ptr_loc): ...this.
228 (rtx_reader::fprint_md_ptr_loc): Rename to...
229 (md_reader::fprint_md_ptr_loc): ...this.
230 (rtx_reader::print_md_ptr_loc): Rename to...
231 (md_reader::print_md_ptr_loc): ...this.
232 (rtx_reader::join_c_conditions): Rename to...
233 (md_reader::join_c_conditions): ...this.
234 (rtx_reader::fprint_c_condition): ...this.
235 (rtx_reader::print_c_condition): Rename to...
236 (md_reader::print_c_condition): ...this.
237 (fatal_with_file_and_line): Update for renaming of
238 rtx_reader_ptr to md_reader_ptr.
239 (rtx_reader::require_char): Rename to...
240 (md_reader::require_char): ...this.
241 (rtx_reader::require_char_ws): Rename to...
242 (md_reader::require_char_ws): ...this.
243 (rtx_reader::require_word_ws): Rename to...
244 (md_reader::require_word_ws): ...this.
245 (rtx_reader::read_char): Rename to...
246 (md_reader::read_char): ...this.
247 (rtx_reader::unread_char): Rename to...
248 (md_reader::unread_char): ...this.
249 (rtx_reader::peek_char): Rename to...
250 (md_reader::peek_char): ...this.
251 (rtx_reader::read_name): Rename to...
252 (md_reader::read_name): ...this.
253 (rtx_reader::read_escape): Rename to...
254 (md_reader::read_escape): ...this.
255 (rtx_reader::read_quoted_string): Rename to...
256 (md_reader::read_quoted_string): ...this.
257 (rtx_reader::read_braced_string): Rename to...
258 (md_reader::read_braced_string): ...this.
259 (rtx_reader::read_string): Rename to...
260 (md_reader::read_string): ...this.
261 (rtx_reader::read_skip_construct): Rename to...
262 (md_reader::read_skip_construct): ...this.
263 (rtx_reader::handle_constants): Rename to...
264 (md_reader::handle_constants): ...this.
265 (rtx_reader::traverse_md_constants): Rename to...
266 (md_reader::traverse_md_constants): ...this.
267 (rtx_reader::handle_enum): Rename to...
268 (md_reader::handle_enum): ...this.
269 (rtx_reader::lookup_enum_type): Rename to...
270 (md_reader::lookup_enum_type): ...this.
271 (rtx_reader::traverse_enum_types): Rename to...
272 (md_reader::traverse_enum_types): ...this.
273 (rtx_reader::rtx_reader): Rename to...
274 (md_reader::md_reader): ...this, and update for renaming of
275 rtx_reader_ptr to md_reader_ptr.
276 (rtx_reader::~rtx_reader): Rename to...
277 (md_reader::~md_reader): ...this, and update for renaming of
278 rtx_reader_ptr to md_reader_ptr.
279 (rtx_reader::handle_include): Rename to...
280 (md_reader::handle_include): ...this.
281 (rtx_reader::handle_file): Rename to...
282 (md_reader::handle_file): ...this.
283 (rtx_reader::handle_toplevel_file): Rename to...
284 (md_reader::handle_toplevel_file): ...this.
285 (rtx_reader::get_current_location): Rename to...
286 (md_reader::get_current_location): ...this.
287 (rtx_reader::add_include_path): Rename to...
288 (md_reader::add_include_path): ...this.
289 (rtx_reader::read_md_files): Rename to...
290 (md_reader::read_md_files): ...this.
291 * read-md.h (class rtx_reader): Split into...
292 (class md_reader): ...new class.
293 (rtx_reader_ptr): Rename to...
294 (md_reader_ptr): ...this, and convert to a md_reader *.
295 (class noop_reader): Update base class to be md_reader.
296 (class rtx_reader): Reintroduce as a subclass of md_reader.
297 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
298 (read_char): Update for renaming of rtx_reader_ptr to
300 (unread_char): Likewise.
301 * read-rtl.c (rtx_reader_ptr): New global.
302 (rtx_reader::apply_iterator_to_string): Rename to...
303 (md_reader::apply_iterator_to_string): ...this.
304 (rtx_reader::copy_rtx_for_iterators): Rename to...
305 (md_reader::copy_rtx_for_iterators): ...this.
306 (rtx_reader::read_conditions): Rename to...
307 (md_reader::read_conditions): ...this.
308 (rtx_reader::record_potential_iterator_use): Rename to...
309 (md_reader::record_potential_iterator_use): ...this.
310 (rtx_reader::read_mapping): Rename to...
311 (md_reader::read_mapping): ...this.
312 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
314 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
315 than directly accessing m_string_obstack.
316 (rtx_reader::rtx_reader): New ctor.
317 (rtx_reader::~rtx_reader): New dtor.
319 2016-12-07 Martin Sebor <msebor@redhat.com>
325 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
327 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
328 (check_memop_sizes): Same.
329 (expand_builtin_memcpy): Call check memop_sizes.
330 (expand_builtin_mempcpy): Same.
331 (expand_builtin_memset): Same,
332 (expand_builtin_bzero): Same.
333 (expand_builtin_memory_chk): Call check_sizes.
334 (expand_builtin_strcpy): Same.
335 (expand_builtin_strncpy): Same.
336 (maybe_emit_sprintf_chk_warning): Same.
337 (expand_builtin): Handle strcat and strncat.
338 (fini_object_sizes): Reset pointers.
339 (compute_object_size): New function.
340 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
341 Avoid issuing warnings also issued during built-in expansion.
342 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
344 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
347 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
348 V2DImode elements are SUBREG's convert the result into DImode
349 rather than failing in emit_move_insn.
351 2016-12-07 Jakub Jelinek <jakub@redhat.com>
353 * builtins.c (fold_builtin_strstr): Removed.
354 (fold_builtin_2): Don't call fold_builtin_strstr.
355 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
356 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
357 (gimple_fold_builtin_strstr): New function.
358 (gimple_fold_builtin): Call it.
359 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
362 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
363 var to lhs of new_stmt right before noreturn handling rather than to
364 lhs of e->call_stmt early.
366 2016-12-07 David Malcolm <dmalcolm@redhat.com>
368 * read-md.c (rtx_reader::require_char): New method.
369 (require_char_ws): Convert from function to...
370 (rtx_reader::require_char_ws): ...method.
371 (rtx_reader::require_word_ws): New method.
372 * read-md.h (rtx_reader::require_char): New method decl.
373 (require_char_ws): Remove global decl in favor of...
374 (rtx_reader::require_char_ws): ...new method decl.
375 (rtx_reader::require_word_ws): New method decl.
376 (rtx_reader::peek_char): New method decl.
378 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
380 PR rtl-optimization/78617
381 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
382 registers, also setting hard registers mapped to pseudo registers.
384 2016-12-07 David Malcolm <dmalcolm@redhat.com>
386 * cfgexpand.c (pass_expand::execute): Move stack initializations
387 to rtl_data::init_stack_alignment and call it.
388 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
389 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
391 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
393 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
394 (ira): Move initialization of crtl->is_leaf earlier.
396 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
398 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
399 (movtf_aarch64): Likewise.
400 * config/aarch64/aarch64.c (aarch64_classify_address):
401 Use correct intersection of offsets.
402 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
403 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
404 Use 7-bit signed scaled mode for modes > 16 bytes.
406 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
408 PR rtl-optimization/78561
409 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
410 constant_pool_empty_p in place of get_pool_size_upper_bound.
411 (rs6000_stack_info): Likewise.
412 (rs6000_emit_prologue): Likewise.
413 (rs6000_elf_declare_function_name): Likewise.
414 (rs6000_set_up_by_prologue): Likewise.
415 (rs6000_can_eliminate): Likewise.
416 * output.h (get_pool_size_upper_bound): Delete.
417 (constant_pool_empty_p): New.
418 * varasm.c (get_pool_size_upper_bound): Delete
419 (constant_pool_empty_p): New.
421 2016-12-07 Bin Cheng <bin.cheng@arm.com>
423 PR tree-optimization/78691
424 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
425 Require integral type for the outer expression.
427 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
429 * config/aarch64/aarch64.c
430 (aarch64_builtin_support_vector_misalignment): New.
431 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
433 2016-12-06 David Malcolm <dmalcolm@redhat.com>
436 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
437 Conditionalize the string comparison on Pmode == DImode.
439 2016-12-06 Tom de Vries <tom@codesourcery.com>
441 PR tree-optimization/67955
442 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
443 (stmt_kills_ref_p): Use it.
445 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
448 * calls.c (expand_call): Move back call to prepare_call_address.
450 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
453 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
454 ?* constraints for the ISA 3.0 patterns, so the register allocator
455 is more likely to allocate QImode/HImode to vector registers for
456 conversion to floating point unless a reload is needed.
457 (zero_extendhi<mode>2): Likewise.
458 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
459 first alternative which is converting QImode/HImode to floating
460 point and the QImode/HImode value is in a vector register, and
461 does not allocate the second pseudo register. Remove zero
462 extending into traditional floating point registers, since the
463 instruction used only works on traditional altivec registers.
464 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
466 2016-12-06 David Malcolm <dmalcolm@redhat.com>
468 * config/i386/i386.c: Include print-rtl.h.
469 (selftest::ix86_test_dumping_memory_blockage): New function.
470 (selftest::ix86_run_selftests): Call it.
471 * print-rtl-function.c (print_rtx_function): Create an
472 rtx_reuse_manager and use it.
473 * print-rtl.c: Include "rtl-iter.h".
474 (rtx_writer::rtx_writer): Add reuse_manager param.
475 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
476 (uses_rtx_reuse_p): New function.
477 (rtx_reuse_manager::preprocess): New function.
478 (rtx_reuse_manager::has_reuse_id): New function.
479 (rtx_reuse_manager::seen_def_p): New function.
480 (rtx_reuse_manager::set_seen_def): New function.
481 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
482 prefix the first time in_rtx is seen, and print reuse_rtx
484 (print_inline_rtx): Supply NULL for new reuse_manager param.
485 (debug_rtx): Likewise.
486 (print_rtl): Likewise.
487 (print_rtl_single): Likewise.
488 (rtx_writer::print_rtl_single_with_indent): Likewise.
489 * print-rtl.h: Include bitmap.h when building for host.
490 (rtx_writer::rtx_writer): Add reuse_manager param.
491 (rtx_writer::m_rtx_reuse_manager): New field.
492 (class rtx_reuse_manager): New class.
493 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
494 param and use it when constructing rtx_writer.
495 (selftest::test_dumping_rtx_reuse): New function.
496 (selftest::rtl_tests_c_tests): Call it.
497 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
498 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
499 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
500 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
502 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
505 * lra-lives.c (process_bb_lives): Update biggest mode for
506 implicitly used hard reg.
508 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
510 * config/i386/predicates.md (general_gr_operand): New predicate.
511 * config/i386/i386.md (TImode and DImode push_operand splitter):
512 Use general_gr_operand. Macroize using DWI mode macro.
513 (TImode and DImode nonimmediate_operand splitter): Use
514 nonimmediate_gr_operand and general_gr_operand. Macroize using
516 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
517 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
518 and general_gr_operand.
519 (XFmode nonimmediate_operand splitter): Ditto.
520 (DFmode nonimmediate_operand splitter): Ditto.
521 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
523 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
525 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
526 alphabetical order with respect to other ARMv8 processors.
527 * config/arm/arm-tables.opt: Regenerate.
528 * config/arm/arm-tune.md: Likewise.
530 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
532 * config/mips/mips.c (mips_expand_builtin_insn): Check input
533 ranges of literal integer arguments.
535 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
538 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
539 destroy_predicate_vecs.
540 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
542 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
545 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
546 argument type to a pred_chain.
547 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
549 (flatten_out_predicate_chains): Remove.
550 (uninit_uses_cannot_happen): Rename from
551 uninit_ops_invalidate_phi_use.
552 Change logic so that we are checking that the PHI use will
553 invalidate _ALL_ possibly uninitialized operands.
554 (is_use_properly_guarded): Rename call to
555 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
557 2016-12-06 Tamar Christina <tamar.christina@arm.com>
559 * gcc/config/aarch64/arm_neon.h
560 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
561 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
562 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
563 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
564 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
565 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
566 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
567 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
568 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
569 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
570 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
571 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
572 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
573 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
575 2016-12-06 Jakub Jelinek <jakub@redhat.com>
578 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
579 plus offset is non-zero. For maybe_nonzero_address decl base0,
580 require indirect_base0.
583 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
584 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
585 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
586 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
587 and arguments have no side-effects, return 0.
588 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
591 * fold-const-call.c (fold_const_call): Handle
592 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
594 PR tree-optimization/78675
595 * tree-vect-loop.c (vectorizable_live_operation): For
596 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
597 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
599 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
602 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
603 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
604 (copy_insn_1) <CLOBBER>: Likewise.
606 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
609 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
610 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
611 comparing signed to unsigned values.
612 (FUNCTION_ARG_REGNO_P): Likewise.
614 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
615 Stefan Freudenberger <stefan@reservoir.com>
617 PR tree-optimization/78646
618 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
619 addition used for the memory base expression should have the type
622 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
625 * config.gcc (*-*-uclinux*): Enable posix threads.
627 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
629 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
630 * config/i386/avx512dqintrin.h: Ditto.
631 * config/i386/avx512fintrin.h: Ditto.
632 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
633 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
634 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
635 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
636 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
637 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
639 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
640 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
641 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
642 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
643 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
644 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
645 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
646 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
647 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
649 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
651 * combine.c: Revert r243162.
653 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
655 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
656 X tests a single bit.
658 2016-12-05 Nathan Sidwell <nathan@acm.org>
660 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
661 (diagnostic_action_after_output): ... here.
662 (diagnostic_report_diagnostic): Call it for non-notes.
663 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
664 (diagnostic_check_max_errors): Declare.
666 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
668 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
669 (ENDFILE_SPEC): Likewise.
671 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
673 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
674 * config/arc/arc.c (arc_unspec_offset): New function.
675 (arc_finalize_pic): Change.
676 (arc_emit_call_tls_get_addr): Likewise.
677 (arc_legitimize_tls_address): Likewise.
678 (arc_legitimize_pic_address): Likewise.
679 (insn_is_tls_gd_dispatch): Remove.
680 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
681 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
682 (tls_gd_dispatch): Likewise.
684 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
686 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
689 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
691 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
692 (sparc_split_reg_mem_legitimate): ...this.
693 (sparc_split_reg_mem): Declare.
694 (sparc_split_mem_reg): Likewise.
695 (sparc_split_regreg_legitimate): Rename to...
696 (sparc_split_reg_reg_legitimate): ...this.
697 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
698 (sparc_split_reg_mem_legitimate): ...this.
699 (sparc_split_reg_mem): New function.
700 (sparc_split_mem_reg): Likewise.
701 (sparc_split_regreg_legitimate): Rename to...
702 (sparc_split_reg_reg_legitimate): ...this.
703 (sparc_split_reg_reg): New function.
704 * config/sparc/sparc.md (lra): Remove "none" value.
705 (enabled): Adjust to above change.
706 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
707 (DImode splitters): Adjust to above renamings and use new functions.
708 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
709 (DFmode splitters): Adjust to above renamings and use new functions.
710 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
711 constraint in conjunction with e.
712 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
713 alternative and reorder others.
714 (VM64:mode splitters): Adjust to above renamings and use new functions.
716 2016-12-04 Martin Sebor <msebor@redhat.com>
719 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
720 identifier tree nodes.
721 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
722 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
723 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
724 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
725 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
726 * builtins.def (aligned_alloc, calloc, malloc, realloc):
727 Add attribute alloc_size.
728 (alloca): Add attribute alloc_size and returns_nonnull.
730 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
733 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
734 (dimode_scalar_chain::compute_convert_gain): Ditto.
735 (dimode_scalar_chain::convert_insn): Ditto.
737 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
739 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
740 cases to build a lowpart SUBREG.
742 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
743 David S. Miller <davem@davemloft.net>
745 * config/sparc/constraints.md (U): Adjust comment.
746 * config/sparc/sparc.md (lra): New attribute.
747 (enabled): For base instructions, if the lra attribute is set,
748 return 1 if it is in keeping with TARGET_LRA.
749 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
750 constraint and duplicate them with U replaced by r.
751 (*movdf_insn_sp32): Likewise.
752 (*mov<VM64:mode>_insn_sp32): Likewise.
753 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
755 2016-12-02 Jeff Law <law@redhat.com>
757 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
758 variable main_variant.
760 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
762 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
763 default on PowerPC linux systems.
765 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
767 PR rtl-optimization/78638
768 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
769 GET_MODE (op). Fix this.
771 2016-12-02 David Malcolm <dmalcolm@redhat.com>
774 * selftest.c (selftest::assert_strndup_eq): Rename to...
775 (selftest::assert_xstrndup_eq): ...this, and remove call to
777 (selftest::test_strndup): Rename to...
778 (selftest::test_xstrndup): ...this, updating for above renaming.
779 (selftest::test_libiberty): Update for renaming.
781 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
784 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
785 subversion id 242679 that causes the wrong store instruction to be
786 generated if a DImode is in an Altivec register using REG+REG
789 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
792 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
793 and corresponding post-reload splitter.
795 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
797 * config/aarch64/aarch64.h (machine_function): Add
798 reg_is_wrapped_separately field.
799 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
800 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
802 (aarch64_save_callee_saves): Don't save registers that are wrapped
804 (aarch64_restore_callee_saves): Don't restore registers that are
806 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
807 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
808 (aarch64_get_separate_components): New function.
809 (aarch64_get_next_set_bit): Likewise.
810 (aarch64_components_for_bb): Likewise.
811 (aarch64_disqualify_components): Likewise.
812 (aarch64_emit_prologue_components): Likewise.
813 (aarch64_emit_epilogue_components): Likewise.
814 (aarch64_set_handled_components): Likewise.
815 (aarch64_process_components): Likewise.
816 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
817 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
818 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
819 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
820 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
821 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
823 2016-12-02 Martin Jambor <mjambor@suse.cz>
825 * passes.def: Move pass_rebuild_cgraph_edges to the end of
826 pass_build_ssa_passes.
828 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
830 * config/alpha/alpha.md (exception_receiver): Copy
831 alpha_gp_ave_rtx return value.
833 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
835 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
836 for several include directories that may be relative to sysroot.
837 * config/i386/x-mingw32 (gplus_includedir): Define.
838 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
839 (native_system_includedir): Likewise.
840 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
841 override if TARGET_SYSTEM_ROOT is defined.
842 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
844 2016-12-02 Jakub Jelinek <jakub@redhat.com>
847 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
848 (dimode_scalar_chain::compute_convert_gain): Likewise.
849 (dimode_scalar_chain::convert_insn): Likewise.
850 * config/i386/i386.md (*one_cmpldi2_doubleword): New
851 define_insn_and_split.
852 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
855 * rtl.c (copy_rtx): Don't clear used flag here.
856 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
858 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
859 'E' in format, copy all vectors.
860 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
861 * valtrack.c (cleanup_auto_inc_dec): Likewise.
862 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
864 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
865 Thomas Preud'homme <thomas.preudhomme@arm.com>
867 * config/arm/arm-builtins.c (arm_builtins): Define
868 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
869 (bdesc_2arg): Add line for cmse_nonsecure_caller.
870 (arm_init_builtins): Handle cmse_nonsecure_caller.
871 (arm_expand_builtin): Likewise.
872 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
874 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
875 Thomas Preud'homme <thomas.preudhomme@arm.com>
877 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
878 (cmse_nonsecure_call_clear_caller_saved): New.
879 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
880 (arm_function_ok_for_sibcall): Disable sibcalls for
882 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
883 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
884 (call_value): Likewise.
885 (nonsecure_call_internal): New.
886 (nonsecure_call_value_internal): New.
887 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
888 (*nonsecure_call_value_reg_thumb1_v5): New.
889 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
890 (*nonsecure_call_value_reg_thumb2): New.
891 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
893 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
894 Thomas Preud'homme <thomas.preudhomme@arm.com>
896 * config/arm/arm.c (gimplify.h): New include.
897 (arm_handle_cmse_nonsecure_call): New.
898 (arm_attribute_table): Added cmse_nonsecure_call.
899 (arm_comp_type_attributes): Deny compatibility of function types
900 with without the cmse_nonsecure_call attribute.
901 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
903 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
904 Thomas Preud'homme <thomas.preudhomme@arm.com>
906 * config/arm/arm.c (output_return_instruction): Clear
908 (thumb2_expand_return): Likewise.
909 (thumb1_expand_epilogue): Likewise.
910 (thumb_exit): Likewise.
911 (arm_expand_epilogue): Likewise.
912 (cmse_nonsecure_entry_clear_before_return): New.
913 (comp_not_to_clear_mask_str_un): New.
914 (compute_not_to_clear_mask): New.
915 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
916 * config/arm/thumb2.md (*thumb2_return): Disable for
917 cmse_nonsecure_entry functions.
918 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
919 cmse_nonsecure_entry functions.
921 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
922 Thomas Preud'homme <thomas.preudhomme@arm.com>
924 * config/arm/arm.c (use_return_insn): Change to return with bxns
925 when cmse_nonsecure_entry.
926 (output_return_instruction): Likewise.
927 (arm_output_function_prologue): Likewise.
928 (thumb_pop): Likewise.
929 (thumb_exit): Likewise.
930 (thumb2_expand_return): Assert that entry functions always have simple
932 (arm_expand_epilogue): Handle entry functions.
933 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
934 (arm_asm_declare_function_name): New.
935 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
936 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
937 use arm_asm_declare_function_name.
939 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
940 Thomas Preud'homme <thomas.preudhomme@arm.com>
942 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
943 (arm_attribute_table): Added cmse_nonsecure_entry
944 (arm_compute_func_type): Handle cmse_nonsecure_entry.
945 (cmse_func_args_or_return_in_stack): New.
946 (arm_handle_cmse_nonsecure_entry): New.
947 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
948 (IS_CMSE_ENTRY): Likewise.
949 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
951 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
952 Thomas Preud'homme <thomas.preudhomme@arm.com>
954 * config.gcc (extra_headers): Added arm_cmse.h.
955 * config/arm/arm-arches.def (ARM_ARCH):
956 (armv8-m): Add FL2_CMSE.
957 (armv8-m.main): Likewise.
958 (armv8-m.main+dsp): Likewise.
960 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
961 * config/arm/arm-flags.h: Define FL2_CMSE.
962 * config/arm.c (arm_arch_cmse): New.
963 (arm_option_override): New error for unsupported cmse target.
964 * config/arm/arm.h (arm_arch_cmse): New.
965 * config/arm/arm.opt (mcmse): New.
966 * config/arm/arm_cmse.h: New file.
967 * doc/invoke.texi (ARM Options): Add -mcmse.
968 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
969 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
971 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
973 * config/avr/avr.c: Fix coding rule glitches.
975 2016-12-02 Martin Jambor <mjambor@suse.cz>
977 * hsa.c (hsa_callable_function_p): Return false for artificial
980 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
982 PR rtl-optimization/78561
983 * varasm.c (recompute_pool_offsets): New.
984 (output_constant_pool): Call it.
986 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
988 PR rtl-optimization/78561
989 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
990 get_pool_size to get_pool_size_upper_bound.
991 (rs6000_stack_info): Likewise.
992 (rs6000_emit_prologue): Likewise.
993 (rs6000_elf_declare_function_name): Likewise.
994 (rs6000_set_up_by_prologue): Likewise.
995 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
996 * output.h (get_pool_size): Rename to...
997 (get_pool_size_upper_bound): ...This.
998 * varasm.c (get_pool_size): Rename to...
999 (get_pool_size_upper_bound): ...This.
1001 2016-12-02 Bin Cheng <bin.cheng@arm.com>
1003 * match.pd: Add new pattern:
1004 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
1006 2016-12-02 Nathan Sidwell <nathan@acm.org>
1008 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
1011 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
1014 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
1017 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1019 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
1022 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1024 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
1025 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
1026 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
1027 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
1028 avr_mcu_types.flash_size to compute default value.
1029 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
1030 mcu->flash_size to compute value for spec.
1032 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1034 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
1035 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
1036 about linker description to avoid progmem altogether.
1037 [absdata]: Point to -mabsdata option.
1039 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1041 PR rtl-optimization/78547
1042 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
1043 DECL_INCOMING_RTL is not shared.
1044 * config/i386/i386.c (convert_scalars_to_vectors): If any
1045 insns have been converted, adjust all parameter's DEC_RTL and
1046 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
1049 PR rtl-optimization/78575
1050 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
1051 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
1052 if not already wrapped in a subreg. Make sure df_insn_rescan does not
1053 affect further iterations.
1055 2016-12-02 Martin Liska <mliska@suse.cz>
1058 * sreal.c (sreal::to_int): Make absolute value before shifting.
1059 (sreal::operator/): Likewise.
1060 (sreal_verify_negative_division): New test.
1061 (void sreal_c_tests): Call the new test.
1062 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
1064 (sreal::normalize_down): Likewise.
1066 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1068 * combine.c (combine_simplify_rtx): Suppress replacement of
1069 "(and (reg) (const_int bit))" with "if_then_else".
1071 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1074 * config/s390/s390.md ("extzv")
1075 ("*extzv<mode><clobbercc_or_nocc>")
1076 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
1077 ("*<risbg_n>_ior_and_sr_ze")
1078 ("*extract1bitdi<clobbercc_or_nocc>")
1079 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
1080 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
1081 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
1082 to validate the arguments of zero_extract and sign_extract.
1084 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1087 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
1089 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1091 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
1093 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
1096 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1098 * config/s390/vector.md (vec_halfhalf): New mode iterator.
1099 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
1100 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
1101 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
1102 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
1103 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
1104 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
1105 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
1106 ("vec_unpacku_lo_v4si"): New pattern definitions.
1107 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
1110 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1112 * config/s390/s390-protos.h (s390_reverse_condition): New
1114 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
1116 (s390_reverse_condition): New function.
1117 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
1120 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1122 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
1123 (CCVHUANY): Remove modes.
1124 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
1126 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
1127 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
1129 (s390_branch_condition_mask): Adjust to use the new cc consumer
1130 modes. The new modes allow for proper reversal in the middle-end.
1131 (s390_expand_vec_compare_cc): Determine the proper cc producer and
1132 consumer modes for a comparison.
1133 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
1134 throughout the file.
1135 * config/s390/vx-builtins.md: Likewise.
1137 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1139 * asan.c (asan_global_struct): Refactor.
1140 (create_odr_indicator): New function.
1141 (asan_needs_odr_indicator_p): Likewise.
1142 (is_odr_indicator): Likewise.
1143 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
1145 (asan_protect_global): Do not protect odr indicators.
1147 2016-12-01 Jeff Law <law@redhat.com>
1149 * tree-ssa-threadedge.c
1150 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
1151 propagation of operands if there are no operands.
1153 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1155 PR tree-optimization/78586
1156 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
1157 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
1158 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
1159 type is INTEGER_TYPE or POINTER_TYPE.
1161 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
1164 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
1165 (vextuhrx): Likewise.
1166 (vextuwlx): Likewise.
1167 (vextuwrx): Likewise.
1169 2016-12-01 David Malcolm <dmalcolm@redhat.com>
1171 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
1172 early_dwarf_finished.
1174 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
1175 David S. Miller <davem@davemloft.net>
1177 * config/sparc/sparc.opt (mlra): New target option.
1178 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
1179 (sparc_lra_p): ...this. New function.
1180 (D_MODES, DF_MODES): Add missing cast.
1181 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1182 provide these insns when flag_pic.
1183 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
1184 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
1185 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
1186 embmedany_textulo, embmedany_textlo): Likewise.
1187 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
1189 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
1193 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
1195 2016-12-01 Richard Biener <rguenther@suse.de>
1196 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1198 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
1199 memset if len-oldlen != 0.
1200 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
1202 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
1204 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
1206 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
1208 * config/avr/avr.c: Fix coding rule glitches.
1210 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
1212 PR tree-optimization/78598
1213 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
1216 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
1218 PR rtl-optimization/78596
1219 * combine.c (simplify_comparison): Cast to unsigned to avoid
1220 left shifting of negative value.
1222 2016-12-01 Matthias Klose <doko@ubuntu.com>
1224 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
1226 2016-12-01 Richard Biener <rguenther@suse.de>
1228 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
1229 treat arrays with same type as objects that cannot overlap.
1231 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
1233 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
1234 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
1235 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
1237 2016-12-01 Jakub Jelinek <jakub@redhat.com>
1240 * dwarf2out.c (loc_descr_plus_const): For negative offset use
1241 uint_loc_descriptor instead of int_loc_descriptor and perform negation
1242 in unsigned HOST_WIDE_INT type.
1243 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
1246 * config/rs6000/rs6000.c (rs6000_frame_related): Call
1247 set_used_flags (pat) before any simplifications. Clear used flag on
1248 PARALLEL copy. Don't guard add_reg_note call. Call
1249 copy_rtx_if_shared on pat before storing it into
1250 REG_FRAME_RELATED_EXPR.
1252 2016-12-01 Alan Modra <amodra@gmail.com>
1254 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
1255 look inside UNSPEC_VSX_XXSPLTW vec.
1257 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
1259 PR rtl-optimization/78607
1260 * combine.c (try_combine): Emit a barrier after a unconditional trap.
1262 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
1265 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
1266 element is not a constant or in a register, force it to a
1270 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
1271 that will be set to a vector element to be in a register.
1272 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
1273 the wrong multiplier to convert the element number to a byte
1276 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
1278 PR tree-optimization/77856
1279 * lra-constraints.c (inherit_in_ebb): Check original regno for
1280 invalid invariant regs too. Set only clobbered hard regs for the
1281 invalid invariant regs.
1283 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
1285 Commit files forgotten in r242966.
1287 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
1288 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
1289 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
1290 prefix check to find wrap-around value, instead use MCU flash size.
1291 For 8k flash devices, update link_pmem_wrap spec string to
1292 add --pmem-wrap-around=8k.
1293 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
1295 (LINK_SPEC): ...to here.
1297 2016-11-30 David Malcolm <dmalcolm@redhat.com>
1300 * selftest.c (selftest::assert_strndup_eq): New function.
1301 (selftest::test_strndup): New function.
1302 (selftest::test_libiberty): New function.
1303 (selftest::selftest_c_tests): Call test_libiberty.
1305 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1307 PR rtl-optimization/78610
1308 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
1311 2016-11-30 Bin Cheng <bin.cheng@arm.com>
1313 PR tree-optimization/78574
1314 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
1315 header PHI that doesn't define biv.
1317 2016-11-30 Jakub Jelinek <jakub@redhat.com>
1319 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
1322 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
1323 sharing the SUBREG rtx between move and following insn.
1325 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
1326 for REG_EQUIV argument.
1328 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
1330 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
1332 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
1335 * real.c (real_hash): Add cast to avoid left
1336 shifting of negative values.
1338 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1341 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
1342 from a subreg in operands[1] and don't call REGNO on a non-reg
1343 expression when deciding to force operands[2] into a reg.
1345 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
1346 Andrew Burgess <andrew.burgess@embecosm.com>
1348 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
1349 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
1350 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
1351 * config/arc/arc700.md: Add define_bypass for store/load.
1353 2016-11-30 Martin Liska <mliska@suse.cz>
1355 * cgraph.c (symbol_table::initialize): Initialize
1356 ipa_clones_dump_file.
1357 (cgraph_node::remove): Report to ipa_clones_dump_file.
1358 * cgraph.h: Add new argument (suffix) to cloning methods.
1359 * cgraphclones.c (dump_callgraph_transformation): New function.
1360 (cgraph_node::create_clone): New argument.
1361 (cgraph_node::create_virtual_clone): Likewise.
1362 (cgraph_node::create_version_clone): Likewise.
1363 * dumpfile.c: Add .ipa-clones dump file.
1364 * dumpfile.h (enum tree_dump_index): Add TDI_clones
1365 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
1366 to dump_callgraph_transformation.
1368 2016-11-30 Martin Liska <mliska@suse.cz>
1371 * asan.c (asan_expand_mark_ifn): Properly
1372 select a VAR_DECL from FRAME.* component reference.
1374 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1376 PR rtl-optimization/78583
1377 * simplify-rtx.c (simplify_truncation): Add check missing from the
1380 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1382 PR rtl-optimization/78590
1383 * combine.c (change_zero_ext): Transform zero_extend of subregs only
1384 if the subreg_reg is a scalar integer mode.
1386 2016-11-30 Jakub Jelinek <jakub@redhat.com>
1388 PR tree-optimization/78586
1389 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
1390 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
1391 Don't build_int_cst min/max twice. Formatting fix.
1393 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
1395 PR rtl-optimization/78588
1396 * combine.c (if_then_else_cond): Also guard against BLKmode.
1397 * rtlanal.c (num_sign_bit_copies1): Add assert.
1399 2016-11-29 Jeff Law <law@redhat.com>
1401 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
1404 * lra-constraints.c (check_and_process_move): Constrain the
1405 range of DCLASS and SCLASS to avoid false positive out of bounds
1406 array index warning.
1408 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1410 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
1412 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1414 PR preprocessor/78569
1415 * input.c (get_substring_ranges_for_loc): Fail gracefully if
1416 line directives were present.
1418 2016-11-30 Matthias Klose <doko@ubuntu.com>
1420 * doc/install.texi: Document configure options --enable-objc-gc
1421 and --with-target-bdw-gc.
1423 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1426 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
1427 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
1428 residing in traditional altivec registers can be stored
1431 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
1434 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
1435 overhead loop start between a call and its CALL_ARG_LOCATION
1438 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
1440 * config/bfin/linux.h (CPP_SPEC): Define.
1442 2016-11-29 Martin Sebor <msebor@redhat.com>
1444 PR tree-optimization/78512
1445 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
1446 * config/rs6000/linux.h: Same.
1447 * config/rs6000/linux64.h: Same.
1448 * config/sol2.h: Same.
1449 * config/sol2.c (solaris_printf_pointer_format): Remove.
1450 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
1451 * doc/tm.texi: Regenerate.
1452 * gimple-ssa-sprintf.c (format_pointer): Rempove.
1453 (pass_sprintf_length::compute_format_length): Return bool.
1454 (pass_sprintf_length::handle_gimple_call): Adjust.
1455 * target.def (printf_pointer_format): Remove.
1456 * targhooks.c (default_printf_pointer_format): Remove.
1457 (linux_printf_pointer_format): Same.
1458 * targhooks.h (default_printf_pointer_format): Remove.
1459 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
1461 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
1463 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
1465 (SWI1248_AVX512BWDQ): Ditto.
1466 (SWI1248_AVX512BW): Ditto.
1467 (k<any_logic:code><mode>): Ditto.
1468 (kandn<mode>): Ditto.
1469 (kxnor<mode>): Ditto.
1470 (knot<mode>): Ditto.
1471 (*k<any_lshift:code><mode>): Ditto.
1472 (kortestzhi, kortestchi): Ditto.
1473 (kunpckhi, kunpcksi, kunpckdi): Ditto.
1475 2016-11-29 Andrew Pinski <apinski@cavium.com>
1477 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
1480 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
1483 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
1484 to stack before call mcount.
1485 (tilegx_can_use_return_insn_p): Clean up code.
1487 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1489 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
1491 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1497 * spellcheck.c (selftest::test_find_closest_string): Verify that
1498 we don't offer the goal string as a suggestion.
1499 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
1500 offer the goal string as a suggestion.
1503 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
1505 * config/arc/arc.c (arc_override_options): Avoid selection of
1506 compact casesi for ARCv2.
1508 2016-11-29 Richard Biener <rguenther@suse.de>
1510 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
1511 PHIs after a regular stmt.
1512 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
1515 2016-11-29 Martin Liska <mliska@suse.cz>
1517 PR gcov-profile/78582
1518 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
1519 to prevent PHI argument clash.
1521 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
1523 * config/arc/arc.opt (marclinux): Fix typo.
1524 (marclinux_prof): Likewise.
1526 2016-11-29 Jiong Wang <jiong.wang@arm.com>
1528 * target.def (stack_protect_runtime_enabled_p): New.
1529 * function.c (expand_function_end): Guard stack_protect_epilogue with
1530 targetm.stack_protect_runtime_enabled_p.
1531 * cfgexpand.c (pass_expand::execute): Likewise.
1532 * calls.c (expand_call): Likewise.
1533 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
1534 * doc/tm.texi: Regenerate.
1536 2016-11-29 Richard Biener <rguenther@suse.de>
1539 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
1541 2016-11-29 Janus Weil <janus@gcc.gnu.org>
1543 * doc/contrib.texi: Add a few missing gfortran contributors.
1545 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
1547 * combine.c (change_zero_ext): Also handle extends from a subreg
1548 to a mode bigger than that of the operand of the subreg.
1550 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
1553 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
1554 stack_restore_tie insn instead of stack_tie, for the SVR4 and
1556 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
1558 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1560 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
1561 head_components and tail_components.
1562 (spread_components): New algorithm.
1563 (emit_common_tails_for_components): Clear head_components and
1565 (insert_prologue_epilogue_for_components): Write extra output to the
1566 dump file for sibcalls and abnormal exits.
1568 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1570 PR rtl-optimization/78342
1571 * combine.c: Include "cfghooks.h".
1572 (try_combine): If we create an unconditional trap, break the basic
1573 block in two just after it, and remove the edge between; also, set
1574 the *new_direct_jump_p flag so that cleanup_cfg is run.
1576 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1578 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
1581 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
1583 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
1584 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
1585 output template string.
1586 (*anddi_1): Use multi-line output template string.
1589 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1592 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
1593 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
1594 note has been removed.
1595 * postreload.c (reload_combine_recognize_pattern): If
1596 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
1598 2016-11-28 Martin Sebor <msebor@redhat.com>
1601 * gimple-ssa-sprintf.c (target_max_value): Remove.
1602 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
1603 (get_width_and_precision): New function.
1604 (format_integer, format_floating, get_string_length, format_string):
1605 Correct handling of width and precision with unknown value.
1606 (format_directive): Add warning.
1607 (pass_sprintf_length::compute_format_length): Allow for precision
1608 to consist of a sole period with no asterisk or digits after it.
1610 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1612 PR rtl-optimization/78546
1613 * simplify-rtx.c (neg_const_int): When negating most negative
1614 number in mode wider than HOST_BITS_PER_WIDE_INT, use
1615 simplify_const_unary_operation to produce CONST_DOUBLE or
1617 (simplify_plus_minus): Handle the case where neg_const_int
1618 doesn't return a CONST_INT.
1620 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
1623 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
1624 left shifting of negative values.
1626 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1629 * tree-nested.c (convert_local_reference_stmt): After adding
1630 shared (FRAME.NN) clause to omp parallel, task or target,
1631 add it also to all outer omp parallel, task or target constructs.
1633 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
1635 * config/i386/i386.md (UNSPEC_KMASKOP): New.
1636 (UNSPEC_KMOV): Remove.
1637 (kmovw): Expand to plain HImode move.
1638 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
1639 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
1640 Remove corresponding clobber-removing splitter.
1641 (*anddi_1): Remove mask register alternatives.
1645 (*<any_or:code><mode>_1): Ditto.
1646 (*<any_or:code>qi_1): Ditto.
1647 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
1648 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
1649 Remove corresponding splitter to operation with general registers.
1650 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
1651 (*andn<SWI12:mode>): New pattern.
1652 (*kxnor<mode>): Remove general register alternatives. Tag pattern
1653 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
1654 with general registers.
1655 (knot<mode>): New insn pattern.
1656 (*one_cmpl<mode>2_1): Remove mask register alternatives.
1657 (one_cmplqi2_1): Ditto.
1658 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
1659 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
1660 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
1661 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
1662 to generate kmaskop shift.
1663 (vec_unpacks_hi_<mode>): Ditto.
1664 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
1665 Use CODE_FOR_kandhi.
1666 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
1667 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
1668 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
1670 2016-11-28 Richard Biener <rguenther@suse.de>
1672 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
1673 to SSA names via extract_range_from_ssa_name if allowed.
1675 2016-11-28 Richard Biener <rguenther@suse.de>
1677 PR tree-optimization/78542
1678 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
1681 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
1683 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
1684 isolates a single bit, even if the condition involves subregs.
1686 2016-11-28 Tamar Christina <tamar.christina@arm.com>
1688 * config/aarch64/aarch64-simd-builtins.def
1689 (BSL_P): Added di and v2di mode.
1690 * config/aarch64/arm_neon.h
1691 (vsriq_n_p64, vsri_n_p64): Added poly type.
1692 (vextq_p64, vext_p64): Likewise.
1693 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
1695 2016-11-28 Tamar Christina <tamar.christina@arm.com>
1697 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
1698 (TYPES_GETREGP): Likewise.
1699 (TYPES_SHIFTINSERTP): Likewise.
1700 (TYPES_COMBINEP): Likewise.
1701 (TYPES_STORE1P): Likewise.
1702 * config/aarch64/aarch64-simd-builtins.def
1703 (combine): Added poly generator.
1704 (get_dregoi): Likewise.
1705 (get_dregci): Likewise.
1706 (get_dregxi): Likewise.
1710 * config/aarch64/arm_neon.h
1711 (poly64x1x2_t, poly64x1x3_t): New.
1712 (poly64x1x4_t, poly64x2x2_t): Likewise.
1713 (poly64x2x3_t, poly64x2x4_t): Likewise.
1714 (poly64x1_t): Likewise.
1715 (vcreate_p64, vcombine_p64): Likewise.
1716 (vdup_n_p64, vdupq_n_p64): Likewise.
1717 (vld2_p64, vld2q_p64): Likewise.
1718 (vld3_p64, vld3q_p64): Likewise.
1719 (vld4_p64, vld4q_p64): Likewise.
1720 (vld2_dup_p64, vld3_dup_p64): Likewise.
1721 (vld4_dup_p64, vsli_n_p64): Likewise.
1722 (vsliq_n_p64, vst1_p64): Likewise.
1723 (vst1q_p64, vst2_p64): Likewise.
1724 (vst3_p64, vst4_p64): Likewise.
1725 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
1726 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
1727 (vget_lane_p64, vgetq_lane_p64): Likewise.
1728 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
1729 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
1730 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
1731 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
1732 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
1733 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
1734 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
1735 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
1736 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
1737 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
1738 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
1739 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
1740 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
1741 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
1742 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
1743 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
1744 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
1745 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
1746 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
1747 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
1748 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
1749 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
1750 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
1751 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
1752 (vset_lane_p64, vsetq_lane_p64): Likewise.
1753 (vget_low_p64, vget_high_p64): Likewise.
1754 (vcombine_p64, vst2_lane_p64): Likewise.
1755 (vst3_lane_p64, vst4_lane_p64): Likewise.
1756 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
1757 (vst4q_lane_p64, vget_lane_p64): Likewise.
1758 (vget_laneq_p64, vset_lane_p64): Likewise.
1759 (vset_laneq_p64, vcopy_lane_p64): Likewise.
1760 (vcopy_laneq_p64, vdup_n_p64): Likewise.
1761 (vdupq_n_p64, vdup_lane_p64): Likewise.
1762 (vdup_laneq_p64, vld1_p64): Likewise.
1763 (vld1q_p64, vld1_dup_p64): Likewise.
1764 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
1765 (vmov_n_p64, vmovq_n_p64): Likewise.
1766 (vst3q_p64, vst4q_p64): Likewise.
1767 (vld1_lane_p64, vld1q_lane_p64): Likewise.
1768 (vst1_lane_p64, vst1q_lane_p64): Likewise.
1769 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
1770 (vdupq_laneq_p64): Likewise.
1772 2016-11-28 Tamar Christina <tamar.christina@arm.com>
1774 * config/arm/arm_neon.h (vget_lane_p64): New.
1776 2016-11-28 Iain Sandoe <iain@codesourcery.com>
1779 * configure.ac (with_ld64): Use portable method to extract the
1780 major part of the version number.
1781 * configure: Regenerated.
1783 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1785 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
1786 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
1787 intmax_t couldn't be determined.
1788 (format_integer): Make {,u}intmax_type_node no longer static,
1789 initialize them only when needed. For z and t use
1790 signed_or_unsigned_type_for instead of assuming size_t and
1791 ptrdiff_t have the same precision.
1794 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
1795 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
1796 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
1797 vector instead of traversing m_classes hash table. Release
1799 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
1801 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
1802 add it also to m_classes_vec vector.
1803 (sem_item_optimizer::remove_symtab_node,
1804 sem_item_optimizer::build_hash_based_classes,
1805 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
1806 (sem_item_optimizer::subdivide_classes_by_equality,
1807 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
1808 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
1809 instead of traversing m_classes hash table. Formatting fixes.
1810 (sem_item_optimizer::traverse_congruence_split,
1811 sem_item_optimizer::do_congruence_step_for_index,
1812 sem_item_optimizer::do_congruence_step): Formatting fixes.
1813 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
1814 vector instead of traversing m_classes hash table.
1815 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
1816 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
1817 instead of traversing m_classes hash table.
1819 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
1821 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
1822 X is not unused after.
1824 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
1826 PR rtl-optimization/78120
1827 * rtlanal.c (insn_rtx_cost): Revert previous change.
1829 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
1832 * config/avr/avr.md (SPLIT34): New mode iterator.
1833 (bitop): New code iterator.
1834 (*iorhi3.ashift8-*). New insn-and-split patterns.
1835 (*movhi): Post-reload split reg = 0.
1836 [!MOVW]: Post-reload split reg = reg.
1837 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
1838 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
1839 (iorhi3, iorpsi3, iorsi3): Same.
1840 (xorhi3, xorpsi3, xorsi3): Same.
1841 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
1842 costs to *iorhi3.ashift8-* patterns.
1844 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1845 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1848 * config.in: Regenerate
1849 * config/darwin-driver.c (darwin_driver_init): Emit a version string
1851 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
1852 * config/darwin.opt(asm_macosx_version_min): New.
1853 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
1854 * configure: Regenerate
1855 * configure.ac: Check for mmacosx-version-min handling.
1857 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1860 * config/i386/i386.c (ix86_code_end): Note that we emitted code
1861 where the function might otherwise appear empty for picbase thunks.
1862 (ix86_output_function_epilogue): If we find a zero-sized function
1863 assume that reaching it is UB and trap. If we find a trailing label
1865 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
1866 find a zero-sized function assume that reaching it is UB and trap.
1867 If we find a trailing label, append a nop.
1869 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1872 * config/darwin-sections.def (picbase_thunk_section): New.
1873 * config/darwin.c (darwin_init_sections): Set up picbase thunk
1874 section. (darwin_rodata_section, darwin_objc2_section,
1875 machopic_select_section, darwin_asm_declare_constant_name,
1876 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
1877 coalesced with newer linkers.
1878 (darwin_override_options): Decide on usage of coalesed sections
1879 on the basis of the target linker version.
1880 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
1881 * config/darwin.opt (mtarget-linker): New.
1882 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
1883 a coalesced section, instead use a thunks section.
1885 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1888 * configure.ac (with-ld64): New var, set for Darwin, set on
1889 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
1890 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
1891 * config/darwin10.h(DEF_LD64): Update for this target version.
1892 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
1893 (DEF_LD64): Update for this target version.
1894 * configure: Regenerated.
1895 * config.in: Regenerated.
1897 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1900 * config/darwin.c (imachopic_indirection_name): Make data
1901 section indirections linker-visible.
1902 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
1903 constant labels linker-visible.
1905 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1907 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
1908 (free_lang_data): Remove assignment to ptrdiff_type_node.
1910 2016-11-25 Jakub Jelinek <jakub@redhat.com>
1912 PR rtl-optimization/78526
1913 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
1914 beyond val's precision.
1916 PR rtl-optimization/78527
1917 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
1918 out of bounds shift count.
1920 2016-11-25 Martin Liska <mliska@suse.cz>
1923 * doc/invoke.texi (-fprofile-use): Fix reference to a section
1924 where -fprofile-generate is documented.
1926 2016-11-25 Martin Liska <mliska@suse.cz>
1928 PR gcov-profile/78086
1929 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
1930 not supported by a target. Set priority to 100 if possible.
1931 (build_gcov_exit_decl): Likewise.
1933 2016-11-25 Richard Biener <rguenther@suse.de>
1936 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
1937 unary, binary and single RHSs.
1938 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
1940 2016-11-25 Bin Cheng <bin.cheng@arm.com>
1945 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
1946 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
1947 and set it to result code if transformation is valid. Use code EQ
1948 directly in last simplification case.
1950 2016-11-25 Richard Biener <rguenther@suse.de>
1952 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
1953 before valueizing return stmts.
1955 2016-11-24 Richard Biener <rguenther@suse.de>
1957 PR tree-optimization/78343
1958 * passes.def: Add CD-DCE pass after loop splitting.
1959 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
1960 SCEV init/finalize ...
1961 (perform_tree_ssa_dce): ... here. Deal with being
1962 executed inside the loop pipeline in aggressive mode.
1964 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
1966 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
1968 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
1970 PR tree-optimization/77673
1971 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
1972 (init_symbolic_number): Initialize src field from src parameter.
1973 (perform_symbolic_merge): Select most dominated statement as the
1974 source statement. Set src field of resulting n structure from the
1975 input src with the lowest address.
1976 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
1977 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
1978 of load from src field rather than insertion statement. Cancel
1979 optimization if statement analyzed is not dominated by the insertion
1981 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
1982 dominance information.
1984 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
1987 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
1989 2016-11-25 Martin Jambor <mjambor@suse.cz>
1991 PR tree-optimization/70965
1992 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
1994 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
1997 * config/i386/i386.c (i386_excess_precision): Do not return
1998 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
1999 EXCESS_PRECISION_TYPE_STANDARD.
2000 * target.def (excess_precision): Document that targets should
2001 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2002 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
2003 Fix typo in first sentence.
2004 * doc/tm.texi: Regenerate.
2006 2016-11-25 Richard Biener <rguenther@suse.de>
2008 PR tree-optimization/78396
2009 * tree-vectorizer.c (vectorize_loops): When the if-converted
2010 body contains masked loads or stores do not attempt to
2011 basic-block-vectorize it.
2013 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2014 Alan Hayward <alan.hayward@arm.com>
2015 David Sherwood <david.sherwood@arm.com>
2017 * function.h (spill_slot_alignment): Declare.
2018 * function.c (spill_slot_alignment): New function.
2019 * lra-spills.c (slot): Add align and size fields.
2020 (assign_mem_slot): Use them in the call to assign_stack_local.
2021 (add_pseudo_to_slot): Update the fields.
2022 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
2024 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2025 Alan Hayward <alan.hayward@arm.com>
2026 David Sherwood <david.sherwood@arm.com>
2028 * stor-layout.c (layout_type): Allow the caller to set the mode of
2029 a float type. Only choose one here if the mode is still VOIDmode.
2030 * tree.c (build_common_tree_nodes): Set the type mode of decimal
2031 floats before calling layout_type.
2032 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
2034 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2036 * tree-tailcall.c (find_tail_calls): Allow calls to reference
2037 local variables if all references are known to be direct.
2039 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2040 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2043 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
2044 non null and it's precision matches precision of lhs's type.
2046 2016-11-24 Martin Sebor <msebor@redhat.com>
2048 PR tree-optimization/78476
2049 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
2051 (handle_gimple_call): Adjust signature.
2052 (try_substitute_return_value): Remove calls to bounded functions
2053 with zero buffer size whose result is known.
2054 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
2056 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2058 * varasm.c (assemble_start_function): Wrap align_log definition in
2059 ASM_OUTPUT_MAX_SKIP_ALIGN.
2061 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
2063 * config/i386/i386.md (wide AND insn to QImode splitter): Use
2064 explicit mode macros.
2065 (wide OR insn to QImode splitter): Ditto.
2067 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
2069 PR rtl-optimization/77541
2070 * lra-constraints.c (struct input_reload): Add field match_p.
2071 (get_reload_reg): Check modes of input reloads to generate unique
2072 value reload pseudo.
2073 (match_reload): Add input reload pseudo for the current insn.
2075 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2077 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
2078 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
2079 architecture levels.
2080 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
2081 the aarch64_fp16_type_node, not all HFmode types.
2082 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
2083 (aarch64_scalar_mode_supported_p): Likewise.
2084 (aarch64_excess_precision): New.
2085 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
2086 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
2087 (TARGET_C_EXCESS_PRECISION): Likewise.
2089 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2091 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
2092 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2094 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2096 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
2097 (<optab>dihf2): Likewise.
2098 (aarch64_fp16_<optab><mode>hf2): New.
2100 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
2103 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
2105 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2107 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
2108 Enable REE at -O2 and higher.
2109 * config/sparc/sparc.c (sparc_option_override): Disable it by default
2112 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2116 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
2117 (new_temp_expr_table): Initialise reg_vars_cnt.
2118 (free_temp_expr_table): Release reg_vars_cnt.
2119 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
2121 (find_replaceable_in_bb): Use the above to record register variable
2122 write occurrences and cancel replacement across them.
2124 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2126 PR rtl-optimization/78437
2127 * ree.c (get_uses): New function.
2128 (combine_reaching_defs): When a copy is needed, return false if any
2129 reaching use of the source register reads it in a mode larger than
2130 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
2132 2016-11-24 Martin Liska <mliska@suse.cz>
2134 * gimple-pretty-print.c (dump_edge_probability): New function.
2135 (dump_gimple_switch): Dump label edge probabilities.
2136 (dump_gimple_cond): Likewise.
2137 (dump_gimple_label): Dump
2138 (dump_gimple_bb_header): Dump basic block frequency.
2139 (pp_cfg_jump): Replace e->dest argument with e.
2140 (dump_implicit_edges): Likewise.
2141 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
2142 Use gimple_bb (at) instead of at->bb.
2144 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
2146 * common.opt (flimit-function-alignment): New.
2147 * doc/invoke.texi (-flimit-function-alignment): Document.
2148 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
2149 * final.c (shorten_branches): Set it.
2150 * varasm.c (assemble_start_function): Limit alignment if
2153 2016-11-24 Richard Biener <rguenther@suse.de>
2155 PR tree-optimization/71595
2156 * cfgloopmanip.h (remove_path): Add irred_invalidated and
2157 loop_closed_ssa_invalidated parameters, defaulted to NULL.
2158 * cfgloopmanip.c (remove_path): Likewise, pass them along to
2159 called functions. Only fix irred flags if the caller didn't
2161 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
2162 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
2165 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
2167 PR rtl-optimization/78120
2168 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
2169 cases, and additionally test against max_seq_cost for speed
2171 (noce_process_if_block): Compute an estimate for the original cost when
2172 optimizing for speed, using the minimum of then and else block costs.
2174 PR rtl-optimization/78120
2175 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
2177 PR rtl-optimization/78120
2178 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
2180 2016-11-24 Bin Cheng <bin.cheng@arm.com>
2182 * match.pd: Refine type conversion in result expr for below pattern:
2183 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
2185 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2188 * tree.h (wi::fits_to_boolean_p): New predicate.
2189 (wi::fits_to_tree_p): Use it for boolean types.
2190 * tree.c (int_fits_type_p): Likewise.
2192 2016-11-24 Martin Liska <mliska@suse.cz>
2194 * print-tree.c (struct bucket): Remove.
2195 (print_node): Add new argument which drives whether a tree node
2196 is printed briefly or not.
2197 (debug_tree): Replace a custom hash table with hash_set<T>.
2198 * print-tree.h (print_node): Add the argument.
2200 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
2202 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
2204 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
2207 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
2208 if it is at least NREGS wide.
2210 2016-11-23 Joseph Myers <joseph@codesourcery.com>
2212 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
2213 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
2214 TFmode, IFmode and KFmode.
2216 2016-11-23 Joseph Myers <joseph@codesourcery.com>
2218 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
2221 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
2223 * combine.c (change_zero_ext): Only change the mode of a hard register
2224 destination if can_change_dest_mode holds for that.
2226 2016-11-23 Jeff Law <law@redhat.com>
2228 * varasm.c (assemble_name): Increase buffer size for name.
2230 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
2232 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
2234 * doc/extend.texi: Constify first argument to __builtin_object_size.
2236 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2238 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
2239 to be used. Add brackets around macro argument.
2241 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
2243 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
2245 2016-11-23 Jakub Jelinek <jakub@redhat.com>
2248 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
2249 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
2251 2016-11-23 Jakub Jelinek <jakub@redhat.com>
2254 * omp-low.c (build_outer_var_ref): Change lastprivate argument
2255 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
2256 on worksharing constructs, treat it like clauses on simd construct.
2258 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
2259 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
2260 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
2261 of true as last argument to build_outer_var_ref.
2263 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
2265 * config/i386/i386.md (*movqi_internal): Calculate mode
2266 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
2267 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
2268 (*k<logic><mode>): Calculate mode attribute depending on
2269 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
2270 (*andqi_1): Calculate mode attribute of alternative 3 depending
2271 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
2272 (kandn<mode>): Calculate mode attribute of alternative 2 depending
2273 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
2274 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
2275 iterator. Calculate mode attribute of alternative 1 depending
2276 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
2277 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
2278 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
2280 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2283 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
2284 * tree-vrp.c (extract_range_basic): Handle case for
2285 CFN_BUILT_IN_STRLEN.
2287 2016-11-23 Jeff Law <law@redhat.com>
2289 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
2291 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
2292 in boolean context warning.
2294 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
2296 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2299 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
2300 (arm_fp16_type_node): ...This, make visibile.
2301 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
2303 (arm_init_simd_builtin_types): Likewise.
2304 (arm_init_fp16_builtins): Likewise.
2305 * config/arm/arm.c (arm_excess_precision): New.
2306 (arm_floatn_mode): Likewise.
2307 (TARGET_C_EXCESS_PRECISION): Likewise.
2308 (TARGET_FLOATN_MODE): Likewise.
2309 (arm_promoted_type): Only promote arm_fp16_type_node.
2310 * config/arm/arm.h (arm_fp16_type_node): Declare.
2312 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2314 * config/arm/arm.c (arm_convert_to_type): Delete.
2315 (TARGET_CONVERT_TO_TYPE): Delete.
2316 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
2317 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
2318 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
2319 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
2320 are in fast math mode, and have no single step hardware instruction.
2321 (extendhfdf2): Only expand through SFmode if we don't have a
2322 single-step hardware instruction.
2323 * config/arm/vfp.md (*truncdfhf2): New.
2324 (extendhfdf2): Likewise.
2326 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2328 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
2331 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2333 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
2334 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
2335 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
2336 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
2337 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
2338 * doc/tm.texi: Regenerate.
2339 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
2341 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2343 * toplev.c (init_excess_precision): Delete most logic.
2344 * tree.c (excess_precision_type): Rewrite to use
2345 TARGET_EXCESS_PRECISION.
2346 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
2347 more generic fashion.
2348 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
2349 __STDC_WANT_IEC_60559_TYPES_EXT__.
2351 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2353 * common.opt (fpermitted-flt-eval-methods): New.
2354 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
2355 * flag_types.h (permitted_flt_eval_methods): New.
2357 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2359 * config/m68k/m68k.c (m68k_excess_precision): New.
2360 (TARGET_C_EXCESS_PRECISION): Define.
2362 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2364 * config/s390/s390.c (s390_excess_precision): New.
2365 (TARGET_C_EXCESS_PRECISION): Define.
2367 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2369 * config/i386/i386.c (ix86_excess_precision): New.
2370 (TARGET_C_EXCESS_PRECISION): Define.
2372 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2374 * target.def (excess_precision): New hook.
2375 * target.h (flt_eval_method): New.
2376 (excess_precision_type): Likewise.
2377 * targhooks.c (default_excess_precision): New.
2378 * targhooks.h (default_excess_precision): New.
2379 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
2380 * doc/tm.texi: Regenerate.
2382 2016-11-23 Martin Sebor <msebor@redhat.com>
2385 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
2386 set the minimum number of bytes for an unknown string to zero.
2388 2016-11-23 Martin Jambor <mjambor@suse.cz>
2389 Martin Liska <mliska@suse.cz>
2391 * hsa-builtins.def: New file.
2392 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
2393 * builtins.def: Include hsa-builtins.def.
2394 (DEF_HSA_BUILTIN): New macro.
2395 * dumpfile.h (OPTGROUP_OPENMP): Define.
2396 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
2397 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
2398 GF_OMP_FOR_GRID_GROUP_ITER.
2399 (gimple_omp_for_grid_phony): Added checking assert.
2400 (gimple_omp_for_set_grid_phony): Likewise.
2401 (gimple_omp_for_grid_intra_group): New function.
2402 (gimple_omp_for_set_grid_intra_group): Likewise.
2403 (gimple_omp_for_grid_group_iter): Likewise.
2404 (gimple_omp_for_set_grid_group_iter): Likewise.
2405 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
2406 previosuly only distribute loop was permitted.
2407 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
2408 (grid_get_kernel_launch_attributes): Support multiple HSA grid
2410 (grid_expand_omp_for_loop): Likewise and also support standalone
2411 distribute constructs. New parameter INTRA_GROUP, updated both users.
2412 (grid_expand_target_grid_body): Support standalone distribute
2414 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
2415 (pass_data_expand_omp_ssa): Likewise.
2416 (pass_data_omp_device_lower): Likewsie.
2417 (pass_data_lower_omp): Likewise.
2418 (pass_data_diagnose_omp_blocks): Likewise.
2419 (pass_data_oacc_device_lower): Likewise.
2420 (pass_data_omp_target_link): Likewise.
2421 (grid_lastprivate_predicate): New function.
2422 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
2424 (lower_omp_for): Support standalone distribute constructs.
2425 (grid_prop): New type.
2426 (grid_safe_assignment_p): Check for assignments to group_sizes, new
2428 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
2430 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
2431 optimization info messages.
2432 (grid_find_single_omp_among_assignments): Likewise.
2433 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
2434 (grid_parallel_clauses_gridifiable): New function.
2435 (grid_inner_loop_gridifiable_p): Likewise.
2436 (grid_dist_follows_simple_pattern): Likewise.
2437 (grid_gfor_follows_tiling_pattern): Likewise.
2438 (grid_call_permissible_in_distribute_p): Likewise.
2439 (grid_handle_call_in_distribute): Likewise.
2440 (grid_dist_follows_tiling_pattern): Likewise.
2441 (grid_target_follows_gridifiable_pattern): Support standalone
2442 distribute constructs.
2443 (grid_var_segment): New enum.
2444 (grid_mark_variable_segment): New function.
2445 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
2446 if a new argument says so.
2447 (grid_process_grid_body): New function.
2448 (grid_eliminate_combined_simd_part): Likewise.
2449 (grid_mark_tiling_loops): Likewise.
2450 (grid_mark_tiling_parallels_and_loops): Likewise.
2451 (grid_process_kernel_body_copy): Support standalone distribute
2453 (grid_attempt_target_gridification): New grid variable holding overall
2454 gridification state. Support standalone distribute constructs and
2456 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
2457 * hsa.h (hsa_bb): Add method method append_phi.
2458 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
2459 occurences in all files too.
2460 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
2461 (is_a_helper <hsa_insn_br *>::test): New function.
2462 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
2463 branch instructions.
2464 (hsa_insn_signal): Make a direct descendant of
2465 hsa_insn_basic. Add memorder constructor parameter and
2466 m_memory_order and m_signalop member variables.
2467 (hsa_insn_queue): Changed constructor parameters to common form.
2468 Added m_segment and m_memory_order member variables.
2469 (hsa_summary_t): Add private member function
2470 process_gpu_implementation_attributes.
2471 (hsa_function_summary): Rename m_binded_function to
2473 (hsa_insn_basic_p): Remove typedef.
2474 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
2475 (hsa_op_reg_p): Remove typedef.
2476 (hsa_function_representation): Change hsa_op_reg_p into plain
2478 (hsa_insn_phi): Removed new and delete operators.
2479 (hsa_insn_br): Likewise.
2480 (hsa_insn_cbr): Likewise.
2481 (hsa_insn_sbr): Likewise.
2482 (hsa_insn_cmp): Likewise.
2483 (hsa_insn_mem): Likewise.
2484 (hsa_insn_atomic): Likewise.
2485 (hsa_insn_signal): Likewise.
2486 (hsa_insn_seg): Likewise.
2487 (hsa_insn_call): Likewise.
2488 (hsa_insn_arg_block): Likewise.
2489 (hsa_insn_comment): Likewise.
2490 (hsa_insn_srctype): Likewise.
2491 (hsa_insn_packed): Likewise.
2492 (hsa_insn_cvt): Likewise.
2493 (hsa_insn_alloca): Likewise.
2494 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
2495 (process_gpu_implementation_attributes): New function.
2496 (link_functions): Move some functionality into it. Adjust after
2497 renaming m_binded_functions to m_bound_functions.
2498 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
2499 to the list of instructions with no output registers.
2500 (get_in_type): Return this if it is a register of
2502 (hsa_get_declaration_name): Moved to...
2503 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
2504 temporary string on an obstack instead from ggc.
2505 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
2506 down to two overloads.
2507 (hsa_allocp_operand_address): Removed.
2508 (hsa_allocp_operand_immed): Likewise.
2509 (hsa_allocp_operand_reg): Likewise.
2510 (hsa_allocp_operand_code_list): Likewise.
2511 (hsa_allocp_operand_operand_list): Likewise.
2512 (hsa_allocp_inst_basic): Likewise.
2513 (hsa_allocp_inst_phi): Likewise.
2514 (hsa_allocp_inst_mem): Likewise.
2515 (hsa_allocp_inst_atomic): Likewise.
2516 (hsa_allocp_inst_signal): Likewise.
2517 (hsa_allocp_inst_seg): Likewise.
2518 (hsa_allocp_inst_cmp): Likewise.
2519 (hsa_allocp_inst_br): Likewise.
2520 (hsa_allocp_inst_sbr): Likewise.
2521 (hsa_allocp_inst_call): Likewise.
2522 (hsa_allocp_inst_arg_block): Likewise.
2523 (hsa_allocp_inst_comment): Likewise.
2524 (hsa_allocp_inst_queue): Likewise.
2525 (hsa_allocp_inst_srctype): Likewise.
2526 (hsa_allocp_inst_packed): Likewise.
2527 (hsa_allocp_inst_cvt): Likewise.
2528 (hsa_allocp_inst_alloca): Likewise.
2529 (hsa_allocp_bb): Likewise.
2531 (hsa_init_data_for_cfun): Initialize obstack.
2532 (hsa_deinit_data_for_cfun): Release memory of the obstack.
2533 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
2534 (hsa_op_reg::operator new): Likewise.
2535 (hsa_op_address::operator new): Likewise.
2536 (hsa_op_code_list::operator new): Likewise.
2537 (hsa_op_operand_list::operator new): Likewise.
2538 (hsa_insn_basic::operator new): Likewise.
2539 (hsa_insn_phi::operator new): Likewise.
2540 (hsa_insn_br::operator new): Likewise.
2541 (hsa_insn_sbr::operator new): Likewise.
2542 (hsa_insn_cmp::operator new): Likewise.
2543 (hsa_insn_mem::operator new): Likewise.
2544 (hsa_insn_atomic::operator new): Likewise.
2545 (hsa_insn_signal::operator new): Likewise.
2546 (hsa_insn_seg::operator new): Likewise.
2547 (hsa_insn_call::operator new): Likewise.
2548 (hsa_insn_arg_block::operator new): Likewise.
2549 (hsa_insn_comment::operator new): Likewise.
2550 (hsa_insn_srctype::operator new): Likewise.
2551 (hsa_insn_packed::operator new): Likewise.
2552 (hsa_insn_cvt::operator new): Likewise.
2553 (hsa_insn_alloca::operator new): Likewise.
2554 (hsa_init_new_bb): Likewise.
2555 (hsa_bb::append_phi): New function.
2556 (gen_hsa_phi_from_gimple_phi): Use it.
2557 (get_symbol_for_decl): Fix dinstinguishing between
2558 global and local functions. Put local variables into a segment
2559 according to their attribute or static flag, if there is one.
2560 (hsa_insn_br::hsa_insn_br): New.
2561 (hsa_insn_br::operator new): Likewise.
2562 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
2563 (query_hsa_grid_nodim): New function.
2564 (multiply_grid_dim_characteristics): Likewise.
2565 (gen_get_num_threads): Likewise.
2566 (gen_get_num_teams): Reimplemented.
2567 (gen_get_team_num): Likewise.
2568 (gen_hsa_insns_for_known_library_call): Updated calls to the above
2570 (get_memory_order_name): Removed.
2571 (get_memory_order): Likewise.
2572 (hsa_memorder_from_tree): New function.
2573 (gen_hsa_ternary_atomic_for_builtin): Renamed to
2574 gen_hsa_atomic_for_builtin, can also create signals.
2575 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
2576 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
2577 (hsa_insn_atomic): Fix function comment.
2578 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
2579 ancestor constructor and initialization of new member variables.
2580 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
2582 (hsa_get_host_function): Handle functions with no bound CPU
2583 implementation. Fix binded to bound.
2584 (get_brig_function_name): Likewise.
2585 (HSA_SORRY_ATV): Remove semicolon after macro.
2586 (HSA_SORRY_AT): Likewise.
2587 (omp_simple_builtin::generate): Add missing semicolons.
2588 (hsa_insn_phi::operator new): Removed.
2589 (hsa_insn_br::operator new): Likewise.
2590 (hsa_insn_cbr::operator new): Likewise.
2591 (hsa_insn_sbr::operator new): Likewise.
2592 (hsa_insn_cmp::operator new): Likewise.
2593 (hsa_insn_mem::operator new): Likewise.
2594 (hsa_insn_atomic::operator new): Likewise.
2595 (hsa_insn_signal::operator new): Likewise.
2596 (hsa_insn_seg::operator new): Likewise.
2597 (hsa_insn_call::operator new): Likewise.
2598 (hsa_insn_arg_block::operator new): Likewise.
2599 (hsa_insn_comment::operator new): Likewise.
2600 (hsa_insn_srctype::operator new): Likewise.
2601 (hsa_insn_packed::operator new): Likewise.
2602 (hsa_insn_cvt::operator new): Likewise.
2603 (hsa_insn_alloca::operator new): Likewise.
2604 (get_symbol_for_decl): Accept CONST_DECLs, put them to
2606 (gen_hsa_addr): Also process CONST_DECLs.
2607 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
2609 (gen_hsa_unary_operation): Make sure the function does
2610 not use bittype source type for firstbit and lastbit operations.
2611 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
2613 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
2615 (emit_branch_insn): Renamed to emit_cond_branch_insn.
2616 Emit the width stored in the class.
2617 (emit_generic_branch_insn): New function.
2618 (emit_insn): Call emit_generic_branch_insn.
2619 (emit_signal_insn): Remove obsolete comment. Update
2620 member variable name, pick a type according to profile.
2621 (emit_alloca_insn): Remove obsolete comment.
2622 (emit_atomic_insn): Likewise.
2623 (emit_queue_insn): Get segment and memory order from the IR object.
2624 (hsa_brig_section): Make allocate_new_chunk, chunks
2625 and cur_chunk provate, add a default NULL parameter to add method.
2626 (hsa_brig_section::add): Added a new parameter, store pointer to
2627 output data there if it is non-NULL.
2628 (emit_function_directives): Use this new parameter instead of
2629 calculating the pointer itself, fix function comment.
2630 (hsa_brig_emit_function): Add forgotten endian conversion.
2631 (hsa_output_kernels): Remove unnecessary building of
2632 kernel_dependencies_vector_type.
2633 (emit_immediate_operand): Declare.
2634 (emit_directive_variable): Also emit initializers of CONST_DECLs.
2635 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
2636 (verify_function_arguments): Properly detect variadic
2638 * hsa-dump.c (hsa_width_specifier_name): New function.
2639 (dump_hsa_insn_1): Dump generic branch instructions, update signal
2640 member variable name. Special dumping for queue objects.
2641 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
2642 m_binded_functions to m_bound_functions. Copy externally visible flag
2644 (ipa_hsa_write_summary): Likewise.
2645 (ipa_hsa_read_section): Likewise.
2647 2016-11-23 Richard Biener <rguenther@suse.de>
2649 PR tree-optimization/78396
2650 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
2651 vectorize try vectorizing an if-converted body using BB vectorization.
2653 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
2654 Alan Hayward <alan.hayward@arm.com>
2655 David Sherwood <david.sherwood@arm.com>
2657 * rtlanal.c (subreg_get_info): Use more local variables.
2658 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
2659 occupies at least one register. Assume that full hard registers
2660 have consistent endianness. Share previously-duplicated if block.
2661 Rework the main handling so that it operates on independently-
2662 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
2663 to check lowpart offsets, without trying to find an equivalent
2664 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
2665 as a final register-endianness correction.
2667 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
2673 * combine.c (make_compound_operation_int): Do not convert a subreg of
2674 a non-constant logical shift right to a zero_extract. Handle the case
2675 where some zero bits have been shifted into the range covered by that
2678 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
2679 Alan Hayward <alan.hayward@arm.com>
2680 David Sherwood <david.sherwood@arm.com>
2682 * rtl.h (subreg_size_offset_from_lsb): Declare.
2683 (subreg_offset_from_lsb): New function.
2684 (subreg_size_lowpart_offset): Declare.
2685 (subreg_lowpart_offset): Turn into an inline function.
2686 (subreg_size_highpart_offset): Declare.
2687 (subreg_highpart_offset): Turn into an inline function.
2688 * emit-rtl.c (subreg_size_lowpart_offset): New function.
2689 (subreg_size_highpart_offset): Likewise
2690 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
2692 2016-11-23 Richard Biener <rguenther@suse.de>
2694 PR tree-optimization/78482
2695 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
2696 (remove_forwarder_block_with_phi): When merging with a loop
2697 header creates a new latch reset number of iteration information
2700 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
2702 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
2703 (*ashrsi3_extend0): ...this. Accept constant integers.
2704 (*ashrsi3_extend2): Rename to...
2705 (*ashrsi3_extend1): ...this.
2706 (*ashrsi3_extend2): New pattern.
2707 (*lshrsi3_extend1): Accept constant integers.
2708 (*lshrsi3_extend2): Fix condition on operand 2.
2710 2016-11-23 Martin Liska <mliska@suse.cz>
2712 * config/i386/i386.c: Initialize function pointer to NULL.
2714 2016-11-23 Bin Cheng <bin.cheng@arm.com>
2716 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
2717 for A == C1 ? A : C2 to below.
2718 * match.pd: Move from above to here:
2719 (cond (eq (convert1? x) c1) (convert2? x) c2)
2720 -> (cond (eq x c1) c1 c2).
2722 2016-11-23 Bin Cheng <bin.cheng@arm.com>
2724 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
2725 for A cmp C1 ? A : C2 to below, also simplify remaining code.
2726 * match.pd: Move and extend simplification from above to here:
2727 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
2728 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
2729 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
2731 2016-11-23 Martin Liska <mliska@suse.cz>
2732 Martin Jambor <mjambor@suse.cz>
2734 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
2736 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
2739 * opts.c (finish_options): Set -fsyntax-only if running self tests.
2741 2016-11-23 Richard Biener <rguenther@suse.de>
2744 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
2745 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
2747 2016-11-23 Richard Biener <rguenther@suse.de>
2750 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
2753 2016-11-23 Richard Biener <rguenther@suse.de>
2754 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
2756 PR tree-optimization/78154
2757 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
2758 returns it's argument and the argument is nonnull.
2759 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
2760 ATT_RETNONNULL_NOTHROW_LEAF.
2761 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
2762 ATTR_RETNONNULL_NOTHROW_LEAF.
2763 (BUILT_IN_STPCPY): Likewise.
2764 (BUILT_IN_STPNCPY): Likewise.
2765 (BUILT_IN_MEMPCPY_CHK): Likewise.
2766 (BUILT_IN_STPCPY_CHK): Likewise.
2767 (BUILT_IN_STPNCPY_CHK): Likewise.
2768 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
2769 (BUILT_IN_STRNCAT): Likewise.
2770 (BUILT_IN_STRNCPY): Likewise.
2771 (BUILT_IN_MEMSET_CHK): Likewise.
2772 (BUILT_IN_STRCAT_CHK): Likewise.
2773 (BUILT_IN_STRCPY_CHK): Likewise.
2774 (BUILT_IN_STRNCAT_CHK): Likewise.
2775 (BUILT_IN_STRNCPY_CHK): Likewise.
2777 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2779 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
2780 * fold-const.h (tree_expr_nonzero_p) : Declare.
2781 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
2783 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
2785 * system.h (HAVE_DESIGNATED_INITIALIZERS,
2786 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
2787 "defined" in macros.
2788 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
2789 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
2790 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
2792 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
2795 * config/avr/constraints.md (Csp): Widen range to [-11..6].
2796 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
2797 of RCALLs in prologue to 3.
2799 2016-11-22 Michael Collison <michael.collison@arm.com>
2801 * config/aarch64/aarch64-protos.h
2802 (aarch64_and_split_imm1, aarch64_and_split_imm2)
2803 (aarch64_and_bitmask_imm): New prototypes
2804 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
2805 New overloaded function to create bit mask covering the
2806 lowest to highest bits set.
2807 (aarch64_and_split_imm2): New overloaded functions to create bit
2808 mask of zeros between first and last bit set.
2809 (aarch64_and_bitmask_imm): New function to determine if a integer
2810 is a valid two instruction "and" operation.
2811 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
2812 allowing wider range of constants with "and" operations.
2813 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
2814 "and" operator from matching restricted constant range used for
2815 ior and xor operators.
2816 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
2817 for constants in "and" operantions.
2818 (UsP constraint): New DImode constraint for constants
2819 in "and" operations.
2820 * config/aarch64/iterators.md (lconst2): New mode iterator.
2821 (LOGICAL2): New code iterator.
2822 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
2824 (aarch64_logical_and_operand): New predicate allowing extended
2825 constants for "and" operations.
2827 2016-11-22 Walter Lee <walt@tilera.com>
2829 * config/tilegx/tilegx.md (trap): New pattern.
2830 * config/tilepro/tilepro.md (trap): Likewise.
2832 2016-11-22 Walter Lee <walt@tilera.com>
2834 * config/tilegx/tilegx.md (*zero_extract): Use
2835 define_insn_and_split instead of define_insn; Handle pos + size >
2837 (*sign_extract): Likewise.
2839 2016-11-22 Marek Polacek <polacek@redhat.com>
2841 PR tree-optimization/78455
2842 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
2844 2016-11-22 Ian Lance Taylor <iant@golang.org>
2848 * godump.c (go_format_type): Always pass alignment as 1 when
2849 calling go_append_padding at end of struct/union.
2851 2016-11-22 Jakub Jelinek <jakub@redhat.com>
2854 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
2855 _mm512_setzero_hi): Removed.
2856 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
2857 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
2858 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
2859 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
2860 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
2861 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
2862 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
2863 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
2864 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
2865 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
2866 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
2867 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
2868 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
2869 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
2870 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
2871 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
2872 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
2873 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
2874 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
2875 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
2876 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
2877 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
2878 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
2879 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
2880 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
2881 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
2882 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
2883 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
2884 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
2885 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
2886 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
2887 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
2888 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
2889 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
2890 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
2891 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
2892 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
2893 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
2894 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
2895 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
2896 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
2897 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
2898 _mm512_setzero_qi or _mm512_setzero_hi.
2899 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
2900 _mm512_maskz_dbsad_epu8): Formatting fixes.
2901 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
2902 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
2903 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
2904 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
2905 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
2906 _mm512_setzero_qi or _mm512_setzero_hi.
2908 2016-11-22 Nathan Sidwell <nathan@acm.org>
2910 * gcc-ar.c (main): Fix indentation.
2911 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
2912 * ggc-page.c (move_ptes_to_front): Fix formatting.
2913 * hsa-dump.c (dump_has_cfun): Fix indentation.
2914 * sel-sched-ir.h: Remove trailing blank lines.
2916 2016-11-22 Jakub Jelinek <jakub@redhat.com>
2917 Alexander Monakov <amonakov@ispras.ru>
2919 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
2920 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
2921 (omp_clause_code_name): Add _simt_ name.
2922 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
2923 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
2924 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
2925 (scan_omp_simd): New function.
2926 (scan_omp_1_stmt): Use it in target regions if needed.
2927 (omp_max_vf): Don't max with omp_max_simt_vf.
2928 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
2929 OMP_CLAUSE__SIMT_ is present.
2930 (lower_rec_input_clauses): Compute maybe_simt from presence of
2932 (lower_lastprivate_clauses): Likewise.
2933 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
2934 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
2935 * internal-fn.def (GOMP_USE_SIMT): New internal function.
2936 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
2938 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
2940 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
2941 (expand_GOMP_SIMT_VF): New.
2942 (expand_GOMP_SIMT_LAST_LANE): New.
2943 (expand_GOMP_SIMT_ORDERED_PRED): New.
2944 (expand_GOMP_SIMT_VOTE_ANY): New.
2945 (expand_GOMP_SIMT_XCHG_BFLY): New.
2946 (expand_GOMP_SIMT_XCHG_IDX): New.
2947 * internal-fn.def (GOMP_SIMT_LANE): New.
2948 (GOMP_SIMT_VF): New.
2949 (GOMP_SIMT_LAST_LANE): New.
2950 (GOMP_SIMT_ORDERED_PRED): New.
2951 (GOMP_SIMT_VOTE_ANY): New.
2952 (GOMP_SIMT_XCHG_BFLY): New.
2953 (GOMP_SIMT_XCHG_IDX): New.
2954 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
2955 (create_omp_child_function): ...here. Set "omp target entrypoint"
2956 or "omp declare target" attribute based on is_gimple_omp_offloaded.
2957 (omp_max_simt_vf): New. Use it...
2958 (omp_max_vf): ...here.
2959 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
2960 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
2961 (lower_omp_ordered): Likewise, for "ordered" lowering.
2962 (expand_omp_simd): Add SIMT transforms.
2963 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
2964 (execute_omp_device_lower): New.
2965 (pass_data_omp_device_lower): New.
2966 (pass_omp_device_lower): New pass.
2967 (make_pass_omp_device_lower): New.
2968 * passes.def (pass_omp_device_lower): Position new pass.
2969 * tree-pass.h (PROP_gimple_lomp_dev): Define.
2970 (make_pass_omp_device_lower): Declare.
2972 2016-11-22 Jakub Jelinek <jakub@redhat.com>
2975 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
2976 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
2978 (_mm_maskz_load_epi64): Likewise.
2979 (_mm_setzero_hi): Removed.
2980 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
2982 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
2983 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
2984 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
2985 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
2986 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
2987 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
2988 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
2989 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
2990 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
2991 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
2992 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
2994 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
2995 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
2996 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
2997 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
2998 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
2999 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
3000 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
3001 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
3002 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
3003 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
3004 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
3005 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3006 instead of _mm_setzero_hi.
3007 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
3008 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
3009 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
3010 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
3011 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
3012 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
3013 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
3014 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
3015 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
3016 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
3017 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
3018 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
3019 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
3020 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
3021 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
3022 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
3023 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
3024 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
3025 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
3026 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
3027 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
3028 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
3029 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
3030 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
3031 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3032 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
3034 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3035 instead of _mm_setzero_hi.
3036 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
3037 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
3038 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
3039 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3040 _mm_setzero_si128 instead of _mm_setzero_di.
3041 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
3042 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
3043 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
3044 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
3045 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
3046 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
3047 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
3048 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
3049 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
3050 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
3051 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
3052 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
3053 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
3054 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
3055 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
3056 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
3057 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
3058 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
3059 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
3060 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
3061 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
3062 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
3063 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
3064 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
3065 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
3066 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
3067 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
3068 _mm512_maskz_insertf32x8): Formatting fixes.
3069 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3070 _mm_setzero_si128 instead of _mm_setzero_di.
3071 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
3072 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
3073 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
3074 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
3075 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
3076 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
3077 _mm_setzero_si128 instead of _mm_setzero_di.
3078 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
3080 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
3081 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
3082 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
3083 _mm_setzero_si128 instead of _mm_setzero_hi.
3084 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
3085 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
3086 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
3087 instead of _mm_setzero_di.
3088 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
3089 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
3091 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
3092 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
3094 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
3096 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
3097 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
3098 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
3100 2016-11-22 Carl Love <cel@us.ibm.com>
3102 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
3103 equal and vector compare not equal. The vector compares take two
3104 arguments of type vector bool char, vector bool short, vector bool int,
3105 vector bool long long with the same return type.
3106 * doc/extend.texi: Update built-in documentation file for the new
3109 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
3111 * Makefile.in ($(lang_checks_parallelized)): Fix detection
3114 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3116 * config.gcc: Allow new rmprofile value for configure option
3117 --with-multilib-list.
3118 * config/arm/t-rmprofile: New file.
3119 * doc/install.texi (--with-multilib-list): Document new rmprofile value
3122 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3125 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
3126 register operand in alternatives 4,5,6.
3128 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3131 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
3132 in save register mask if it is needed.
3134 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3136 PR tree-optimization/78436
3137 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
3138 (shift_bytes_in_array, shift_bytes_in_array_right,
3139 merged_store_group::apply_stores): Formatting fixes.
3140 (clear_bit_region): Likewise. Use memset.
3141 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
3142 instead of EXPR and inerted instead of inserted. Use memset instead
3143 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
3147 * expmed.c (expand_divmod): Use wide_int for computation of
3148 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
3149 Use size <= HOST_BITS_PER_WIDE_INT instead of
3150 HOST_BITS_PER_WIDE_INT >= size.
3152 PR tree-optimization/78445
3153 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
3154 any_complicated_phi, version loop even if flag_tree_loop_if_convert
3155 is 1. Formatting fix.
3157 2016-11-22 Martin Liska <mliska@suse.cz>
3160 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
3161 (sem_function::get_hash): Use the new field.
3162 (sem_function::parse): Remove an argument from ctor.
3163 (sem_variable::parse): Likewise.
3164 (sem_variable::get_hash): Use the new field.
3165 (sem_item_optimizer::read_section): Use new ctor and set hash.
3166 * ipa-icf.h: _hash is removed from sem_item::sem_item,
3167 sem_variable::sem_variable, sem_function::sem_function.
3169 2016-11-21 Jeff Law <law@redhat.com>
3172 * config/cris/cris.md: Don't call copy_to_mode_reg unless
3173 can_create_pseudo_p is true.
3175 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3178 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
3179 *rotldi3_insert_7): New define_insns.
3181 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3183 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
3184 so that DImode can be allocated to FP/vector registers in more
3185 cases, and we can avoid direct move operations. If the register
3186 needs reloading, prefer GPRs over FP/vector registers. In the
3187 case of FPR vs. Altivec registers, prefer FPR registers unless we
3188 have the ISA 3.0 reg+offset scalar instructions.
3189 (movdi_internal64): Likewise.
3191 2016-11-21 Jakub Jelinek <jakub@redhat.com>
3194 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
3195 for tmp simd array if DECL_NAME (parm) is NULL.
3197 2016-11-20 Jeff Law <law@redhat.com>
3200 * config/m68k/predicates.md (swap_peephole_relational_operator): New
3202 * config/m68k/m68k.md (relational tests against 65535/65536): New
3205 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3207 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
3209 2016-11-21 Martin Sebor <msebor@redhat.com>
3211 * doc/invoke.texi (-fprintf-return-value): Document that option
3212 is enabled by default.
3214 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3216 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
3217 for-loop declaration of loop variable.
3218 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
3219 * config/avr/avr.c (avr_popcount_each_byte)
3220 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
3221 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
3222 (avr_expand_epilogue, avr_function_arg_advance)
3223 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
3224 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
3225 (avr_adjust_reg_alloc_order, output_reload_in_const)
3226 (avr_conditional_register_usage, avr_find_unused_d_reg)
3227 (avr_map_decompose, avr_fold_builtin): Same.
3229 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3231 * config/avr/avr.c (avr_popcount): Remove static function.
3232 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
3234 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
3236 * arm.opt (mapcs-float): Delete option.
3237 * arm.c (arm_option_override): Remove hunk relating to
3239 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
3241 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
3243 * tree-tailcall.c (process_assignment): Simplify the check for
3244 a valid copy, allowing the source to be a local variable as
3245 well as an SSA name.
3246 (find_tail_calls): Allow copies between local variables to follow
3247 the call. Allow the result to be stored in any local variable,
3248 even if it's an aggregate.
3249 (eliminate_tail_call): Check whether the result is an SSA name
3250 before updating its SSA_NAME_DEF_STMT.
3252 2016-11-21 David Malcolm <dmalcolm@redhat.com>
3254 PR preprocessor/78324
3255 * input.c (get_substring_ranges_for_loc): Fail gracefully if
3256 -ftrack-macro-expansion has a value other than 2.
3258 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3260 PR rtl-optimization/78400
3261 * shrink-wrap.c (try_shrink_wrapping_separate): Call
3262 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
3263 and df_update_exit_block_uses.
3265 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3268 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
3269 new default-enabled warning..
3270 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
3271 (BT_PTR_CONST_STRING): Updated.
3272 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
3273 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
3274 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
3275 (strftime): Update builtin function.
3276 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
3277 * tree.h (const_tm_ptr_type_node): New type node.
3278 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
3279 const_tm_ptr_type_node.
3281 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3283 PR tree-optimization/78413
3284 * tree-if-conv.c (versionable_outer_loop_p): Require that both
3285 inner and outer loop latches have single predecessors.
3287 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3290 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
3291 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
3293 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3295 * rtl.h: Adjust prototype.
3296 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
3297 (dead_or_set_regno_p): Likewise.
3299 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3301 * rtl.h: Adjust prototype.
3302 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
3304 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3306 * function.c (contains): Change argument type to rtx_insn *.
3307 (prologue_contains): Likewise.
3308 (epilogue_contains): Likewise.
3309 (prologue_epilogue_contains): Likewise.
3310 * function.h: Adjust prototype.
3312 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3314 * optabs.c (emit_libcall_block): Change argument type to
3316 * optabs.h: Adjust prototype.
3318 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3320 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
3321 (fixup_reorder_chain): Adjust.
3322 * cfgrtl.h: Adjust prototype.
3324 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3326 * rtl.h: Adjust prototype.
3327 * rtlanal.c (replace_label_in_insn): Change argument type to
3330 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3332 * config/v850/v850.c (expand_prologue): Adjust.
3333 (expand_epilogue): Likewise.
3334 * expr.c (init_expr_target): Likewise.
3335 * genrecog.c (print_subroutine): Always make the argument type
3337 * recog.h: Adjust prototype.
3339 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3341 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
3342 up variables to make some rtx_insn *.
3343 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
3344 * config/arc/arc.c: Likewise.
3345 * config/arm/arm.c: Likewise.
3346 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
3347 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
3349 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
3351 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3353 * config/arm/arm.c (legitimize_pic_address): Change to use
3354 rtx_insn * as the type of variables.
3355 (arm_pic_static_addr): Likewise.
3356 (arm_emit_movpair): Likewise.
3357 * config/c6x/c6x.c (reorg_split_calls): Likewise.
3358 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
3359 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
3360 * config/frv/frv.md: Likewise.
3361 * config/i386/i386-protos.h: Likewise.
3362 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
3363 (ix86_split_fp_branch): Likewise.
3364 (predict_jump): Likewise.
3365 * config/ia64/ia64.c: Likewise.
3366 * config/mcore/mcore.c: Likewise.
3367 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
3368 * config/s390/s390.c: Likewise.
3369 * config/s390/s390.md: Likewise.
3370 * config/spu/spu.md: Likewise.
3371 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
3372 * lower-subreg.c (resolve_simple_move): Likewise.
3374 2016-11-20 Jeff Law <law@redhat.com>
3377 * reload.h (struct target_reload): Make x_double_reg_address_ok
3379 * reload.c (find_reloads_address): Check if double_reg_address_ok
3380 is true for the mode of the memory reference.
3381 * reload1.c (init_reload): Initialize double_reg_address_ok for
3384 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
3387 * tree-ssa-uninit.c: Define new global max_phi_args.
3388 (compute_uninit_opnds_pos): Use max_phi_args.
3389 (prune_uninit_phi_opnds): Same.
3390 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
3391 missing NUM_PREDS in function comment.
3392 (can_one_predicate_be_invalidated_p): New.
3393 (can_chain_union_be_invalidated_p): New.
3394 (flatten_out_predicate_chains): New.
3395 (uninit_ops_invalidate_phi_use): New.
3396 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
3398 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
3400 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
3401 * match.pd (A /[ex] B CMP C): New simplifications.
3403 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
3405 * match.pd (0 / X, X / X, X % X): New simplifications.
3407 2016-11-19 Jakub Jelinek <jakub@redhat.com>
3409 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
3410 when checking if callee's isa flags are subset of caller's isa flags.
3411 Fix comment wording.
3413 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
3414 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
3415 instead and using = 0 instead of &= 0.
3417 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
3418 ix86_add_new_builtins): Formatting fixes.
3419 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
3420 (ix86_get_builtin): Likewise.
3422 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
3423 don't initialize it, don't use it for the case where it isn't
3424 provable %{z} nor using the same argument, instead move merge
3425 argument into a new pseudo and use that as target. Formatting fixes.
3427 2016-11-19 Jeff Law <law@redhat.com>
3430 * config/m68k/m68k.md (bsetdreg): New pattern.
3431 (bchgdreg, bclrdreg): Likewise.
3433 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
3436 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
3437 instead of force_reg.
3438 (sh_expand_setmem): Likewise.
3440 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
3442 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
3444 2016-11-18 Walter Lee <walt@tilera.com>
3446 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
3447 end-of-bundle marker for consecutive barriers.
3449 2016-11-18 Walter Lee <walt@tilera.com>
3451 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
3453 2016-11-18 Jakub Jelinek <jakub@redhat.com>
3456 * multiple_target.c (get_attr_len): Start with argnum and increment
3457 argnum on every arg. Use strchr in a loop instead of counting commas
3459 (get_attr_str): Increment argnum for every comma in the string.
3460 (separate_attrs): Use for instead of while loop, simplify.
3461 (expand_target_clones): Rename defenition argument to definition.
3462 Free attrs and attr_str even when diagnosing errors. Temporarily
3463 change input_location around targetm.target_option.valid_attribute_p
3464 calls. Don't emit warning or errors if that function fails.
3466 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
3469 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
3470 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
3471 abbrev_opt_base_type_end only by increasing die_abbrev, before
3473 (optimize_abbrev_table): Don't change abbrev numbers of
3474 base types and CU or optimize implicit consts in them if
3475 calc_base_type_die_sizes has been called during build_abbrev_table.
3476 (calc_base_type_die_sizes): If abbrev_opt_start, set
3477 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
3479 2016-11-18 Jeff Law <law@redhat.com>
3482 * config/m68k/m68k.c (moveq feeding equality comparison): New
3484 * config/m68k/predicates.md (addq_subq_operand): New predicate.
3485 (equality_comparison_operator): Likewise.
3487 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
3489 * rtlanal.c (load_extend_op): Move to...
3490 * rtl.h: ...here and make inline.
3492 2016-11-18 Terry Guo <terry.guo@arm.com>
3493 Thomas Preud'homme <thomas.preudhomme@arm.com>
3495 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
3496 * config/arm/arm-opts.h: Include arm-flags.h.
3497 (struct arm_arch_core_flag): Define.
3498 (arm_arch_core_flags): Define.
3499 * config/arm/arm-protos.h: Include arm-flags.h
3500 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
3501 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
3502 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
3503 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
3504 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
3505 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
3506 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
3507 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
3508 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
3509 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
3510 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
3511 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
3512 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
3513 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
3514 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
3515 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
3516 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
3517 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
3518 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
3519 ARM_FSET_CPU_SUBSET): Move to ...
3520 * config/arm/arm-flags.h: This new file.
3521 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
3522 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
3523 (TARGET_MODE_SPECS): Define.
3524 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
3526 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
3528 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
3529 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
3530 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
3531 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
3532 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
3533 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
3534 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
3535 missing and make value unsigned.
3536 (arm_feature_set): Use unsigned entries instead of unsigned long.
3538 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
3540 Re-apply after PR bootstrap/77359 is fixed:
3541 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3543 * explow.c (get_dynamic_stack_size): Take known alignment of stack
3544 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
3547 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
3550 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
3551 variables in functions calling alloca. Also update the ASCII
3553 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
3554 (STACK_DYNAMIC_OFFSET): Likewise.
3555 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
3556 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
3559 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
3560 Alan Hayward <alan.hayward@arm.com>
3561 David Sherwood <david.sherwood@arm.com>
3563 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
3564 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
3565 (add_const_value_attribute): Likewise.
3566 * explow.c (plus_constant): Likewise.
3567 * expmed.c (expand_mult, make_tree): Likewise.
3568 * expr.c (convert_modes): Likewise.
3569 * loop-doloop.c (doloop_optimize): Likewise.
3570 * postreload.c (reload_cse_simplify_set): Likewise.
3571 * simplify-rtx.c (simplify_const_unary_operation): Likewise
3572 (simplify_binary_operation_1, simplify_const_binary_operation):
3574 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
3575 * wide-int.h: Update documentation to recommend rtx_mode_t
3576 instead of std::make_pair.
3578 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
3579 Alan Hayward <alan.hayward@arm.com>
3580 David Sherwood <david.sherwood@arm.com>
3582 * tree.h (SET_DECL_MODE): New macro.
3583 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
3584 (expand_gimple_basic_block): Likewise.
3585 * function.c (split_complex_args): Likeise.
3586 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3587 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
3588 * stor-layout.c (layout_decl, relayout_decl): Likewise.
3589 (finish_bitfield_representative): Likewise.
3590 * tree.c (make_node_stat): Likewise.
3591 * tree-inline.c (remap_ssa_name): Likewise.
3592 (tree_function_versioning): Likewise.
3593 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
3594 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
3595 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3596 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
3597 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
3598 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
3599 * varasm.c (make_debug_expr_from_rtl): Likewise.
3601 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
3603 PR rtl-optimization/71785
3604 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
3605 (duplicate_computed_gotos): New function.
3606 (pass_duplicate_computed_gotos::execute): Rewrite.
3608 2016-11-17 Jeff Law <law@redhat.com>
3611 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
3612 barrier prior to deallocating the stack.
3614 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
3616 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
3617 to make better use of cmem loads in the case where a single bit is
3619 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
3621 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
3623 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
3625 (isa_names_table): Handle new features.
3627 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
3628 Andrew Senkevich <andrew.senkevich@intel.com>
3630 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
3631 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
3632 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
3633 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
3634 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
3635 * config/i386/avx5124fmapsintrin.h: New file.
3636 * config/i386/avx5124vnniwintrin.h: Ditto.
3637 * config/i386/constraints.md (h): New constraint.
3638 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
3639 * config/i386/driver-i386.c (host_detect_local_cpu):
3640 Detect avx5124fmaps, avx5124vnniw.
3641 * config/i386/i386-builtin-types.def: Add types
3642 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
3643 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
3644 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
3645 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
3646 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
3647 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
3648 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
3649 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
3650 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
3651 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
3652 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
3653 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
3654 __builtin_ia32_vp4dpwssds_mask): New.
3655 * config/i386/i386-c.c (ix86_target_macros_internal):
3656 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
3657 * config/i386/i386-modes.def: Fixed comment typos, added new
3658 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
3659 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
3661 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
3662 (ix86_option_override_internal): Handle new options.
3663 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
3665 (ix86_expand_builtin): Handle new builtins.
3666 (ix86_additional_allocno_class_p): New.
3667 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
3668 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
3669 (reg_class): Add MOD4_SSE_REGS.
3670 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
3671 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
3672 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
3673 avx5124vnniwintrin.h.
3674 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
3675 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
3676 (define_mode_iterator IMOD4): New.
3677 (define_mode_attr imod4_narrow): Ditto.
3678 (define_insn "mov<mode>"): Ditto.
3679 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
3680 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
3681 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
3682 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
3683 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
3684 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
3685 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
3686 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
3687 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
3688 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
3689 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
3690 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
3691 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
3692 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
3693 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
3694 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
3695 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
3696 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
3697 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
3698 * genmodes.c (mode_size_inline): Extend return type.
3699 * machmode.h (mode_size, mode_base_align): Extend type.
3701 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
3704 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
3705 the appropriate checks for SFmode/DFmode load/stores in GPR
3707 (fusion_addis_mem_combo_store): Likewise.
3708 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
3709 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
3710 d-form instructions for traditional Altivec registers.
3711 (emit_fusion_p9_load): Likewise.
3712 (emit_fusion_p9_store): Likewise.
3713 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
3714 early clobber from scratch register. Do not match if the register
3715 being stored is the scratch register.
3716 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
3717 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
3718 instructions for traditional Altivec registers.
3719 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3720 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3721 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3723 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
3726 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
3727 being live in the function and lr needing to be saved. Distinguish
3728 between already saved pushable registers and registers to push.
3729 Check for LR being an available pushable register.
3731 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3733 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
3734 string input is a string constant.
3735 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
3736 via cmpstrnsi even if neither string is constant.
3738 2016-11-17 Jakub Jelinek <jakub@redhat.com>
3741 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
3742 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
3743 instead, return false if it is NULL, or doesn't fit into uhwi, or
3744 is larger or equal to targetm.max_anchor_offset.
3746 2016-11-17 Pip Cet <pipcet@gmail.com>
3747 Eric Botcazou <ebotcazou@adacore.com>
3749 PR rtl-optimization/78355
3750 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
3751 needs to deal with unaligned accesses.
3752 * doc/tm.texi: Regenerate.
3753 * lra-constraints.c (simplify_operand_subreg): Only invoke
3754 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
3756 2016-11-17 David Malcolm <dmalcolm@redhat.com>
3758 * input.c (selftest::test_lexer_string_locations_long_line): New
3760 (selftest::test_lexer_string_locations_raw_string_multiline): New
3762 (selftest::input_c_tests): Call the new functions, via
3763 for_each_line_table_case.
3765 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3767 * config/aarch64/aarch64.md (mov<mode>): Call
3768 aarch64_split_dimode_const_store on DImode constant stores.
3769 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
3771 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
3774 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3775 Richard Biener <rguenther@suse.de>
3777 PR tree-optimization/77848
3778 * tree-if-conv.c (tree_if_conversion): Always version loops unless
3779 the user specified -ftree-loop-if-convert.
3781 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
3784 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
3785 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
3786 *thumb2_strd_base_neg): Recognize insn regardless of
3787 current_tune->prefer_ldrd_strd.
3788 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
3791 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
3793 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
3796 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
3798 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
3800 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
3801 * config/arc/arc-cpus.def (quarkse_em): Add.
3802 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
3803 * config/arc/arc-opts.h (FPX_QK): Define.
3804 * config/arc/arc-tables.opt: Regenerate.
3805 * config/arc/arc.c (gen_compare_reg): Change.
3806 (arc_register_move_cost): Avoid Dy,Dx moves.
3807 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
3808 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
3809 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
3811 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
3812 (fix_truncsfsi2_fpu): Rename.
3813 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
3814 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
3815 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
3816 * config/arc/t-multilib: Regenerate.
3818 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
3820 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
3822 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
3823 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
3824 (avr_rtx_costs_1, extra_constraint_Q): Same.
3825 (avr_address_cost): Use SUBREG_P if possible.
3827 2016-11-17 Richard Biener <rguenther@suse.de>
3830 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
3831 non-local goto into CFG.
3833 2016-11-17 Richard Biener <rguenther@suse.de>
3835 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
3836 backward compatibility.
3837 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
3838 * tree-if-conv.c (pass_if_conversion::gate): Do not test
3839 flag_tree_loop_if_convert_stores.
3840 (pass_if_conversion::execute): Likewise.
3842 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3844 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
3845 const_double code before calling aarch64_float_const_zero_rtx_p.
3847 2016-11-17 Richard Biener <rguenther@suse.de>
3849 PR tree-optimization/78306
3850 * ipa-inline-analysis.c (initialize_inline_failed): Do not
3851 inhibit inlining if function calls cilk_spawn.
3852 (can_inline_edge_p): Likewise.
3854 2016-11-17 Richard Biener <rguenther@suse.de>
3857 * fold-const.c (negate_expr_p): Fix multiplication case.
3859 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
3862 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
3864 (TARGET_INIT_LIBFUNCS): Delete definition and...
3865 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
3868 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
3870 * config/netbsd-stdint.h: New.
3871 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
3872 (x86_64-*-netbsd*): Likewise.
3874 2016-11-16 Andrew PInski <apinski@cavium.com>
3876 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
3877 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
3878 flag_aarch64_verbose_cost instead of checking for details dump.
3879 (aarch64_rtx_costs_wrapper): Likewise.
3881 2016-11-16 Jakub Jelinek <jakub@redhat.com>
3883 PR rtl-optimization/78378
3884 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
3885 inner only if pos is 0. Fix up formatting.
3887 2016-11-17 Alan Modra <amodra@gmail.com>
3889 PR rtl-optimization/78325
3890 PR rtl-optimization/70890
3891 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
3894 2016-11-16 Jason Merrill <jason@redhat.com>
3896 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
3898 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3899 Richard Biener <rguenther@suse.de>
3901 PR tree-optimization/77848
3902 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
3903 an outer loop, only save basic block aux information for the inner
3905 (versionable_outer_loop_p): New function.
3906 (tree_if_conversion): Version the outer loop instead of the inner
3907 one if the pattern will be recognized for outer-loop
3910 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
3912 * gcc/bb-reorder.c: Remove 'toplev.h' include.
3913 (pass_partition_blocks::gate): No longer check
3914 user_defined_section_attribute, instead check the function decl
3915 for a section attribute.
3916 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
3917 set user_defined_section_attribute.
3918 * gcc/final.c (rest_of_handle_final): Likewise.
3919 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
3920 * gcc/toplev.h: Remove declaration of
3921 user_defined_section_attribute.
3923 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3925 * config/mips/mips.md (casesi_internal_mips16_<mode>):
3926 Explicitly switch between JR and JRC for the table jump. Adjust
3929 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3931 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
3932 `insn_count' to 11 rather than 16.
3934 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3936 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
3937 `ltu' rather than `leu' operation in the RTL pattern
3939 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3941 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
3942 missing <d> instruction prefixes throughout. Correct
3945 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3947 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
3948 rather than R_MIPS_JALR relocation in microMIPS code. Do not
3949 cancel short delay slots in PIC call relaxation.
3951 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
3953 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
3954 general register with general register or ARM constant into SP
3957 2016-11-16 Jakub Jelinek <jakub@redhat.com>
3960 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
3961 that loop->header == body_bb if broken_loop.
3963 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
3965 * tree-ssa-math-opts.c (bswap_replace): Remove test
3966 of SLOW_UNALIGNED_ACCESS.
3968 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
3970 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
3971 is selected. Pass -mgomp to offload compiler in OpenMP case.
3972 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
3973 declaration from nvptx.c.
3974 (nvptx_gen_shuffle): Declare.
3975 (nvptx_output_set_softstack): Declare.
3976 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
3977 (need_softstack_decl): New variable.
3978 (need_unisimt_decl): New variable.
3979 (diagnose_openacc_conflict): New. Use it...
3980 (nvptx_option_override): ...here. Handle TARGET_GOMP.
3981 (nvptx_encode_section_info): Handle "shared" attribute.
3982 (write_as_kernel): Restrict to OpenACC target regions.
3983 (init_softstack_frame): New.
3984 (nvptx_init_unisimt_predicate): New.
3985 (write_omp_entry): New. Use it...
3986 (nvptx_declare_function_name): ...here to emit OpenMP target region
3987 entrypoints. Handle TARGET_SOFT_STACK. Call
3988 nvptx_init_unisimt_predicate.
3989 (nvptx_output_set_softstack): New.
3990 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
3991 (nvptx_gen_shuffle): Export.
3992 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
3994 (nvptx_print_operand): Fix handling of instruction predicates.
3995 (nvptx_get_unisimt_master): New helper function.
3996 (nvptx_get_unisimt_predicate): Ditto.
3997 (nvptx_call_insn_is_syscall_p): Ditto.
3998 (nvptx_unisimt_handle_set): Ditto.
3999 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
4000 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
4001 (nvptx_handle_shared_attribute): New. Use it...
4002 (nvptx_attribute_table): ... here (new entry).
4003 (nvptx_record_offload_symbol): Handle NULL attributes.
4004 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
4005 (nvptx_simt_vf): New.
4006 (TARGET_SIMT_VF): Define.
4007 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
4008 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
4009 -muniform-simt option is active.
4010 (STACK_SIZE_MODE): Define.
4011 (FIXED_REGISTERS): Adjust.
4012 (SOFTSTACK_SLOT_REGNUM): New.
4013 (SOFTSTACK_PREV_REGNUM): New.
4014 (REGISTER_NAMES): Adjust.
4015 (struct machine_function): New fields.
4016 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
4017 (UNSPEC_VOTE_BALLOT): Ditto.
4018 (UNSPEC_LANEID): Ditto.
4019 (UNSPECV_NOUNROLL): Ditto.
4020 (atomic): New attribute.
4021 (predicable): New attribute. Generate predicated forms via
4023 (br_true): Mark as not predicable.
4025 (br_true_uni): Ditto.
4026 (br_false_uni): Ditto.
4028 (trap_if_true): Ditto.
4029 (trap_if_false): Ditto.
4030 (nvptx_fork): Ditto.
4031 (nvptx_forked): Ditto.
4032 (nvptx_joining): Ditto.
4033 (nvptx_join): Ditto.
4034 (nvptx_barsync): Ditto.
4035 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
4036 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
4037 (allocate_stack_<mode>): Remove unused pattern.
4038 (set_softstack_insn): New pattern.
4039 (restore_stack_block): Handle for TARGET_SOFT_STACK.
4040 (nvptx_vote_ballot): New pattern.
4041 (omp_simt_lane): Ditto.
4042 (omp_simt_last_lane): Ditto.
4043 (omp_simt_ordered): Ditto.
4044 (omp_simt_vote_any): Ditto.
4045 (omp_simt_xchg_bfly): Ditto.
4046 (omp_simt_xchg_idx): Ditto.
4047 (nvptx_nounroll): Ditto.
4048 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
4049 (atomic_exchange<mode>): Ditto.
4050 (atomic_fetch_add<mode>): Ditto.
4051 (atomic_fetch_addsf): Ditto.
4052 (atomic_fetch_<logic><mode>): Ditto.
4053 * config/nvptx/nvptx.opt (msoft-stack): New option.
4054 (muniform-simt): Ditto.
4056 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
4057 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
4058 * doc/invoke.texi (msoft-stack): Document.
4059 (muniform-simt): Document
4061 * doc/tm.texi: Regenerate.
4062 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
4063 * target.def: Define it.
4064 * target-insns.def (omp_simt_lane): New.
4065 (omp_simt_last_lane): New.
4066 (omp_simt_ordered): New.
4067 (omp_simt_vote_any): New.
4068 (omp_simt_xchg_bfly): New.
4069 (omp_simt_xchg_idx): New.
4071 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4073 * config/mips/mips-protos.h (mips_set_text_contents_type): New
4075 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
4076 (ASM_OUTPUT_CASE_END): Likewise.
4077 * config/mips/mips.c (mips_set_text_contents_type): New function.
4078 (mips16_emit_constants): Record the pool's initial label number
4079 with the `consttable' insn. Emit a `consttable_end' insn at the end.
4080 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
4081 for `consttable' insns.
4082 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
4083 for `consttable_end' insns.
4084 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
4085 (consttable): Add operand.
4086 (consttable_end): New insn.
4088 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
4090 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
4091 * tree-if-conv.c (tree_if_conversion): Make public.
4092 * * tree-if-conv.h: New file.
4093 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
4094 dynamic alias checks for epilogues.
4095 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
4096 * tree-vect-loop.c: include tree-if-conv.h.
4097 (new_loop_vec_info): Add zeroing orig_loop_info field.
4098 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
4099 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
4100 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
4101 using passed argument.
4102 (vect_transform_loop): Check if created epilogue should be returned
4103 for further vectorization with less vf. If-convert epilogue if
4104 required. Print vectorization success for epilogue.
4105 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
4106 if it is required, pass loop_vinfo produced during vectorization of
4107 loop body to vect_analyze_loop.
4108 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4110 (LOOP_VINFO_ORIG_LOOP_INFO): New.
4111 (LOOP_VINFO_EPILOGUE_P): New.
4112 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
4113 (vect_do_peeling): Change prototype to return epilogue.
4114 (vect_analyze_loop): Add argument of loop_vec_info type.
4115 (vect_transform_loop): Return created loop.
4117 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
4119 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
4120 component as used also if LR_REGNO is a live input to the bb.
4121 * df-scan.c (df_get_entry_block_def_set): Return immediately after
4122 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
4123 (df_get_exit_block_use_set): Ditto.
4124 * df.h (df_scan_flags): New enum.
4125 * shrink-wrap.c (try_shrink_wrapping_separate): Set
4126 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
4127 df_update_entry_block_defs and df_update_exit_block_uses
4128 at the start; clear the flag and call those functions at the end.
4130 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4131 Alan Hayward <alan.hayward@arm.com>
4132 David Sherwood <david.sherwood@arm.com>
4134 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
4135 nb_iterations to the number of latch iterations rather than the
4136 number of loop iterations.
4138 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4139 Alan Hayward <alan.hayward@arm.com>
4140 David Sherwood <david.sherwood@arm.com>
4142 * combine.c (maybe_swap_commutative_operands): New function.
4143 (combine_simplify_rtx): Use it.
4144 (change_zero_ext): Likewise.
4145 (make_compound_operation_int): New function, split out of...
4146 (make_compound_operation): ...here. Use
4147 maybe_swap_commutative_operands for both.
4149 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
4151 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
4152 (neon-vfpv3): New FPU, currently an alias for 'neon'.
4153 * arm/arm-tables.opt: Regenerated.
4154 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
4156 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
4157 and 'neon' are aliases for specific implementations.
4159 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4160 Alan Hayward <alan.hayward@arm.com>
4161 David Sherwood <david.sherwood@arm.com>
4163 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
4164 and use it in the final call to gen_rtx_fmt_ee.
4165 (expand_vec_cond_expr): Update accordingly.
4166 (expand_vec_cmp_expr): Likewise.
4168 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4169 Alan Hayward <alan.hayward@arm.com>
4170 David Sherwood <david.sherwood@arm.com>
4172 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
4174 2016-11-16 Richard Biener <rguenther@suse.de>
4177 * gimplify.c (gimplify_function_tree): Do not instrument
4178 GNU extern inline functions.
4180 2016-11-16 Martin Liska <mliska@suse.cz>
4183 * gimplify.c (gimplify_switch_expr): Always save previous
4184 gimplify_ctxp->live_switch_vars.
4186 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
4188 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
4189 zero_extract operations to allow a movb to occur.
4190 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
4191 * testsuite/gcc.target/arc/movb-2.c: Likewise.
4192 * testsuite/gcc.target/arc/movb-5.c: Likewise.
4193 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
4196 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4197 Alan Hayward <alan.hayward@arm.com>
4198 David Sherwood <david.sherwood@arm.com>
4200 * expr.c (emit_group_load_1): Tighten check for whether an
4201 access involves only one operand of a CONCAT. Use extract_bit_field
4202 for constants if the bit range does span the whole operand.
4204 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4205 Alan Hayward <alan.hayward@arm.com>
4206 David Sherwood <david.sherwood@arm.com>
4208 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
4210 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4211 Alan Hayward <alan.hayward@arm.com>
4212 David Sherwood <david.sherwood@arm.com>
4214 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
4215 all three iteration counts with an any_* test. Use a single update
4216 for each count. Fix the calculation of nb_iterations_estimate.
4218 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4220 * config/pdp11/pdp11.c: Include dbxout.h.
4222 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4224 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
4226 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4229 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
4230 proper ranges for an SBFX instruction.
4231 (extzv_t2): Likewise for UBFX.
4233 2016-11-16 Richard Biener <rguenther@suse.de>
4235 PR tree-optimization/78348
4236 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
4237 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
4238 (classify_partition): Set PKIND_MEMCPY if dependence analysis
4239 revealed no dependency, PKIND_MEMMOVE otherwise.
4241 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4244 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
4245 it points to non-NULL tree, use it instead of ubsan_create_data.
4246 (instrument_si_overflow): Handle vector signed integer overflow
4248 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
4249 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
4250 vector IFN_UBSAN_CHECK_*.
4251 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
4252 pass it through to ubsan_build_overflow_builtin.
4253 (expand_neg_overflow, expand_mul_overflow): Likewise.
4254 (expand_vector_ubsan_overflow): New function.
4255 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
4256 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
4257 (expand_arith_overflow): Adjust expand_*_overflow callers.
4259 2016-11-16 Matthias Klose <doko@ubuntu.com>
4261 * doc/install.texi: Remove references to java/libjava.
4263 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
4265 * tree-ssa-coalesce.c (register_default_def): Remove
4266 register_ssa_partition.
4267 (create_outofssa_var_map): Likewise.
4268 * tree-ssa-live.c (register_ssa_partition_check): Remove.
4269 * tree-ssa-live.h (register_ssa_partition): Likewise.
4271 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
4273 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
4274 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
4275 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
4276 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
4277 rtx when all sub-rtx are also permanent.
4278 (attr_eq): Simplify.
4279 (attr_copy_rtx): Remove.
4280 (make_canonical, get_attr_value): Use attr_equal_p.
4281 (copy_boolean): Rehash NOT.
4282 (simplify_test_exp_in_temp,
4283 optimize_attrs): Remove call to attr_copy_rtx.
4284 (attr_alt_intersection, attr_alt_union,
4285 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
4286 (make_automaton_attrs): Use attr_eq.
4288 2016-11-15 Matthias Klose <doko@ubuntu.com>
4290 * doc/install.texi: Remove references to java/libjava.
4291 * doc/sourcebuild.texi: Likewise.
4292 * doc/invoke.texi: Likewise.
4293 * doc/standards.texi: Likewise.
4295 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4296 Alan Hayward <alan.hayward@arm.com>
4297 David Sherwood <david.sherwood@arm.com>
4299 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
4301 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4302 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4303 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4304 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4305 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4306 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4307 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4309 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4310 Alan Hayward <alan.hayward@arm.com>
4311 David Sherwood <david.sherwood@arm.com>
4313 * dce.c (check_argument_store): Pass the size instead of
4314 the memory reference.
4315 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
4317 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4318 Alan Hayward <alan.hayward@arm.com>
4319 David Sherwood <david.sherwood@arm.com>
4321 * alias.c (canon_rtx): Use simplify_gen_binary.
4323 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4324 Alan Hayward <alan.hayward@arm.com>
4325 David Sherwood <david.sherwood@arm.com>
4327 * rtl.h (load_extend_op): Declare.
4328 * rtlanal.c (load_extend_op): New function.
4329 (nonzero_bits1): Use it.
4330 (num_sign_bit_copies1): Likewise.
4331 * cse.c (cse_insn): Likewise.
4332 * fold-const.c (fold_single_bit_test): Likewise.
4333 (fold_unary_loc): Likewise.
4334 * fwprop.c (free_load_extend): Likewise.
4335 * postreload.c (reload_cse_simplify_set): Likewise.
4336 (reload_cse_simplify_operands): Likewise.
4337 * combine.c (try_combine): Likewise.
4338 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
4339 subreg_lowpart_p checks.
4341 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4342 Alan Hayward <alan.hayward@arm.com>
4343 David Sherwood <david.sherwood@arm.com>
4345 * combine.c (simplify_shift_const_1): Use the number of bits
4346 in the inner mode to determine the range of the shift.
4347 When handling shifts of vectors, skip any rules that apply
4350 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4351 Alan Hayward <alan.hayward@arm.com>
4352 David Sherwood <david.sherwood@arm.com>
4354 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
4357 2016-11-15 Matthias Klose <doko@ubuntu.com>
4359 * doc/install.texi: Remove references to gcj/libjava.
4360 * doc/invoke.texi: Likewise.
4362 2016-11-15 Jeff Law <law@redhat.com>
4364 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
4365 parameter. Callers changed.
4366 (check-subpath_and_update_thread_path): Extracted from
4367 fsm_find_control_statement_thread_paths.
4368 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
4369 (handle_phi, handle_assignment): Allow any constant node, not
4372 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
4374 * config/arc/arc-arch.h: New file.
4375 * config/arc/arc-arches.def: Likewise.
4376 * config/arc/arc-cpus.def: Likewise.
4377 * config/arc/arc-options.def: Likewise.
4378 * config/arc/t-multilib: Likewise.
4379 * config/arc/genmultilib.awk: Likewise.
4380 * config/arc/genoptions.awk: Likewise.
4381 * config/arc/arc-tables.opt: Likewise.
4382 * config/arc/driver-arc.c: Likewise.
4383 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
4384 * common/config/arc/arc-common.c (arc_handle_option): Trace
4386 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
4387 options; check for supported cpu against arc-cpus.def file.
4388 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
4389 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
4390 * config/arc/arc-c.def: Add emacs local variables.
4391 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
4392 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
4393 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
4394 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
4395 (DEFAULT_arc_fpu_build): Define.
4396 (DEFAULT_arc_mpy_option): Define.
4397 * config/arc/arc-protos.h (arc_init): Delete.
4398 * config/arc/arc.c (arc_cpu_name): New variable.
4399 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
4400 (arc_arc700, arc_arc600, arc_arc601): New variable.
4401 (arc_init): Add static; remove selection of default tune value,
4402 cleanup obsolete error messages.
4403 (arc_override_options): Make use of .def files for selecting the
4404 right cpu and option configurations.
4405 * config/arc/arc.h (stdbool.h): Include.
4406 (TARGET_CPU_DEFAULT): Define.
4407 (CPP_SPEC): Remove mcpu=NPS400 handling.
4408 (arc_cpu_to_as): Declare.
4409 (EXTRA_SPEC_FUNCTIONS): Define.
4410 (OPTION_DEFAULT_SPECS): Likewise.
4411 (ASM_DEFAULT): Remove.
4412 (ASM_SPEC): Use arc_cpu_to_as.
4413 (DRIVER_SELF_SPECS): Remove deprecated options.
4414 (arc_base_cpu): Declare.
4415 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
4416 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
4418 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
4419 * config/arc/arc.md (attr_cpu): Remove.
4420 * config/arc/arc.opt (mno-mpy): Deprecate.
4421 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
4422 (mcpu=ARCHS): Remove.
4423 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
4425 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
4426 (arc_fpu): Use new defines.
4427 (mpy-option): Change to use numeric or string like inputs.
4428 * config/arc/t-arc (driver-arc.o): New target.
4429 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
4430 * config/arc/t-arc-newlib: Delete.
4431 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
4432 * doc/invoke.texi (ARC): Update arc options.
4434 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
4436 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
4437 insn at the beginning of the constant pool.
4438 (mips_insert_insn_pseudos): New function.
4439 (mips_machine_reorg2): Call it.
4440 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
4441 UNSPEC_INSN_PSEUDO enum values.
4442 (insn_pseudo, consttable): New insns.
4444 2016-11-15 Michael Matz <matz@suse.de>
4446 PR missed-optimization/77881
4447 * combine.c (simplify_comparison): Remove useless subregs
4448 also inside the loop, not just after it.
4449 (make_compound_operation): Recognize some subregs as being
4452 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4453 Alan Hayward <alan.hayward@arm.com>
4454 David Sherwood <david.sherwood@arm.com>
4456 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
4459 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4461 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
4462 for using xxinsertw and vinsert{b,h} on ISA 3.0.
4464 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
4465 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
4466 vinsert{b,h} on ISA 3.0.
4468 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
4470 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
4471 and cmpnop in two steps: first the ones not accessed in original gimple
4472 expression in a endian independent way and then the ones not accessed
4473 in the final result in an endian-specific way.
4474 (bswap_replace): Stop doing big endian adjustment.
4476 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
4478 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
4479 (*ashl<mode>3_doubleword): Ditto.
4481 2016-11-14 Martin Liska <mliska@suse.cz>
4483 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
4485 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
4486 Richard Biener <rguenther@suse.de>
4488 * doc/invoke.texi (fgimple): Document.
4489 * dumpfile.h (TDF_GIMPLE): Add.
4490 * dumpfile.c (dump_options): Add gimple.
4491 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
4493 (dump_gimple_label): Likewise.
4494 (dump_gimple_phi): Likewise.
4495 (dump_gimple_bb_header): Likewise.
4496 (dump_phi_nodes): Likewise.
4497 (pp_cfg_jump): Likewise. Pass in dump flags.
4498 (dump_implicit_edges): Adjust.
4499 * passes.c (pass_init_dump_file): Do not dump function header
4501 * tree-cfg.c (dump_function_to_file): Dump function return type
4502 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
4504 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
4505 (dump_generic_node): Likewise.
4506 * function.h (struct function): Add pass_startwith member.
4507 * passes.c (execute_one_pass): Implement startwith.
4508 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
4509 and assign proper version for parsed ssa names.
4510 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
4511 * internal-fn.c (expand_PHI): New function.
4512 * internal-fn.h (expand_PHI): Declared here.
4513 * internal-fn.def: New defination for PHI.
4514 * tree-cfg.c (lower_phi_internal_fn): New function.
4515 (build_gimple_cfg): Call it.
4516 (verify_gimple_call): Condition for passing label as arg in internal
4518 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
4519 present PHIs with arguments.
4521 2016-11-14 Martin Liska <mliska@suse.cz>
4524 * common.opt: Add prefer-atomic as a new enum value for
4526 * coretypes.h: Likewise.
4527 * doc/invoke.texi: Document the new option value.
4528 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
4529 * tree-profile.c (tree_profiling): Select default value
4530 of -fprofile-update when 'prefer-atomic' is selected.
4532 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4534 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
4535 (cortex_a57_alu_shift): ...here.
4537 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4539 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
4541 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4542 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4543 (<optab>si3_insn_uxtw): Likewise.
4544 (<optab><mode>3_insn): Likewise.
4545 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
4546 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
4547 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
4548 (<optab><mode>): Likewise.
4549 (insv<mode>): Likewise.
4550 (andim_ashift<mode>_bfiz): Likewise.
4551 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
4552 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
4553 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
4554 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
4555 (exynos_m1_alu_p): Likewise.
4556 * config/arm/types.md: Add bfx.
4557 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
4559 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4561 * config/aarch64/aarch64.c (cortexa57_vector_cost):
4562 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
4564 2016-11-14 Richard Biener <rguenther@suse.de>
4566 PR tree-optimization/78312
4567 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
4568 flow-sensitive info.
4570 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
4573 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
4574 * config/avr/avr.opt (-mabsdata): New option.
4575 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
4576 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
4577 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
4578 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
4579 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
4580 spec depending on AVR_ISA_LDS.
4581 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
4583 2016-11-13 Jakub Jelinek <jakub@redhat.com>
4585 * match.pd: Don't try to compare addresses of variables with
4588 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
4590 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
4591 (propagate_vr_accross_jump_function): Handle unary expressions.
4592 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
4593 (load_from_param_1): New.
4594 (load_from_unmodified_param): Factor common part into load_from_param_1.
4595 (load_from_param): New.
4596 (compute_complex_assign_jump_func): Handle unary expressions.
4597 (update_jump_functions_after_inlining): Likewise.
4598 (ipa_write_jump_function): Likewise.
4599 (ipa_read_jump_function): Likewise.
4601 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4604 * doc/invoke.texi: Document Wrestrict.
4605 * pretty-print.c (pp_format): Add case for "Z" specifier.
4606 (test_pp_format): Test "Z" specifier.
4608 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
4610 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
4611 original function needs a static chain.
4613 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
4616 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
4619 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4622 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
4623 return early if !optional_tbtab.
4625 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
4627 PR rtl-optimization/59461
4628 * doc/rtl.texi (paradoxical subregs): Add missing word.
4629 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
4630 in modes with precision larger than that of last_set_mode.
4631 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
4632 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
4633 REGs to paradoxical SUBREGs.
4634 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
4635 larger than a word before invoking LOAD_EXTEND_OP on it.
4637 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4640 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
4641 element order for little endian ordering.
4643 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
4644 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
4647 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
4650 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
4651 when calculating operand 2.
4652 (rotate to rotatex zext splitter): Ditto.
4654 2016-11-11 Jeff Law <law@redhat.com>
4656 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
4658 (stmt_uses_name_in_undefined_way): New function, extracted from
4659 find_implicit_erroneous_behavior and extended for div/mod case.
4660 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
4661 find_explicit_erroneous_behavior and extended for div/mod case.
4662 (find_implicit_erroneous_behavior): Use new helper function.
4663 (find_explicit_erroneous_behavior): Use new helper function.
4665 2016-11-11 Richard Biener <rguenther@suse.de>
4667 PR tree-optimization/71575
4668 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
4671 2016-11-11 Richard Biener <rguenther@suse.de>
4674 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
4675 about uninitialized destination arg of BIT_INSERT_EXPR.
4677 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
4680 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
4681 terminology. Expand to remove ambiguity.
4683 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4685 PR rtl-optimization/78232
4686 * combine.c (try_combine): Add a big comment about why reusing i2dest
4688 (change_zero_ext): Do not call simplify_gen_binary, do the
4689 simplifications manually.
4691 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4693 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
4694 enable HImode and QImode to go in vector registers by default if
4695 the -mvsx-small-integer option is enabled.
4696 (rs6000_secondary_reload_simple_move): Likewise.
4697 (rs6000_preferred_reload_class): Don't force integer constants to
4698 be loaded into vector registers that we can easily make into
4699 memory (or being created in the GPRs and moved over with direct move).
4700 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
4701 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
4702 vector extraction on ISA 3.0 when the scalar integer can be
4703 allocated in vector registers. Generate the VEC_SELECT directy,
4704 and don't use UNSPEC's to avoid having the scalar type in a vector
4705 register. Make the expander target registers, and let the
4706 combiner fold in results storing to memory, if the machine
4708 (vsx_extract_<mode>_di): Likewise.
4709 (vsx_extract_<mode>_p9): Likewise.
4710 (vsx_extract_<mode>_di_p9): Likewise.
4711 (vsx_extract_<mode>_store_p9): Likewise.
4712 (vsx_extract_si): Likewise.
4713 (vsx_extract_<mode>_p8): Likewise.
4714 (p9_lxsi<wd>zx): Delete, no longer used.
4715 (p9_stxsi<wd>x): Likewise.
4716 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
4717 integers in vector registers for ISA 3.0.
4718 (QHI): Update comment.
4719 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
4720 vector extract instructions in sign/zero extend.
4721 (zero_extendhi<mode>): Likewise.
4722 (extendqi<mode>): Likewise.
4723 (extendhi<mode>2): Likewise.
4724 (HImode splitter for load/sign extend in vector register): Likewise.
4725 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
4726 optimizing floating point conversions to/from small data types and
4727 rewrite it to support QImode/HImode being allowed in vector
4728 registers on ISA 3.0.
4729 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
4730 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
4731 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
4732 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
4733 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
4734 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
4735 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
4736 VSPLITISW on ISA 2.07.
4737 (movhi_internal): Combine movhi_internal and movqi_internal into
4738 one mov<mode>_internal with an iterator. Add support for QImode
4739 and HImode being allowed in vector registers. Make large number
4740 of attributes and constraints easier to read.
4741 (movqi_internal): Likewise.
4742 (mov<mode>_internal): Likewise.
4743 (movdi_internal64): Fix constraint to allow loading -16..15 with
4744 VSPLITISW on ISA 2.07.
4745 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
4748 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
4750 PR rtl-optimization/78241
4751 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
4752 but emit initial peel copy if niter expr is not reliable.
4754 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4756 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
4757 (maybe_record_trace_start): If the CFI is different on the new and
4758 old paths, print out both to the dump file before ICEing.
4760 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
4762 * target.def (additional_allocno_class_p): New.
4763 * hooks.h (hook_bool_reg_class_t_false): New prototype.
4764 * hooks.c (hook_bool_reg_class_t_false): New.
4765 * ira.c (setup_allocno_and_important_classes): Use the new hook.
4766 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
4767 * doc/tm.texi: Update.
4769 2016-11-10 Jason Merrill <jason@redhat.com>
4771 * gengtype.c (new_structure): Append to structures list.
4772 (find_structure): Likewise.
4774 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
4776 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
4777 this_dir is 2. Check for this_dir non-zero before dir != this_dir
4780 2016-11-10 Jakub Jelinek <jakub@redhat.com>
4782 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
4783 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
4785 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
4786 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
4787 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
4788 teams distribute parallel for simd even to distribute and teams
4789 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
4790 OMP_CLAUSE_DEPEND_SINK case.
4791 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
4792 (omp_no_lastprivate): Removed.
4793 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
4794 (gimplify_omp_for): Likewise.
4795 (computable_teams_clause): Fail for automatic vars from current
4796 function not yet seen in bind expr.
4797 * langhooks.c (lhd_omp_scalar_p): New function.
4798 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
4799 * varpool.c (varpool_node::get_create): Set node->offloading
4800 even for DECL_EXTERNAL decls.
4801 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
4802 (LANG_HOOKS_OMP_SCALAR_P): Define.
4803 (LANG_HOOKS_DECLS): Use it.
4805 2016-11-10 Martin Liska <mliska@suse.cz>
4808 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
4809 only when SWITCH_BODY is a BIND_EXPR.
4811 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
4814 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
4815 on the context only when it has no DIE yet.
4817 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
4819 * arm.h (target_cpus): Delete.
4820 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
4821 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
4822 (all_architectures): Likewise.
4823 (arm_option_override): Adjust use of CPU enums.
4824 (arm_sched_reorder): Likewise.
4825 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
4826 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
4827 * arm/genopt.sh (processor_type): Prefix enumeration entries with
4829 * arm-tables.opt: Regenerated.
4831 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
4833 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
4835 * config/aarch64/aarch64-tune.md: Regenerated.
4836 * config/arm/arm-cores.def (falkor): New core.
4837 * config/arm/arm-tables.opt: Regenerated.
4838 * config/arm/arm-tune.md: Regenerated.
4839 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
4840 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
4841 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
4842 (ARM Options/-mtune): Likewise.
4844 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
4847 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
4849 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
4850 (propagate_vr_accross_jump_function): Likewise.
4851 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
4852 (load_from_param_1): New.
4853 (load_from_unmodified_param): Factor common part into load_from_param_1.
4854 (load_from_param): New.
4855 (compute_complex_assign_jump_func): Handle unary expressions.
4856 (ipa_write_jump_function): Likewise.
4857 (ipa_read_jump_function): Likewise.
4859 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
4861 * simplify-rtx.c (simplify_binary_operation_1): Simplify
4862 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
4863 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
4866 2016-11-09 David Malcolm <dmalcolm@redhat.com>
4868 * print-rtl-function.c: Include varasm.h.
4869 (print_any_param_name): New function.
4870 (print_param): New function.
4871 (print_rtx_function): Call print_param for each argument.
4872 * print-rtl.c (rtx_writer::finish_directive): New function.
4873 * print-rtl.h (rtx_writer::finish_directive): New decl.
4875 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
4878 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
4879 operand 0 as earlyclobber.
4880 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
4882 2016-11-09 Martin Liska <mliska@suse.cz>
4884 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
4886 2016-11-09 Jakub Jelinek <jakub@redhat.com>
4889 * builtins.c (expand_builtin_memcmp): Formatting fix.
4891 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
4892 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
4893 or of them, renumber other enumerators.
4894 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
4895 * doc/invoke.texi: Document -fsanitize=shift-base and
4896 -fsanitize-shift-exponent, document -fsanitize=shift as
4897 having those 2 suboptions.
4899 2016-11-09 Richard Biener <rguenther@suse.de>
4901 * fold-const.c (tree_swap_operands_p): Remove unused arg.
4902 * fold-const.c (tree_swap_operands_p): Likewise.
4903 (fold_binary_loc): Adjust.
4904 (fold_ternary_loc): Likewise.
4905 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
4906 * gimple-fold.c (fold_stmt_1): Likewise.
4907 * gimple-match-head.c (gimple_resimplify2): Likewise.
4908 (gimple_resimplify3): Likewise.
4909 (gimple_simplify): Likewise.
4910 * tree-ssa-dom.c (record_equality): Likewise.
4911 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
4912 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
4913 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
4915 2016-11-09 Richard Biener <rguenther@suse.de>
4917 * tree-ssa-dom.c (canonicalize_comparison): Remove.
4918 (optimize_stmt): Remove redundant pre-propagation canonicalization
4919 of comparison operand order.
4921 2016-11-09 Martin Liska <mliska@suse.cz>
4923 * fold-const-call.c (fold_const_call): Fix the folding.
4925 2016-11-09 Richard Biener <rguenther@suse.de>
4927 * common.opt (flag_evaluation_order): Remove.
4928 * expr.c (expand_operands): Remove code guarded by
4929 flag_evaluation_order.
4930 * fold-const.c (reorder_operands_p): Remove, it always returns
4932 (negate_expr_p): Remove calls to reorder_operands_p.
4933 (fold_negate_expr): Likewise.
4934 (tree_swap_operands_p): Likewise.
4935 (fold_binary_loc): Likewise.
4937 2016-11-09 Andreas Schwab <schwab@suse.de>
4940 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
4941 insns operating on a register.
4943 2016-11-09 Richard Biener <rguenther@suse.de>
4945 PR tree-optimization/78007
4946 * tree-vect-stmts.c (vectorizable_bswap): New function.
4947 (vectorizable_call): Call vectorizable_bswap for
4948 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
4950 2016-11-09 Richard Biener <rguenther@suse.de>
4952 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4953 Look at the DR_BASE_ADDRESS object for forcing alignment.
4955 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
4957 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
4958 (propagate_vr_accross_jump_function): Likewise.
4959 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
4960 (load_from_param_1): New.
4961 (load_from_unmodified_param): Factor common part into load_from_param_1.
4962 (load_from_param): New.
4963 (compute_complex_assign_jump_func): Handle unary expressions.
4964 (ipa_write_jump_function): Likewise.
4965 (ipa_read_jump_function): Likewise.
4967 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
4970 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
4971 Also fold constant passed as argument while computing value range.
4972 (propagate_constants_accross_call): Pass param type.
4973 * ipa-prop.c: export ipa_get_callee_param_type.
4974 * ipa-prop.h: export ipa_get_callee_param_type.
4976 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
4978 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
4979 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
4981 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
4983 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
4984 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
4985 ASAN_STACK_MAGIC_MIDDLE.
4986 (asan_global_struct): Increase the size of fields.
4987 (asan_add_global): Add new field constructor.
4988 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
4989 __asan_version_mismatch_check_v8.
4991 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
4993 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
4996 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
4999 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
5000 Handle ASHIFT and LSHIFTRT.
5001 (dimode_scalar_chain::compute_convert_gain): Ditto.
5002 (dimode_scalar_chain::convert_insn): Ditto.
5004 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5006 * gimple-ssa-store-merging.c: Include selftest.h
5007 (verify_array_eq): New function.
5008 (verify_shift_bytes_in_array): Likewise.
5009 (verify_shift_bytes_in_array_right): Likewise.
5010 (verify_clear_bit_region): Likewise.
5011 (verify_clear_bit_region_be): Likewise.
5012 (store_merging_c_tests): Likewise.
5013 * selftest.h (store_merging_c_tests): Declare prototype.
5014 * selftest-run-tests.c (selftest::run_tests): Run
5015 store_merging_c_tests.
5017 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5019 * config/arm/arm.opt (mold-rtx-costs): Delete.
5020 (mnew-generic-costs): Delete.
5021 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
5022 * config/arm/arm.c (arm_rtx_costs_1): Delete.
5023 (arm_size_rtx_costs): Likewise.
5024 (arm_slowmul_rtx_costs): Likewise.
5025 (arm_fastmul_rtx_costs): Likewise.
5026 (arm_xscale_rtx_costs): Likewise.
5027 (arm_9e_rtx_costs): Likewise.
5028 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
5029 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
5030 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
5031 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
5032 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
5033 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
5034 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
5035 arm_cortex_m7_tune):
5036 Delete rtx_costs field.
5037 (arm_new_rtx_costs): Rename to...
5038 (arm_rtx_costs_internal): ... This.
5039 (arm_rtx_costs): Remove old way of doing rtx costs.
5041 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5043 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
5044 (arm_fastmul_tune): Likewise.
5045 (arm_strongarm_tune): Likewise.
5046 (arm_xscale_tune): Likewise.
5047 (arm_9e_tune): Likewise.
5048 (arm_marvell_pj4_tune): Likewise.
5049 (arm_v6t2_tune): Likewise.
5050 (arm_v6m_tune): Likewise.
5051 (arm_fa726te_tune): Likewise.
5053 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5055 PR tree-optimization/78234
5056 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
5059 2016-11-08 Martin Liska <mliska@suse.cz>
5062 * dbgcnt.def: Add new debug counter asan_use_after_scope.
5063 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
5064 with a value expr. Do not add artificial variables to
5065 live_switch_vars. Use the debug counter.
5066 (gimplify_target_expr): Use the debug counter.
5067 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
5068 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
5069 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
5071 2016-11-08 Richard Biener <rguenther@suse.de>
5073 * tree-vect-stmts.c (get_group_load_store_type): If the
5074 access is aligned do not trigger peeling for gaps.
5075 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
5076 force alignment of vars with DECL_USER_ALIGN.
5078 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
5080 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
5082 2016-11-08 Richard Biener <rguenther@suse.de>
5084 PR tree-optimization/78205
5085 * tree-vect-stmts.c (vectorizable_load): Move check whether
5086 we may run into gaps when BB vectorizing SLP permutations ...
5087 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
5088 here where we can do a more precise check.
5090 2016-11-08 Richard Biener <rguenther@suse.de>
5092 PR tree-optimization/78224
5093 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
5094 Split the fallthru edge in case its successor may have PHIs.
5095 Do not free dominance info.
5097 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5100 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5101 EH info even for bzhi and pdep/pext.
5103 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
5105 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
5106 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
5108 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5110 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
5112 * config/rs6000/vector.md (div<mode>3): Ditto.
5114 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
5116 * configure.ac (.hidden): Change to conftest_s string. Provide string
5118 (gcc_cv_ld_hidden): Yes for AIX.
5119 * configure: Regenerate.
5121 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
5123 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
5124 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
5125 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
5126 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5127 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
5128 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
5130 (rs6000_xcoff_visibility): New.
5131 (rs6000_xcoff_declare_function_name): Add visibility support.
5132 (rs6000_xcoff_asm_globalize_decl_name): New.
5133 (rs6000_xcoff_asm_output_aligned_decl_common): New.
5134 (rs6000_asm_weaken_decl): New.
5135 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
5136 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
5139 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
5142 * incpath.c (remove_dup): Also silently ignore EPERM.
5144 2016-11-07 Martin Jambor <mjambor@suse.cz>
5146 * tree.c (verify_type_variant): Use pointer comparison to check that
5147 TYPE_SIZE_UNIT match.
5149 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5152 * dse.c (dse_step5): Call scan_reads even if just
5153 insn_info->frame_read. Improve and fix dump file messages.
5156 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
5157 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
5159 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5162 * match.pd: Add following two patterns:
5163 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
5164 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
5166 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
5168 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
5169 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
5170 * rtl.h (duplicate_reg_notes): Declare.
5171 * rtlanal.c (duplicate_reg_note): New function.
5173 PR rtl-optimization/77309
5174 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
5175 don't assume an equality comparison for plain COMPARE.
5176 (simplify_comparison): Pass a more accurate code to
5177 make_compound_operation.
5179 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
5181 * target.def (compute_pressure_classes): New target hook.
5182 * doc/tm.texi.in: Document it.
5183 * doc/tm.texi: Regenerate.
5184 * ira.c (setup_pressure_classes): Call target hook if defined.
5186 2016-11-07 David Malcolm <dmalcolm@redhat.com>
5188 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
5190 (rtx_writer::print_rtx): In compact mode, omit trailing operands
5191 that have the default values.
5192 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
5194 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
5195 label string from expected dump.
5196 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
5199 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5202 * alias.c (nonoverlapping_memrefs_p): If one decl is
5203 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
5205 2016-11-07 Richard Biener <rguenther@suse.de>
5208 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5211 2016-11-07 Richard Biener <rguenther@suse.de>
5213 PR tree-optimization/78218
5214 * gimple-ssa-store-merging.c
5215 (pass_store_merging::terminate_all_aliasing_chains):
5216 Drop unused argument, fix alias check to also consider uses.
5217 (pass_store_merging::execute): Adjust.
5219 2016-11-07 Richard Biener <rguenther@suse.de>
5221 PR tree-optimization/78228
5222 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
5225 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5228 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
5229 aarch64_simd_shift_imm_<mode> predicate for operand 1.
5230 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
5231 to restrict them to an appropriate range and add FAIL check if the
5232 region they specify is out of range. Delete useless constraint
5234 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
5235 2 and 3 to restrict their range and add pattern predicate.
5237 2016-11-07 Martin Liska <mliska@suse.cz>
5239 * asan.c (enum asan_check_flags): Move the enum to header file.
5240 (asan_init_shadow_ptr_types): Make type creation more generic.
5241 (shadow_mem_size): New function.
5242 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
5243 Rewritten stack unpoisoning code.
5244 (build_shadow_mem_access): Add new argument return_address.
5245 (instrument_derefs): Instrument local variables if use after scope
5246 sanitization is enabled.
5247 (asan_store_shadow_bytes): New function.
5248 (asan_expand_mark_ifn): Likewise.
5249 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
5250 * asan.h (enum asan_mark_flags): Moved here from asan.c
5251 (asan_protect_stack_decl): Protect all declaration that need
5253 (asan_sanitize_use_after_scope): New function.
5254 (asan_no_sanitize_address_p): Likewise.
5255 * cfgexpand.c (partition_stack_vars): Consider
5256 asan_sanitize_use_after_scope in condition.
5257 (expand_stack_vars): Likewise.
5258 * common.opt (-fsanitize-address-use-after-scope): New option.
5259 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
5260 Explain the parameter.
5261 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
5262 * gimplify.c (build_asan_poison_call_expr): New function.
5263 (asan_poison_variable): Likewise.
5264 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
5265 variables that have address taken.
5266 (gimplify_decl_expr): Likewise.
5267 (gimplify_target_expr): Likewise for C++ temporaries.
5268 (sort_by_decl_uid): New function.
5269 (gimplify_expr): Unpoison all variables for a label we can jump
5270 from outside of a scope.
5271 (gimplify_switch_expr): Unpoison variables defined in the switch
5273 (gimplify_function_tree): Clear asan_poisoned_variables.
5274 (asan_poison_variables): New function.
5275 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
5276 * internal-fn.c (expand_ASAN_MARK): New function.
5277 * internal-fn.def (ASAN_MARK): Declare.
5278 * opts.c (finish_options): Handle -fstack-reuse if
5279 -fsanitize-address-use-after-scope is enabled.
5280 (common_handle_option): Enable address sanitization if
5281 -fsanitize-address-use-after-scope is enabled.
5282 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
5284 * params.h: Likewise.
5285 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
5286 * sanitizer.def: Define __asan_poison_stack_memory and
5287 __asan_unpoison_stack_memory functions.
5288 * asan.c (asan_mark_poison_p): New function.
5289 (transform_statements): Handle asan_mark_poison_p calls.
5290 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
5292 2016-11-07 Tamar Christina <tamar.christina@arm.com>
5295 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
5297 2016-11-07 Martin Liska <mliska@suse.cz>
5299 * tree-profile.c (gimple_gen_time_profiler): Set proper type
5300 to time_profiler_counter_ptr.
5302 2016-11-07 Richard Biener <rguenther@suse.de>
5304 PR tree-optimization/37150
5305 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
5307 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
5308 (vect_analyze_slp_cost_1): Account for the real number of
5309 permutations emitted and for dead loads.
5310 (vect_transform_slp_perm_load): Add n_perms parameter counting
5311 the number of emitted permutations.
5312 * tree-vect-stmts.c (vectorizable_load): Adjust.
5314 2016-11-07 Richard Biener <rguenther@suse.de>
5316 PR tree-optimization/78189
5317 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
5318 alignment computation.
5320 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
5322 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
5324 2016-11-05 Martin Sebor <msebor@redhat.com>
5326 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
5329 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
5333 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
5335 2016-11-04 Jakub Jelinek <jakub@redhat.com>
5338 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
5339 doesn't have rtl set.
5341 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5343 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
5344 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
5345 rs6000_gimple_fold_builtin.
5346 (rs6000_gimple_fold_builtin): New function. Add handling for
5347 early expansion of vector addition builtins.
5349 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
5351 * expr.h (copy_blkmode_from_reg): Delete.
5352 * expr.c (copy_blkmode_from_reg): Make static.
5354 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
5356 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
5357 * combine.c (LOAD_EXTEND_OP): Delete.
5358 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
5359 * cse.c (LOAD_EXTEND_OP): Delete.
5360 * fold-const.c (LOAD_EXTEND_OP): Likewise.
5361 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
5362 * postreload.c (LOAD_EXTEND_OP): Delete.
5363 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
5364 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
5365 (find_reloads): Likewise.
5366 * reload1.c (eliminate_regs_1): Likewise.
5367 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
5368 (num_sign_bit_copies1): Likewise.
5370 2016-11-04 David Malcolm <dmalcolm@redhat.com>
5372 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
5373 (selftest::ix86_test_dumping_hard_regs): New function.
5374 (selftest::ix86_run_selftests): New function.
5375 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
5376 selftest::ix86_run_selftests.
5377 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
5378 * doc/tm.texi: Regenerate
5379 * selftest-rtl.h: New file.
5380 * rtl-tests.c: Include "selftest-rtl.h".
5381 (selftest::assert_rtl_dump_eq): Make non-static.
5382 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
5383 (selftest::test_dumping_regs): Update comment.
5384 * selftest-run-tests.c: Include "target.h".
5385 (selftest::run_tests): If non-NULL, call
5386 targetm.run_target_selftests.
5387 * target.def (run_target_selftests): New hook.
5389 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5391 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
5392 representative core for this architecture.
5393 * config/arm/arm-cores.def (cortex-m33): Define new processor.
5394 * config/arm/arm-tables.opt: Regenerate.
5395 * config/arm/arm-tune.md: Likewise.
5396 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
5397 valid -mcpu options.
5398 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
5400 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5402 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
5403 representative core for this architecture.
5404 * config/arm/arm-cores.def (cortex-m23): Define new processor.
5405 * config/arm/arm-tables.opt: Regenerate.
5406 * config/arm/arm-tune.md: Likewise.
5407 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
5408 this tuning parameters apply to in the comment.
5409 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
5410 valid -mcpu options.
5411 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
5413 2016-11-04 Bin Cheng <bin.cheng@arm.com>
5415 * fold-const.c (fold_cond_expr_with_comparison): Remove call
5416 to pedantic_non_lvalue_loc. Remove useless code for lvalue
5417 where cond_expr can't be a lvalue.
5419 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
5421 * config/arc/arc.c (arc_process_double_reg_moves): Use
5423 * config/arc/arc.md (movsi_insn): Disable unsupported move
5424 instructions for ARCv2 cores.
5425 (movdi): Use prepare_move_operands.
5426 (movsf, movdf): Use move_dest_operand predicate.
5427 * config/arc/constraints.md (Chs): Enable when barrel shifter is
5429 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
5430 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
5432 (dexcl_3op_peep2_insn_nores): Likewise.
5433 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
5434 (LINK_COMMAND_SPEC): Remove.
5436 2016-11-04 Richard Biener <rguenther@suse.de>
5439 * loop-invariant.c (find_exits): Record entering inner
5440 loops as possibly exiting to handle infinite sub-loops.
5441 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
5442 (fill_always_executed_in_1): Honor infinite child loops.
5444 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5447 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
5448 has already been adjusted for endianness, so don't adjust it any
5452 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
5453 ICmode unless we have standard PowerPC floating point.
5454 * config/rs6000/rs6000.md (FP iterator): Likewise.
5455 (FMOVE128 iterator): Likewise.
5457 2016-11-03 Jakub Jelinek <jakub@redhat.com>
5458 Alexandre Oliva <aoliva@redhat.com>
5459 Jason Merrill <jason@redhat.com>
5463 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
5465 * langhooks.c (lhd_type_dwarf_attribute): New function.
5466 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
5467 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
5468 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
5469 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
5470 (check_qualified_type, check_aligned_type): Call it.
5471 * dwarf2out.c (modified_type_die): Don't use type_main_variant
5472 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
5473 check_base_type and check_lang_type.
5474 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
5475 return early. For pointer-to-data-member add DW_AT_use_location
5477 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
5479 (gen_type_die_with_usage): Don't use type_main_variant
5480 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
5481 check_base_type and check_lang_type. Formatting fixes. Call
5482 get_debug_type langhook.
5484 2016-11-03 Jason Merrill <jason@redhat.com>
5486 * tree.c (check_lang_type): New.
5487 (check_qualified_type): Use it.
5488 (check_aligned_type): Use it.
5489 * tree.h: Declare it.
5491 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
5493 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
5494 (arm*-freebsd*): Likewise.
5495 (arm*-*-netbsdelf*): Likewise.
5496 (arm*-*-linux*): Likewise.
5497 (arm*-*-uclinux*eabi*): Likewise.
5498 (arm*-*-phoenix*): Likewise.
5499 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
5500 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
5501 specified. Default to arm6 if target_cpu_cname is not set.
5502 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
5503 default cpu has been correctly configured.
5504 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
5505 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
5506 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
5507 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
5508 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
5509 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
5510 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
5512 2016-11-03 Jiong Wang <jiong.wang@arm.com>
5514 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
5515 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
5516 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
5517 (output_cfa_loc): Support DW_CFA_val_expression.
5518 (output_cfa_loc_raw): Likewise.
5519 (output_cfi): Likewise.
5520 (output_cfi_directive): Likewise.
5521 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
5522 (dw_cfi_oprnd2_desc): Likewise.
5523 (mem_loc_descriptor): Recognize new pattern generated for value
5526 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
5528 PR rtl-optimization/78186
5529 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
5530 well, when converting to IOR.
5532 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
5534 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
5535 (vec_interleave_highv8qi): Likewise.
5537 2016-11-03 Martin Liska <mliska@suse.cz>
5539 * profile.c (instrument_values): Fix coding style.
5540 (branch_prob): Use renamed function.
5541 * tree-profile.c (init_ic_make_global_vars): Likewise.
5542 (gimple_init_edge_profiler): Rename to
5543 gimple_init_gcov_profiler.
5544 tree_time_profiler_counter variable declaration.
5545 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
5547 * value-prof.h: Remove an argument.
5549 2016-11-03 Richard Biener <rguenther@suse.de>
5551 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
5552 symtab_node::get_create.
5554 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5556 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
5557 Move comments into more natural position.
5559 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
5561 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
5562 (PTRDIFF_TYPE): Define as int.
5564 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5566 * ccmp.c (expand_ccmp_expr_1): Adjust.
5567 (expand_ccmp_expr): Likewise.
5568 (expand_ccmp_next): Likewise.
5569 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
5570 (aarch64_gen_ccmp_first): Likewise.
5571 * doc/tm.texi: Regenerate.
5572 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
5573 (gen_ccmp_next): Likewise.
5575 2016-11-03 Bin Cheng <bin.cheng@arm.com>
5577 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
5578 (vect_is_simple_reduction): Swap cond_reduction by inversion.
5580 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
5582 * config/i386/i386.c (ix86_init_libfuncs): New. Call
5583 darwin_rename_builtins here.
5584 (ix86_expand_divmod_libfunc): New.
5585 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
5586 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
5588 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5589 Nathan Sidwell <nathan@acm.org>
5591 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
5593 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
5595 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
5597 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
5598 to format MODE_INT and MODE_PARTIAL_INT literals.
5600 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
5603 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
5604 NULL if TARGET_SPE_ABI.
5606 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5608 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
5609 clear padding bits even when they're less than a byte.
5611 2016-11-02 Richard Biener <rguenther@suse.de>
5613 * gimple-ssa-store-merging.c: Include gimplify-me.h.
5614 (imm_store_chain_info::output_merged_stores): Force base_addr
5615 to be proper GIMPLE for a MEM_REF address.
5616 (pass_store_merging::execute): Restrict negative bitpos
5617 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
5618 check. Take into account non-NULL_TREE offset if the base
5619 is already addressable.
5621 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
5623 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
5625 (aarch64_be_crypto_sha1hv4si): New pattern.
5627 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
5629 * config/aarch64/aarch64.md (add<mode>3): Remove
5630 redundant code. Don't split frame based additions.
5632 2016-11-02 Richard Biener <rguenther@suse.de>
5634 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
5635 redundant val and dest members.
5636 (store_immediate_info::store_immediate_info): Adjust.
5637 (merged_store_group::merged_store_group): Adjust.
5638 (merged_store_group::apply_stores): Likewise.
5639 (struct imm_store_chain_info): Add base_addr field.
5640 (imm_store_chain_info::imm_store_chain_info): New constructor.
5641 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
5642 (imm_store_chain_info::output_merged_store): Likewise. Use
5643 addr_base which is already the address.
5644 (imm_store_chain_info::output_merged_stores): Likewise.
5645 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
5646 imm_store_chain_info instead of base. Fix alias check.
5647 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
5648 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
5649 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
5650 use the address of the base and adjust for other changes.
5652 2016-11-02 Martin Liska <mliska@suse.cz>
5654 * fold-const-call.c (host_size_t_cst_p): Test whether
5655 t is convertible to size_t.
5657 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5659 PR tree-optimization/78170
5660 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
5661 introduced by native_encode_expr on little-endian as well.
5663 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5665 PR tree-optimization/78162
5666 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
5669 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5671 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
5673 (aarch64_next_callee_save): Likewise.
5674 (aarch64_pushwb_single_reg): Likewise.
5675 (aarch64_gen_storewb_pair): Likewise.
5676 (aarch64_push_regs): Likewise.
5677 (aarch64_gen_loadwb_pair): Likewise.
5678 (aarch64_pop_regs): Likewise.
5679 (aarch64_gen_store_pair): Likewise.
5680 (aarch64_gen_load_pair): Likewise.
5681 (aarch64_save_callee_saves): Likewise.
5682 (aarch64_restore_callee_saves): Likewise.
5684 2016-11-02 Richard Biener <rguenther@suse.de>
5686 PR tree-optimization/78035
5687 PR tree-optimization/77964
5688 * gimple-pretty-print.c (pp_points_to_solution): Print
5689 vars_contains_interposable.
5690 * tree-ssa-alias.c: Include varasm.h.
5691 (ptrs_compare_unequal): Check vars_contains_interposable and
5692 decl_binds_to_current_def_p.
5693 (dump_points_to_solution): Dump vars_contains_interposable.
5694 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
5696 * tree-ssa-structalias.c: Include varasm.h.
5697 (set_uids_in_ptset): Record whether vars contains a
5698 not decl_binds_to_current_def_p variable in vars_contains_interposable.
5699 (ipa_escaped_pt): Update initializer.
5701 2016-11-02 Richard Biener <rguenther@suse.de>
5703 PR tree-optimization/78047
5704 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
5705 fake field at offset zero conservatively regarding to may_have_pointers.
5707 2016-11-02 Richard Biener <rguenther@suse.de>
5709 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
5710 infer_value_range on stmt ops and update value-ranges.
5711 Dump visited stmts and blocks.
5712 (evrp_dom_walker::push_value_range): Dump changes.
5713 (evrp_dom_walker::pop_value_range): Likewise.
5714 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
5716 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5718 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
5720 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
5722 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5724 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
5725 and adjust for that.
5726 * cfgrtl.h (delete_insn_chain): Adjust prototype.
5728 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5730 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
5732 (transcode_memory_rtx): Likewise.
5733 (move_to_acc): Likewise.
5734 (move_from_acc): Likewise.
5735 (move_acc_to_reg): Likewise.
5736 (move_to_x): Likewise.
5737 (move_to_hl): Likewise.
5738 (move_to_de): Likewise.
5739 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
5740 (rs6000_emit_savres_rtx): Likewise.
5741 (rs6000_emit_prologue): Likewise.
5742 * reorg.c (update_reg_unused_notes): Likewise.
5743 * rtl.h (remove_note): Adjust prototype.
5744 * rtlanal.c (remove_note): Make argument type rtx_insn *.
5746 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5748 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
5749 variables so some can be rtx_insn *.
5750 (alpha_emit_xfloating_libcall): Likewise.
5751 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
5752 (mips_legitimize_tls_address): Likewise.
5753 * optabs.c (expand_binop): Likewise.
5754 * reload1.c (gen_reload): Likewise.
5756 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5758 * reorg.c (relax_delay_slots): Split up the trial variable.
5760 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5762 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
5763 of variables rtx_insn *.
5764 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
5765 (legitimize_tls_address): Likewise.
5766 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5767 (bfin_gen_bundles): Likewise.
5768 * config/c6x/c6x.c (reorg_split_calls): Likewise.
5769 (c6x_reorg): Likewise.
5770 * config/frv/frv.c (frv_reorder_packet): Likewise.
5771 * config/i386/i386.c (ix86_split_idivmod): Likewise.
5772 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
5773 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
5774 * config/mn10300/mn10300.c: Likewise.
5775 * config/rl78/rl78.c: Likewise.
5776 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
5777 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
5778 (sh_expand_cmpnstr): Likewise.
5779 (sh_expand_strlen): Likewise.
5780 (sh_expand_setmem): Likewise.
5781 * config/sh/sh.md: Likewise.
5782 * emit-rtl.c (emit_pattern_before): Likewise.
5783 * except.c: Likewise.
5784 * final.c: Likewise.
5787 2016-11-01 Jason Merrill <jason@redhat.com>
5789 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
5790 a COND_EXPR with constant condition.
5792 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5794 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
5795 and its initialization.
5797 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5799 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
5802 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5804 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
5805 argument, don't call add_linkage_name if it is true.
5806 (gen_variable_die): For C++ inline static data members, consider the
5807 initial call when old_die is NULL to be declaration and call
5808 add_name_and_src_coords_attributes in that case with true as
5809 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
5810 (gen_member_die): For C++ inline static data members, emit a
5811 definition DIE right away in DW_TAG_compile_unit context.
5813 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
5816 * config/pa/pa.md: Add new shift/add patterns to handle
5817 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
5819 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
5821 * config/xtensa/xtensa-protos.h
5822 (xtensa_use_return_instruction_p): New prototype.
5823 * config/xtensa/xtensa.c (xtensa_current_frame_size,
5824 xtensa_callee_save_size): Remove.
5825 (struct machine_function): Add new fields: current_frame_size,
5826 callee_save_size, frame_laid_out and epilogue_done.
5827 (compute_frame_size, xtensa_expand_prologue,
5828 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
5829 cfun->machine->callee_save_size and xtensa_current_frame_size
5830 with cfun->machine->current_frame_size.
5831 (compute_frame_size): Update cfun->machine->frame_laid_out and
5832 don't update frame layout after reload completion.
5833 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
5834 instead of zeroing xtensa_current_frame_size.
5835 (xtensa_use_return_instruction_p): New function.
5836 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
5838 (INITIAL_ELIMINATION_OFFSET): Use return value of
5839 compute_frame_size instead of xtensa_current_frame_size value.
5840 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
5841 function xtensa_use_return_instruction_p instead of inline code.
5843 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5845 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
5846 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
5847 * dwarf2out.c (rnglist_idx): New variable.
5848 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
5849 (DEBUG_RNGLISTS_SECTION): Define.
5850 (ranges_base_label): New variable.
5851 (size_of_die) <case dw_val_class_range_list>: If using
5852 DW_FORM_rnglistx, count size of uleb128 of range list index.
5853 (value_format) <case dw_val_class_range_list>: For
5854 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
5855 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
5856 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
5857 (add_ranges_num): Remove useless prototype. Don't multiply
5858 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
5859 for new fields added to dw_ranges struct.
5860 (add_ranges): Add maybe_new_sec argument and pass it
5861 through to add_ranges_num.
5862 (note_rnglist_head): New function.
5863 (add_ranges_by_labels): Pass true as maybe_new_sec to
5864 add_ranges_num, call note_rnglist_head on the head of the list.
5865 (output_ranges): Add function comment. Switch to
5866 .debug_ranges section here and emit .Ldebug_ranges0 label.
5867 (index_rnglists, output_rnglists): New functions.
5868 (gen_subprogram_die): Formatting fixes.
5869 (add_high_low_attributes): Don't divide offsets
5870 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
5871 first list element or when pointing into the middle of
5872 a list. Pass true as second argument to add_ranges on the
5873 first block fragment after cold/hot section switch.
5874 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
5875 section instead of .debug_ranges. Initialize
5876 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
5877 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
5878 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
5879 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
5880 Call output_rnglists for -gdwarf-5.
5881 (dwarf2out_c_finalize): Clear rnglist_idx.
5883 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
5885 * combine.c (simplify_compare_const): Add gcc_fallthrough.
5887 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
5888 Tamar Christina <tamar.christina@arm.com>
5890 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
5891 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
5892 (vmaxnmq_f32): Likewise.
5893 (vminnm_f32): Likewise.
5894 (vminnmq_f32): Likewise.
5895 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
5897 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
5900 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5902 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
5903 binary floating point types supported by the hardware except for
5905 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
5906 vector instruction for optimizing extracting a SImode from a
5907 V4SImode vector and converting it to floating point.
5908 (vsx_xvcvuxwdp_df): Likewise.
5909 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
5910 registers to be any VSX register. Move stores to the end of the
5912 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
5913 to optimize extracting a SImode from a V4SImode vector and
5914 converting it to a binary floating point type supported by the
5915 hardware. Use the vector converts instead of extracting the
5916 element, sign extending it, and then converting it to double.
5917 Other floating point types than double first convert to double,
5918 then the double is converted to that type.
5919 (vsx_extract_si_<uns>float_<mode>): Likewise.
5921 2016-10-31 Andrew Pinski <apinski@cavium.com>
5923 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
5924 Rewrite handling of part num to handle the case where
5925 multiple implementers share the same part num.
5927 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5928 Jakub Jelinek <jakub@redhat.com>
5930 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
5931 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
5933 2016-10-31 Jakub Jelinek <jakub@redhat.com>
5935 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
5936 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
5937 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
5938 (is_cu_die, is_unit_die): Likewise.
5939 (should_move_die_to_comdat, break_out_comdat_types): Adjust
5940 comments for DWARF5 DW_UT_type units.
5941 (output_compilation_unit_header): Add UT argument, output
5942 start of DWARF5 .debug_info section header.
5943 (output_comp_unit): Add dwo_id argument. Adjust
5944 output_compilation_unit_header caller, for DW_UT_split_compile
5945 emit dwo_id field, otherwise padding1. Emit padding2 field.
5946 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
5947 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
5948 (output_skeleton_debug_sections): Add dwo_id argument, for
5949 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
5950 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
5951 DW_UT_type or DW_UT_split_type units rather than .debug_types.
5952 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
5953 DW_TAG_compile_unit for skeleton unit die. Don't add
5954 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
5955 address to output_comp_unit and output_skeleton_debug_sections.
5957 * dwarf2out.c (debug_line_str_section): New variable.
5958 (debug_line_str_hash): Likewise.
5959 (DEBUG_LINE_STR_SECTION): Define.
5960 (set_indirect_string): Handle DW_FORM_line_strp like
5962 (find_string_form): Fix up formatting.
5963 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
5965 (output_die): Handle DW_FORM_line_strp.
5966 (DWARF5_USE_DEBUG_LINE_STR): Define.
5967 (output_line_string): New function.
5968 (output_file_names): Add -gdwarf-5 support.
5969 (output_line_info): Likewise.
5970 (init_sections_and_labels): Initialize debug_line_str_section.
5971 (output_indirect_string): Change 2nd argument from void *
5972 to enum dwarf_form form, compare with form rather than
5974 (output_indirect_strings): Pass DW_FORM_strp to
5975 output_indirect_string traversion.
5976 (dwarf2out_finish): Output .debug_line_str strings.
5977 (dwarf2out_c_finalize): Clear debug_line_str_section and
5978 debug_line_str_hash.
5980 2016-10-31 Tom Tromey <tom@tromey.com>
5983 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
5984 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
5985 DW_OP_GNU_push_tls_address case.
5986 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
5988 2016-10-31 Jakub Jelinek <jakub@redhat.com>
5990 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
5991 for frame_offset_rel bit.
5992 (struct array_descr_info): Add rank field.
5993 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
5994 and placeholder_seen fields.
5995 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
5996 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
5997 DW_OP_pick 1 into DW_OP_over.
5998 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
5999 gen_variant_part): Clear placeholder_{arg,seen}.
6000 (loc_list_from_tree_1): Drop const from context argument.
6001 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
6002 (loc_list_for_address_of_addr_expr_of_indirect_ref,
6003 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
6005 (add_scalar_info): Drop const from context argument. Handle
6006 context->placeholder_arg.
6007 (add_bound_info): Drop const from context argument.
6008 (gen_descr_array_type_die): Drop const from ctx variable.
6009 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
6010 attribute and use a single DW_TAG_generic_subrange instead of
6011 7 DW_TAG_subrange_type for assumed rank arrays.
6013 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
6014 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
6015 from bool to 1-bit uchar bitfield. Add num_assigned and
6016 offset_emitted bitfields.
6017 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
6018 for dw_val_class_lineptr and dw_val_class_macptr. Handle
6019 dw_val_class_loclistsptr.
6020 (new_addr_loc_descr): Fix up formatting.
6021 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
6022 (add_AT_low_high_pc): Fix up formatting.
6023 (add_AT_loclistsptr): New function.
6024 (AT_lbl): Allow dw_val_class_loclistsptr.
6025 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
6026 Handle dw_val_class_loclistsptr.
6027 (loc_list_idx): New variable.
6028 (output_loclists_offsets, assign_location_list_indexes): New
6030 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
6031 add size_of_uleb128 of the index. Drop never used
6032 dwarf_split_debug_info AT_index handling. Handle
6033 dw_val_class_loclistsptr.
6034 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
6035 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
6036 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
6037 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
6038 DW_FORM_loclistx indexes.
6039 (output_attr_index_or_value): Fix up formatting. Don't handle
6040 dw_val_class_loc_list here.
6041 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
6042 For dw_val_class_loc_list call output_loc_list_offset rather than
6043 output_attr_index_or_value.
6044 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
6045 or .debug_loclists.dwo section name for debug_loc_section.
6046 (resolve_addr_in_expr): Formatting fix.
6047 (index_location_lists): Likewise.
6048 (dwarf2out_finish): If there are any location lists, for
6049 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
6050 index_location_lists only if have_location_lists. Call
6051 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
6052 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
6053 -gsplit-dwarf also emit offset table.
6055 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
6056 (size_of_die, value_format, output_die): Use
6057 DW_FORM_data16 for 128-bit dw_val_class_const_double or
6058 dw_val_class_wide_int.
6060 * dwarf2out.c (dwarf_op): Renamed to ...
6061 (dwarf_OP): ... this.
6062 (convert_descriptor_to_mode, scompare_loc_descriptor,
6063 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6064 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
6066 (dwarf_AT, dwarf_TAG): New functions.
6067 (check_die): Disallow DW_AT_call_all_calls next to
6068 DW_AT_GNU_all_call_sites.
6069 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
6070 and attributes instead of the corresponding GNU tag and attributes.
6071 (gen_subprogram_die): Likewise. Emit call site information even
6072 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
6073 DW_AT_defaulted in comment.
6074 (resolve_addr): Handle DW_AT_call_origin attribute on
6075 DW_TAG_call_site DIE like DW_AT_abstract_origin on
6076 DW_TAG_GNU_call_site DIE.
6078 * dwarf2out.c (dwarf_op): New function.
6079 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
6080 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
6081 (output_loc_operands, output_loc_operands_raw): Likewise.
6082 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
6083 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
6084 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
6085 if dwarf_version < 5.
6086 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
6088 (scompare_loc_descriptor, ucompare_loc_descriptor,
6089 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6090 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
6091 optimize_location_into_implicit_ptr): Likewise. Only punt for
6092 !dwarf_strict if dwarf_version < 5.
6093 (string_cst_pool_decl): Adjust comment.
6094 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
6096 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
6097 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6098 (struct dw_val_node): Add val_file_implicit field.
6099 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
6100 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
6101 output_die): Handle dw_val_class_const_implicit,
6102 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6103 (abbrev_die_table): Change into va_gc vec.
6104 (abbrev_die_table_allocated, abbrev_die_table_in_use,
6105 ABBREV_DIE_TABLE_INCREMENT): Remove.
6106 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
6107 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
6109 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
6110 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
6112 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
6114 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
6116 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
6118 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
6119 unit. Call optimize_abbrev_table.
6120 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
6121 abbrev_die_table being a va_gc vec.
6123 PR tree-optimization/77860
6124 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
6125 also integral complex and vector constants.
6127 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
6128 optimize_macinfo_range, save_macinfo_strings): Replace
6129 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
6130 (output_macinfo): Likewise. Emit .debug_macro* rather than
6131 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
6132 (init_sections_and_labels): Use .debug_macro* labels rather than
6133 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
6134 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
6135 or DW_AT_GNU_macros for -gdwarf-5.
6137 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
6139 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
6141 2016-09-11 Le-Chun Wu <lcwu@google.com>
6142 Mark Wielaard <mjw@redhat.com>
6144 * common.opt (Wshadow=global): New option. Default for -Wshadow.
6145 (Wshadow=local): New option.
6146 (Wshadow-local): Hidden alias for -Wshadow=local.
6147 (Wshadow=compatible-local): New option.
6148 (Wshadow-compatible-local): Hidden alias for
6149 -Wshadow=compatible-local.
6150 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
6151 Wshadow=compatible-local.
6153 2016-10-31 Bin Cheng <bin.cheng@arm.com>
6155 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
6156 Check slp defs for COND_EXPR by swapping/inverting operands if the
6157 new parameter SWAP indicates so.
6158 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
6159 is isomorphic to the first stmt via swapping/inverting. Store swap
6160 information in the new parameter SWAP.
6161 (vect_build_slp_tree): New local array SWAP and pass it to function
6162 vect_build_slp_tree_1. Cleanup result handling code for function
6163 call to vect_get_and_check_slp_defs. Skip operand swapping if the
6164 order of operands has been fixed as indicated by SWAP[i].
6166 2016-10-31 Bin Cheng <bin.cheng@arm.com>
6168 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
6169 unnecessary data dependence check after visited store stmt.
6171 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6173 PR tree-optimization/71915
6174 PR tree-optimization/71490
6175 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
6177 (find_basis_for_base_expr): Require stride types to match when
6179 (alloc_cand_and_find_basis): Record the stride type.
6180 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
6181 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
6182 the expressions having those types.
6183 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
6184 (create_mul_ssa_cand): Likewise.
6185 (create_mul_imm_cand): Likewise.
6186 (create_add_ssa_cand): Likewise.
6187 (create_add_imm_cand): Likewise.
6188 (legal_cast_p_1): Change interface to accept types rather than the
6189 expressions having those types.
6190 (legal_cast_p): Pass types to legal_cast_p_1.
6191 (slsr_process_cast): Pass stride type to
6192 alloc_cand_and_find_basis.
6193 (slsr_process_copy): Likewise.
6194 (dump_candidate): Display stride type when a cast exists.
6195 (create_add_on_incoming_edge): Introduce a cast when necessary for
6197 (analyze_increments): Change the code checking for invalid casts
6198 to rely on the stride type, and update the documentation and
6199 example. Change the code checking for pointer multiplies to rely
6201 (insert_initializers): Introduce a cast when necessary for the
6202 stride type. Use the stride type for the type of the initializer.
6204 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6206 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
6208 2016-10-29 Jakub Jelinek <jakub@redhat.com>
6210 PR rtl-optimization/77919
6211 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
6212 into memory if both modes are complex and their inner modes have the
6213 same precision. If the two modes are different complex modes, convert
6214 each part separately and generate a new CONCAT.
6216 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
6218 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
6220 2016-10-29 Jakub Jelinek <jakub@redhat.com>
6223 * gimple-ssa-store-merging.c
6224 (imm_store_chain_info::output_merged_store): Use build_aligned_type
6225 instead of SET_TYPE_ALIGN on shared integral type.
6227 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
6229 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
6230 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
6233 2016-10-28 Jeff Law <law@redhat.com>
6235 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
6236 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
6238 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6240 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
6242 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6244 * target.def (min_arithmetic_precision): New hook.
6245 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
6246 * doc/tm.texi: Regenerate.
6247 * internal-fn.c (expand_arith_overflow): Adjust handling of target
6248 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
6249 * targhooks.c (default_min_arithmetic_precision): New function.
6250 * targhooks.h (default_min_arithmetic_precision): Declare.
6251 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
6252 (sparc_min_arithmetic_precision): New function.
6254 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
6257 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
6258 Swap commutative operands in new RTL if needed. Handle zero_ext
6260 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
6263 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6264 Kugan Vivekanandarajah <kuganv@linaro.org>
6265 Jim Wilson <jim.wilson@linaro.org>
6267 PR tree-optimization/43721
6268 * target.def: New hook expand_divmod_libfunc.
6269 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
6270 * doc/tm.texi: Regenerate.
6271 * internal-fn.def: Add new entry for DIVMOD ifn.
6272 * internal-fn.c (expand_DIVMOD): New.
6273 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
6275 (widen_mul_stats): Add new field divmod_calls_inserted.
6276 (target_supports_divmod_p): New.
6277 (divmod_candidate_p): Likewise.
6278 (convert_to_divmod): Likewise.
6279 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
6280 renumber_gimple_stmt_uids at beginning of function. Call
6281 convert_to_divmod and record stats for divmod.
6282 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
6283 TARGET_EXPAND_DIVMOD_LIBFUNC.
6284 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
6287 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6288 Segher Boessenkool <segher@kernel.crashing.org>
6290 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
6291 swapping the arms of the branch.
6292 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
6293 sequence for the generic signed-signed-signed case.
6295 2016-10-28 Jeff Law <law@redhat.com>
6297 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
6299 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
6301 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
6303 PR rtl-optimization/78029
6304 * function.c (prologue_contains, epilogue_contains): New functions.
6305 (record_prologue_seq, record_epilogue_seq): New functions.
6306 * function.h (prologue_contains, epilogue_contains,
6307 record_prologue_seq, record_epilogue_seq): New declarations.
6308 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
6309 mixing prologue and epilogue insns.
6310 (init_deps): Initialize the new fields in struct deps_desc.
6311 * sched-int.h (struct deps_desc): New fields last_prologue,
6312 last_epilogue, and last_logue_was_epilogue.
6313 * shrink-wrap.c (emit_common_heads_for_components): Record all
6314 emitted prologue and epilogue insns.
6315 (emit_common_tails_for_components): Ditto.
6316 (insert_prologue_epilogue_for_components): Ditto.
6318 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6321 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
6322 * common.opt (fstore-merging): New Optimization option.
6323 * opts.c (default_options_table): Add entry for
6324 OPT_ftree_store_merging.
6325 * fold-const.h (can_native_encode_type_p): Declare prototype.
6326 * fold-const.c (can_native_encode_type_p): Define.
6327 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
6328 (PARAM_MAX_STORES_TO_MERGE): Likewise.
6329 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
6330 * passes.def: Insert pass_tree_store_merging.
6331 * tree-pass.h (make_pass_store_merging): Declare extern
6333 * gimple-ssa-store-merging.c: New file.
6334 * doc/invoke.texi (Optimization Options): Document
6336 (--param documentation): Document store-merging-allow-unaligned
6337 and max-stores-to-merge.
6339 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
6342 * gimplify.c (gimplify_init_constructor): Move emit of constructor
6343 assignment to earlier in the if/else logic.
6345 2016-10-28 Richard Biener <rguenther@suse.de>
6349 * fold-const.c (make_bit_field_ref): Only adjust alias set
6350 when the original alias set was zero.
6352 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6354 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
6355 (s390_adjust_loops): New function.
6356 (s390_reorg): Invoke s390_adjust_loops.
6357 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
6358 ("osc_break"): New insn definition.
6360 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6362 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
6363 * config.gcc: Support alternate archXX cpu levels with
6364 --with-arch= and --with-tune=.
6365 * config/s390/linux.h: Translate new archXX cpu levels to the
6366 original names when calling GAS.
6367 * config/s390/tpf.h: Likewise.
6368 * doc/invoke.texi: Document the alternate cpu level names.
6370 2016-10-28 Jakub Jelinek <jakub@redhat.com>
6372 PR rtl-optimization/77919
6373 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
6374 MEM if mode1 is not a complex mode.
6376 PR rtl-optimization/78132
6377 * ree.c (combine_reaching_defs): Give up if copy_needed and
6378 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
6380 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
6382 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
6384 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
6386 * config/rs6000/constraints.md (wH constraint): Add new
6387 constraints for allowing 32-bit integers (and eventually 8/16-bit
6388 integers) into the vector registers.
6389 (wI constraint): Likewise.
6390 (wJ constraint): Likewise.
6391 (wK constraint): Likewise.
6392 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
6393 -mvsx-small-integer as a default option for ISA 2.07
6395 (POWERPC_MASKS): Likewise.
6396 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
6397 switch to turn off small integer support in vector registers.
6398 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
6399 test for -mupper-regs-di, since it is already done with the
6400 reg_add[mode].scalar_in_vsx_p. Add support for the switch
6401 -mvsx-small-integer.
6402 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
6404 (rs6000_setup_reg_addr_masks): Likewise.
6405 (rs6000_init_hard_regno_mode_ok): Likewise.
6406 (rs6000_option_override_internal): Add consistency checks for
6407 -mvsx-small-integer.
6408 (rs6000_secondary_reload_simple_move): SImode is a simple move if
6409 -mvsx-small-integer.
6410 (rs6000_secondary_reload): Use std::swap.
6411 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
6412 VSX_REGS for small integers in vector registers, since there is no
6413 D-FORM address mode for such types.
6414 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
6415 (rs6000_opt_masks): Add -mvsx-small-integer.
6416 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
6418 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
6419 extracts can be done on ISA 2.07.
6420 (vsx_extract_<mode>): Add support for small integers in vsx
6422 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
6423 longer support V4SImode in this pattern.
6424 (vsx_extract_si): New insn to support extraction of SImode in ISA
6425 2.07 using either xxextractuw or vspltw.
6426 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
6427 longer support V4SImode in this pattern.
6428 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
6429 wJ, and wK constraints.
6430 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
6431 storing SDmode with VSX instructions.
6432 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
6433 GPR load and before the FPR and VSX loads. Remove ??, ! from the
6434 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
6435 small integers in vector registers.
6436 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
6437 load and before the FPR and VSX loads. Remove ??, ! from the
6438 constraints. Add VEXTSW2D support for small integers in vector
6440 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
6441 integers in vector registers.
6442 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
6443 move instead of using an UNSPEC.
6444 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
6445 integers in vector registers.
6446 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
6447 move instead of using an UNSPEC.
6448 (movsi_internal1): Add support for -mvsx-small-integer. Align
6449 columns so that it is more readable.
6450 (SImode splitter for ISA 3.0 constants): Add splitter for
6451 -128..127 constants that can easily be constructed on ISA 3.0.
6452 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
6455 2016-10-27 Jakub Jelinek <jakub@redhat.com>
6458 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
6461 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
6463 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
6464 PIC_OFFSET_TABLE_REGNUM twice.
6466 2016-10-27 Bin Cheng <bin.cheng@arm.com>
6468 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
6469 support for constant operand for OP.
6471 2016-10-27 Jakub Jelinek <jakub@redhat.com>
6473 * dwarf2out.c (gen_member_die): Only reparent_child instead of
6474 splice_child_die if child doesn't have DW_AT_specification attribute.
6476 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
6478 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
6479 (TARGET_HAVE_LDREXBH): Likewise.
6480 (TARGET_HAVE_LDACQ): Likewise.
6482 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
6484 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
6485 logic to to decide whether to copy over old value to register for new
6487 * config/arm/sync.md: Add comments explaning why mode and code
6488 attribute are not defined in iterators.md
6489 (thumb1_atomic_op_str): New code attribute.
6490 (thumb1_atomic_newop_str): Likewise.
6491 (thumb1_atomic_fetch_op_str): Likewise.
6492 (thumb1_atomic_fetch_newop_str): Likewise.
6493 (thumb1_atomic_fetch_oldop_str): Likewise.
6494 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
6495 mirror the more restrictive constraints of the Thumb-1 insns after
6496 split compared to Thumb-2 counterpart insns.
6497 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
6498 in sync with non atomic version.
6499 (atomic_nand<mode>): Likewise.
6500 (atomic_fetch_<sync_optab><mode>): Likewise.
6501 (atomic_fetch_nand<mode>): Likewise.
6502 (atomic_<sync_optab>_fetch<mode>): Likewise.
6503 (atomic_nand_fetch<mode>): Likewise.
6504 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
6505 in sync with atomic version.
6506 (thumb1_subsi3_insn): Likewise.
6507 (thumb1_andsi3_insn): Likewise.
6508 (thumb1_iorsi3_insn): Likewise.
6509 (thumb1_xorsi3_insn): Likewise.
6511 2016-10-27 Nick Clifton <nickc@redhat.com>
6513 * plugin.c (register_plugin_info): Produce an error message if the
6514 plugin is not found in the hash table.
6516 2016-10-27 Bin Cheng <bin.cheng@arm.com>
6518 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
6521 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
6524 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
6525 define builtin functions from the bdesc_spe_predicates or
6526 bdesc_spe_evsel arrays if the builtin mask is not compatible with
6527 the current compiler configuration.
6528 (paired_init_builtins): Modify loop to not define define builtin
6529 functions from the bdesc_paried_preds array if the builtin mask is
6530 not compatible with the current compiler configuration.
6531 (altivec_init_builtins): Modify loops to not define the
6532 __builtin_altivec_stxvl function nor the builtin functions from
6533 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
6534 builtin mask is not compatible with the current compiler
6537 2016-10-26 Jeff Law <law@redhat.com>
6539 * config/sh/sh.c (output_branch): Add missing fallthru comments.
6540 (gen_shl_and): Likewise.
6541 * config/sh/sh.md (movsicc): Add missing fallthru comments.
6543 * config/mips/mips.c (mips16_constant_cost): Add missing
6545 (mips16_build_call_stub): Increase buffer size. Adjust
6548 2016-10-26 David Malcolm <dmalcolm@redhat.com>
6550 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
6551 INSN_UIDs for all insns in compact mode.
6552 (rtx_writer::print_rtx): Likewise.
6553 * print-rtl.h (rtx_writer::flag_compact): Update comment.
6554 * rtl-tests.c (selftest::test_dumping_insns): Update expected
6555 output to include INSN_UID.
6556 (selftest::test_uncond_jump): Likewise.
6558 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
6560 * haifa-sched.c (call_used_regs_num): Rename to...
6561 (call_saved_regs_num): ...this.
6562 (fixed_regs_num): New variable.
6563 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
6565 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
6567 2016-10-26 David Malcolm <dmalcolm@redhat.com>
6569 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
6571 * print-rtl.c (outfile): Delete global.
6572 (sawclose): Likewise.
6574 (in_call_function_usage): Likewise.
6575 (flag_compact): Likewise.
6576 (flag_simple): Likewise.
6577 (rtx_writer::rtx_writer): New ctor.
6578 (print_rtx_operand_code_0): Convert to...
6579 (rtx_writer::print_rtx_operand_code_0): ...this.
6580 (print_rtx_operand_code_e): Convert to...
6581 (rtx_writer::print_rtx_operand_code_e): ...this.
6582 (print_rtx_operand_codes_E_and_V): Convert to...
6583 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
6584 (print_rtx_operand_code_i): Convert to...
6585 (rtx_writer::print_rtx_operand_code_i): ...this.
6586 (print_rtx_operand_code_r): Convert to...
6587 (rtx_writer::print_rtx_operand_code_r): ...this.
6588 (print_rtx_operand_code_u): Convert to...
6589 (rtx_writer::print_rtx_operand_code_u): ...this.
6590 (print_rtx_operand): Convert to...
6591 (rtx_writer::print_rtx_operand): ...this.
6592 (print_rtx): Convert to...
6593 (rtx_writer::print_rtx): ...this.
6594 (print_inline_rtx): Rewrite in terms of class rtx_writer.
6595 (debug_rtx): Likewise.
6596 (print_rtl): Convert to...
6597 (rtx_writer::print_rtl): ...this.
6598 (print_rtl): Reimplement in terms of class rtx_writer.
6599 (print_rtl_single): Rewrite in terms of class rtx_writer.
6600 (print_rtl_single_with_indent): Convert to..
6601 (rtx_writer::print_rtl_single_with_indent): ...this.
6602 (print_simple_rtl): Rewrite in terms of class rtx_writer.
6603 * print-rtl.h (flag_compact): Delete decl.
6604 (class rtx_writer): New class.
6605 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
6608 2016-10-26 Jeff Law <law@redhat.com>
6610 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
6613 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
6614 (check_if_valid_sleep_operand): Add missing fallthru comment.
6615 (arc_register_move_cost): Increase buffer size.
6616 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
6618 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
6620 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
6621 comment. Add gcc_unreachable for path that should never happen.
6623 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
6626 2016-10-26 Jakub Jelinek <jakub@redhat.com>
6627 Martin Liska <mliska@suse.cz>
6630 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
6631 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
6632 on outer context if any.
6634 2016-10-26 Jakub Jelinek <jakub@redhat.com>
6636 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
6637 by increment rather than double it.
6638 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
6639 emit a space before args[4].
6640 (END): Don't emit a space before with_arg.
6642 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
6644 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
6645 Baseline only alternatives to (i) hold store atomic success value in a
6646 return register rather than a scratch register, (ii) use a low register
6647 for it and to (iii) ensure the cbranchsi insn generated by the split
6648 respect the constraints of Thumb-1 cbranchsi4_insn and
6650 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
6651 constraints must match those in atomic_compare_and_swap.
6652 (cbranchsi4_scratch): Likewise.
6654 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
6656 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
6657 variable. Add the new parameter to the insn generator. Set that
6658 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
6659 return value from the negation of that parameter for Thumb-1, keeping
6660 the logic unchanged otherwise except for using bdst as the destination
6661 register of the compare_and_swap insn.
6662 (arm_split_compare_and_swap): Add explanation about how is the value
6663 returned to the function comment. Rename scratch variable to
6664 neg_bval. Adapt initialization of variables holding operands to the
6665 new operand numbers. Use return register to hold result of store
6666 exclusive for Thumb-1, scratch register otherwise. Construct the
6667 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
6668 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
6669 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
6670 for strongly ordered compare_and_swap.
6671 * config/arm/predicates.md (cc_register_operand): New predicate.
6672 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
6673 match_operand with the new predicate to accept either the CC flag or a
6674 destination register for the boolean return value, restricting it to
6675 CC flag only via constraint. Adapt operand numbers accordingly.
6677 2016-10-26 Jeff Law <law@redhat.com>
6679 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
6681 * config/frv/frv.c (comparison_string): Do not fall through after
6684 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
6686 (expand_one_builtin): Add missing break.
6688 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
6689 (m32c_legitimate_address_p): Likewise.
6691 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
6693 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
6695 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
6698 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
6701 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
6703 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
6705 (rl78_asm_ctor_dtor): Increase buffer size.
6707 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
6709 (xstormy16_asm_output_constructor): Likewise.
6711 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
6714 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
6715 comment to silence warning.
6717 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
6718 (spu_legitimate_address_p): Fix logic error and add missing fallthru
6721 2016-10-26 Michael Matz <matz@suse.de>
6723 PR tree-optimization/78060
6724 PR tree-optimization/78061
6725 PR tree-optimization/78088
6726 * tree-ssa-loop-split.c (easy_exit_values): New function.
6727 (tree_ssa_split_loops): Use it.
6728 (compute_new_first_bound): Change order of operations,
6729 fix invalid use of types.
6731 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
6733 gen-pass-instances.awk is sensitive to the order in which
6734 passes are added; passes that appear later have to be added first.
6738 * config/avr/avr-passes.def: Swap order of directives for
6739 gen-pass-instances.awk.
6741 2016-10-25 Jeff Law <law@redhat.com>
6743 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
6744 (vax_notice_update_cc): Likewise.
6746 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
6748 * config.gcc (sparc*-*-solaris2*): Adjust.
6749 (sparc64-*-linux*): Likewise.
6750 * config/sparc/default-64.h: Rename to...
6751 * config/sparc/default64.h: ...this.
6752 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
6754 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
6755 * config/sparc/sparc.h: Minor tweaks.
6756 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
6757 TARGET_ARCH32 throughout. Minor various tweaks throughout.
6759 2016-10-25 David Malcolm <dmalcolm@redhat.com>
6761 * input.c (fcache::file_patch): Add comment about lifetime.
6762 (selftest::cpp_reader_ptr): New class.
6763 (selftest::lexer_test): Convert m_parser from cpp_reader *
6764 to a cpp_reader_ptr, and move m_tempfile to after it.
6765 (selftest::lexer_test::lexer_test): Update for above reordering.
6766 (lexer_test::~lexer_test): Move cleanup of m_parser to
6767 cpp_reader_ptr's dtor.
6769 2016-10-25 David Malcolm <dmalcolm@redhat.com>
6771 * toplev.c (toplev::main): Remove call to
6772 location_adhoc_data_fini.
6774 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
6776 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
6777 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
6779 2016-10-25 David Malcolm <dmalcolm@redhat.com>
6781 * ggc-tests.c (forcibly_ggc_collect): Rename to...
6782 (selftest::forcibly_ggc_collect): ...this, and remove "static".
6783 (test_basic_struct): Update for above renaming.
6784 (test_length): Likewise.
6785 (test_union): Likewise.
6786 (test_finalization): Likewise.
6787 (test_deletable_global): Likewise.
6788 (test_inheritance): Likewise.
6789 (test_chain_next): Likewise.
6790 (test_user_struct): Likewise.
6791 (test_tree_marking): Likewise.
6792 * selftest-run-tests.c (selftest::run_tests): Call
6793 selftest::forcibly_ggc_collect at the end of the selftests.
6794 * selftest.h (selftest::forcibly_ggc_collect): New decl.
6796 2016-10-25 Jakub Jelinek <jakub@redhat.com>
6799 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
6800 * optabs.c (expand_vec_cond_expr): For comparison codes
6801 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
6802 (expand_vec_cmp_expr): For comparison codes
6803 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
6804 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
6805 Add enum tree_code argument.
6806 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
6808 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
6809 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
6811 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
6812 NE_EXPR, attempt to use vcondeq_optab as fallback.
6813 * tree-vect-generic.c (expand_vector_comparison,
6814 expand_vector_divmod, expand_vector_condition): Adjust
6815 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
6816 * tree-vect-stmts.c (vectorizable_condition,
6817 vectorizable_comparison): Likewise.
6818 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
6819 check_bool_pattern, search_type_for_mask_1): Likewise.
6820 * expr.c (do_store_flag): Likewise.
6821 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
6822 @code{vcondeq@var{m}@var{n}}): Document.
6823 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
6826 2016-10-25 Jeff Law <law@redhat.com>
6828 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
6830 (v850_output_aligned_bss): Add missing break.
6832 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
6834 2016-10-25 Martin Liska <mliska@suse.cz>
6837 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
6838 statements as they can also contain possibly a freeing call.
6840 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
6841 Martin Liska <mliska@suse.cz>
6844 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
6845 * ipa-icf.c (sem_function::get_hash): Add target optimization
6848 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
6851 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
6852 Remove partial overlap check for shift by 1.
6853 (ashldi3_neon): Likewise.
6855 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
6857 * config/arm/constraints.md (Q constraint): Document its use for
6859 (Pf constraint): New constraint for relaxed, consume or relaxed memory
6861 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
6862 alternatives to allow any register when memory model matches Pf and
6863 thus lda is used, but only low registers otherwise. Use unpredicated
6864 output template for Thumb-1 targets.
6865 (atomic_store<mode>): Likewise for stl.
6866 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
6867 whose output template does not have predication.
6868 (arm_load_acquire_exclusive<mode>): Likewise.
6869 (arm_load_exclusivesi): Likewise.
6870 (arm_load_acquire_exclusivesi): Likewise.
6871 (arm_store_release_exclusive<mode>): Likewise.
6872 (arm_store_exclusive<mode>): Use unpredicated output template for
6875 2016-10-25 Jakub Jelinek <jakub@redhat.com>
6877 * internal-fn.def (LAUNDER): New internal function.
6878 * internal-fn.c (expand_LAUNDER): New function.
6880 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
6881 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
6883 New avr target pass to work around performance loss by PR fix.
6887 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
6888 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
6889 * config/avr/predicates.md (extend_operator): New.
6890 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
6891 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
6892 (make_avr_pass_casesi): New prototypes.
6893 * config/avr/avr.c (print-rtl.h): Include it.
6894 (pass_data avr_pass_data_casesi): Data for new pass.
6895 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
6896 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
6897 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
6898 (avr_optimize_casesi): New functions.
6900 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
6901 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
6905 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
6907 2016-10-24 Jakub Jelinek <jakub@redhat.com>
6909 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
6910 DW_AT_rvalue_reference attributes.
6912 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
6914 * doc/invoke.text (Wint-in-bool-context): Update documentation.
6915 * value-prof.c (stringop_block_profile): Fix a warning.
6917 2016-10-24 Martin Sebor <msebor@redhat.com>
6920 * builtins.c (string_length): New function.
6921 (c_strlen): Use string_length. Correctly handle wide strings.
6922 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
6924 (target_int_max): Call target_max_value.
6925 (format_result::knownrange): New data member.
6926 (fmtresult::fmtresult): Define default constructor.
6927 (format_integer): Use it and set format_result::knownrange.
6928 Handle global constants.
6929 (format_floating_max): Add third argument.
6930 (format_floating): Recompute maximum value for %a for each argument.
6931 (get_string_length): Use fmtresult default ctor.
6932 (format_string): Set format_result::knownrange.
6933 (format_directive): Check format_result::knownrange.
6934 (add_bytes): Same. Correct caret placement in diagnostics.
6935 (pass_sprintf_length::compute_format_length): Set
6936 format_result::knownrange.
6937 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
6939 2016-10-24 Jakub Jelinek <jakub@redhat.com>
6941 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
6942 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
6944 2016-10-24 Ximin Luo <infinity0@pwned.gg>
6947 * dwarf2out.c (file_table_relative_p): Remove.
6948 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
6949 also for absolute paths.
6950 * doc/tm.texi: Update.
6951 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
6952 * target.def (force_at_comp_dir): Remove hook.
6953 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
6955 2016-10-24 Richard Biener <rguenther@suse.de>
6957 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
6958 backedges when identifying the single predecessor to take
6959 conditional info from. Use SCEV to get at ranges for loop IVs.
6960 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
6961 avoid false warning.
6963 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
6966 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
6967 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
6968 (avr_address_tiny_absdata_p): New static function.
6969 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
6970 it to determine validity of constant addresses.
6971 (avr_attribute_table) [absdata]: New variable attribute...
6972 (avr_handle_absdata_attribute): ...and handler.
6973 (avr_decl_absdata_p): New static function.
6974 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
6975 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
6976 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
6978 2016-10-24 Richard Biener <rguenther@suse.de>
6980 PR tree-optimization/78076
6981 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
6982 also on the loop tree root.
6984 2016-10-24 Jakub Jelinek <jakub@redhat.com>
6986 * config/i386/i386.c (ix86_fold_builtin): Handle
6987 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
6988 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
6989 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
6990 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
6992 2016-10-24 Martin Liska <mliska@suse.cz>
6995 * opts.c (finish_options): Skip conditionally.
6997 2016-10-23 Martin Sebor <msebor@redhat.com>
7000 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
7001 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
7003 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7005 * config/sparc/sparc.md (cpu_feature): Minor tweak.
7006 (enabled): Likewise.
7007 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
7008 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
7009 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
7010 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
7011 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
7012 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
7014 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7016 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
7017 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
7019 2016-10-21 Andrew Pinski <apinski@cavium.com>
7021 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
7023 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
7024 implementer_id to unsigned char.
7025 Change part_no to unsigned int.
7026 (AARCH64_BIG_LITTLE): New define.
7027 (INVALID_IMP): New define.
7028 (INVALID_CORE): New define.
7029 (cpu_data): Change the last element's implementer_id and part_no to
7031 (valid_bL_string_p): Rewrite to ..
7032 (valid_bL_core_p): this for integers instead of strings.
7033 (parse_field): New function.
7034 (contains_string_p): Rewrite to ...
7035 (contains_core_p): this for integers and only for the part_no.
7036 (host_detect_local_cpu): Rewrite handling of implementation and
7037 par num to be integers; simplifying the code.
7039 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
7041 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
7042 value range for pointers in more cases.
7044 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7046 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
7047 Add extra argument to allow emitting the move immediate.
7048 Use add/sub with positive immediate.
7049 (aarch64_add_constant): Add inline function.
7050 (aarch64_add_sp): Likewise.
7051 (aarch64_sub_sp): Likewise.
7052 (aarch64_expand_prologue): Call aarch64_sub_sp.
7053 (aarch64_expand_epilogue): Call aarch64_add_sp.
7054 Decide when to leave out move.
7055 (aarch64_output_mi_thunk): Call aarch64_add_constant.
7057 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7059 * config/aarch64/aarch64.c (aarch64_layout_frame):
7060 Align FP callee-saves.
7062 2016-10-21 Jakub Jelinek <jakub@redhat.com>
7064 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
7065 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
7067 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
7068 _rdseed64_step): Likewise.
7069 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
7072 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
7073 and tree-ssanames.h.
7074 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
7075 with INTEGER_CST argument.
7076 (ix86_gimple_fold_builtin): New function.
7077 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7079 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
7080 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
7081 (ranges_table_allocated, ranges_table_in_use,
7082 ranges_by_label_allocated, ranges_by_label_in_use,
7083 RANGES_TABLE_INCREMENT): Removed.
7084 (add_ranges_num): Use vec_safe_push into ranges_table.
7085 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
7086 (output_ranges): Adjust for ranges_table and ranges_by_label
7087 conversion from arrays to vec.
7088 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
7089 conversion from arrays to vec.
7090 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
7091 ranges_table_in_use, ranges_by_label_allocated and
7092 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
7094 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
7095 if needed. Re-add origin_die variable and its initialization.
7097 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
7098 even for -fstack-reuse=none, or for volatile vars etc.
7100 2016-10-21 David Malcolm <dmalcolm@redhat.com>
7102 * print-rtl-function.c (flag_compact): Move extern decl to...
7103 * print-rtl.h (flag_compact): ...here.
7104 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
7105 (ASSERT_RTL_DUMP_EQ): New macro.
7106 (selftest::test_dumping_regs): New function.
7107 (selftest::test_dumping_insns): New function.
7108 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
7110 (selftest::rtl_tests_c_tests): Call the new test functions.
7112 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7114 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
7115 (outgoing_edges_match): Likewise.
7116 (try_crossjump_to_edge): Likewise.
7117 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7118 (rtl_tidy_fallthru_edge): Likewise.
7119 * rtl.h (tablejump_p): Adjust prototype.
7120 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
7122 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7124 * rtl.h (label_ref_label): New function.
7125 (set_label_ref_label): New function.
7126 (LABEL_REF_LABEL): Delete.
7127 * alias.c (rtx_equal_for_memref_p): Adjust.
7128 * cfgbuild.c (make_edges): Likewise.
7129 (purge_dead_tablejump_edges): Likewise.
7130 * cfgexpand.c (convert_debug_memory_address): Likewise.
7131 * cfgrtl.c (patch_jump_insn): Likewise.
7132 * combine.c (distribute_notes): Likewise.
7133 * cse.c (hash_rtx_cb): Likewise.
7134 (exp_equiv_p): Likewise.
7135 (fold_rtx): Likewise.
7136 (check_for_label_ref): Likewise.
7137 * cselib.c (rtx_equal_for_cselib_1): Likewise.
7138 (cselib_hash_rtx): Likewise.
7139 * emit-rtl.c (mark_label_nuses): Likewise.
7140 * explow.c (convert_memory_address_addr_space_1): Likewise.
7141 * final.c (output_asm_label): Likewise.
7142 (output_addr_const): Likewise.
7143 * gcse.c (add_label_notes): Likewise.
7144 * genconfig.c (walk_insn_part): Likewise.
7145 * genrecog.c (validate_pattern): Likewise.
7146 * ifcvt.c (cond_exec_get_condition): Likewise.
7147 (noce_emit_store_flag): Likewise.
7148 (noce_get_alt_condition): Likewise.
7149 (noce_get_condition): Likewise.
7150 * jump.c (maybe_propagate_label_ref): Likewise.
7151 (mark_jump_label_1): Likewise.
7152 (redirect_exp_1): Likewise.
7153 (rtx_renumbered_equal_p): Likewise.
7154 * lra-constraints.c (operands_match_p): Likewise.
7155 * print-rtl.c (print_value): Likewise.
7156 * reload.c (find_reloads): Likewise.
7157 * reload1.c (set_label_offsets): Likewise.
7158 * reorg.c (get_branch_condition): Likewise.
7159 * rtl-tests.c (test_uncond_jump): Likewise.
7160 * rtl.c (rtx_equal_p_cb): Likewise.
7161 (rtx_equal_p): Likewise.
7162 * rtlanal.c (reg_mentioned_p): Likewise.
7163 (rtx_referenced_p): Likewise.
7164 (get_condition): Likewise.
7165 * varasm.c (const_hash_1): Likewise.
7166 (compare_constant): Likewise.
7167 (const_rtx_hash_1): Likewise.
7168 (output_constant_pool_1): Likewise.
7170 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7173 * reload.c (find_valid_class_1): Allow regclass if atleast one
7174 regno in regclass is ok. Compute and use rclass size based on
7175 actually available regnos for mode in rclass.
7177 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
7179 * config/sparc/sparc-modes.def (CCV): New.
7181 * config/sparc/predicates.md (v_comparison_operator): New.
7182 (icc_comparison_operator): Add support for CCV/CCXV.
7183 (xcc_comparison_operator): Likewise.
7184 * config/sparc/sparc.c (output_cbranch): Likewise.
7185 (sparc_print_operand): Likewise.
7186 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
7187 (uaddvdi4): New expander.
7188 (addvdi4): Likewise.
7189 (uaddvdi4_sp32): New instruction.
7190 (addvdi4_sp32): Likewise.
7191 (uaddvsi4): New expander.
7192 (addvsi4): Likewise.
7193 (cmp_ccc_plus_sltu_set): New instruction.
7194 (cmp_ccv_plus): Likewise.
7195 (cmp_ccxv_plus): Likewise.
7196 (cmp_ccv_plus_set): Likewise.
7197 (cmp_ccxv_plus_set): Likewise.
7198 (cmp_ccv_plus_sltu_set): Likewise.
7199 (uaddvdi4): New expander.
7200 (subvdi4): Likewise.
7201 (usubdi4_sp32): New instruction.
7202 (subvdi4_sp32): Likewise.
7203 (usubvsi4): New expander.
7204 (subvsi4): Likewise.
7205 (cmpsi_minus_sltu_set): New instruction.
7206 (cmp_ccv_minus): Likewise.
7207 (cmp_ccxv_minus): Likewise.
7208 (cmp_ccv_minus_set): Likewise.
7209 (cmp_ccxv_minus_set): Likewise.
7210 (cmp_ccv_minus_sltu_set): Likewise.
7211 (unegvdi3): New expander.
7212 (negvdi3): Likewise.
7213 (unegdi3_sp32): New instruction.
7214 (negvdi3_sp32): Likewise.
7215 (unegvsi3): New expander.
7216 (negvsi3): Likewise.
7217 (cmp_ccc_neg_sltu_set): New instruction.
7218 (cmp_ccv_neg): Likewise.
7219 (cmp_ccxv_neg): Likewise.
7220 (cmp_ccv_neg_set): Likewise.
7221 (cmp_ccxv_neg_set): Likewise.
7222 (cmp_ccv_neg_sltu_set): Likewise.
7224 * tree-ssa-loop-split.c: Remove trailing spaces.
7225 * match.pd: Likewise.
7227 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7229 PR rtl-optimization/78038
7230 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
7231 be deduced to set REG through the RTL structure.
7232 (make_defs_and_copies_lists): Return false on a failing get_defs call.
7234 2016-10-21 Richard Biener <rguenther@suse.de>
7236 PR tree-optimization/78051
7237 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
7238 and mark replaced if folding did something.
7240 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
7242 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
7243 and "protected" in visibility types.
7244 (rs6000_xcoff_declare_function_name): Fix formatting.
7245 (rs6000_xcoff_declare_object_name): Fix formatting.
7247 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
7249 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
7250 and IX86_BUILTIN_HUGE_VALQ here ...
7251 (ix86_expand_builtin): ... not here.
7253 2016-10-20 Jakub Jelinek <jakub@redhat.com>
7255 * doc/gty.texi (for_user): Use @item next to @findex.
7257 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
7260 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
7261 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
7262 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
7263 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
7264 __builtin_ia32_lzcnt_u16.
7265 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
7266 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
7267 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
7268 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
7269 (bmi_tzcnt_<mode>): New expander.
7270 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
7271 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
7272 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
7273 (lzcnt_<mode>): New expander.
7274 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
7275 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
7276 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
7277 (UINT64_FTYPE_UINT64): New.
7278 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
7279 (__builtin_ia32_lzcnt_u16): New description.
7280 (__builtin_ia32_lzcnt_u32): Ditto.
7281 (__builtin_ia32_lzcnt_u64): Ditto.
7282 (__builtin_ctzs): Remove description.
7283 (__builtin_ia32_tzcnt_u16): New description.
7284 (__builtin_ia32_tzcnt_u32): Ditto.
7285 (__builtin_ia32_tzcnt_u64): Ditto.
7286 * config/i386/i386.c (ix86_expand_args_builtin): Handle
7287 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
7289 2016-10-20 Martin Liska <mliska@suse.cz>
7292 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
7293 comparison with STMT_UID_NOT_IN_RANGE.
7294 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
7297 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
7299 * compare-elim.c (conforming_compare): Accept UNSPECs.
7300 (find_comparison_dom_walker::before_dom_children): Deal with
7301 instructions both using and killing the flags register.
7302 (equivalent_reg_at_start): New function extracted from...
7303 (try_eliminate_compare): ...here. Use it and add support for
7304 registers and UNSPECs as second operand of the compare.
7305 * config/visium/visium-modes.def (CCV): New.
7306 * config/visium/predicates.md (visium_v_comparison_operator): New.
7307 (visium_branch_operator): Deal with CCV mode.
7308 * config/visium/visium.c (visium_select_cc_mode): Likewise.
7309 (output_cbranch): Likewise.
7310 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
7311 (uaddv<mode>4): New expander.
7312 (addv<mode>4): Likewise.
7313 (add<mode>3_insn_set_carry): New instruction.
7314 (add<mode>3_insn_set_overflow): Likewise.
7315 (addsi3_insn_set_overflow): Likewise.
7316 (usubv<mode>4): New expander.
7317 (subv<mode>4): Likewise.
7318 (sub<mode>3_insn_set_carry): New instruction.
7319 (sub<mode>3_insn_set_overflow): Likewise.
7320 (subsi3_insn_set_overflow): Likewise.
7321 (unegv<mode>3): New expander.
7322 (negv<mode>3): Likewise.
7323 (neg<mode>2_insn_set_overflow): New instruction.
7324 (addv_tst<mode>): Likewise.
7325 (subv_tst<mode>): Likewise.
7326 (negv_tst<mode>): Likewise.
7327 (cbranch<mode>4_addv_insn): New splitter and instruction.
7328 (cbranch<mode>4_subv_insn): Likewise.
7329 (cbranch<mode>4_negv_insn): Likewise.
7331 2016-10-20 Richard Biener <rguenther@suse.de>
7333 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
7334 Handle decls possibly not bound.
7335 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
7336 nothing_id for decls that might not be bound if we are interested
7338 (get_constraint_for_component_ref): Deal with that.
7340 2016-10-20 Michael Matz <matz@suse.de>
7343 * common.opt (-fsplit-loops): New flag.
7344 * passes.def (pass_loop_split): Add.
7345 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
7346 (enable_fdo_optimizations): Add loop splitting.
7347 * timevar.def (TV_LOOP_SPLIT): Add.
7348 * tree-pass.h (make_pass_loop_split): Declare.
7349 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
7350 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
7351 * tree-ssa-loop-split.c: New file.
7352 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
7353 * doc/invoke.texi (fsplit-loops): Document.
7354 * doc/passes.texi (Loop optimization): Add paragraph about loop
7357 2016-10-20 Richard Biener <rguenther@suse.de>
7359 * cgraphunit.c (analyze_functions): Set node->definition to
7360 false to signal symbol removal to debug_hooks->late_global_decl.
7361 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
7362 WPA signal symbol removal to the debuginfo machinery.
7363 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
7364 using early_finised to guard the we're called for symbol
7365 removal case look at the symtabs definition flag.
7366 (gen_variable_die): Remove redundant check.
7368 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7370 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
7372 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7374 PR tree-optimization/53979
7375 * match.pd ((a ^ b) | a -> a | b): New pattern.
7377 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
7379 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
7380 config/pa/pa64-hpux-lib.h.
7381 (PA_CRTBEGIN_HACK): Likewise.
7382 (DTOR_LIST_BEGIN): Likewise.
7384 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
7386 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
7387 register only if "in" and "out" are different registers.
7389 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
7391 * omp-low.c (pass_oacc_device_lower::gate): New method.
7392 (execute): Always call execute_oacc_device_lower.
7394 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7396 PR tree-optimization/77916
7397 PR tree-optimization/77937
7398 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
7400 (insert_initializers): Requirement of initializer for -1 should be
7401 based on pointer-typedness of the candidate basis.
7403 2016-10-19 Bin Cheng <bin.cheng@arm.com>
7405 PR tree-optimization/78005
7406 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
7407 upper (included) bound for niters of prolog loop.
7408 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
7409 Compute niters of scalar loop above which vectorized loop is
7410 preferred, as well as the upper (included) bound for the niters.
7411 (vect_do_peeling): Record niter bound for loops accordingly.
7413 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
7416 * tree-core.h (enum tree_index): Put the complex types after their
7418 * tree-streamer.c (verify_common_node_recorded): New function.
7419 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
7421 2016-10-19 Martin Liska <mliska@suse.cz>
7423 * cgraph.h (cgraph_edge::binds_to_current_def_p):
7424 Replace NULL with false as a return value.
7426 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
7428 PR tree-optimization/78024
7429 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
7430 don't clear BB_VISITED after processing.
7432 2016-10-19 Richard Biener <rguenther@suse.de>
7434 * domwalk.c (dom_walker::walk): Use RPO order.
7436 2016-10-19 Richard Biener <rguenther@suse.de>
7438 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
7440 (evrp_dom_walker::~evrp_dom_walker): Free it.
7441 (evrp_dom_walker::stmts_to_remove): Add.
7442 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
7443 whose output we fully propagate for removal. Propagate
7444 into BB destination PHI arguments.
7445 (execute_early_vrp): Remove queued stmts. Dump value ranges
7446 before stmt removal.
7448 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
7450 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
7451 * passes.def: Add two instances of pass_walloca.
7452 * tree-pass.h (make_pass_walloca): New.
7453 * gimple-ssa-warn-alloca.c: New file.
7454 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
7455 -Wvla-larger-than= options.
7457 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
7459 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
7460 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
7462 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
7464 * config/rs6000/altivec.h (vec_xl_len): New macro.
7465 (vec_xst_len): New macro.
7466 (vec_cmpnez): New macro.
7467 (vec_cntlz_lsbb): New macro.
7468 (vec_cnttz_lsbb): New macro.
7469 (vec_xlx): New macro.
7470 (vec_xrx): New macro.
7471 (vec_all_nez): New C++ predicate template.
7472 (vec_any_eqz): New C++ predicate template.
7473 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
7474 conditional compilation.
7475 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
7476 conditional compilation.
7477 (vec_all_nez): New macro.
7478 (vec_any_eqz): New macro.
7479 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
7481 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
7483 * config/rs6000/vector.md (VI): Moved this mode iterator
7484 definition from altivec.md to vector.md.
7485 (UNSPEC_NEZ_P): New value.
7486 (vector_ne_<mode>_p): New expansion for implementation of
7487 vec_all_ne and vec_any_eq built-in functions.
7488 (vector_nez_<mode>_p): New expansion for implementation of
7489 vec_all_nez and vec_any_eqz built-in functions.
7490 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
7491 and vec_any_eq built-in function.
7492 (cr6_test_for_zero): New commentary to explain this expansion.
7493 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
7494 (cr6_test_for_lt): New commentary to explain this expansion.
7495 (cr6_test_for_lt_reverse): New commentary to explain this
7497 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7498 overloaded function prototypes for vec_all_ne, vec_all_nez,
7499 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
7500 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
7502 (altivec_resolve_overloaded_builtin): Modify the handling of
7503 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
7504 the compiler is configured to support TARGET_P9_VECTOR.
7505 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
7506 to explain the special processing that is given to predicate
7507 built-ins introduced using this macro.
7508 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
7509 the special processing given to predicate built-ins introduced
7511 (BU_VSX_P): Likewise.
7512 (BU_P8V_AV_P): Likewise.
7513 (BU_P9V_AV_P): Likewise.
7514 (BU_P9V_AV_X): New macro.
7515 (BU_P9V_64BIT_AV_X): New macro.
7516 (BU_P9V_VSX_3): New macro.
7517 (BU_P9V_OVERLOAD_P): New macro.
7518 (LXVL): New BU_P9V_64BIT_VSX_2.
7519 (VEXTUBLX): New BU_P9V_AV_2.
7520 (VEXTUBRX): Likewise.
7521 (VEXTUHLX): Likewise.
7522 (VEXTUHRX): Likewise.
7523 (VEXTUWLX): Likewise.
7524 (VEXTUWRX): Likewise.
7525 (STXVL): New BU_P9V_64BIT_AV_X.
7526 (VCLZLSBB): New BU_P9V_AV_1.
7527 (VCTZLSBB): Likewise.
7528 (CMPNEB): New BU_P9V_AV_2.
7533 (VCMPNEB_P): New BU_P9V_AV_P.
7534 (VCMPNEH_P): Likewise.
7535 (VCMPNEW_P): Likewise.
7536 (VCMPNED_P): Likewise.
7537 (VCMPNEFP_P): Likewise.
7538 (VCMPNEDP_P): Likewise.
7539 (CMPNEZB): New BU_P9V_AV_2.
7540 (CMPNEZH): Likewise.
7541 (CMPNEZW): Likewise.
7542 (VCMPNEZB_P): New BU_P9V_AV_P.
7543 (VCMPNEZH_P): Likewise.
7544 (VCMPNEZW_P): Likewise.
7545 (LXVL): New BU_P9V_OVERLOAD_2.
7546 (STXVL): New BU_P9V_OVERLOAD_3.
7547 (VEXTULX): New BU_P9V_OVERLOAD_2.
7548 (VEXTURX): Likewise.
7550 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
7551 (VCMPNE_P): Likewise.
7552 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
7553 (VCTZLSBB): Likewise.
7554 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
7555 comment to explain mode used for scratch register.
7556 (altivec_expand_stxvl_builtin): New function.
7557 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
7558 (altivec_init_builtins): Add initialized variable
7559 void_ftype_v16qi_pvoid_long and use this type to define the
7560 built-in function __builtin_altivec_stxvl.
7561 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
7562 (UNSPEC_STXVL): New value.
7563 (UNSPEC_VCLZLSBB): New value.
7564 (UNSPEC_VCTZLSBB): New value.
7565 (UNSPEC_VEXTUBLX): New value.
7566 (UNSPEC_VEXTUHLX): New value.
7567 (UNSPEC_VEXTUWLX): New value.
7568 (UNSPEC_VEXTUBRX): New value.
7569 (UNSPEC_VEXTUHRX): New value.
7570 (UNSPEC_VEXTUWRX): New value.
7571 (UNSPEC_VCMPNEB): New value.
7572 (UNSPEC_VCMPNEZB): New value.
7573 (UNSPEC_VCMPNEH): New value.
7574 (UNSPEC_VCMPNEZH): New value.
7575 (UNSPEC_VCMPNEW): New value.
7576 (UNSPEC_VCMPNEZW): New value.
7577 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
7578 vector of integer modes.
7579 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
7580 vector of float or double modes.
7581 (*vector_nez_<mode>_p): New insn for vector test all not equal or
7583 (lxvl): New expand for load VSX vector with length.
7584 (*lxvl): New insn for load VSX vector with length.
7585 (stxvl): New expand for store VSX vector with length.
7586 (*stxvl): New insn for store VSX vector with length.
7587 (vcmpneb): New insn for vector of byte compare not equal.
7588 (vcmpnezb): New insn for vector of byte compare not equal or zero.
7589 (vcmpneh): New insn for vector of half word compare not equal.
7590 (vcmpnezh): New insn for vector of half word compare not equal or
7592 (vcmpnew): New insn for vector of word compare not equal.
7593 (vcmpne<VSs>): New insn for vector of float or double compare not
7595 (vcmpnezw): New insn for vector of word compare not equal or zero.
7596 (vclzlsbb): New insn for vector count leading zero
7597 least-significant bits byte.
7598 (vctzlsbb): New insn for vector count trailing zero least
7599 signficant bits byte.
7600 (vextublx): New insn for vector extract unsigned byte left
7602 (vextubrx): New insn for vector extract unsigned byte right
7604 (vextuhlx): New insn for vector extract unsigned half word left
7606 (vextuhrx): New insn for vector extract unsigned half word right
7608 (vextuwlx): New insn for vector extract unsigned word left
7610 (vextuwrx): New insn for vector extract unsigned word right
7612 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
7613 clarify intent of this constant.
7614 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
7615 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
7616 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
7617 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
7618 and vec_xrx functions.
7620 2016-10-18 Andrew Pinski <apinski@cavium.com>
7623 * predict.c (is_exit_with_zero_arg): New function.
7624 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
7627 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
7630 * config/i386/i386.c (legitimize_tls_address)
7631 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
7632 convert dest to Pmode if different than Pmode.
7634 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7636 PR tree-optimization/77916
7637 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
7638 stopgap fix, as pointers with -1 increment are still broken.
7640 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
7642 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
7643 mapping class decoration from here...
7644 (rs6000_xcoff_encode_section): ...to here.
7646 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
7647 if shrink-wrapping and optimizing for speed.
7649 2016-10-18 Richard Biener <rguenther@suse.de>
7651 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
7652 not visited but non-executable predecessors. Return taken edge.
7653 Simplify conditions and refactor propagation vs. folding step.
7655 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
7657 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
7658 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
7659 (rs6000_get_separate_components): Assert we do not have those
7660 strategies selected.
7662 2016-10-18 Richard Biener <rguenther@suse.de>
7664 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
7665 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
7667 (substitute_and_fold_dom_walker): Adjust constructor.
7668 (substitute_and_fold_dom_walker::before_dom_children): Remove
7669 do_dce flag and handling (always true).
7670 (substitute_and_fold): Likewise.
7671 * tree-vrp.c (vrp_finalize): Adjust.
7672 (execute_early_vrp): Remove final BB_VISITED clearing.
7673 * tree-ssa-ccp.c (ccp_finalize): Adjust.
7674 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7675 * ira.c (ira): Call clear_bb_flags.
7677 2016-10-18 Richard Biener <rguenther@suse.de>
7679 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
7680 get at the operand to look at with TREE_OPERAND for generic
7683 2016-10-18 David Malcolm <dmalcolm@redhat.com>
7685 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
7687 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
7688 (write_test_expr): Use rtx_reader_ptr for calls to
7690 (write_attr_value): Likewise.
7691 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
7692 call to print_md_ptr_loc.
7693 (write_one_condition): Likewise for calls to print_c_condition.
7694 * genconstants.c: Include "statistics.h" and "vec.h".
7695 (main): Update for conversion to member functions.
7696 * genemit.c (emit_c_code): Use rtx_reader_ptr for
7697 call to print_md_ptr_loc.
7698 * genenums.c: Include "statistics.h" and "vec.h".
7699 (main): Update for conversion of traverse_enum_types to a method.
7700 * genmddeps.c: Include "statistics.h" and "vec.h".
7701 * genoutput.c (process_template): Use rtx_reader_ptr for call to
7703 * genpreds.c (write_predicate_subfunction): Likewise.
7704 (write_predicate_expr): Likewise for calls to print_c_condition.
7705 * genrecog.c (print_test): Likewise.
7706 * gensupport.c (process_rtx): Likewise for calls to
7707 copy_md_ptr_loc and join_c_conditions.
7708 (alter_test_for_insn): Likewise for call to join_c_conditions.
7709 (process_substs_on_one_elem): Likewise.
7710 (gen_mnemonic_setattr): Update for move of string_obstack to a
7711 field of rtx_reader.
7712 (mnemonic_htab_callback): Likewise. Fix formatting.
7713 (gen_mnemonic_attr): Likewise.
7714 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
7715 to print_c_condition.
7716 * read-md.c: Include "statistics.h" and "vec.h".
7717 (string_obstack): Convert this global to field "m_string_obstack"
7718 of class rtx_reader.
7719 (ptr_locs): Likewise, as "m_ptr_locs".
7720 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
7721 (joined_conditions): Likewise, as "m_joined_conditions".
7722 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
7723 (md_constants): Likewise, as "m_md_constants".
7724 (enum_types): Likewise, as "m_enum_types".
7725 (set_md_ptr_loc): Convert to...
7726 (rtx_reader::set_md_ptr_loc): ...member function.
7727 (get_md_ptr_loc): Convert to...
7728 (rtx_reader::get_md_ptr_loc): ...member function.
7729 (copy_md_ptr_loc): Convert to...
7730 (rtx_reader::copy_md_ptr_loc): ...member function.
7731 (fprint_md_ptr_loc): Convert to...
7732 (rtx_reader::fprint_md_ptr_loc): ...member function.
7733 (print_md_ptr_loc): Convert to...
7734 (rtx_reader::print_md_ptr_loc): ...member function.
7735 (join_c_conditions): Convert to...
7736 (rtx_reader::join_c_conditions): ...member function.
7737 (fprint_c_condition): Convert to...
7738 (rtx_reader::fprint_c_condition): ...member function.
7739 (print_c_condition): Convert to...
7740 (rtx_reader::print_c_condition): ...member function.
7741 (read_name): Convert to...
7742 (rtx_reader::read_name): ...member function.
7743 (read_escape): Convert to...
7744 (rtx_reader::read_escape): ...member function.
7745 (read_quoted_string): Convert to...
7746 (rtx_reader::read_quoted_string): ...member function.
7747 (read_braced_string): Convert to...
7748 (rtx_reader::read_braced_string): ...member function.
7749 (read_string): Convert to...
7750 (rtx_reader::read_string): ...member function.
7751 (read_skip_construct): Convert to...
7752 (rtx_reader::read_skip_construct): ...member function.
7753 (handle_constants): Convert to...
7754 (rtx_reader::handle_constants): ...member function.
7755 (traverse_md_constants): Convert to...
7756 (rtx_reader::traverse_md_constants): ...member function.
7757 (handle_enum): Convert to...
7758 (rtx_reader::handle_enum): ...member function.
7759 (lookup_enum_type): Convert to...
7760 (rtx_reader::lookup_enum_type): ...member function.
7761 (traverse_enum_types): Convert to...
7762 (rtx_reader::traverse_enum_types): ...member function.
7763 (rtx_reader::rtx_reader): Move initializations
7764 of various former global data from rtx_reader::read_md_files to
7765 here, as fields, along with the call to unlock_std_streams.
7766 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
7768 (rtx_reader::read_md_files): Move initializations of various
7769 global data from here to the ctor.
7770 * read-md.h (read_name): Convert to...
7771 (rtx_reader::read_name): ...member function.
7772 (rtx_reader::read_escape): New method decl.
7773 (read_quoted_string): Convert to...
7774 (rtx_reader::read_quoted_string): ...member function.
7775 (rtx_reader::read_braced_string): New method decl.
7776 (read_string): Convert to...
7777 (rtx_reader::read_string): ...member function.
7778 (rtx_reader::read_skip_construct): New method decl.
7779 (rtx_reader::set_md_ptr_loc): New method decl.
7780 (rtx_reader::get_md_ptr_loc): New method decl.
7781 (copy_md_ptr_loc): Convert to...
7782 (rtx_reader::copy_md_ptr_loc): ...member function.
7783 (fprint_md_ptr_loc): Convert to...
7784 (rtx_reader::fprint_md_ptr_loc): ...member function.
7785 (print_md_ptr_loc): Convert to...
7786 (rtx_reader::print_md_ptr_loc): ...member function.
7787 (rtx_reader::lookup_enum_type): New method decl.
7788 (rtx_reader::traverse_enum_types): New method decl.
7789 (rtx_reader::handle_constants): New method decl.
7790 (traverse_md_constants): Convert to...
7791 (rtx_reader::traverse_md_constants): ...member function.
7792 (rtx_reader::handle_enum): New method decl.
7793 (rtx_reader::join_c_conditions): New method decl.
7794 (fprint_c_condition): Convert to...
7795 (rtx_reader::fprint_c_condition): ...member function.
7796 (print_c_condition): Convert to...
7797 (rtx_reader::print_c_condition): ...member function.
7798 (rtx_reader::apply_iterator_to_string): New method decl.
7799 (rtx_reader::copy_rtx_for_iterators): New method decl.
7800 (rtx_reader::read_conditions): New method decl.
7801 (rtx_reader::record_potential_iterator_use): New method decl.
7802 (rtx_reader::read_mapping): New method decl.
7803 (rtx_reader::read_rtx): New method decl.
7804 (rtx_reader::read_rtx_code): New method decl.
7805 (rtx_reader::read_rtx_operand): New method decl.
7806 (rtx_reader::read_nested_rtx): New method decl.
7807 (rtx_reader::read_rtx_variadic): New method decl.
7808 (rtx_reader::get_string_obstack): New method.
7809 (rtx_reader::get_md_constants): New method.
7810 (string_obstack): Convert global variable decl to...
7811 (rtx_reader::m_string_obstack): ...this new field.
7812 (rtx_reader::m_ptr_locs): New field.
7813 (rtx_reader::m_ptr_loc_obstack): New field.
7814 (rtx_reader::m_joined_conditions): New field.
7815 (rtx_reader::m_joined_conditions_obstack): New field.
7816 (rtx_reader::m_md_constants): New field.
7817 (rtx_reader::m_enum_types): New field.
7818 * read-rtl.c (apply_iterator_to_string): Convert to...
7819 (rtx_reader::apply_iterator_to_string): ...member function.
7820 (copy_rtx_for_iterators): Convert to...
7821 (rtx_reader::copy_rtx_for_iterators): ...member function.
7822 (add_condition_to_string): Use rtx_reader_ptr for
7823 calls join_c_conditions.
7824 (apply_iterators): Use rtx_reader_ptr for calls to
7825 join_c_conditions and copy_rtx_for_iterators.
7826 (read_conditions): Convert to...
7827 (rtx_reader::read_conditions): ...member function.
7828 (record_potential_iterator_use): Convert to...
7829 (rtx_reader::record_potential_iterator_use): ...member function.
7830 (read_mapping): Convert to...
7831 (rtx_reader::read_mapping): ...member function.
7832 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
7833 (read_rtx): Convert to...
7834 (rtx_reader::read_rtx): ...member function.
7835 (read_rtx_code): Convert to...
7836 (rtx_reader::read_rtx_code): ...member function.
7837 (read_rtx_operand): Convert to...
7838 (rtx_reader::read_rtx_operand): ...member function. Update for move
7839 of string_obstack to a field.
7840 (read_nested_rtx): Convert to..
7841 (rtx_reader::read_nested_rtx): ...member function.
7842 (read_rtx_variadic): Convert to..
7843 (rtx_reader::read_rtx_variadic): ...member function.
7845 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
7847 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
7849 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
7851 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
7852 for pointer type too.
7853 (ipcp_update_vr): set_ptr_nonnull for pointer.
7855 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
7857 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
7858 pt_solution_singleton_p.
7859 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
7860 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
7861 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
7862 pointer nonnull computed by VRP.
7863 Also Conservatively set pt.null to 1.
7864 (pt_solution_reset): Conservatively set pt.null to 1.
7865 (pt_solution_singleton_or_null_p): Renamed from
7866 pt_solution_singleton_p.
7867 * tree-ssanames.h (set_ptr_nonnull): Declare.
7868 (get_ptr_nonnull): Likewise.
7869 * tree-ssanames.c (set_ptr_nonnull): New.
7870 (get_ptr_nonnull): Likewise.
7871 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
7872 (evrp_dom_walker::before_dom_children): Likewise.
7874 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
7876 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7877 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7878 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7879 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7880 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
7881 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7882 (rs6000_option_override_internal): Clear it if ABI_AIX.
7883 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7884 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
7886 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7888 * gimple-ssa-strength-reduction.c (record_increment): Remove
7891 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
7893 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
7894 that the result is non-zero if it is true.
7895 (maybe_expand_shift): New wrapper around expand_shift_1.
7896 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
7898 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7900 PR tree-optimization/77916
7901 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
7902 Don't allow a MINUS_EXPR for pointer arithmetic for either known
7904 (record_increment): Increments of -1 for unknown strides just use
7905 a multiply initializer like other negative values.
7906 (analyze_increments): Remove stopgap solution for -1 increment
7907 applied to pointer arithmetic.
7909 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
7911 * dominance.c (dom_info::dom_info): Add new constructor for region
7912 which is vector of basic blocks.
7913 (dom_init): New method to initialize members common for both
7915 (dom_info::dom_info): Invoke dom_init for partial initialization.
7916 (dom_info::get_idom): Add check to corner cases on basic blocks which
7918 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
7919 to detect unreachable bbs.
7920 (dom_info::calc_idoms): Likewise.
7921 (compute_dom_fast_query_in_region): New function.
7922 (calculate_dominance_info_for_region): Likewise.
7923 (free_dominance_info_for_region): Likewise.
7924 * dominance.h: Add prototypes for introduced region-based functions
7925 * tree-if-conv.c (build_region): New function.
7926 (if_convertible_loop_p_1): Invoke local version of post-dominators
7927 calculation before basic block predication with subsequent freeing
7928 post-dominator info.
7929 (tree_if_conversion): Remove free of post-dominator info
7930 (pass_if_conversion::execute): Delete detection of infinite loops
7931 and fake edges to exit block since post-dominator calculation is
7932 performed per if-converted loop only.
7934 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
7937 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
7938 register explicitly.
7939 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
7940 optimizing for size.
7942 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7944 * config/aarch64/aarch64.c: Delete inclusion of
7945 cortex-a57-fma-steering.h.
7946 (aarch64_override_options): Delete call
7947 to aarch64_register_fma_steering.
7948 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
7949 * config/aarch64/cortex-a57-fma-steering.h: Delete.
7950 * config/aarch64/aarch64-passes.def: New file.
7951 * config/aarch64/cortex-a57-fma-steering.c
7952 (aarch64_register_fma_steering): Delete definition.
7953 (make_pass_fma_steering): Remove static qualifier.
7954 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
7955 (cortex-a57-fma-steering.o): Remove dependency on
7956 cortex-a57-fma-steering.h.
7958 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
7960 * explow.c (validize_mem): Do not modify the argument in-place.
7962 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
7964 * tree-streamer.c (record_common_node): Explicitly list expected
7967 2016-10-17 Richard Biener <rguenther@suse.de>
7969 PR tree-optimization/77988
7970 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
7972 2016-10-17 Marek Polacek <polacek@redhat.com>
7974 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
7976 2016-10-17 Richard Biener <rguenther@suse.de>
7978 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
7981 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7983 PR tree-optimization/71636
7984 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
7986 2016-10-17 Richard Biener <rguenther@suse.de>
7988 * gimplify.c (gimplify_function_tree): Do not move the outer
7991 2016-10-17 Jakub Jelinek <jakub@redhat.com>
7993 * langhooks.h (struct lang_hooks_for_decls): Remove
7994 function_decl_explicit_p, function_decl_deleted_p and
7995 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
7996 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
7997 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
7998 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
7999 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
8000 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
8001 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8002 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
8003 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
8004 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
8005 * langhooks.c (lhd_decl_dwarf_attribute): New function.
8006 * dwarf2out.c (gen_subprogram_die): Use
8007 lang_hooks.decls.decl_dwarf_attribute instead of
8008 lang_hooks.decls.function_decl_*.
8010 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8014 * common.opt (-ftrampolines): New option.
8015 * doc/invoke.texi (Code Gen Options): Document it.
8016 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
8017 * doc/tm.texi: Regenerate.
8018 * builtins.def: Add init_descriptor and adjust_descriptor.
8019 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
8020 on platforms with descriptors.
8021 (expand_builtin_init_descriptor): New function.
8022 (expand_builtin_adjust_descriptor): Likewise.
8023 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
8024 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
8025 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
8026 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
8027 Set STATIC_CHAIN_REG_P on the static chain register, if any.
8028 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
8029 (expand_call): Likewise. Move around call to prepare_call_address
8030 and pass all flags to it.
8031 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
8032 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
8033 (gimple_call_set_by_descriptor): New setter.
8034 (gimple_call_by_descriptor_p): New getter.
8035 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
8036 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
8037 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
8038 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8039 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
8040 * rtl.h (STATIC_CHAIN_REG_P): New macro.
8041 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
8042 * target.def (custom_function_descriptors): New POD hook.
8043 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
8044 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
8045 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
8046 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
8047 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
8048 (build_common_builtin_nodes): Initialize init_descriptor and
8050 * tree-nested.c: Include target.h.
8051 (struct nesting_info): Add 'any_descr_created' field.
8052 (get_descriptor_type): New function.
8053 (lookup_element_for_decl): New function extracted from...
8054 (create_field_for_decl): Likewise.
8055 (lookup_tramp_for_decl): ...here. Adjust.
8056 (lookup_descr_for_decl): New function.
8057 (convert_tramp_reference_op): Deal with descriptors.
8058 (build_init_call_stmt): New function extracted from...
8059 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
8060 * defaults.h (FUNCTION_ALIGNMENT): Define.
8061 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
8062 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8063 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8064 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
8065 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8067 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8069 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
8070 constants in CONST_VECTORs.
8072 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8074 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
8075 register as destination of bmask.
8076 (vector_init_bshuffle): Likewise.
8077 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
8078 (bmaskdi_vis): Enable only in 64-bit mode.
8080 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8082 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
8083 make LR a separately shrink-wrapped component unless savres_strategy
8084 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
8085 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
8086 wrapping when not both {SAVE,REST}_INLINE_GPRS.
8088 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8090 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
8091 and keep looping on failure.
8093 2016-10-14 David Malcolm <dmalcolm@redhat.com>
8095 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
8097 (print_rtx_function): Update example in comment for...
8098 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
8099 non-virtual pseudos with a '%' sigil followed by the regno, offset
8100 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
8101 pseudo is dumped as "%0".
8103 2016-10-14 Jakub Jelinek <jakub@redhat.com>
8106 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
8109 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
8111 * config/sparc/sparc-passes.def: New file.
8112 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
8113 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
8114 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
8116 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8118 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
8119 loop peel to loops with exit test at the beginning.
8121 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8123 PR rtl-optimization/68212
8124 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
8125 frequency when computing scale factor for peeled copies.
8126 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
8127 values for switch/peel blocks/edges.
8129 2016-10-14 Pedro Alves <palves@redhat.com>
8131 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
8133 2016-10-14 Catherine Moore <clm@codesourcery.com>
8135 * config/mips/mips.c (mips_prepare_pch_save): Initialize
8136 micromips_globals to zero.
8138 2016-10-14 Richard Biener <rguenther@suse.de>
8140 PR tree-optimization/77979
8141 * tree-vrp.c (compare_name_with_value): Handle released SSA names
8142 in the equivalency sets.
8143 (compare_names): Likewise.
8145 2016-10-14 Martin Liska <mliska@suse.cz>
8147 * builtins.h(target_char_cst_p): Declare the function.
8148 * builtins.c (fold_builtin_memchr): Remove.
8149 (target_char_cst_p): Move the function from gimple-fold.c.
8150 (fold_builtin_3): Do not call the function.
8151 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
8152 (gimple_fold_builtin): Call the function.
8153 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
8155 2016-10-14 Martin Liska <mliska@suse.cz>
8157 * builtins.c (fold_builtin_strcmp): Remove function.
8158 (fold_builtin_strncmp): Likewise.
8159 (fold_builtin_2): Remove call of the function.
8160 (fold_builtin_3): Likewise.
8161 * fold-const-call.c (fold_const_call): Add constant folding
8162 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
8163 * fold-const-call.h (build_cmp_result): Declare the function.
8164 * gimple-fold.c (gimple_load_first_char): New function.
8165 (gimple_fold_builtin_string_compare): Likewise.
8166 (gimple_fold_builtin): Call the function.
8168 2016-10-14 Nathan Sidwell <nathan@acm.org>
8170 * gcov-io.c (gcov_open): Deconstify 'mode'.
8172 2016-10-14 Martin Liska <mliska@suse.cz>
8174 * fold-const.c (c_getstr): Support of properly \0-terminated
8175 string constants. New argument is added.
8176 * fold-const.h: New argument is added.
8178 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8180 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
8182 (aarch64_print_hint_for_core): Likewise.
8183 (aarch64_print_hint_for_arch): Likewise.
8184 (aarch64_validate_march): Use it. Fix indentation in type signature.
8185 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
8186 (aarch64_validate_mtune): Likewise.
8187 (aarch64_handle_attr_arch): Likewise.
8188 (aarch64_handle_attr_cpu): Likewise.
8189 (aarch64_handle_attr_tune): Likewise.
8191 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8193 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
8196 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
8198 * config/m68k/m68k.c (m68k_option_override): Check
8199 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
8200 instead of stack_limit_rtx.
8202 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8204 * dwarf2out.c (gen_member_die): Handle inline static data member
8207 2016-10-13 Nathan Sidwell <nathan@acm.org>
8209 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
8210 gcov_var.mode. Remove unnecessary fstat.
8212 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
8215 * function.c (thread_prologue_and_epilogue_insns): Call all
8216 make_*logue_seq in the same order as traditional. Call them
8217 all a second time if shrink_wrapped_separate.
8219 2016-10-13 Marek Polacek <polacek@redhat.com>
8221 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8222 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
8225 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8227 PR tree-optimization/77937
8228 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
8229 to infinite when we have a pointer with an increment of -1.
8231 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8233 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
8235 * memmodel.h: This file.
8236 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
8237 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
8238 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
8239 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
8240 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
8241 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
8242 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
8243 compare-elim.c, config/aarch64/aarch64-builtins.c,
8244 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
8245 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
8246 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
8247 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
8248 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
8249 config/darwin.c, config/epiphany/epiphany.c,
8250 config/epiphany/mode-switch-use.c,
8251 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
8252 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
8253 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
8254 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8255 config/m68k/m68k.c, config/mcore/mcore.c,
8256 config/microblaze/microblaze.c, config/mmix/mmix.c,
8257 config/mn10300/mn10300.c, config/moxie/moxie.c,
8258 config/msp430/msp430.c, config/nds32/nds32-cost.c,
8259 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
8260 config/nds32/nds32-memory-manipulation.c,
8261 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
8262 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
8263 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
8264 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
8265 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
8266 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
8267 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8268 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8269 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
8270 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
8271 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
8272 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
8273 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
8274 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
8275 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
8276 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
8277 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
8278 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
8279 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
8280 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
8281 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
8282 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
8283 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
8284 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
8285 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
8286 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
8287 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
8288 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
8289 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
8290 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
8291 var-tracking.c, varasm.c: Include memmodel.h.
8292 * genattrtab.c (write_header): Include memmodel.h in generated file.
8293 * genautomata.c (main): Likewise.
8294 * gengtype.c (open_base_files): Likewise.
8295 * genopinit.c (main): Likewise.
8296 * genconditions.c (write_header): Include memmodel.h earlier in
8298 * genemit.c (main): Likewise.
8299 * genoutput.c (output_prologue): Likewise.
8300 * genpeep.c (main): Likewise.
8301 * genpreds.c (write_insn_preds_c): Likewise.
8302 * genrecog.c (write_header): Likewise.
8303 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
8305 2016-10-13 David Malcolm <dmalcolm@redhat.com>
8307 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
8308 for new "compact" param of print_rtx_function. Check for "cinsn"
8310 * print-rtl-function.c (flag_compact): New decl.
8311 (print_rtx_function): Add param "compact" and use it to set
8312 flag_compact, adding a description of the effect to the leading
8313 comment, and updating the example output.
8314 * print-rtl.c (flag_compact): New variable.
8315 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
8317 (print_rtx_operand_code_i): When printing source locations, wrap
8318 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
8319 (print_rtx_operand_code_r): Don't print regnos for hard regs and
8320 virtuals in compact mode.
8321 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
8322 apart from in LABEL_REFs.
8323 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
8324 Don't print basic block ids in compact mode.
8325 (print_rtx): In compact mode, prefix the code of insns with "c",
8326 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
8327 * print-rtl.h (print_rtx_function): Add "compact" param.
8329 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
8331 * arm.h (TARGET_VFP): Delete.
8332 (TARGET_VFPD32): Remove references to TARGET_VFP.
8333 (TARGET_VFP3, TARGET_VFP5): Likewise.
8334 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
8335 (TARGET_NEON_FP16): Likewise.
8336 (TARGET_FMA): Likewise.
8337 (TARGET_CRYPTO): Likewise.
8338 (TARGET_NEON): Likewise.
8339 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8340 (FUNCTION_ARG_REGNO_P): Likewise.
8341 * arm.c (arm_option_check_internal): Likewise.
8342 (arm_option_override): Likewise.
8343 (use_return_insn): Likewise.
8344 (arm_function_value_regno_p): Likewise.
8345 (arm_apply_result_size): Likewise.
8346 (use_vfp_abi): Likewise.
8347 (arm_legitimate_address_outer_p): Likewise.
8348 (thumb2_legitimate_address_p): Likewise.
8349 (arm_legitimate_index_p): Likewise.
8350 (thumb2_legitimate_index_p): Likewise.
8351 (arm_legitimate_address): Likewise.
8352 (arm_get_vfp_saved_size): Likewise.
8353 (arm_emit_vfp_multi_reg_pop): Likewise.
8354 (arm_get_frame_offsets): Likewise.
8355 (arm_save_coproc_regs): Likewise.
8356 (arm_hard_regno_mode_ok): Likewise.
8357 (arm_expand_epilogue_apcs_frame): Likewise.
8358 (arm_expand_epilogue): Likewise.
8359 (arm_file_start): Likewise.
8360 (arm_conditional_register_usage): Likewise.
8361 (arm_validize_comparison): Use vfp_compare_operand directly.
8362 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
8363 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
8365 (arm_atomic_assign_expand_fenv): Likewise.
8366 * arm.md (divsf3): Likewise.
8367 (arm_negsi2): Likewise.
8369 (arm_movdi): Likewise.
8370 (arm_movt): Likewise.
8371 (cbranchsf4): Change predicate to vfp_compare_operand.
8372 (cbranchdf4): Change predicate to vfp_compare_operand.
8373 (cstorehf4): Change predicate to vfp_compare_operand.
8374 (cstoresf4): Change predicate to vfp_compare_operand.
8375 (cstoredf4): Change predicate to vfp_compare_operand.
8376 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
8377 (movhi_insn_arch4, movhi_bytes): Likewise.
8378 * constraints.md (Dt): Likewise.
8380 * iterators.md (SDF): Likewise.
8381 * predicates.md (arm_float_compare_operand): Delete.
8382 (const_double_vcvt_power_of_two_reciprocal): Remove references to
8384 (const_double_vcvt_power_of_two): Likewise.
8385 * thumb2.md thumb2_movsi_insn): Likewise.
8386 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
8387 (movhf_vfp): Likewise.
8388 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
8389 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
8390 (movsf_vfp, thumb2_movsf_vfp): Likewise.
8391 (movdf_vfp, thumb2_movdf_vfp): Likewise.
8392 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
8393 (subsf3_vfp, divsf3_vfp): Likewise.
8394 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
8395 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
8396 (mulsf3negsfsubsf_vfp): Likewise.
8397 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
8398 (floatunssisf2, sqrtsf2_vfp): Likewise.
8399 (movcc_vfp): Likewise.
8400 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
8401 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
8402 (push_multi_vfp): Likewise.
8403 (set_fpscr, get_fpscr): Likewise.
8404 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
8406 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
8408 * arm.h (TARGET_VFP): Unconditionally define to 1.
8409 (arm_fpu_desc): Remove 'model' field.
8410 (TARGET_FPU_MODEL): Delete.
8411 * arm.c (all_fpus): Don't initialize the model field.
8412 (arm_can_inline_p): Don't check the FPU model.
8413 * arm-fpus.def: Remove redundant model field from all FPU
8416 2016-10-13 Richard Biener <rguenther@suse.de>
8419 * genmatch.c (struct capture): Add value_match member.
8420 (commutate): Preserve value_match.
8421 (lower_opt_convert): Likewise.
8422 (lower_cond): Likewise.
8423 (replace_id): Likewise.
8424 (struct dt_operand): Add value_match member.
8425 (decision_tree::cmp_node): Compare it.
8426 (decision_tree::insert_operand): Honor it when finding and
8427 when appending a DT_MATCH.
8428 (dt_operand::gen_match_op): Generate a type check after
8429 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
8430 (parser::get_internal_capture_id): New helper.
8431 (parser::finish_match_operand): New function lowering @@<id>.
8432 (parser::parse_capture): Parse @@<id> as value-match.
8433 (parser::parse_expr): Use get_internal_capture_id.
8434 (parser::parse_simplify): Call finish_match_operand.
8435 (walk_captures): New helper.
8436 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
8438 ((X /[ex] A) * A -> X): Likewise.
8439 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
8440 convert[12] and value-matching.
8441 ((A | B) & (A | C) -> A | (B & C)): Likewise.
8442 ((X | Y) | Y -> X | Y): Likewise.
8443 ((X ^ Y) ^ Y -> X): Likewise.
8444 (A - (A & B) -> ~B & A): Likewise.
8445 ((T)(P + A) - (T)P -> (T) A): Likewise.
8446 ((T)P - (T)(P + A) -> -(T) A): Likewise.
8447 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
8448 * doc/match-and-simplify.texi: Amend capture section.
8450 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
8452 * config/arc/arc.md (umul_600): Remove predicated variant.
8453 (umul64_600): Likewise.
8455 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
8457 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
8459 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8461 * tree-vect-loop.c (loop_niters_no_overflow): New func.
8462 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
8463 no-overflow information to vect_do_peeling_for_loop_bound and
8464 vect_gen_vector_loop_niters.
8466 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8468 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
8471 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8473 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
8474 adjust_vec automatically.
8475 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
8476 param exit_bb to guard_to.
8477 (slpeel_checking_verify_cfg_after_peeling):
8478 (set_prologue_iterations):
8479 (create_lcssa_for_virtual_phi): New func which is factored out from
8480 slpeel_tree_peel_loop_to_edge.
8481 (slpeel_tree_peel_loop_to_edge):
8482 (iv_phi_p): New func.
8483 (vect_can_advance_ivs_p): Call iv_phi_p.
8484 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
8485 new gimple stmts in basic block.
8486 (vect_gen_niters_for_prolog_loop): Rename to...
8487 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
8488 adjust implementation.
8489 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
8490 sizetype if necessary.
8491 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
8492 it to external function.
8493 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
8494 (vect_gen_vector_loop_niters_mult_vf): New.
8495 (slpeel_update_phi_nodes_for_loops): New.
8496 (slpeel_update_phi_nodes_for_guard1): Reimplement.
8497 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
8498 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
8499 * tree-vect-loop.c (vect_build_loop_niters): Move to file
8500 tree-vect-loop-manip.c
8501 (vect_generate_tmps_on_preheader): Delete.
8502 (vect_transform_loop): Rename vectorization_factor to vf. Call
8503 vect_do_peeling instead of vect_do_peeling-* functions.
8504 * tree-vectorizer.h (vect_do_peeling): New decl.
8505 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
8506 (vect_do_peeling_for_loop_bound): Delete.
8507 (vect_do_peeling_for_alignment): Delete.
8509 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8511 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
8512 duplicated loop after its preheader and after the original loop.
8514 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8516 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
8517 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
8519 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8521 * tree-vect-loop.c (vectorizable_live_operation): Support handling
8522 for live variable outside loop but not in lcssa form.
8524 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8526 * cfg.c (reset_original_copy_tables): New func.
8527 * cfg.h (reset_original_copy_tables): New decl.
8529 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8532 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
8534 * varasm.c (default_binds_local_p_3): Formatting fix.
8536 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8538 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
8540 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
8541 Remove useless code.
8543 2016-10-13 Martin Liska <mliska@suse.cz>
8545 PR tree-optimization/77943
8546 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
8547 a different EH landing pads.
8549 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8552 * hooks.h (hook_tree_void_null): Declare.
8553 * hooks.c (hook_tree_void_null): New function.
8554 * langhooks.c (lhd_return_null_tree_v): Remove.
8555 * langhooks-def.h (lhd_return_null_tree_v): Remove.
8556 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
8557 set y to const0_rtx.
8558 * function.c (stack_protect_epilogue): Likewise.
8559 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
8560 if TARGET_THREAD_SSP_OFFSET is defined.
8561 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8562 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8563 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8564 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8565 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8566 (ix86_stack_protect_guard): New function.
8568 2016-10-13 Richard Biener <rguenther@suse.de>
8570 * dwarf2out.c (tree_add_const_value_attribute): Do not try
8571 rtl_for_decl_init during early phase.
8572 (gen_variable_die): Do not create locations during early phase.
8573 (gen_label_die): Likewise.
8574 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
8577 2016-10-12 Richard Biener <rguenther@suse.de>
8579 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
8580 try_add_new_range and made to eturn new range.
8581 (evrp_dom_walker::before_dom_children): Push op1 value range before
8582 pushing op0 value range.
8584 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8586 PR tree-optimization/77937
8587 * gimple-ssa-strength-reduction.c (analyze_increments): Use
8588 POINTER_TYPE_P on the candidate type to determine whether
8589 candidates in this chain require pointer arithmetic.
8591 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
8593 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
8594 correction if the type is smaller than a word.
8595 (visium_select_cc_mode): Add ... fall through ... comment.
8597 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8599 * config/rs6000/rs6000.c (machine_function): Add new fields
8600 gpr_is_wrapped_separately and lr_is_wrapped_separately.
8601 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
8602 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
8603 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
8604 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
8605 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
8606 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
8607 (rs6000_get_separate_components): New function.
8608 (rs6000_components_for_bb): New function.
8609 (rs6000_disqualify_components): New function.
8610 (rs6000_emit_prologue_components): New function.
8611 (rs6000_emit_epilogue_components): New function.
8612 (rs6000_set_handled_components): New function.
8613 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
8614 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
8615 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
8616 (rs6000_emit_epilogue): Don't emit GPR restores if
8617 gpr_is_wrapped_separately for that register. Don't make a
8618 REG_CFA_RESTORE note for registers we did not restore, either.
8620 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8622 * function.c (thread_prologue_and_epilogue_insns): Call
8623 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
8624 if it has possibly changed. Compute the split_prologue_seq and
8625 epilogue_seq later, too.
8626 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
8627 (dump_components): New function.
8628 (struct sw): New struct.
8630 (init_separate_shrink_wrap): New function.
8631 (fini_separate_shrink_wrap): New function.
8632 (place_prologue_for_one_component): New function.
8633 (spread_components): New function.
8634 (disqualify_problematic_components): New function.
8635 (emit_common_heads_for_components): New function.
8636 (emit_common_tails_for_components): New function.
8637 (insert_prologue_epilogue_for_components): New function.
8638 (try_shrink_wrapping_separate): New function.
8639 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
8641 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8643 * regrename.c (build_def_use): Invalidate chains that have a
8644 REG_CFA_RESTORE on some instruction.
8646 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8648 * dce.c (delete_unmarked_insns): Don't delete instructions with
8649 a REG_CFA_RESTORE note.
8651 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8653 * common.opt (-fshrink-wrap-separate): New flag.
8654 * doc/invoke.texi: Document it.
8655 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
8656 * doc/tm.texi: Regenerate.
8657 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
8658 * target.def (shrink_wrap): New hook vector.
8659 (get_separate_components, components_for_bb, disqualify_components,
8660 emit_prologue_components, emit_epilogue_components,
8661 set_handled_components): New hooks.
8663 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8665 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
8666 vector return by reference only if -Wpsabi.
8667 (rs6000_pass_by_reference): Similarly, for argument passing.
8669 2016-10-12 David Malcolm <dmalcolm@redhat.com>
8671 * function-tests.c: Include "print-rtl.h".
8672 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
8673 function, and verify what is dumped.
8674 * print-rtl-function.c (print_edge): New function.
8675 (begin_any_block): New function.
8676 (end_any_block): New function.
8677 (can_have_basic_block_p): New function.
8678 (print_rtx_function): Track the basic blocks of insns in the
8679 chain, wrapping those that are within blocks within "(block)"
8680 directives. Remove the "(cfg)" directive.
8682 2016-10-12 David Malcolm <dmalcolm@redhat.com>
8684 * selftest.c (selftest::read_file): New function.
8685 (selftest::test_read_file): New function.
8686 (selftest::selftest_c_tests): Call test_read_file.
8687 * selftest.h (selftest::read_file): New decl.
8689 2016-10-12 Richard Biener <rguenther@suse.de>
8692 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
8695 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
8697 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
8699 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
8700 dwarf2out_assembly_start.
8702 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
8704 * Makefile.in (SELFTEST_FLAGS): New variable.
8705 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
8707 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
8710 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
8712 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
8713 dumped in RTL dumps.
8715 2016-10-12 Martin Liska <mliska@suse.cz>
8717 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
8718 (gimple_fold_builtin_memory_op): Use the function.
8719 (gimple_fold_builtin_strchr): Likewise.
8720 (gimple_fold_builtin_strcat): Likewise.
8721 (gimple_build): Likewise.
8723 2016-10-12 Nathan Sidwell <nathan@acm.org>
8725 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
8727 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
8729 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
8730 equivalent 32-bit constant (modulo 2**32) when that yields
8731 smaller instructions.
8732 (size_of_int_loc_descriptor): Update accordingly.
8734 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
8736 * dwarf2out.c (dwarf2out_early_global_decl): For nested
8737 functions, call dwarf2out_decl on the parent function first.
8739 2016-10-12 Richard Biener <rguenther@suse.de>
8741 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
8744 2016-10-12 Richard Biener <rguenther@suse.de>
8746 * tree-ssa-propagate.c
8747 (substitute_and_fold_dom_walker::before_dom_children): Do not
8748 ignore ASSERT_EXPRs but only preserve them.
8749 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
8750 that have been propagated into.
8751 (vrp_finalize): Enable DCE for substitute_and_fold.
8753 2016-10-12 Richard Biener <rguenther@suse.de>
8755 PR tree-optimization/77920
8756 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
8757 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
8758 (simplify_abs_using_ranges): Likewise.
8759 (simplify_conversion_using_ranges): Likewise.
8760 (simplify_stmt_using_ranges): Adjust.
8762 2016-10-12 Jakub Jelinek <jakub@redhat.com>
8764 PR tree-optimization/77929
8765 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
8766 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
8768 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8771 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
8772 needs a base register for arg 1.
8774 2016-10-12 Jakub Jelinek <jakub@redhat.com>
8776 * common.opt (Wimplicit-fallthrough) Turn into alias to
8777 -Wimplicit-fallthrough=3. Remove EnabledBy.
8778 (Wimplicit-fallthrough=): New option.
8779 * gimplify.c (warn_implicit_fallthrough_r): Use
8780 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
8781 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
8782 to -Wimplicit-fallthrough=3.
8783 (-Wimplicit-fallthrough=): Document.
8785 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
8787 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
8788 and GEU in DImode if TARGET_SUBXC.
8789 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
8790 (seqdi<W:mode>_zero_subxc): Delete.
8791 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
8792 (neg_seqdi<W:mode>_zero_vis3): Delete.
8793 (plus_seqdi<W:mode>_zero): Likewise.
8794 (minus_seqdi<W:mode>_zero): Likewise.
8795 (plus_plus_sltu<W:mode>): Accept only register.
8796 (addx<W:mode>): Likewise.
8797 (plus_sltu<W:mode>_vis3): Likewise.
8798 (plus_plus_sltu<W:mode>_vis3): Likewise.
8799 (neg_sgeu<W:mode>_vis3): Delete.
8800 (minus_sgeu<W:mode>_vis3): Likewise.
8801 (addxc<W:mode>): Accept only registers.
8802 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
8803 (minus_neg_sltu<W:mode>_subxc): Accept only register.
8804 (neg_plus_sltu<W:mode>_subxc): Likewise.
8805 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
8806 (minus_minus_sltu<W:mode>_subxc): Accept only register.
8807 (sgeu<W:mode>_insn_subxc): Delete.
8808 (plus_sgeu<W:mode>_subxc): Likewise.
8809 (subxc<W:mode>): Accept only register.
8810 (scc splitter): Split always GEU again.
8812 2016-10-11 Jeff Law <law@redhat.com>
8814 PR tree-optimization/77424
8815 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
8816 dead conditionals. Assert that all e->aux fields are NULL.
8818 2016-10-11 David Malcolm <dmalcolm@redhat.com>
8820 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
8821 operand-printing "switch" statement into...
8822 (print_rtx_operand_code_0): ...this new function, ...
8823 (print_rtx_operand_code_e): ...this new function, ...
8824 (print_rtx_operand_codes_E_and_V): ...this new function, ...
8825 (print_rtx_operand_code_i): ...this new function, ...
8826 (print_rtx_operand_code_r): ...this new function, ...
8827 (print_rtx_operand_code_u): ...this new function, ...
8828 (print_rtx_operand): ...and this new function.
8830 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
8832 * config/alpha/alpha-passes.def: New file.
8833 * config/alpha/t-alpha: New file.
8834 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
8835 (make_pass_handle_trap_shadows): New prototype.
8836 (make_pass_align_insns): Ditto.
8837 * config/alpha/alpha.c (alpha_option_override): Don't register
8839 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
8841 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8844 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
8845 distinct __ibm128 IBM extended double type if long doubles are
8846 128-bits and the default format for long double is IEEE 128-bit.
8848 2016-10-11 Richard Biener <rguenther@suse.de>
8850 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
8851 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
8852 (verify_die): New function.
8853 (dwarf2out_finish): Call it.
8854 (output_line_info): Handle case of -gsplit-dwarf without
8855 DWARF2_ASM_LINE_DEBUG_INFO.
8857 2016-10-11 Richard Biener <rguenther@suse.de>
8860 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
8861 sub-chains of BLOCK_VARS and gimple_bind_vars.
8863 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8865 * config/i386/znver1.md : Fix imov/imovx load type reservations.
8867 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
8869 * config/sparc/sparc.opt (msubxc): New option.
8870 * doc/invoke.texi (SPARC options): Document it and tidy up.
8871 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
8872 * doc/tm.texi: Regenerate.
8873 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
8875 (CCX_NOOV): Rename into...
8879 * config/sparc/predicates.m (fcc_register_operand): Simplify.
8880 (fcc0_register_operand): Likewise.
8881 (icc_register_operand): New.
8882 (icc_or_fcc_register_operand): Simplify.
8883 (nz_comparison_operator): New.
8884 (c_comparison_operator): Likewise.
8885 (noov_compare_operator): Rename into...
8886 (icc_comparison_operator): ...this. Use above predicates.
8887 (noov_compare64_operator): Rename into...
8888 (v9_comparison_operator): ...this and tidy up.
8889 (fcc_comparison_operator): New.
8890 (icc_or_fcc_comparison_operator): Likewise.
8891 (v9_register_compare_operator): Rename info...
8892 (v9_register_comparison_operator): ...this.
8893 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8894 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
8896 (sparc_fixed_condition_code_regs): New function.
8897 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
8898 renaming and add support for CCC/CCXC.
8899 (output_cbranch): Likewise.
8900 (sparc_print_operand): Likewise.
8901 (gen_v9_scc): Remove obsolete assertion.
8902 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
8903 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
8904 (output_cbcond): Remove bogus handling of CC modes.
8905 (sparc_register_move_cost): Return 100 for NO_REGS.
8906 * config/sparc/sparc.md (W): New mode iterator.
8907 (length): Adjust for noov_compare64_operator renaming.
8908 (cmpsi_sne): New instruction.
8909 (cmpdi_sne): Likewise.
8910 (seqdi_special): Delete.
8911 (seqdi_special): Likewise.
8912 (snesi<P:mode>_special): Likewise.
8913 (snedi_special): Likewise.
8914 (snedi_special_vis3): Likewise.
8915 (snesi patterns): Use W iterator.
8916 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
8917 (sltu patterns): Likewise.
8918 (sgeu patterns): Likewise.
8919 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
8920 (normal_branch): Use icc_comparison_operator predicate.
8921 (inverted_branch): Likewise.
8922 (cbcond_sp32): Use comparison_operator predicate.
8923 (cbcond_sp64): Likewise.
8924 (normal_int_branch_sp64): Adjust for renaming
8925 (inverted_int_branch_sp64): Likewise.
8926 (mov<I:mode>_cc_reg_sp64): Likewise.
8927 (movsf_cc_reg_sp6): Likewise.
8928 (movdf_cc_reg_sp64): Likewise.
8929 (movtf_cc_reg_hq_sp64): Likewise.
8930 (movtf_cc_reg_sp64): Likewise.
8931 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
8932 (movsf_cc_v9): Likewise.
8933 (movdf_cc_v9): Likewise.
8934 (movtf_cc_hq_v9): Likewise.
8935 (movtf_cc_v9): Likewise.
8936 (adddi3): Call gen_adddi3_sp32.
8937 (adddi3_insn_sp32): Rename to...
8938 (adddi3_sp32): ...this. Accept only register_operand as operand #1
8939 and use CCCmode for the carry.
8940 (addx_extend_sp32): Use CCCmode for the carry.
8941 (addx_extend_sp64): Delete.
8942 (adddi3_extend_sp32): Use CCCmode for the carry.
8943 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
8944 (subdi3): Call gen_subdi3_sp32.
8945 (subdi3_insn_sp32): Rename to...
8946 (subdi3_sp32): ...this and use CCmode for the carry.
8947 (subx_extend_sp32): Use CCCmode for the carry.
8948 (subx_extend_sp64): Delete.
8949 (subdi3_extend_sp32): Use CCmode for the carry.
8950 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
8951 (negdi3): Call gen_negdi3_sp32.
8952 (negdi3_sp32): Use CCCmode for the carry.
8953 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
8954 (cmp_nz_ashift_1): Use CCNZ mode.
8955 (cmp_nz_set_ashift_1): Likewise.
8956 (ctrapsi4): Use comparison_operator predicate.
8957 (ctrapdi4): Likewise.
8958 (trapsi_insn): Use icc_comparison_operator predicate.
8959 (trapdi_insn): Likewise.
8960 (edge8 patterns): Use CCNZmode.
8961 (edge16 patterns): Likewise.
8962 (edge32 patterns): Likewise.
8964 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
8966 * config/visium/visium-modes.def (CC_NOOV): Rename into...
8968 (CC_BTST): Rename into...
8970 * config/visium/predicates.md (real_add_operand): New.
8971 (visium_btst_operator): Rename into...
8972 (visium_equality_comparison_operator): ...this.
8973 (visium_noov_operator): Rename into...
8974 (visium_nz_comparison_operator): ...this.
8975 (visium_c_comparison_operator): New.
8976 (visium_branch_operator): Adjust and deal with all CC modes.
8977 * config/visium/visium.c (visium_adjust_cost): Adjust.
8978 (visium_split_double_add): Use the *_set_carry patterns.
8979 (visium_select_cc_mode): Add support for CCC mode and adjust.
8980 (output_cbranch): Adjust and use the carry-based operators for
8981 floating-point comparisons.
8982 * config/visium/visium.md (flags_subst_arith): Adjust.
8983 (addsi3_insn_set_carry): New instruction.
8984 (subsi3_insn_set_carry): Likewise.
8985 (negsi2_insn_set_carry): Likewise.
8987 (cmp<mode>_sne): Likewise.
8988 (cbranch<mode>4): Use ordered_comparison_operator.
8989 (cbranch<mode>4_insn): Likewise.
8990 (cbranchsi4_btst_insn): Adjust.
8992 2016-10-11 Tom de Vries <tom@codesourcery.com>
8995 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
8998 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9000 * tree.h (build_complex_type): Add second parameter with default.
9001 * tree.c (build_complex_type): Add NAMED second parameter and adjust
9002 recursive call. Create a TYPE_DECL only if NAMED is true.
9003 (build_common_tree_nodes): Pass true in calls to build_complex_type.
9005 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
9007 New avr-passes.def to register AVR specific passes.
9009 * config/avr/avr-passes.def: New file.
9010 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
9011 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
9012 (make_avr_pass_recompute_note): New proto.
9013 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
9014 (avr_pass_recompute_notes): Use anonymous namespace.
9015 (avr_register_passes): Remove function...
9016 (avr_option_override): ...and its call.
9018 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
9020 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
9021 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
9022 PTF_AVOID_BRANCHLIKELY_SPEED for others.
9023 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
9025 * config/mips/mips.c (mips_option_override): Enable the branch
9026 likely depending on the tune flags and optimization level.
9027 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
9028 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
9029 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
9030 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
9032 2016-10-11 Richard Biener <rguenther@suse.de>
9034 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
9035 (output_function): Properly stream the whole block tree.
9036 * lto-streamer-in.c (input_function): Likewise.
9038 2016-10-11 Marek Polacek <polacek@redhat.com>
9040 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
9042 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9044 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
9045 (evrp_dom_walker::before_dom_children): Infer and push new value
9046 ranges for x in y < x.
9048 2016-10-10 Joseph Myers <joseph@codesourcery.com>
9051 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
9052 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
9053 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9054 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9055 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
9056 (IA64_NO_LIBGCC_TFMODE): Likewise.
9058 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9060 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
9063 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
9065 * config.gcc: Add aarch64-*-freebsd* support.
9066 * config.host: Likewise.
9067 * config/aarch64/aarch64-freebsd.h: New file.
9068 * config/aarch64/t-aarch64-freebsd: Ditto.
9070 2016-10-10 Jeff Law <law@redhat.com>
9072 PR tree-optimization/71947
9073 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
9074 B with A within a single statement.
9076 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9078 PR tree-optimization/77824
9079 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
9080 zero cost for copies.
9081 (find_candidates_dom_walker::before_dom_children): Replace
9082 MODIFY_EXPR with SSA_NAME.
9083 (replace_mult_candidate): Likewise.
9084 (replace_profitable_candidates): Likewise.
9086 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9088 * config/s390/s390.h: Wrap more macros args in brackets and fix
9090 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
9092 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
9094 2016-10-10 Andreas Schwab <schwab@suse.de>
9097 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
9098 pseudo is not DImode.
9100 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
9102 * common/config/arc/arc-common.c (arc_option_optimization_table):
9103 Remove compact casesi option.
9104 * config/arc/arc.c (arc_override_options): Use compact casesi
9105 option only for pre-ARCv2 cores.
9106 * doc/invoke.texi (mcompact-casesi): Update text.
9108 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9110 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
9111 Add macro to say we can efficiently handle overlapping unaligned
9113 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
9114 poor code for processors older than p8.
9116 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
9118 * gen-pass-instances.awk: Remove GNUism.
9120 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9122 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
9123 NULL of (*ipcp_transformations)][node->uid].
9125 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
9127 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
9128 (MALLOC_ABI_ALIGNMENT): Define.
9130 2016-10-09 Jakub Jelinek <jakub@redhat.com>
9132 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
9133 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
9134 VAR_OR_FUNCTION_DECL_P macros.
9135 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
9136 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
9137 chkp_find_bounds_1): Likewise.
9138 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
9139 * hsa-gen.c (get_symbol_for_decl): Likewise.
9140 * cgraphunit.c (check_global_declaration, analyze_functions,
9141 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
9143 * gimple-fold.c (can_refer_decl_in_current_unit_p,
9144 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
9146 * tree.c (set_decl_section_name, copy_node_stat,
9147 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
9148 merge_dllimport_decl_attributes, handle_dll_attribute,
9149 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
9150 verify_type): Likewise.
9151 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
9152 find_explicit_erroneous_behavior): Likewise.
9153 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
9154 * ipa.c (process_references): Likewise.
9155 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
9156 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
9157 notice_global_symbol, assemble_variable, mark_decl_referenced,
9158 build_constant_desc, output_constant_def_contents, do_assemble_alias,
9159 make_decl_one_only, default_section_type_flags,
9160 categorize_decl_for_section, default_encode_section_info): Likewise.
9161 * trans-mem.c (requires_barrier): Likewise.
9162 * gimple-expr.c (mark_addressable): Likewise.
9163 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
9164 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
9165 expand_debug_expr): Likewise.
9166 * tree-dump.c (dequeue_and_dump): Likewise.
9167 * ubsan.c (instrument_bool_enum_load): Likewise.
9168 * tree-pretty-print.c (print_declaration): Likewise.
9169 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9170 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
9171 * asan.c (asan_protect_global, instrument_derefs): Likewise.
9172 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
9173 pass_build_ssa::execute): Likewise.
9174 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
9175 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
9177 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
9179 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
9180 can_be_nonlocal, remap_decls, copy_debug_stmt,
9181 initialize_inlined_parameters, add_local_variables,
9182 reset_debug_binding, replace_locals_op): Likewise.
9183 * dse.c (can_escape): Likewise.
9184 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
9186 * tree-diagnostic.c (default_tree_printer): Likewise.
9187 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
9188 unpack_ts_decl_with_vis_value_fields,
9189 lto_input_ts_decl_common_tree_pointers): Likewise.
9190 * builtins.c (builtin_save_expr, fold_builtin_expect,
9191 readonly_data_expr): Likewise.
9192 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
9193 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
9195 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
9196 * gimplify.c (force_constant_size, gimplify_bind_expr,
9197 gimplify_decl_expr, gimplify_var_or_parm_decl,
9198 gimplify_compound_lval, gimplify_init_constructor,
9199 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
9200 gimplify_type_sizes): Likewise.
9201 * cgraphbuild.c (record_reference, record_type_list, mark_address,
9202 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
9203 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
9204 remove_unused_locals): Likewise.
9205 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
9206 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
9207 * function.c (instantiate_expr, instantiate_decls_1,
9208 setjmp_vars_warning, add_local_decl): Likewise.
9209 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
9211 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
9212 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
9213 optimize_va_list_gpr_fpr_size): Likewise.
9214 * tree-nrv.c (pass_nrv::execute): Likewise.
9215 * tsan.c (instrument_expr): Likewise.
9216 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
9217 * vtable-verify.c (verify_bb_vtables): Likewise.
9218 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
9219 get_ref_base_and_extent): Likewise.
9220 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
9222 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
9223 analyze_all_variable_accesses): Likewise.
9224 * tree-nested.c (get_nonlocal_debug_decl,
9225 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
9226 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
9227 get_local_debug_decl, convert_local_omp_clauses,
9228 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
9230 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
9231 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
9232 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
9233 dbxout_symbol, dbxout_common_check): Likewise.
9234 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
9235 string_constant): Likewise.
9236 * hsa.c (hsa_get_declaration_name): Likewise.
9237 * passes.c (rest_of_decl_compilation): Likewise.
9238 * tree-ssanames.c (make_ssa_name_fn): Likewise.
9239 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
9240 pack_ts_decl_with_vis_value_fields,
9241 write_ts_decl_common_tree_pointers): Likewise.
9242 * stor-layout.c (place_field): Likewise.
9243 * symtab.c (symtab_node::maybe_create_reference,
9244 symtab_node::verify_base, symtab_node::make_decl_local,
9245 symtab_node::copy_visibility_from,
9246 symtab_node::can_increase_alignment_p): Likewise.
9247 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
9248 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
9249 fortran_common, add_location_or_const_value_attribute,
9250 add_scalar_info, add_linkage_name, set_block_abstract_flags,
9251 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
9252 optimize_one_addr_into_implicit_ptr,
9253 optimize_location_into_implicit_ptr): Likewise.
9254 * gimple-low.c (record_vars_into): Likewise.
9255 * ipa-visibility.c (update_vtable_references): Likewise.
9256 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
9258 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
9259 DFS::DFS_write_tree_body, write_symbol): Likewise.
9260 * langhooks.c (lhd_warn_unused_global_decl,
9261 lhd_set_decl_assembler_name): Likewise.
9262 * attribs.c (decl_attributes): Likewise.
9263 * except.c (output_ttype): Likewise.
9264 * varpool.c (varpool_node::get_create, ctor_for_folding,
9265 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
9266 * fold-const.c (fold_unary_loc): Likewise.
9267 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
9268 ipa_find_agg_cst_from_init): Likewise.
9269 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
9270 expand_omp_target, lower_omp_regimplify_p,
9271 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
9272 find_link_var_op): Likewise.
9273 * tree-chrec.c (chrec_contains_symbols): Likewise.
9274 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
9275 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
9276 execute_fixup_cfg): Likewise.
9278 PR tree-optimization/77901
9279 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
9280 if ranges[i].exp is SSA_NAME when looking for >= and only when
9281 ranges[i].exp is NULL or SSA_NAME when looking for the other
9284 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9286 * ipa-cp.c (ipcp_alignment_lattice): Remove.
9287 (ipcp_param_lattices): Remove field alignment.
9288 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
9289 (set_all_contains_variable): Remove call to
9290 ipcp_alignment_lattice::set_to_bottom.
9291 (initialize_node_lattices): Likewise.
9292 (propagate_alignment_accross_jump_function): Remove.
9293 (propagate_constants_accross_call): Remove call to
9294 propagate_alignment_accross_jump_function.
9295 (ipcp_store_alignment_results): Remove.
9296 (ipcp_driver): Remove call to ipcp_store_alignment_results.
9297 (propagate_bits_accross_jump_function): Handle ancestor jump function.
9298 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
9299 pretty-printing of alignment jump function.
9300 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
9301 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
9302 alignments and remove computing ipa_alignment jump function.
9303 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
9304 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
9305 (ipa_read_jump_function): Remove reading of ipa_alignment.
9306 (write_ipcp_transformation_info): Remove streaming for alignment
9307 propagation summary.
9308 (read_ipcp_transformation_info): Remove reading of alignment
9309 propagation summary.
9310 (ipcp_update_alignments): Remove.
9311 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
9313 (ipcp_transform_function): Remove call to ipcp_update_alignments()
9314 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
9315 * ipa-prop.h (ipa_alignment): Remove.
9316 (ipa_jump_func): Remove field alignment.
9317 (ipcp_transformation_summary): Remove field alignments.
9318 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
9319 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
9320 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
9322 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
9324 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
9326 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
9328 (visium_expand_fp_cstore): Likewise.
9330 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9332 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
9333 * diagnostic.c (warning_at_rich_loc_n): New function.
9334 (diagnostic_n_impl_richloc): Likewise.
9335 (diagnostic_n_impl): Move most of the function to
9336 diagnostic_n_impl_richloc and call it.
9338 2016-10-08 Jakub Jelinek <jakub@redhat.com>
9340 * gen-pass-instances.awk: Rewritten.
9341 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
9342 $(PASSES_EXTRA) after passes.def to the script.
9343 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
9344 * config/i386/i386-passes.def: New file.
9345 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
9346 make_pass_stv): Declare.
9347 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
9349 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
9351 (pass_stv::clone, pass_stv::set_pass_param): New methods.
9352 (pass_stv::timode_p): New non-static data member.
9353 (ix86_option_override): Don't register passes here.
9355 * doc/invoke.texi: Document accepting Else, fallthrough.
9357 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
9360 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
9361 FALLTHRU comment styles.
9363 2016-10-07 Andrew Pinski <apinski@cavium.com>
9365 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
9366 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
9367 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
9369 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
9371 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
9373 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
9374 (AARCH64_ARCH): Likewise.
9375 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
9377 (AARCH64_CORE): Likewise.
9378 (AARCH64_ARCH): Likewise.
9379 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
9380 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
9381 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
9382 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
9383 (AARCH64_ARCH): Likewise.
9384 (AARCH64_CORE): Likewise.
9385 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
9386 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
9387 (AARCH64_CORE): Likewise.
9388 (AARCH64_ARCH): Likewise.
9390 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9392 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
9393 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
9394 floating point type infrastructre, and -mfloat128 that enables the
9395 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
9396 if -mfloat128-type. Define __ibm128 to be long double by default.
9397 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
9398 the IEEE 128-bit floating point type infrastructure should
9399 automatically be enabled.
9400 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
9401 instead of -mfloat128 to enable KFmode.
9402 (rs6000_option_override_internal): Split the option -mfloat128
9403 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
9404 systems, automatically set -mfloat128-type, but don't enable it on
9405 other operating systems. Move setting the long double size and
9406 IEEE quad support before the IEEE 128-bit floating point changes.
9407 (rs6000_init_builtins): Do not create a unique type for __ibm128
9408 if long double is IBM extended double, instead rely on __ibm128
9409 being defined as 'long double'. If -mfloat128-type and not
9410 -mfloat128, create the KFmode type with an undocumented __ieee128
9412 (rs6000_init_libfuncs): Use -mfloat128-type instead of
9413 -mfloat128 for tests about the types, but keep tests for
9414 -mfloat128 to enable the keyword support.
9415 (rs6000_complex_function_value): Likewise.
9416 (rs6000_scalar_mode_supported_p): Likewise.
9417 (rs6000_floatn_mode): Likewise.
9418 (rs6000_c_mode_for_suffix): Likewise.
9419 (rs6000_opt_masks): Add -mfloat128-type.
9420 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
9421 -mfloat128-type being split from -mfloat128. Add
9422 -mfloat128-hardware, which was missing.
9423 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
9424 -mfloat128 and -mfloat128-type:
9425 (-mfloat128-type): Likewise.
9426 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
9427 that 64-bit Linux systems with enable -mfloat128-type by default
9429 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
9430 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
9431 -mfloat128-type instead of -mfloat128.
9432 (FLOAT128_2REG_P): Likewise.
9433 (MASK_FLOAT128_TYPE): Likewise.
9434 (ALTIVEC_ARG_MAX_RETURN): Likewise.
9435 (RS6000_BTM_FLOAT128): Likewise.
9436 (TARGET_FLOAT128): Poison old identifiers.
9437 (OPTION_MASK_FLOAT128): Likewise.
9438 (MASK_FLOAT128): Likewise.
9439 * config/rs6000/rs6000.md (FP): Likewise.
9440 (FLOAT128): Likewise.
9441 (fix_trunc<mode>di2): Likewise.
9442 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
9443 (floatdi<mode>2): Likewise.
9444 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
9445 (neg<mode>2, FLOAT128 iterator): Likewise.
9446 (abs<mode>2, FLOAT128 iterator): Likewise.
9447 (ieee_128bit_negative_zero): Likewise.
9448 (ieee_128bit_vsx_neg<mode>2): Likewise.
9449 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
9450 (ieee_128bit_vsx_abs<mode>2): Likewise.
9451 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9452 (ieee_128bit_vsx_nabs<mode>2): Likewise.
9453 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9454 (extendiftf2): Likewise.
9455 (extendifkf2): Likewise.
9456 (extendtfkf2): Likewise.
9457 (trunciftf2): Likewise.
9458 (truncifkf2): Likewise.
9459 (trunckftf2): Likewise.
9460 (trunctfif2): Likewise.
9461 (extendkftf2): Likewise.
9462 (trunctfkf2): Likewise.
9464 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9466 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
9467 before merging in bytes to pass down to real_from_target.
9469 2016-10-07 Richard Biener <rguenther@suse.de>
9471 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
9473 (substitute_and_fold_dom_walker::before_dom_children):
9474 Substitute and fold before pass specific folding to avoid
9475 feeding that with SSA names that will be later released.
9476 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
9477 introduced by folding and visited by evaluate_stmt called during
9479 (likely_value): Likewise.
9480 (evaluate_stmt): Likewise.
9481 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
9482 (simplify_div_or_mod_using_ranges): Likewise.
9483 (simplify_min_or_max_using_ranges): Likewise.
9484 (simplify_abs_using_ranges): Likewise.
9485 (simplify_conversion_using_ranges): Likewise.
9486 (simplify_float_conversion_using_ranges): Likewise.
9487 (simplify_stmt_using_ranges): Likewise.
9489 2016-10-07 Marek Polacek <polacek@redhat.com>
9491 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
9492 FALLTHROUGH_LABEL_P here...
9493 (warn_implicit_fallthrough_r): ...not here.
9495 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
9497 PR tree-optimization/77880
9498 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
9501 2016-10-07 Marek Polacek <polacek@redhat.com>
9504 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
9506 2016-10-07 Richard Biener <rguenther@suse.de>
9508 * bitmap.h: Document constraints on bitmap modification while
9511 2016-10-07 Richard Biener <rguenther@suse.de>
9513 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
9514 * bitmap.h (bmp_iter_set): When advancing to the next element
9515 check that we didn't remove the current one.
9516 (bmp_iter_and): Likewise.
9517 (bmp_iter_and_compl): Likewise.
9518 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
9519 we currently iterate on but keep a one-level queue.
9520 * sched-deps.c (remove_from_deps): Do not clear current bit
9521 but keep a one-level queue.
9523 2016-10-07 Jakub Jelinek <jakub@redhat.com>
9525 PR tree-optimization/77664
9526 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
9527 for the other ranges.
9528 (optimize_range_tests_diff): Fix up formatting.
9529 (optimize_range_tests_var_bound): New function.
9530 (optimize_range_tests): Use it.
9532 2016-10-07 Martin Liska <mliska@suse.cz>
9534 * coverage.c (build_gcov_exit_decl): Fix priority what
9535 should be really 99.
9537 2016-10-07 Richard Biener <rguenther@suse.de>
9539 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
9540 vars in gimple_bind_vars but not in BLOCK_VARS.
9542 2016-10-07 Richard Biener <rguenther@suse.de>
9544 PR tree-optimization/77879
9545 * tree-ssa-structalias.c (handle_const_call): Properly handle
9547 (handle_pure_call): Likewise.
9549 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9551 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
9552 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
9555 2016-10-06 Andrew Pinski <apinski@cavium.com>
9557 * config/aarch64/aarch64-cores.def: Add a comment before each
9560 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
9562 PR tree-optimization/77862
9563 * tree-vrp.c (add_equivalence): Use get_value_range so that
9564 num_vr_values is checked before accessing vr_values.
9566 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
9568 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
9571 2016-10-05 Jeff Law <law@redhat.com>
9573 PR tree-optimization/71661
9574 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
9575 removal of a forwarder exposes a new natural loop.
9577 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
9579 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
9580 Introduce ssesuffix variable.
9581 (<mask_codefor><code><mode>3<mask_name>): Ditto.
9582 (*<code><mode>3): Ditto.
9584 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
9586 * postreload.c (reload_cse_simplify): Skip also USE when detecting
9589 2016-10-06 Richard Biener <rguenther@suse.de>
9591 PR tree-optimization/77855
9592 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
9593 instead of removing the current item while iterating over the set
9596 2016-10-06 James Clarke <jrtc27@jrtc27.com>
9597 Eric Botcazou <ebotcazou@adacore.com>
9600 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
9601 (classify_registers): Don't set it
9602 (function_arg_slotno): Don't initialize and test it. Tidy up.
9604 2016-10-06 Richard Biener <rguenther@suse.de>
9606 PR tree-optimization/77839
9607 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
9610 2016-10-06 Martin Liska <mliska@suse.cz>
9612 * gcc.c: Set -fprofile-update=atomic when profiling is
9613 enabled and -pthread is set. Warn when one combines
9614 -pthread and -fprofile-update=single for an app using
9617 2016-10-06 Martin Liska <mliska@suse.cz>
9620 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
9621 * gimple-ssa-strength-reduction.c (slsr_process_cast):
9622 Initialize a pointer to NULL.
9623 (slsr_process_copy): Likewise.
9624 * input.c (location_get_source_line): Likewise.
9625 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9627 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
9629 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
9630 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
9631 (ix86_handle_option): Deleted handle of OPT_mpcommit.
9632 * config.gcc: Deleted pcommitintrin.h
9633 * config/i386/pcommitintrin.h: Deleted file.
9634 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
9635 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
9637 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
9639 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
9640 (PTA_PCOMMIT): Deleted define.
9641 (ix86_option_override_internal): Deleted handle of option.
9642 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
9643 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
9644 __builtin_ia32_pcommit): Deleted.
9645 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
9646 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
9647 (pcommit): Deleted instruction.
9648 * config/i386/i386.opt: Mention -mpcommit deprecation.
9649 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
9651 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
9654 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
9655 Remove wrong assert.
9656 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
9657 Use <round_constraint> as operand 1 constraint.
9659 2016-10-05 Jakub Jelinek <jakub@redhat.com>
9662 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
9663 (ubsan_instrument_float_cast): And not here.
9666 * ubsan.c (ubsan_ids): New GTY(()) array.
9667 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
9668 instead of static local counters.
9670 2016-10-05 Martin Sebor <msebor@redhat.com>
9673 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
9674 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
9675 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
9676 (default_printf_pointer_format): Define function.
9677 * targhooks.c (linux_printf_pointer_format): Define new function.
9678 * targhooks.h (linux_printf_pointer_format): Declare.
9679 (gnu_libc_printf_pointer_format): Remove declaration.
9681 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9683 * fold-const.c (native_encode_real): Fix logic for selecting offset
9684 to write to when BYTES_BIG_ENDIAN.
9686 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
9688 * builtins.c (fold_builtin_strchr): Remove function.
9689 (fold_builtin_strrchr): Likewise.
9690 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
9691 * gimple-fold.c (target_char_cst_p): New function.
9692 (gimple_fold_builtin_strchr) Add more foldings.
9693 (gimple_fold_builtin): Add index, strrchr, rindex cases.
9695 2016-10-05 Richard Biener <rguenther@suse.de>
9698 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
9699 capture ids in c-exprs.
9701 2016-10-05 Richard Biener <rguenther@suse.de>
9704 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
9705 with types_match for GIMPLE code gen to handle type mismatched
9707 (dt_operand::gen): Adjust.
9708 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
9711 2016-10-05 Richard Biener <rguenther@suse.de>
9713 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
9715 2016-10-05 Richard Biener <rguenther@suse.de>
9718 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
9720 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
9722 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
9723 version check to protect only DW_TAG_imported_module generation.
9725 2016-10-05 Richard Biener <rguenther@suse.de>
9728 * match.pd (min(a,-a) -> -abs(a)): New pattern.
9730 2016-10-04 Ian Lance Taylor <iant@golang.org>
9732 * explow.c (allocate_dynamic_stack_space): Call
9733 do_pending_stack_adjust before handling flag_split_stack.
9735 2016-10-04 David Malcolm <dmalcolm@redhat.com>
9737 * genattrtab.c (make_internal_attr): Supply dummy column number to
9740 * genoutput.c (init_insn_for_nothing): Likewise.
9741 * gensupport.c (add_define_attr): Likewise.
9742 * read-md.c (message_at_1): Print column number.
9743 (fatal_with_file_and_line): Likewise.
9744 (rtx_reader::read_char): Track column numbers.
9745 (rtx_reader::unread_char): Likewise.
9746 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
9747 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
9748 (rtx_reader::handle_file): Initialize m_read_md_colno.
9749 (rtx_reader::get_current_location): Supply column number to
9751 * read-md.h (struct file_location): Add field "colno".
9752 (file_location::file_location): Likewise.
9753 (rtx_reader::get_colno): New accessor.
9754 (rtx_reader::m_read_md_colno): New field.
9755 (rtx_reader::m_last_line_colno): New field.
9757 2016-10-04 Jakub Jelinek <jakub@redhat.com>
9759 * doc/extend.texi (Java Exceptions): Remove.
9760 (java_interface): Remove.
9762 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
9764 PR tree-optimization/77808
9765 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
9766 and addr are different before copying points-to information.
9768 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
9770 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
9771 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
9772 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
9773 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
9775 2016-10-04 Richard Biener <rguenther@suse.de>
9777 PR tree-optimization/77399
9778 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
9779 verify the target can convert.
9781 2016-10-04 Richard Biener <rguenther@suse.de>
9784 * explow.c (plus_constant): Verify the mode of the constant
9785 pool offset before calling plus_constant.
9787 2016-10-04 Richard Biener <rguenther@suse.de>
9790 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
9791 type support, mark with :C.
9792 (X / -X -> -1): Mark with :C.
9794 2016-10-04 Jakub Jelinek <jakub@redhat.com>
9796 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
9797 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
9798 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
9799 * doc/tm.texi: Regenerated.
9800 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
9801 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
9802 * config/darwin.h (JCR_SECTION_NAME): Remove.
9803 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
9804 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
9805 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
9806 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
9807 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
9808 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
9810 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9812 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
9813 between "because" and "param" in dump message in call to fprintf.
9815 2016-10-03 Jeff Law <law@redhat.com>
9817 PR tree-optimization/71550
9818 PR tree-optimization/71403
9819 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
9820 (profitable_jump_thread_path): Also return boolean indicating if
9821 the realized path will create an irreducible loop.
9822 Remove loop depth tests from 71403.
9823 (fsm_find_control_statement_thread_paths): Remove loop depth tests
9824 from 71403. If threading will create an irreducible loop, then
9825 throw away loop iteration and related information.
9827 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
9829 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
9830 -Woverloaded-virtual checks for warning options.
9831 * configure: Regenerate.
9833 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
9835 PR preprocessor/77699
9836 * input.c (maybe_grow): Don't allocate one byte extra headroom.
9837 (get_next_line): Return false on error.
9838 (read_next_line): Removed, use get_next_line instead.
9839 (read_line_num): Don't copy the line.
9840 (location_get_source_line): Don't use static data.
9841 (selftest::test_reading_source_line): Add more test cases.
9843 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9846 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9848 * ifcvt.c (noce_try_avoid_const_materialization): New function.
9849 (noce_process_if_block): Use it.
9851 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
9853 * doc/invoke.texi: Update -Wint-in-bool-context.
9855 2016-10-02 Jakub Jelinek <jakub@redhat.com>
9857 * dwarf2out.c (output_fde, output_call_frame_info,
9858 dwarf2out_do_cfi_startproc, set_indirect_string,
9859 gen_internal_sym, output_die, output_line_info): Use
9860 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
9861 ASM_GENERATE_INTERNAL_LABEL output.
9863 2016-10-01 Richard Biener <rguenther@suse.de>
9866 * genmatch.c (get_operand_type): Add operand position arg
9867 and handle COND_EXPR comparison operand with fixed boolean_type_node.
9868 (expr::gen_transform): Adjust.
9869 (dt_simplify::gen_1): Likewise.
9871 2016-10-01 Jakub Jelinek <jakub@redhat.com>
9873 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
9874 comments. Simplify asserts, remove unnecessary conditions.
9876 (*<code><mode>3): Likewise.
9878 2016-09-30 Jakub Jelinek <jakub@redhat.com>
9880 * doc/invoke.texi (-Wregister): Document.
9882 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
9884 * configure.ac: Split CHECKING_P into CHECKING_P and
9885 ENABLE_EXTRA_CHECKING.
9886 * configure: Regenerated.
9887 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
9888 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
9890 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
9893 * gcc.c (process_command): For @filename handling, output
9894 the correct name if the file does not exist.
9896 2016-09-30 Marek Polacek <polacek@redhat.com>
9898 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
9899 * config/alpha/predicates.md: Likewise.
9901 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9903 * ifcvt.c (noce_try_avoid_const_materialization): New function.
9904 (noce_process_if_block): Use it.
9906 2016-09-30 Martin Liska <mliska@suse.cz>
9908 * doc/invoke.texi: Document asan-use-after-return that
9909 it's disabled by default in runtime.
9911 2016-09-30 Richard Biener <rguenther@suse.de>
9913 * tree-vrp.c (intersect_ranges): If we failed to handle
9914 the intersection choose a constant singleton range if available.
9916 2016-09-30 Richard Biener <rguenther@suse.de>
9918 PR tree-optimization/77399
9919 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
9920 float <-> int conversions.
9922 2016-09-30 Alan Modra <amodra@gmail.com>
9924 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
9926 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
9928 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
9929 ext_level before calling CPUID with 0x80000008.
9930 Simplify xgetbv checks.
9932 2016-09-29 David Malcolm <dmalcolm@redhat.com>
9934 * Makefile.in (OBJS): Add print-rtl-function.o.
9935 * print-rtl-function.c: New file.
9936 * print-rtl.h (print_rtx_function): New decl.
9938 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
9941 * config/i386/cpuid.h (__get_cpuid_count): New.
9942 (__get_cpuid): Rename __level to __leaf.
9944 2016-09-29 Marek Polacek <polacek@redhat.com>
9946 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
9948 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
9951 * builtins.c (expand_builtin_memcmp): Don't swap args unless
9952 result is only being compared with zero.
9954 2016-09-29 Marek Polacek <polacek@redhat.com>
9956 * dwarf2out.c (loc_descriptor): Add fall through comment.
9957 (add_const_value_attribute): Likewise.
9959 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
9961 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
9962 with "v6t2". Move "arch" attribute above "pool_range".
9963 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
9965 (*thumb2_movhi_vfp): Likewise.
9966 (*arm_movhi_fp16): Likewise.
9967 (*thumb2_movhi_fp16): Likewise.
9968 (*arm_movsi_vfp): Remove "arch" attribute.
9969 (*thumb2_movsi_vfp): Likewise.
9971 2016-09-29 Martin Liska <mliska@suse.cz>
9973 * doc/extend.texi: Remove limitation of Objective C for
9974 __attribute__((constructor)) and __attribute__((destructor)).
9976 2016-09-29 Richard Biener <rguenther@suse.de>
9978 PR tree-optimization/77768
9979 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9980 Handle stores to readonly memory when removing redundant stores.
9982 2016-09-29 Richard Biener <rguenther@suse.de>
9985 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
9986 X / -X -> -1 simplifications.
9988 2016-09-29 Richard Biener <rguenther@suse.de>
9991 * match.pd: Add max(a,-a) -> abs(a) pattern.
9992 * tree-ssa-phiopt.c (minmax_replacement): Disable for
9993 HONOR_SIGNED_ZEROS types.
9995 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
9997 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
9998 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
10000 2016-09-29 Richard Biener <rguenther@suse.de>
10002 * tree-vrp.c (set_defs_to_varying): New helper avoiding
10003 writing to vr_const_varying.
10004 (vrp_initialize): Call it.
10005 (vrp_visit_stmt): Likewise.
10006 (evrp_dom_walker::before_dom_children): Likewise.
10008 2016-09-29 Richard Biener <rguenther@suse.de>
10010 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
10011 constructors with vector elements.
10013 2016-09-29 Richard Biener <rguenther@suse.de>
10015 PR tree-optimization/77768
10016 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
10017 with stores to a place we know has a constant value.
10019 2016-09-29 Alan Modra <amodra@gmail.com>
10021 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
10022 * doc/invoke.texi: Document it.
10023 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
10024 (rs6000_passes_float): Comment.
10025 (rs6000_passes_long_double): New static var.
10026 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
10027 (init_cumulative_args): Set up to emit fp .gnu_attribute for
10028 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
10029 to include fp values returned in vectors.
10030 Set rs6000_passes_long_double.
10031 (rs6000_function_arg_advance_1): Likewise for function args.
10032 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
10033 and SPE. Emit long double tag value too.
10034 (rs6000_opt_vars): Add gnu-attr.
10035 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
10036 * configure: Regenerate.
10037 * config.in: Regenerate.
10039 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10041 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
10043 (format_floating, format_string, format_directive,
10044 get_destination_size, pass_sprintf_length::handle_gimple_call):
10047 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10049 * gimple-ssa-sprintf.c: Fix comment formatting.
10050 (format_integer): Use is_gimple_assign.
10051 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
10052 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
10053 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
10054 (pass_sprintf_length::execute): Use is_gimple_call.
10056 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10058 * gimple-fold.c (gimple_fold_builtin): After failing to fold
10059 strchr, also try the generic folding.
10061 2016-09-28 Martin Sebor <msebor@redhat.com>
10064 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
10067 2016-09-28 Martin Sebor <msebor@redhat.com>
10069 PR middle-end/77683
10070 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
10071 length modifier is not expected.
10072 (format_floating): Ignore l length modifier and fail gracefuly
10073 when it isn't one of the other expected ones.
10075 2016-09-28 Martin Sebor <msebor@redhat.com>
10078 * varasm.c (assemble_addr_to_section): Increase local buffer size.
10080 2016-09-27 Richard Biener <rguenther@suse.de>
10082 * dwarf2out.c (cu_die_list): New global.
10083 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
10084 main_comp_unit_die to cu_die_list if we created it.
10085 Move break_out_includes ...
10086 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
10089 2016-09-28 Richard Biener <rguenther@suse.de>
10091 * dwarf2out.c (struct die_struct): Add removed flag.
10092 (lookup_type_die): If the DIE is marked as removed, clear
10093 TYPE_SYMTAB_DIE and return NULL.
10094 (lookup_decl_die): If the DIE is marked as removed, remove it
10095 from the hash and return NULL.
10096 (mark_removed): New helper.
10097 (prune_unused_types_prune): Call it for removed DIEs.
10098 (gen_subprogram_die): Move the premark_used_types call to after
10099 DIEs for the functions scopes are generated.
10100 (process_scope_var): Do not re-create pruned types or type decls.
10101 Make sure to also re-parent type decls.
10102 (dwarf2out_finish): Move unused type pruning and debug_types
10104 (dwarf2out_early_finish): ... here.
10106 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10108 * config/arc/arc-c.c: New file.
10109 * config/arc/arc-c.def: Likewise.
10110 * config/arc/t-arc: Likewise.
10111 * config.gcc: Include arc-c.o as c and cpp object.
10112 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
10113 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
10114 arc_cpu_cpp_builtins.
10116 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10118 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
10119 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
10121 2016-09-28 Nathan Sidwell <nathan@acm.org>
10123 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
10126 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10128 PR tree-optimization/61056
10129 * gimple-fold.c (gimple_fold_builtin_strchr):
10130 New function to optimize strchr (s, 0) to strlen.
10131 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
10133 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
10135 PR tree-optimization/77724
10136 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
10137 Add tree_fits_shwi_p check.
10139 2016-09-27 Jakub Jelinek <jakub@redhat.com>
10141 * auto-inc-dec.c (try_merge): Remove break after return.
10142 * cselib.c (autoinc_split): Likewise.
10143 * explow.c (promote_mode): Likewise.
10144 * fixed-value.c (fixed_arithmetic): Likewise.
10145 * hsa.c (hsa_internal_fn::get_arity): Likewise.
10146 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
10147 * trans-mem.c (get_attrs_for): Likewise.
10148 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
10149 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
10150 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
10151 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
10152 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
10153 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
10154 * config/cris/cris.c (cris_op_str): Likewise.
10155 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
10156 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
10158 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
10160 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
10161 IFN_GOACC_REDUCTION_CODES): New.
10162 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
10163 ifn_goacc_reduction_kind): Use them.
10164 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
10165 of internal functions, when applicable.
10167 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
10169 * config/mips/constraints.md (d): Fix documentation.
10170 * doc/md.texi (Machine Constraints): Update accordingly.
10172 2016-09-27 Richard Biener <rguenther@suse.de>
10174 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
10175 cur_line_info_table initialization ...
10176 (dwarf2out_assembly_start): ... here.
10178 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
10180 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
10181 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
10182 (*thumb2_movhi_vfp): Likewise.
10183 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
10184 template. Expand predicable attribute to mark VMOV.F16 as not
10185 predicable. Add "arch" attribute.
10186 (*thumb2_movhi_fp16): Likewise.
10187 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
10188 (*thumb2_movsi_vfp): Add "arch" attribute.
10190 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
10192 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
10195 2016-09-27 Marek Polacek <polacek@redhat.com>
10197 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
10200 * config/c6x/c6x.h: Adjust fall through comment.
10201 * config/sh/sh.c (final_prescan_insn): Likewise.
10202 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
10203 (visium_expand_fp_cstore): Likewise.
10205 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10207 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
10208 expected by -Wimplicit-fallthrough.
10209 (thumb1_size_rtx_costs): Likewise.
10210 (thumb2_reorg): Likewise.
10211 (tls_mentioned_p): Add "Fall through" comment.
10212 (thumb2_reorg): Likewise.
10213 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
10214 comment form expected by -Wimplicit-fallthrough.
10216 2016-09-27 Martin Liska <mliska@suse.cz>
10218 PR gcov-profile/46266
10219 * input.h (RESERVED_LOCATION_P): New macro.
10220 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
10221 instread of comparison with UNKNOWN_LOCATION.
10223 2016-09-27 Richard Biener <rguenther@suse.de>
10225 PR tree-optimization/77745
10226 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10227 When removing redundant stores make sure to check compatibility
10228 of the TBAA state for downstream accesses.
10229 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
10230 value-numbering virtual operands for store matches.
10232 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
10235 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
10236 movrt patterns. Match them before anything else in the SET case.
10238 2016-09-27 Martin Liska <mliska@suse.cz>
10240 PR gcov-profile/7970
10241 PR gcov-profile/16855
10242 PR gcov-profile/44779
10243 * coverage.c (build_gcov_exit_decl): New function.
10244 (coverage_obj_init): Call the function and generate __gcov_exit
10246 * doc/gcov.texi: Document when __gcov_exit function is called.
10248 2016-09-27 Marek Polacek <polacek@redhat.com>
10251 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
10252 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
10253 -Wno-error instead of -Wno-implicit-fallthrough.
10255 2016-09-27 Martin Liska <mliska@suse.cz>
10258 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
10260 2016-09-27 Jakub Jelinek <jakub@redhat.com>
10262 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
10263 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
10264 comments. Remove break after return.
10265 (ix86_fp_compare_code_to_integer, has_dispatch,
10266 ix86_simd_clone_usable): Remove break after return.
10268 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
10270 PR rlt-optimization/77714
10271 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
10274 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
10277 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
10278 extract_range_from_unary_expr to convert value_range.
10279 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
10280 (extract_range_from_unary_expr): This.
10281 * tree-vrp.h (extract_range_from_unary_expr): Declare.
10283 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
10285 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
10287 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10289 * config/i386/i386.c (ix86_print_operand)
10290 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
10291 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
10292 (epilogue_renumber): Likewise.
10294 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
10296 PR middle-end/77719
10297 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
10298 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
10300 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
10302 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
10303 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
10304 is_mm_seq_cst, is_mm_sync): Move to ...
10305 * memmodel.h: This. New file.
10306 * builtins.c: Include memmodel.h.
10307 * optabs.c: Likewise.
10308 * tsan.c: Likewise.
10309 * config/aarch64/aarch64.c: Likewise.
10310 * config/alpha/alpha.c: Likewise.
10311 * config/arm/arm.c: Likewise.
10312 * config/i386/i386.c: Likewise.
10313 * config/ia64/ia64.c: Likewise.
10314 * config/mips/mips.c: Likewise.
10315 * config/rs6000/rs6000.c: Likewise.
10316 * config/sparc/sparc.c: Likewise.
10317 * genconditions.c: Include memmodel.h in generated file.
10318 * genemit.c: Likewise.
10319 * genoutput.c: Likewise.
10320 * genpeep.c: Likewise.
10321 * genpreds.c: Likewise.
10322 * genrecog.c: Likewise.
10324 2016-09-26 David Malcolm <dmalcolm@redhat.com>
10326 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
10327 "c" instead when parsing characters. Move operand parsing into...
10328 (read_rtx_operand): ...this new function, renaming "i" to "idx",
10329 and tightening the scope of various locals.
10331 2016-09-26 Liu Hao <lh_mouse@126.com>
10333 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
10335 2016-09-26 Marek Polacek <polacek@redhat.com>
10337 * system.h: Use __has_attribute to check whether the fallthrough
10338 attribute is supported.
10340 2016-09-26 Marek Polacek <polacek@redhat.com>
10342 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
10343 gimple_call_internal_p.
10344 * ipa-split.c (find_return_bb): Likewise.
10345 (execute_split_functions): Likewise.
10346 * omp-low.c (dump_oacc_loop_part): Likewise.
10347 (oacc_loop_xform_head_tail): Likewise.
10348 * predict.c (predict_loops): Likewise.
10349 * sanopt.c (pass_sanopt::execute): Likewise.
10350 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
10351 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
10352 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
10353 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
10354 (expand_ifn_va_arg): Likewise.
10355 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
10356 (optimize_mask_stores): Likewise.
10357 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
10358 (vect_transform_stmt): Likewise.
10359 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
10360 * tsan.c (instrument_memory_accesses): Likewise.
10362 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10363 Alexander Monakov <amonakov@ispras.ru>
10365 * regrename.c (rename_chains): Check
10366 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
10367 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
10368 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10370 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10372 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
10373 (s390_sched_score): Likewise.
10375 2016-09-26 Martin Liska <mliska@suse.cz>
10377 * doc/gcov.texi: Update program output of gcov tool.
10379 2016-09-26 Martin Liska <mliska@suse.cz>
10381 PR gcov-profile/23332
10382 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
10383 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
10384 * value-prof.c (dump_histogram_value): Do not handle
10385 HIST_TYPE_CONST_DELTA.
10386 (stream_in_histogram_value): Likewise.
10387 (gimple_find_values_to_profile): Likewise.
10388 * value-prof.h (enum hist_type): Likewise.
10390 2016-09-26 Martin Liska <mliska@suse.cz>
10392 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
10393 from default sanitize recover values.
10394 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
10395 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
10396 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
10398 * opts.c (finish_options): Do a generic loop over options
10399 that can be recovered.
10400 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
10402 (common_handle_option): Likewise.
10403 * opts.h: Declare can_recover to sanitizer_opts_s.
10405 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
10407 * target.def(elf_flags_numeric): Change documentation to present tense.
10408 * doc/tm.texi: Regenerate.
10410 2016-09-26 Marek Polacek <polacek@redhat.com>
10413 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
10414 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
10415 -Wno-switch-fallthrough.
10416 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
10417 (expand_builtin): Likewise.
10418 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
10419 * convert.c (convert_to_real_1): Likewise.
10420 (convert_to_integer_1): Likewise.
10421 * final.c (output_alternate_entry_point): Likewise.
10422 * genattrtab.c (make_canonical): Likewise.
10423 (write_test_expr): Likewise.
10424 * genpreds.c (validate_exp): Likewise.
10425 * gimple-ssa-strength-reduction.c
10426 (find_candidates_dom_walker::before_dom_children): Likewise.
10427 * godump.c (go_format_type): Likewise.
10428 * reload1.c (elimination_effects): Likewise.
10429 * resource.c (mark_referenced_resources): Likewise.
10430 (mark_set_resources): Likewise.
10431 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
10432 * varasm.c (output_addressed_constants): Likewise.
10434 2016-09-26 Marek Polacek <polacek@redhat.com>
10437 * common.opt (Wimplicit-fallthrough): New option.
10438 * doc/extend.texi: Document statement attributes and the fallthrough
10440 * doc/invoke.texi: Document -Wimplicit-fallthrough.
10441 * gimple.h (gimple_call_internal_p): New function.
10442 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
10443 (struct label_entry): New struct.
10444 (find_label_entry): New function.
10445 (case_label_p): New function.
10446 (collect_fallthrough_labels): New function.
10447 (last_stmt_in_scope): New function.
10448 (should_warn_for_implicit_fallthrough): New function.
10449 (warn_implicit_fallthrough_r): New function.
10450 (maybe_warn_implicit_fallthrough): New function.
10451 (expand_FALLTHROUGH_r): New function.
10452 (expand_FALLTHROUGH): New function.
10453 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
10454 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
10455 (gimplify_label_expr): New function.
10456 (gimplify_case_label_expr): Set location.
10457 (gimplify_expr): Call gimplify_label_expr.
10458 * internal-fn.c (expand_FALLTHROUGH): New function.
10459 * internal-fn.def (FALLTHROUGH): New internal function.
10460 * langhooks.c (lang_GNU_OBJC): New function.
10461 * langhooks.h (lang_GNU_OBJC): Declare.
10462 * system.h (gcc_fallthrough): Define.
10463 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
10464 * tree.h (FALLTHROUGH_LABEL_P): Define.
10466 2016-09-26 Richard Biener <rguenther@suse.de>
10468 * dwarf2out.c (stripattributes): Remove unused function.
10469 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
10470 Push dwarf_split_debug_info handling into init_sections_and_labels.
10471 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
10472 (DEBUG_MACRO_SECTION_FLAGS): Remove.
10473 (debug_macinfo_section_name): New global.
10474 (output_macinfo): Use debug_macinfo_section_name.
10475 (init_sections_and_labels): Split out section and label generation
10476 from dwarf2out_init. Set debug_macinfo_section_name.
10477 (dwarf2out_init): Move text section label generation and emission
10479 (dwarf2out_assembly_start): ... here.
10480 (dwarf2out_finish): Call init_sections_and_labels before DWARF
10483 2016-09-26 Richard Biener <rguenther@suse.de>
10486 * cgraphunit.c (analyze_functions): Before early removing
10487 global vars calls the late_global_decl debug handler mark
10488 the variable as readonly.
10490 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
10493 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
10494 (sh_rtx_costs): Handle SET of movt and movrt patterns.
10495 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
10496 declare new overloads.
10497 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
10500 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10502 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
10503 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
10505 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
10507 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
10508 * configure: Regenerate.
10510 2016-09-24 Marek Polacek <polacek@redhat.com>
10513 * doc/invoke.texi: Document -Wbool-operation.
10515 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10517 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
10518 * config/rs6000/rs6000.c (expand_block_compare): New function used by
10519 cmpmemsi pattern to do builtin expansion of memcmp ().
10520 (compute_current_alignment): Add helper function for
10521 expand_block_compare used to compute alignment as the compare proceeds.
10522 (select_block_compare_mode): Used by expand_block_compare to select
10523 the mode used for reading the next chunk of bytes in the compare.
10524 (do_load_for_compare): Used by expand_block_compare to emit the load
10525 insns for the compare.
10526 (rs6000_emit_dot_insn): Moved this function to avoid a forward
10527 reference from expand_block_compare ().
10528 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
10529 prototype for this function.
10530 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
10531 target option for controlling how much code inline expansion of
10532 memcmp() will be allowed to generate.
10534 2016-09-23 Jakub Jelinek <jakub@redhat.com>
10536 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
10537 hook_bool_mode_false, hook_bool_mode_true,
10538 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
10539 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
10540 hook_bool_const_rtx_insn_const_rtx_insn_true,
10541 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
10542 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
10543 hook_bool_const_tree_hwi_hwi_const_tree_false,
10544 hook_bool_const_tree_hwi_hwi_const_tree_true,
10545 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
10546 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
10547 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
10548 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
10549 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
10550 hook_bool_const_tree_true, hook_bool_tree_tree_false,
10551 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
10552 hook_bool_rtx_insn_true, hook_bool_rtx_false,
10553 hook_bool_uintp_uintp_false,
10554 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
10555 hook_rtx_tree_int_null, hook_uint_mode_0,
10556 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
10557 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
10558 hook_constcharptr_const_rtx_insn_null,
10559 hook_constcharptr_const_tree_const_tree_null,
10560 hook_constcharptr_int_const_tree_null,
10561 hook_constcharptr_int_const_tree_const_tree_null,
10562 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
10563 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
10564 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
10566 * vec.h (vNULL): Extend comment to say = vNULL initialization
10567 isn't needed for static vars.
10569 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
10570 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
10571 = vNULL initialization of file scope vec.
10572 * passes.c (pass_tab, enabled_pass_uid_range_tab,
10573 disabled_pass_uid_range_tab): Likewise.
10574 * haifa-sched.c (sched_luids, h_i_d): Likewise.
10575 * tree-chkp-opt.c (check_infos): Likewise.
10576 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
10578 * vec.h (vnull::operator vec): Add constexpr keyword for
10581 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
10583 PR tree-optimization/77654
10584 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
10585 to duplicate_ssa_name_ptr_info.
10587 2016-09-23 David Malcolm <dmalcolm@redhat.com>
10589 PR preprocessor/77672
10590 * input.c (selftest::test_lexer_string_locations_simple): Update
10591 test to expect location information of the terminator character
10592 at the location of the final closing quote.
10593 (selftest::test_lexer_string_locations_hex): Likewise.
10594 (selftest::test_lexer_string_locations_oct): Likewise.
10595 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
10596 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
10597 (selftest::test_lexer_string_locations_ucn4): Likewise.
10598 (selftest::test_lexer_string_locations_ucn8): Likewise.
10599 (selftest::test_lexer_string_locations_u8): Likewise.
10600 (selftest::test_lexer_string_locations_utf8_source): Likewise.
10601 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
10602 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
10603 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
10604 (selftest::test_lexer_string_locations_macro): Likewise.
10605 (selftest::test_lexer_string_locations_long_line): Likewise.
10607 2016-09-23 Richard Biener <rguenther@suse.de>
10609 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
10610 virtual definition to virtual use if the call devirtualizes
10611 to a const or pure function.
10612 (visit_use): Also visit calls we can devirtualize to a
10613 const or pure function.
10615 2016-09-23 Richard Biener <rguenther@suse.de>
10617 PR tree-optimization/77697
10618 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
10619 signal error if we have sth ternary or unhandled.
10621 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10623 * config/arm/arm_neon.h (vabd_f16): New.
10657 (vcvt_f16_s16): New.
10658 (vcvt_f16_u16): New.
10659 (vcvt_s16_f16): New.
10660 (vcvt_u16_f16): New.
10661 (vcvtq_f16_s16): New.
10662 (vcvtq_f16_u16): New.
10663 (vcvtq_s16_f16): New.
10664 (vcvtq_u16_f16): New.
10665 (vcvta_s16_f16): New.
10666 (vcvta_u16_f16): New.
10667 (vcvtaq_s16_f16): New.
10668 (vcvtaq_u16_f16): New.
10669 (vcvtm_s16_f16): New.
10670 (vcvtm_u16_f16): New.
10671 (vcvtmq_s16_f16): New.
10672 (vcvtmq_u16_f16): New.
10673 (vcvtn_s16_f16): New.
10674 (vcvtn_u16_f16): New.
10675 (vcvtnq_s16_f16): New.
10676 (vcvtnq_u16_f16): New.
10677 (vcvtp_s16_f16): New.
10678 (vcvtp_u16_f16): New.
10679 (vcvtpq_s16_f16): New.
10680 (vcvtpq_u16_f16): New.
10681 (vcvt_n_f16_s16): New.
10682 (vcvt_n_f16_u16): New.
10683 (vcvtq_n_f16_s16): New.
10684 (vcvtq_n_f16_u16): New.
10685 (vcvt_n_s16_f16): New.
10686 (vcvt_n_u16_f16): New.
10687 (vcvtq_n_s16_f16): New.
10688 (vcvtq_n_u16_f16): New.
10696 (vmaxnmq_f16): New.
10700 (vminnmq_f16): New.
10702 (vmul_lane_f16): New.
10705 (vmulq_lane_f16): New.
10706 (vmulq_n_f16): New.
10713 (vrecpeq_f16): New.
10726 (vrsqrte_f16): New.
10727 (vrsqrteq_f16): New.
10729 (vrecpsq_f16): New.
10730 (vrsqrts_f16): New.
10731 (vrsqrtsq_f16): New.
10735 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10737 * config.gcc (extra_headers): Add arm_fp16.h
10738 * config/arm/arm_fp16.h: New.
10739 * config/arm/arm_neon.h: Include "arm_fp16.h".
10741 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10743 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
10745 (vmulf): New (v8hf, v4hf variants).
10746 (vfma): New (v8hf, v4hf variants).
10747 (vfms): New (v8hf, v4hf variants).
10748 (vsub): New (v8hf, v4hf variants).
10749 (vcage): New (v8hf, v4hf variants).
10750 (vcagt): New (v8hf, v4hf variants).
10751 (vcale): New (v8hf, v4hf variants).
10752 (vcalt): New (v8hf, v4hf variants).
10753 (vceq): New (v8hf, v4hf variants).
10754 (vcgt): New (v8hf, v4hf variants).
10755 (vcge): New (v8hf, v4hf variants).
10756 (vcle): New (v8hf, v4hf variants).
10757 (vclt): New (v8hf, v4hf variants).
10758 (vceqz): New (v8hf, v4hf variants).
10759 (vcgez): New (v8hf, v4hf variants).
10760 (vcgtz): New (v8hf, v4hf variants).
10761 (vcltz): New (v8hf, v4hf variants).
10762 (vclez): New (v8hf, v4hf variants).
10763 (vabd): New (v8hf, v4hf variants).
10764 (vmaxf): New (v8hf, v4hf variants).
10765 (vmaxnm): New (v8hf, v4hf variants).
10766 (vminf): New (v8hf, v4hf variants).
10767 (vminnm): New (v8hf, v4hf variants).
10768 (vpmaxf): New (v4hf variant).
10769 (vpminf): New (v4hf variant).
10770 (vpadd): New (v4hf variant).
10771 (vrecps): New (v8hf, v4hf variants).
10772 (vrsqrts): New (v8hf, v4hf variants).
10773 (vabs): New (v8hf, v4hf variants).
10774 (vneg): New (v8hf, v4hf variants).
10775 (vrecpe): New (v8hf, v4hf variants).
10776 (vrnd): New (v8hf, v4hf variants).
10777 (vrnda): New (v8hf, v4hf variants).
10778 (vrndm): New (v8hf, v4hf variants).
10779 (vrndn): New (v8hf, v4hf variants).
10780 (vrndp): New (v8hf, v4hf variants).
10781 (vrndx): New (v8hf, v4hf variants).
10782 (vrsqrte): New (v8hf, v4hf variants).
10783 (vmul_lane): Add v4hf and v8hf variants.
10784 (vmul_n): Add v4hf and v8hf variants.
10785 (vext): New (v8hf, v4hf variants).
10786 (vcvts): New (v8hi, v4hi variants).
10787 (vcvts): New (v8hf, v4hf variants).
10788 (vcvtu): New (v8hi, v4hi variants).
10789 (vcvtu): New (v8hf, v4hf variants).
10790 (vcvts_n): New (v8hf, v4hf variants).
10791 (vcvtu_n): New (v8hi, v4hi variants).
10792 (vcvts_n): New (v8hi, v4hi variants).
10793 (vcvtu_n): New (v8hf, v4hf variants).
10794 (vbsl): New (v8hf, v4hf variants).
10795 (vcvtas): New (v8hf, v4hf variants).
10796 (vcvtau): New (v8hf, v4hf variants).
10797 (vcvtms): New (v8hf, v4hf variants).
10798 (vcvtmu): New (v8hf, v4hf variants).
10799 (vcvtns): New (v8hf, v4hf variants).
10800 (vcvtnu): New (v8hf, v4hf variants).
10801 (vcvtps): New (v8hf, v4hf variants).
10802 (vcvtpu): New (v8hf, v4hf variants).
10804 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10806 * config/arm/arm-builtins.c (hf_UP): New.
10808 (vfp_builtin_data): New. Update comment.
10809 (enum arm_builtins): Include "arm_vfp_builtins.def".
10810 (ARM_BUILTIN_VFP_PATTERN_START): New.
10811 (arm_init_vfp_builtins): New.
10812 (arm_init_builtins): Add arm_init_vfp_builtins.
10813 (arm_expand_vfp_builtin): New.
10814 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
10816 * config/arm/arm_vfp_builtins.def: New file.
10817 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
10818 (arm-builtins.o): Likewise.
10820 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10823 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
10824 from constant while creating value range.
10826 2016-09-23 Renlin Li <renlin.li@arm.com>
10828 * ira.c (ira): Move ira_use_lra_p initialization code to ...
10829 (ira_init_once): Here.
10831 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
10832 Jakub Jelinek <jakub@redhat.com>
10834 * hooks.h (hook_uint_uintp_false): Rename to...
10835 (hook_bool_uint_uintp_false): ... this.
10836 * hooks.c (hook_uint_uintp_false): Rename to...
10837 (hook_bool_uint_uintp_false): ... this.
10838 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
10839 instead of hook_uint_uintp_false.
10841 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10843 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
10844 (arm_init_builtins): Move body of a loop to the standalone
10845 function arm_init_neon_builtin.
10846 (arm_expand_neon_builtin_1): New. Update comment. Function body
10847 moved from arm_neon_builtin with some white-space fixes.
10848 (arm_expand_neon_builtin): Move code into the standalone function
10849 arm_expand_neon_builtin_1.
10851 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10853 * config/arm/iterators.md (VCVTHI): New.
10854 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
10855 (NEON_VAGLTE): New.
10856 (VFM_LANE_AS): New.
10858 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
10859 (V_HALF): Add V4HF. Fix white-space.
10860 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
10861 (V_s_elem): Likewise.
10862 (V_sz_elem): Fix white-space.
10863 (V_elem_ch): Likewise.
10865 (scalar_mul_constraint): Add V8HF and V4HF.
10866 (Is_float_mode): Fix white-space.
10867 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
10868 (q): Add HF. Fix white-space.
10871 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
10872 (neon_vfm_lane_as): New.
10873 * config/arm/neon.md (add<mode>3_fp16): New.
10874 (sub<mode>3_fp16): New.
10875 (mul<mode>3add<mode>_neon): New.
10876 (fma<VH:mode>4_intrinsic): New.
10877 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
10878 (fmsub<VH:mode>4_intrinsic): New.
10879 (<absneg_str><mode>2): New.
10880 (neon_v<absneg_str><mode>): New.
10881 (neon_v<fp16_rnd_str><mode>): New.
10882 (neon_vrsqrte<mode>): New.
10883 (neon_vpaddv4hf): New.
10884 (neon_vadd<mode>): New.
10885 (neon_vsub<mode>): New.
10886 (neon_vmulf<mode>): New.
10887 (neon_vfma<VH:mode>): New.
10888 (neon_vfms<VH:mode>): New.
10889 (neon_vc<cmp_op><mode>): New.
10890 (neon_vc<cmp_op><mode>_fp16insn): New
10891 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
10892 (neon_vca<cmp_op><mode>): New.
10893 (neon_vca<cmp_op><mode>_fp16insn): New.
10894 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
10895 (neon_vc<cmp_op>z<mode>): New.
10896 (neon_vabd<mode>): New.
10897 (neon_v<maxmin>f<mode>): New.
10898 (neon_vp<maxmin>fv4hf: New.
10899 (neon_<fmaxmin_op><mode>): New.
10900 (neon_vrecps<mode>): New.
10901 (neon_vrsqrts<mode>): New.
10902 (neon_vrecpe<mode>): New (VH variant).
10903 (neon_vdup_lane<mode>_internal): New.
10904 (neon_vdup_lane<mode>): New.
10905 (neon_vcvt<sup><mode>): New (VCVTHI variant).
10906 (neon_vcvt<sup><mode>): New (VH variant).
10907 (neon_vcvt<sup>_n<mode>): New (VH variant).
10908 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
10909 (neon_vcvt<vcvth_op><sup><mode>): New.
10910 (neon_vmul_lane<mode>): New.
10911 (neon_vmul_n<mode>): New.
10912 * config/arm/unspecs.md (UNSPEC_VCALE): New
10913 (UNSPEC_VCALT): New.
10914 (UNSPEC_VFMA_LANE): New.
10915 (UNSPECS_VFMS_LANE): New.
10917 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10919 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
10920 ("*extzv<mode><clobbercc_or_nocc>"):
10921 Correct a typo in a comment.
10923 ("*insv<mode>_zEC12", "*insv<mode>_z10")
10924 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
10925 ("*insv<mode>_zEC12_appendbitsleft")
10926 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
10927 ("*insv<mode>_z10_appendbitsleft"): Ditto.
10928 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
10929 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
10930 Provide pattern with operands switched.
10931 ("*pre_z10_extv<mode>"):
10932 Use new subst patterns.
10933 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
10934 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
10935 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
10936 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
10937 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
10938 ("*<risbg_n>_sidi_ior_and_lshiftrt")
10939 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
10941 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
10942 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
10943 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
10945 ("SINT"): New mode_iterator with SI, HI, QI.
10946 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
10947 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
10950 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10952 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
10953 new interface of s390_contiguous_bitmask_p.
10954 ("contiguous_bitmask_nowrap_operand"): New predicate.
10955 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
10956 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
10957 of s390_contiguous_bitmask_p.
10958 ("NxxDw"): Rename NxxDq constraint to NxxDw.
10959 ("NxxSw"): New constraint.
10960 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
10961 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
10963 (s390_contiguous_bitmask_nowrap_p): Export.
10964 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
10965 former s390_contiguous_bitmask_p.
10966 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
10967 detect contiguous bit ranges with wraparound. Change signature to
10968 return START and END position instead of POS and LENGTH.
10969 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
10970 ranges with wraparound.
10971 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
10972 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
10973 Adapt to new signature of s390_contiguous_bitmask_p.
10975 2016-09-23 Bin Cheng <bin.cheng@arm.com>
10977 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
10978 (create_intersect_range_checks): New.
10979 (vect_create_cond_for_alias_checks): Call above function.
10981 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10983 * config/arm/iterators.md (Code iterators): Fix some white-space
10987 (FCVT): Moved from vfp.md.
10988 (VCVT_HF_US_N): New.
10989 (VCVT_SI_US_N): New.
10994 (FCVTI32typename): Moved from vfp.md.
10995 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
10996 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
10997 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
10998 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
10999 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
11001 (fp16_rnd_str): New.
11002 (fp16_rnd_insn): New.
11003 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
11004 (UNSPEC_VCVT_HF_U_N): New.
11005 (UNSPEC_VCVT_SI_S_N): New.
11006 (UNSPEC_VCVT_SI_U_N): New.
11007 (UNSPEC_VCVTH_S): New.
11008 (UNSPEC_VCVTH_U): New.
11009 (UNSPEC_VCVTA_S): New.
11010 (UNSPEC_VCVTA_U): New.
11011 (UNSPEC_VCVTM_S): New.
11012 (UNSPEC_VCVTM_U): New.
11013 (UNSPEC_VCVTN_S): New.
11014 (UNSPEC_VCVTN_U): New.
11015 (UNSPEC_VCVTP_S): New.
11016 (UNSPEC_VCVTP_U): New.
11017 (UNSPEC_VCVTP_S): New.
11018 (UNSPEC_VCVTP_U): New.
11019 (UNSPEC_VRND): New.
11020 (UNSPEC_VRNDA): New.
11021 (UNSPEC_VRNDI): New.
11022 (UNSPEC_VRNDM): New.
11023 (UNSPEC_VRNDN): New.
11024 (UNSPEC_VRNDP): New.
11025 (UNSPEC_VRNDX): New.
11026 * config/arm/vfp.md (<absneg_str>hf2): New.
11027 (neon_vabshf): New.
11028 (neon_v<fp16_rnd_str>hf): New.
11029 (neon_vrndihf): New.
11034 (*mulsf3neghf_vfp): New.
11035 (*negmulhf3_vfp): New.
11036 (*mulsf3addhf_vfp): New.
11037 (*mulhf3subhf_vfp): New.
11038 (*mulhf3neghfaddhf_vfp): New.
11039 (*mulhf3neghfsubhf_vfp): New.
11041 (neon_vfmahf): New.
11042 (fmsubhf4_fp16): New.
11043 (neon_vfmshf): New.
11046 (neon_vsqrthf): New.
11047 (neon_vrsqrtshf): New.
11048 (FCVT): Move to iterators.md.
11049 (FCVTI32typename): Likewise.
11050 (neon_vcvth<sup>hf): New.
11051 (neon_vcvth<sup>si): New.
11052 (neon_vcvth<sup>_nhf_unspec): New.
11053 (neon_vcvth<sup>_nhf): New.
11054 (neon_vcvth<sup>_nsi_unspec): New.
11055 (neon_vcvth<sup>_nsi): New.
11056 (neon_vcvt<vcvth_op>h<sup>si): New.
11057 (neon_<fmaxmin_op>hf): New.
11059 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11061 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
11062 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
11063 ("*insv<mode>_zEC12_appendbitsleft")
11064 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
11065 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
11067 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11069 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
11070 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
11071 construct values without normalization.
11072 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
11073 static local lhs_ops to vNULL.
11075 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11076 Jiong Wang <jiong.wang@arm.com>
11078 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
11079 available when FP16 instructions are available.
11080 (output_move_vfp): Add support for 16-bit data moves.
11081 (arm_validize_comparison): Fix some white-space. Support HFmode
11082 by conversion to SFmode.
11083 * config/arm/arm.md (truncdfhf2): Fix a comment.
11084 (extendhfdf2): Likewise.
11086 (movsicc): Fix some white-space.
11088 (movsfcc): Fix some white-space.
11090 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
11091 instructions are available.
11092 (*thumb2_movhi_vfp): Likewise.
11093 (*arm_movhi_fp16): New.
11094 (*thumb2_movhi_fp16): New.
11095 (*movhf_vfp_fp16): New.
11096 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
11097 (*movhf_vfp): Likewise.
11098 (extendhfsf2): Enable when VFP FP16 instructions are available.
11099 (truncsfhf2): Enable when VFP FP16 instructions are available.
11101 2016-09-23 Martin Liska <mliska@suse.cz>
11103 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
11105 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11107 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
11109 (arm_evpc_neon_vtrn): Likewise.
11110 (arm_evpc_neon_vrev): Likewise.
11111 (arm_evpc_neon_vext): Likewise.
11112 * config/arm/arm_neon.h (vbsl_f16): New.
11115 (vdupq_n_f16): New.
11116 (vdup_lane_f16): New.
11117 (vdupq_lane_f16): New.
11121 (vmovq_n_f16): New.
11123 (vrev64q_f16): New.
11130 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
11131 (vdup_lane): New (v8hf, v4hf variants).
11132 (vext): New (v8hf, v4hf variants).
11133 (vbsl): New (v8hf, v4hf variants).
11134 * config/arm/iterators.md (VDQWH): New.
11136 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
11137 (Scalar_mul_8_16): Fix white-space.
11138 (Is_d_reg): Add V4HF and V8HF.
11139 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
11140 (neon_vdup_lane<mode>): New.
11141 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
11142 (*neon_vtrn<mode>_insn): Likewise.
11143 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
11144 (*neon_vzip<mode>_insn): Likewise
11145 (neon_vuzp<mode>_internal): Likewise.
11146 (*neon_vuzp<mode>_insn): Likewise
11147 * config/arm/vec-common.md (vec_perm_const<mode>): New.
11149 2016-09-23 Jiong Wang <jiong.wang@arm.com>
11150 Matthew Wahab <matthew.wahab@arm.com>
11152 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
11153 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
11154 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
11155 available. Also fix some white-space.
11156 * config/arm/vfp.md (*arm_movhi_vfp): New.
11157 (*thumb2_movhi_vfp): New.
11159 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11161 * config/arm/arm-c.c (arm_cpu_builtins): Define
11162 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
11163 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
11165 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11167 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
11168 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
11169 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
11170 arm_v8_2a_fp16_neon_hw.
11171 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
11174 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11176 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
11177 arm_fp16_alternative_ok and arm_fp16_none_ok.
11179 2016-09-23 Martin Liska <mliska@suse.cz>
11181 * ipa-icf.c (sem_variable::merge): Replace adress with address.
11183 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11185 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
11186 ("armv8.2-a"): New.
11187 ("armv8.2-a+fp16"): New.
11188 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
11189 (FL2_FP16INST): New.
11190 (FL2_FOR_ARCH8_2A): New.
11191 * config/arm/arm-tables.opt: Regenerate.
11192 * config/arm/arm.c (arm_arch8_2): New.
11193 (arm_fp16_inst): New.
11194 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
11195 for incompatible fp16-format settings.
11196 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
11197 (TARGET_NEON_FP16INST): New.
11198 (arm_arch8_2): Declare.
11199 (arm_fp16_inst): Declare.
11200 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
11201 march=armv8.2-a and march=armv8.2-a+fp16.
11202 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
11203 and armv8.2-a+fp16.
11204 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
11205 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
11207 2016-09-23 Martin Liska <mliska@suse.cz>
11209 * doc/extend.texi: Remove fused-madd from i386 target options.
11211 2016-09-23 Martin Liska <mliska@suse.cz>
11213 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11216 2016-09-23 Martin Liska <mliska@suse.cz>
11218 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11221 2016-09-23 Martin Liska <mliska@suse.cz>
11224 * config/i386/i386.c (ix86_option_override_internal): Change
11225 signature and return false when there's an error related to
11227 (release_options_strings): New function.
11228 (ix86_valid_target_attribute_tree): Call the function.
11230 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11232 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
11233 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
11234 (gen_hsa_ctor_assignment): Likewise.
11235 * print-tree.c (print_node): Likewise.
11236 * tree-dump.c (dequeue_and_dump): Likewise.
11237 * tree-sra.c (sra_modify_constructor_assign): Likewise.
11238 * expr.c (store_constructor): Likewise.
11239 * fold-const.c (operand_equal_p): Likewise.
11240 * tree-pretty-print.c (dump_generic_node): Likewise.
11241 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
11242 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
11244 2016-09-23 Richard Biener <rguenther@suse.de>
11246 * hooks.h (hook_uint_uintp_false): Declare.
11248 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11250 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
11251 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
11253 2016-09-22 Martin Sebor <msebor@redhat.com>
11256 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
11257 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
11258 (target_int_min): Correct computation.
11259 (format_integer): Use long long as the argument for the ll length
11261 (format_floating): Use target_int_max().
11262 (get_string_length): Same.
11263 (format_string): Avoid setting the bounded flag for strings
11265 (try_substitute_return_value): Avoid setting range info when
11266 the result isn't bounded.
11267 * varasm.c (assemble_name): Increase buffer size.
11269 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
11270 Terry Guo <terry.guo@arm.com>
11272 * target.def (elf_flags_numeric): New target hook.
11273 * targhooks.h (default_asm_elf_flags_numeric): New.
11274 * varasm.c (default_asm_elf_flags_numeric): New.
11275 (default_elf_asm_named_section): Use new target hook.
11276 * config/arm/arm.opt (mpure-code): New.
11277 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
11278 * config/arm/arm.c (arm_asm_init_sections): Add section
11279 attribute to default text section if -mpure-code.
11280 (arm_option_check_internal): Diagnose use of option with
11281 non supported targets and/or options.
11282 (arm_asm_elf_flags_numeric): New.
11283 (arm_function_section): New.
11284 (arm_elf_section_type_flags): New.
11285 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
11287 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
11288 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
11290 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
11292 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
11294 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11296 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
11297 * rtl.h: Adjust prototype.
11299 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11301 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
11302 (prev_active_insn): Likewise.
11303 (active_insn_p): Likewise.
11304 * rtl.h: Adjust prototypes.
11305 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
11306 * config/arc/arc.md: Likewise.
11307 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
11308 (branch_needs_nop_p): Likewise.
11309 (use_skip_p): Likewise.
11310 * config/sh/sh.c (gen_block_redirect): Likewise.
11311 (split_branches): Likewise.
11312 * reorg.c (optimize_skip): Likewise.
11313 (fill_simple_delay_slots): Likewise.
11314 (fill_slots_from_thread): Likewise.
11315 (relax_delay_slots): Likewise.
11316 * resource.c (mark_target_live_regs): Likewise.
11318 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11320 * config/cris/cris.c (cris_asm_output_case_end): Change argument
11321 type to rtx_insn *.
11322 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
11323 (prev_nonnote_nondebug_insn): Likewise.
11324 * config/cris/cris-protos.h: Adjust prototype.
11326 * jump.c (rtx_renumbered_equal_p): Adjust.
11328 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11330 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
11331 * rtl.h: Adjust prototype.
11332 * config/sh/sh.md: Adjust.
11333 * dwarf2out.c (add_var_loc_to_decl): Likewise.
11335 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11337 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
11338 (prev_nondebug_insn): Likewise.
11339 * loop-doloop.c (doloop_condition_get): Likewise.
11340 * rtl.h: Adjust prototype.
11341 * cfgloop.h: Likewise.
11343 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11345 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
11346 (prev_nonnote_insn): Likewise.
11347 * jump.c (reversed_comparison_code_parts): Likewise.
11348 (reversed_comparison): Likewise.
11349 * rtl.h: Adjust prototypes.
11350 * config/arc/arc.md: Adjust.
11351 * cse.c (find_comparison_args): Likewise.
11352 * reorg.c (redundant_insn): Change return type to rtx_insn *.
11353 (fix_reg_dead_note): Change argument type to rtx_insn *.
11354 (delete_prior_computation): Likewise.
11355 (delete_computation): Likewise.
11356 (fill_slots_from_thread): Adjust.
11357 (relax_delay_slots): Likewise.
11358 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11359 (simplify_relational_operation_1): Likewise.
11360 (simplify_ternary_operation): Likewise.
11362 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11364 * config/arc/arc-protos.h (arc_label_align): Change type of
11365 variables from rtx to rtx_insn *.
11366 * config/arc/arc.c (arc_label_align): Likewise.
11367 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
11368 * config/bfin/bfin.c (workaround_speculation): Likewise.
11369 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
11370 (find_last_same_clock): Likewise.
11371 (reorg_split_calls): Likewise.
11372 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
11373 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
11374 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
11375 (same_cmp_following_p): Likewise.
11376 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
11377 (same_cmp_following_p): Likwise.
11378 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
11379 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
11380 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
11381 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
11382 (rl78_alloc_physical_registers_cmp): Likewise.
11383 (rl78_alloc_physical_registers_umul): Likewise.
11384 (rl78_calculate_death_notes): Likewise.
11385 * config/s390/s390-protos.h (s390_label_align): Likewise.
11386 * config/s390/s390.c (s390_label_align): Likewise.
11387 * config/sh/sh.c (barrier_align): Likewise.
11388 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
11389 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
11390 (emit_cbcond_nop): Likewise.
11392 2016-09-22 Martin Liska <mliska@suse.cz>
11395 * ipa-icf.c (sem_variable::merge): Yield merge operation if
11396 alias address matters, not necessarily address of original.
11398 2016-09-22 Richard Biener <rguenther@suse.de>
11400 PR middle-end/77697
11401 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
11404 2016-09-22 Richard Biener <rguenther@suse.de>
11406 PR middle-end/77677
11407 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
11408 from constant folding results.
11409 (gimple_resimplify2): Likewise.
11410 (gimple_resimplify3): Likewise.
11412 2016-09-22 Richard Biener <rguenther@suse.de>
11414 PR middle-end/77678
11415 * expr.c (expand_expr_real_1): Guard array access against negative
11418 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11420 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
11422 (format_floating): Likewise.
11424 2016-09-22 Jakub Jelinek <jakub@redhat.com>
11427 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
11428 for all IFN_GOMP_SIMD_* internal fns, not just for
11429 IFN_GOMP_SIMD_ORDERED_*.
11431 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11434 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
11435 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
11436 instructions when you want to invert the test.
11437 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
11438 correct order for XXSEL.
11439 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
11440 for using XSCMP{EQ,GT,GE}DP.
11442 2016-09-21 David Malcolm <dmalcolm@redhat.com>
11444 * genconstants.c (main): Introduce noop_reader and convert call
11445 to read_md_files to a method call.
11446 * genenums.c (main): Likewise.
11447 * genmddeps.c (main): Likewise.
11448 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
11449 rtx_reader_ptr->get_top_level_filename ().
11450 (write_tm_preds_h): Likewise.
11451 (write_insn_preds_c): Likewise.
11452 * gensupport.c (class gen_reader): New subclass of rtx_reader.
11453 (rtx_handle_directive): Convert to...
11454 (gen_reader::handle_unknown_directive): ...this.
11455 (init_rtx_reader_args_cb): Convert return type from bool to
11456 rtx_reader *. Create a gen_reader instance, using it for the
11457 call to read_md_files. Return it if no errors occur.
11458 (init_rtx_reader_args): Convert return type from bool to
11460 * gensupport.h (init_rtx_reader_args_cb): Likewise.
11461 (init_rtx_reader_args_cb): Likewise.
11462 * read-md.c (struct file_name_list): Move to class rtx_reader.
11463 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
11464 (read_md_filename): Delete in favor of
11465 rtx_reader::m_read_md_filename.
11466 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
11467 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
11468 (base_dir): Delete in favor of rtx_reader::m_base_dir.
11469 (first_dir_md_include): Delete in favor of
11470 rtx_reader::m_first_dir_md_include.
11471 (last_dir_md_include_ptr): Delete in favor of
11472 rtx_reader::m_last_dir_md_include_ptr.
11473 (max_include_len): Delete.
11474 (rtx_reader_ptr): New.
11475 (fatal_with_file_and_line): Use get_filename and get_lineno
11476 accessors of rtx_reader_ptr.
11477 (require_char_ws): Likewise.
11478 (rtx_reader::read_char): New method, based on ::read_char.
11479 (rtx_reader::unread_char): New method, based on ::unread_char.
11480 (read_escape): Use get_filename and get_lineno accessors of
11482 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
11483 (read_string): Use get_filename and get_lineno accessors of
11485 (rtx_reader::rtx_reader): New ctor.
11486 (rtx_reader::~rtx_reader): New dtor.
11487 (handle_include): Convert from a function to...
11488 (rtx_reader::handle_include): ...this method, converting
11489 handle_directive from a callback to a virtual function.
11490 (handle_file): Likewise, converting to...
11491 (rtx_reader::handle_file): ...this method.
11492 (handle_toplevel_file): Likewise, converting to...
11493 (rtx_reader::handle_toplevel_file): ...this method.
11494 (rtx_reader::get_current_location): New method.
11495 (parse_include): Convert from a function to...
11496 (rtx_reader::add_include_path): ...this method, dropping redundant
11497 update to unused max_include_len.
11498 (read_md_files): Convert from a function to...
11499 (rtx_reader::read_md_files): ...this method, converting
11500 handle_directive from a callback to a virtual function.
11501 (noop_reader::handle_unknown_directive): New method.
11502 * read-md.h (directive_handler_t): Delete this typedef.
11503 (in_fname): Delete.
11504 (read_md_file): Delete.
11505 (read_md_lineno): Delete.
11506 (read_md_filename): Delete.
11507 (class rtx_reader): New class.
11508 (rtx_reader_ptr): New decl.
11509 (class noop_reader): New subclass of rtx_reader.
11510 (read_char): Reimplement in terms of rtx_reader::read_char.
11511 (unread_char): Reimplement in terms of rtx_reader::unread_char.
11512 (read_md_files): Delete.
11513 * read-rtl.c (read_rtx_code): Update for deletion of globals
11514 read_md_filename and read_md_lineno.
11516 2016-09-21 Jason Merrill <jason@redhat.com>
11518 * input.h (from_macro_definition_at): New.
11520 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
11522 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
11524 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11526 PR tree-optimization/77550
11527 * tree-vect-stmts.c (create_array_ref): Change parameters.
11528 (get_group_alias_ptr_type): New function.
11529 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
11531 2016-09-21 Marek Polacek <polacek@redhat.com>
11533 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
11534 Add falls through comment.
11536 2016-09-21 Richard Biener <rguenther@suse.de>
11538 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
11539 (replace_child): Likewise.
11540 (remove_child_TAG): Adjust.
11541 (move_marked_base_types): Likewise.
11542 (prune_unused_types_prune): Clear die_sib of removed children.
11544 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
11547 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
11548 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
11550 2016-09-21 Richard Biener <rguenther@suse.de>
11552 PR tree-optimization/77648
11553 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
11555 (make_transitive_closure_constraints): Adjust comment.
11556 (make_any_offset_constraints): New function.
11557 (handle_rhs_call): Make sure to first expand a pointer to all
11558 subfields before transitively closing it.
11559 (handle_const_call): Likewise. Properly expand returned
11561 (handle_pure_call): Likewise.
11563 2016-09-21 Richard Biener <rguenther@suse.de>
11564 Jakub Jelinek <jakub@redhat.com>
11566 PR tree-optimization/77621
11567 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
11568 group at non-vectorizable stmts.
11570 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11572 PR tree-optimization/72835
11573 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
11574 (make_new_ssa_for_all_defs): Likewise.
11575 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
11577 2016-09-20 Martin Sebor <msebor@redhat.com>
11579 PR middle-end/49905
11580 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
11581 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
11582 * config/linux.c (gnu_libc_printf_pointer_format): New function.
11583 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
11584 * config/sol2.c (solaris_printf_pointer_format): New function.
11585 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
11587 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
11588 * doc/tm.texi: Regenerate.
11589 * gimple-fold.h (get_range_strlen): New function.
11590 (get_maxval_strlen): Declare existing function.
11591 * gimple-fold.c (get_range_strlen): Add arguments and compute both
11592 maximum and minimum.
11593 (get_range_strlen): Define overload.
11594 (get_maxval_strlen): Adjust.
11595 * gimple-ssa-sprintf.c: New file and pass.
11596 * passes.def (pass_sprintf_length): Add new pass.
11597 * targhooks.h (default_printf_pointer_format): Declare new function.
11598 (gnu_libc_printf_pointer_format): Same.
11599 (solaris_libc_printf_pointer_format): Same.
11600 * targhooks.c (default_printf_pointer_format): Define new function.
11601 * tree-pass.h (make_pass_sprintf_length): Declare new function.
11602 * print-tree.c: Increase buffer size.
11604 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11606 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
11608 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11610 * common.opt: New option -fipa-vrp.
11611 * ipa-cp.c (ipa_get_vr_lat): New.
11612 (ipcp_vr_lattice::print): Likewise.
11613 (print_all_lattices): Call ipcp_vr_lattice::print.
11614 (ipcp_vr_lattice::meet_with): New.
11615 (ipcp_vr_lattice::meet_with_1): Likewise.
11616 (ipcp_vr_lattice::top_p): Likewise.
11617 (ipcp_vr_lattice::bottom_p): Likewsie.
11618 (ipcp_vr_lattice::set_to_bottom): Likewise.
11619 (set_all_contains_variable): Call VR set_to_bottom.
11620 (initialize_node_lattices): Init VR lattices.
11621 (propagate_vr_accross_jump_function): New.
11622 (propagate_constants_accross_call): Call
11623 propagate_vr_accross_jump_function.
11624 (ipcp_store_vr_results): New.
11625 (ipcp_driver): Handle VR.
11626 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
11627 (ipa_set_jf_unknown): Likewise.
11628 (ipa_compute_jump_functions_for_edge): Likewise.
11629 (ipa_node_params_t::duplicate): Likewise.
11630 (ipa_write_jump_function): Likewise.
11631 (ipa_read_jump_function): Likewise.
11632 (write_ipcp_transformation_info): Likewise.
11633 (read_ipcp_transformation_info): Likewise.
11634 (ipcp_update_vr): New.
11635 (ipcp_transform_function): Handle VR.
11636 * ipa-prop.h (struct ipa_vr): New.
11637 * cgraph.c: Include tree-vrp.h.
11638 * cgraphunit.c: Likewise.
11639 * ipa-utils.c: Likewise.
11641 * opts.c: Likewise.
11642 * toplev.c: Likewise.
11643 * ipa-devirt.c: Likewise.
11644 * ipa-inline-transform.c: Likewise.
11645 * ipa-inline.c: Likewise.
11646 * ipa-profile.c: Likewise.
11648 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11650 * doc/invoke.texi: Document -fdump-tree-evrp.
11651 * passes.def: Define new pass_early_vrp.
11652 * timevar.def: Define new TV_TREE_EARLY_VRP.
11653 * tree-pass.h (make_pass_early_vrp): New.
11654 * tree-ssa-propagate.c: Make replace_uses_in non static.
11655 * tree-ssa-propagate.h: Export replace_uses_in.
11656 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
11657 (extract_range_from_assert): Factor out
11658 extract_range_for_var_from_comparison_expr.
11659 (vrp_initialize_lattice): New.
11660 (vrp_initialize): Factor out vrp_initialize_lattice.
11661 (vrp_valueize): Fix it to reject complex value ranges.
11662 (vrp_free_lattice): New.
11663 (evrp_dom_walker::before_dom_children): Likewise.
11664 (evrp_dom_walker::after_dom_children): Likewise.
11665 (evrp_dom_walker::push_value_range): Likewise.
11666 (evrp_dom_walker::pop_value_range): Likewise.
11667 (execute_early_vrp): Likewise.
11668 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
11669 (make_pass_early_vrp): New.
11671 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
11673 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
11674 instead of exact_log2.
11676 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
11679 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
11680 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
11681 (ix86_add_stmt_cost): Penalize DFmode vector operations
11682 for !TARGET_VECTORIZE_DOUBLE.
11684 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
11686 * doc/invoke.texi (Warning Options): Simplify language.
11687 (Optimize Options): Complete sentence.
11689 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
11691 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
11694 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
11697 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
11698 inits on power8 and above, use the VMRGEW instruction instead of a
11701 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
11702 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
11705 2016-09-20 Tamar Christina <tamar.christina@arm.com>
11707 * config/aarch64/arm_neon.h
11708 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
11709 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
11710 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
11712 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
11714 * config/var/vax.h (ELIMINABLE_REGS): Define.
11715 (INITIAL_ELIMINATION_OFFSET): Define.
11717 2016-09-20 Jakub Jelinek <jakub@redhat.com>
11719 PR middle-end/77624
11720 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
11721 cast to void * if the cast is from some other pointer type.
11723 2016-09-20 Richard Biener <rguenther@suse.de>
11725 PR tree-optimization/77646
11726 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
11729 2016-09-20 Tamar Christina <tamar.christina@arm.com>
11731 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
11732 attributes to all inlined functions and make them extern.
11734 2016-09-20 Richard Biener <rguenther@suse.de>
11736 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
11738 * debug.c (do_nothing_debug_hooks): Adjust.
11739 * dbxout.c (dbx_debug_hooks): Likewise.
11740 * sdbout.c (sdb_debug_hooks): Likewise.
11741 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
11742 (dwarf2out_finish): Move producer, filename and
11743 path annotation ...
11744 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
11745 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
11747 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
11750 * doc/invoke.texi: Document -Wint-in-bool-context.
11752 PR middle-end/77421
11753 * dwarf2out.c (output_loc_operands): Fix an assertion.
11755 2016-09-19 Joseph Myers <joseph@codesourcery.com>
11757 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
11758 (CR_DECIMAL_DIG): New macro.
11760 2016-09-19 Joseph Myers <joseph@codesourcery.com>
11762 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
11765 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
11767 PR rtl-optimization/77416
11768 * lra-remat.c (operand_to_remat): Process hard coded insn
11771 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11773 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
11774 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
11776 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
11778 * target.def (lra_p): Wordsmithing.
11779 * doc/tm.texi: Regenerate.
11781 2016-09-19 Jakub Jelinek <jakub@redhat.com>
11782 Jan Hubicka <jh@suse.cz>
11785 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
11786 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
11787 Call ultimate_alias_target just once, not up to 4 times.
11789 2016-09-19 Richard Biener <rguenther@suse.de>
11791 * dwarf2out.c (early_dwarf_finished): New global.
11792 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
11794 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
11795 if called from LTO exit early.
11796 (dwarf2out_late_global_decl): When being during the early
11797 debug phase do not add locations but only const value attributes.
11798 Adjust the way we generate early DIEs for LTO.
11800 2016-09-19 Richard Biener <rguenther@suse.de>
11802 PR middle-end/77605
11803 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
11804 proper niter to bound the loops.
11806 2016-09-19 Richard Biener <rguenther@suse.de>
11808 PR tree-optimization/77514
11809 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
11810 search for folded stmt.
11812 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
11814 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
11815 * tree-pass.h (make_pass_early_thread_jumps): Declare.
11816 * tree-ssa-threadbackward.c (fsm_find_thread_path,
11817 fsm_find_thread_path, profitable_jump_thread_path,
11818 fsm_find_control_statement_thread_paths,
11819 find_jump_threads_backwards): Add speed_p parameter.
11820 (pass_data_early_thread_jumps): New pass.
11821 (make_pass_early_thread_jumps): New function.
11823 2016-09-17 Andreas Schwab <schwab@suse.de>
11825 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
11826 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
11828 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
11830 * recog.c (rest_of_handle_split_after_reload): Delete.
11831 (pass_split_after_reload::gate): New method.
11832 (pass_split_after_reload::execute): Call split_all_insns directly.
11834 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
11836 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
11837 parameters for functions taking long long arguments.
11839 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11842 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
11843 splat with truncate.
11845 2016-09-16 Jason Merrill <jason@redhat.com>
11847 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
11849 * hwint.c (exact_log2): Use pow2p_hwi.
11850 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
11851 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
11852 * builtins.c (get_object_alignment_2, get_object_alignment)
11853 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
11855 * calls.c (compute_argument_addresses, store_one_arg): Use
11857 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
11858 * combine.c (force_to_mode): Use least_bit_hwi.
11859 (contains_muldiv, find_split_point, combine_simplify_rtx)
11860 (simplify_if_then_else, simplify_set, force_to_mode)
11861 (if_then_else_cond, simplify_and_const_int_1)
11862 (simplify_compare_const): Use pow2p_hwi.
11863 * cse.c (fold_rtx): Use pow2p_hwi.
11864 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
11866 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
11867 (init_expmed_one_conv): Use pow2p_hwi.
11868 * expr.c (is_aligning_offset): Use pow2p_hwi.
11869 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
11870 (fold_binary_loc): Use pow2p_hwi.
11871 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
11872 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
11873 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
11874 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
11876 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
11877 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
11878 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
11879 * omp-low.c (oacc_loop_fixed_partitions)
11880 (oacc_loop_auto_partitions): Use least_bit_hwi.
11881 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
11882 * stor-layout.c (place_field): Use least_bit_hwi.
11883 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
11884 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
11885 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
11886 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
11887 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
11888 * tree-vect-data-refs.c (vect_analyze_group_access_1)
11889 (vect_grouped_store_supported, vect_grouped_load_supported)
11890 (vect_permute_load_chain, vect_shift_permute_load_chain)
11891 (vect_transform_grouped_load): Use pow2p_hwi.
11892 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
11893 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
11894 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
11896 * tsan.c (instrument_expr): Use least_bit_hwi.
11897 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
11899 2016-09-16 Andreas Schwab <schwab@suse.de>
11901 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
11902 OFFSET, not offset.
11903 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
11905 2016-09-16 Jakub Jelinek <jakub@redhat.com>
11908 * combine.c (rest_of_handle_combine): If any edges have been purged,
11909 free dominators if available.
11911 2016-09-16 Jakub Jelinek <jakub@redhat.com>
11912 Eric Botcazou <ebotcazou@adacore.com>
11914 PR middle-end/77594
11915 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
11916 through into expand_addsub_overflow after expand_neg_overflow.
11918 2016-09-15 David Malcolm <dmalcolm@redhat.com>
11920 * diagnostic-show-locus.c
11921 (selftest::test_fixit_insert_containing_newline): New function.
11922 (selftest::test_fixit_replace_containing_newline): New function.
11923 (selftest::diagnostic_show_locus_c_tests): Call the above.
11925 2016-09-15 Bin Cheng <bin.cheng@arm.com>
11927 PR tree-optimization/77503
11928 * tree-vect-loop.c (vectorizable_reduction): Record reduction
11929 code for CONST_COND_REDUCTION at analysis stage and use it at
11931 * tree-vectorizer.h (struct _stmt_vec_info): New field.
11932 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
11933 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
11936 2016-09-15 Richard Biener <rguenther@suse.de>
11938 PR middle-end/77544
11939 * fold-const.c (split_tree): Do not split constant ~X.
11941 2016-09-15 Jakub Jelinek <jakub@redhat.com>
11943 PR rtl-optimization/77425
11944 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
11947 PR middle-end/77475
11948 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
11949 use %qs instead of %s where desirable, use argument instead of arg in
11950 the diagnostic wording, add list of supported strategies and
11952 (ix86_option_override_internal): Emit target("m...") instead of
11953 option("m...") in the diagnostic. Use %qs instead of %s in invalid
11954 -march/-mtune option diagnostic. Add list of supported arches/tunings
11955 and spellcheck hint. Remove prefix, suffix and sw variables, use
11956 main_args_p ? "..." : "..." in diagnostics to make translation
11959 2016-09-15 Richard Biener <rguenther@suse.de>
11961 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
11962 extra offset argument.
11963 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
11964 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
11965 to reflect new offset parameter.
11966 * doc/tm.texi: Regenerate.
11967 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
11968 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
11970 (darwin_asm_output_dwarf_offset): Likewise.
11971 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
11973 (darwin_asm_output_dwarf_offset): Pass offset argument through.
11974 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
11975 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
11977 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
11980 * ipa-icf.c (set_alias_uids): New function.
11981 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
11982 all the merged variable's referring aliases.
11984 2016-09-15 Richard Biener <rguenther@suse.de>
11986 PR tree-optimization/77514
11987 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
11988 only forced_stmts sequence.
11990 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
11992 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
11993 * cfgexpand.c (update_alias_info_with_stack_vars): Use
11994 FOR_EACH_SSA_NAME to iterate over SSA variables.
11995 (pass_expand::execute): Likewise.
11996 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
11997 * tree-cfg.c (dump_function_to_file): Likewise.
11998 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
11999 (update_ssa): Likewise.
12000 * tree-ssa-alias.c (dump_alias_info): Likewise.
12001 * tree-ssa-ccp.c (ccp_finalize): Likewise.
12002 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
12003 (create_outofssa_var_map): Likewise.
12004 (coalesce_ssa_name): Likewise.
12005 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
12006 * tree-ssa-pre.c (compute_avail): Likewise.
12007 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
12008 (scc_vn_restore_ssa_info): Likewise.
12009 (free_scc_vn): Likwise.
12010 (run_scc_vn): Likewise.
12011 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
12012 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
12013 * tree-ssa-copy.c (fini_copy_prop): Likewise.
12014 * tree-ssa.c (verify_ssa): Likewise.
12016 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
12018 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
12019 and mips64r2 as default 32-bit and 64-bit architectures.
12020 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
12021 as default 32-bit and 64-bit architectures.
12023 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
12025 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
12028 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12030 * target.def (lra_p): Change commentary (for the manual) for the
12032 * doc/tm.texi: Regenerate.
12034 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12036 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
12037 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
12038 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
12039 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
12041 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12043 * targhooks.c (default_lra_p): Return true instead of false.
12045 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12047 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
12048 hook_bool_void_false.
12049 * config/avr/avr.c: Ditto.
12050 * config/bfin/bfin.c: Ditto.
12051 * config/c6x/c6x.c: Ditto.
12052 * config/cr16/cr16.c: Ditto.
12053 * config/cris/cris.c: Ditto.
12054 * config/epiphany/epiphany.c: Ditto.
12055 * config/fr30/fr30.c: Ditto.
12056 * config/frv/frv.c: Ditto.
12057 * config/h8300/h8300.c: Ditto.
12058 * config/ia64/ia64.c: Ditto.
12059 * config/iq2000/iq2000.c: Ditto.
12060 * config/lm32/lm32.c: Ditto.
12061 * config/m32c/m32c.c: Ditto.
12062 * config/m32r/m32r.c: Ditto.
12063 * config/m68k/m68k.c: Ditto.
12064 * config/mcore/mcore.c: Ditto.
12065 * config/microblaze/microblaze.c: Ditto.
12066 * config/mmix/mmix.c: Ditto.
12067 * config/mn10300/mn10300.c: Ditto.
12068 * config/moxie/moxie.c: Ditto.
12069 * config/msp430/msp430.c: Ditto.
12070 * config/nios2/nios2.c: Ditto.
12071 * config/nvptx/nvptx.c: Ditto.
12072 * config/pa/pa.c: Ditto.
12073 * config/pdp11/pdp11.c: Ditto.
12074 * config/rl78/rl78.c: Ditto.
12075 * config/sparc/sparc.c: Ditto.
12076 * config/spu/spu.c: Ditto.
12077 * config/stormy16/stormy16.c: Ditto.
12078 * config/tilegx/tilegx.c: Ditto.
12079 * config/tilepro/tilepro.c: Ditto.
12080 * config/v850/v850.c: Ditto.
12081 * config/vax/vax.c: Ditto.
12082 * config/visium/visium.c: Ditto.
12083 * config/xtensa/xtensa.c: Ditto.
12085 2016-09-14 Jakub Jelinek <jakub@redhat.com>
12088 * tsan.c: Include target.h.
12089 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
12090 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
12091 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
12092 BUILT_IN_ATOMIC_TEST_AND_SET entries.
12093 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
12095 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12096 Martin Liska <mliska@suse.cz>
12098 PR middle-end/77574
12099 * predict.c (force_edge_cold): Add braces to a condition.
12101 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12103 PR rtl-optimization/77289
12104 * lra-constraints.c (get_final_hard_regno): Removed.
12105 (get_hard_regno): Add new parameter final_p.
12106 (get_reg_class): Directly call lra_get_elimination_hard_regno.
12107 (operands_match_p): Adjust call to get_hard_regno.
12108 (uses_hard_regs_p): Likewise.
12109 (process_alt_operands): Likewise.
12111 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
12114 * config/msp430/msp430.c (msp430_start_function): Emit an error
12115 if a function is both weak and specifies an interrupt number.
12117 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12119 PR tree-optimization/77454
12120 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
12121 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
12124 2016-09-13 Tamar Christina <tamar.christina@arm.com>
12126 * config/aarch64/aarch64-builtins.c
12127 (aarch64_init_simd_builtins): Fix builtin type signature printing.
12129 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
12131 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
12132 SFmode and SCmode arguments by reference.
12134 2016-09-13 David Malcolm <dmalcolm@redhat.com>
12136 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
12138 (selftest::test_one_liner_fixit_insert_before): ...this, and update
12139 for renaming of add_fixit_insert to add_fixit_insert_before.
12140 (selftest::test_one_liner_fixit_insert_after): New function.
12141 (selftest::test_one_liner_fixit_validation_adhoc_locations):
12142 Update for renaming of add_fixit_insert to add_fixit_insert_before.
12143 (selftest::test_one_liner_many_fixits): Likewise.
12144 (selftest::test_diagnostic_show_locus_one_liner): Update for
12145 renaming, call new test function.
12146 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
12147 renaming of add_fixit_insert to add_fixit_insert_before.
12148 (selftest::test_fixit_consolidation): Likewise.
12149 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
12151 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
12152 (selftest::test_applying_fixits_insert_before): ...this.
12153 (selftest::test_applying_fixits_insert): Update for renaming of
12154 add_fixit_insert to add_fixit_insert_before.
12155 (selftest::test_applying_fixits_insert_after): New function.
12156 (selftest::test_applying_fixits_insert_after_at_line_end): New
12158 (selftest::test_applying_fixits_insert_after_failure): New function.
12159 (selftest::test_applying_fixits_multiple): Update for renaming of
12160 add_fixit_insert to add_fixit_insert_before.
12161 (selftest::change_line): Likewise.
12162 (selftest::test_applying_fixits_unreadable_file): Likewise.
12163 (selftest::test_applying_fixits_line_out_of_range): Likewise.
12164 (selftest::test_applying_fixits_column_validation): Likewise.
12165 (selftest::test_applying_fixits_column_validation): Likewise.
12166 (selftest::edit_context_c_tests): Update for renamed test function;
12167 call new test functions.
12169 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
12171 PR tree-optimization/77536
12172 PR rtl-optimization/68212
12173 * config/rs6000/rs6000.md (div->recip splitter): Remove
12174 optimize_insn_for_speed_p condition.
12176 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
12178 * optabs.c (prepare_cmp_insn): Update documentation comment.
12180 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12181 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12183 PR middle-end/77475
12184 * opts.h (candidates_list_and_hint): Declare.
12185 * opts-common.c (candidates_list_and_hint): New function.
12186 (cmdline_handle_error): Use it.
12188 2016-09-12 David Malcolm <dmalcolm@redhat.com>
12190 * edit-context.c (edited_line::get_len): New accessor.
12191 (edited_file::print_diff): Split out hunk-printing into...
12192 (edited_file::print_diff_hunk): New method.
12193 (edited_file::print_diff_line): New method.
12195 2016-09-12 Andrew Pinski <apinski@cavium.com>
12197 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
12199 * config/aarch64/aarch64.c (thunderx_tunings): Enable
12200 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
12201 (aarch64_operands_ok_for_ldpstp): Return false if
12202 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
12203 was SImode and the alignment is less than 8 byte.
12204 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
12206 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
12209 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
12211 2016-09-12 Marek Polacek <polacek@redhat.com>
12213 * doc/extend.texi: Use lowercase "boolean".
12214 * doc/invoke.texi: Likewise.
12215 * doc/md.texi: Likewise.
12216 * target.def: Likewise.
12217 * doc/tm.texi: Regenerated.
12219 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12221 PR middle-end/77426
12222 * expmed.c (synth_mult): Delete duplicate mode check.
12224 2016-09-10 Tom de Vries <tom@codesourcery.com>
12227 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
12229 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
12230 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
12232 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
12234 PR rtl-optimization/77289
12235 * lra-constraints.c (get_final_hard_regno): Add support for non hard
12236 register numbers. Remove support for subregs.
12237 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
12238 (get_reg_class): Delete removed get_final_hard_regno() argument.
12239 (uses_hard_regs_p): Call get_final_hard_regno().
12241 2016-09-09 Martin Sebor <msebor@redhat.com>
12245 * pretty-print.c (pp_quoted_string): New function.
12246 (pp_format): Call it for %c and %s directives.
12248 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12250 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
12251 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
12252 INITIAL_ELIMINATION_OFFSET) : Update documentation.
12253 * target.def (frame_pointer_required, can_eliminate): Likewise.
12254 * doc/tm.texi: Regenerated.
12255 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
12257 * df-scan.c (df_hard_reg_init): Likewise.
12258 * ira.c (ira_setup_eliminable_regset): Likewise.
12259 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
12260 init_elim_table): Likewise.
12261 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
12262 set_initial_elim_offsets, update_eliminables,
12263 init_elim_table): Likewise.
12264 * rtlanal.c (get_initial_register_offset): Likewise.
12265 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12266 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12267 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12268 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12269 * config/fr30/fr30.h: Fix comment.
12270 * config/frv/frv.c: Likewise.
12271 * config/frv/frv.h: Likewise.
12272 * config/ft32/ft32.h: Likewise.
12273 * config/visium/visium.h: Likewise.
12274 * config/pa/pa64-linux.h: Likewise.
12275 * config/v850/v850.h: Likewise.
12276 * config/cris/cris.c: Likewise.
12277 * config/ia64/ia64.h: Likewise.
12278 * config/moxie/moxie.h: Likewise.
12279 * config/m32r/m32r.h: Likewise.
12281 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
12284 * config.in: Regenerate.
12285 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
12287 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
12288 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
12289 static-libmpxwrappers case.
12290 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
12291 MPX_LD_AS_NEEDED_GUARD_POP.
12292 * configure: Regenerate.
12293 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
12294 defined if linker support "--push-state"/"--pop-state".
12296 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12298 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
12300 2016-09-09 Joseph Myers <joseph@codesourcery.com>
12302 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
12303 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
12304 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
12305 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
12306 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
12307 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
12308 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
12310 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
12311 width macros from TS 18661-1.
12312 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
12314 2016-09-08 Jakub Jelinek <jakub@redhat.com>
12317 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
12318 OMP_CLAUSE_SAFELEN_EXPR.
12320 2016-09-07 David Malcolm <dmalcolm@redhat.com>
12322 * Makefile.in (OBJS): Add substring-locations.o.
12323 * langhooks-def.h (class substring_loc): New forward decl.
12324 (lhd_get_substring_location): New decl.
12325 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
12326 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
12327 * langhooks.c (lhd_get_substring_location): New function.
12328 * langhooks.h (class substring_loc): New forward decl.
12329 (struct lang_hooks): Add field get_substring_location.
12330 * substring-locations.c: New file, taking definition of
12331 format_warning_va and format_warning_at_substring from
12332 c-family/c-format.c, making them non-static.
12333 * substring-locations.h (class substring_loc): Move class here
12334 from c-family/c-common.h. Add and rewrite comments.
12335 (format_warning_va): New decl.
12336 (format_warning_at_substring): New decl.
12337 (get_source_location_for_substring): Add comment.
12339 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
12341 * config/i386/i386.c: Add 'U' suffix to processor feature bits
12342 to avoid -Wnarrowing warning.
12343 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
12344 * opts.c: Likewise for SANITIZER_OPT bitmasks.
12346 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
12348 * config/aarch64/aarch64.c (aarch64_legitimize_address):
12349 Avoid use of base_offset if offset already in range.
12351 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
12353 * config/sh/sh-protos.h (struct sh_atomic_model,
12354 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
12355 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
12356 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
12357 * config/sh/sh.h (struct sh_atomic_model,
12358 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
12359 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
12360 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
12361 Guard with __cplusplus.
12363 2016-09-06 Jakub Jelinek <jakub@redhat.com>
12366 * config/i386/i386.c (ix86_expand_builtin): For builtin with
12367 unsupported or unknown ISA, use expand_call.
12369 2016-09-06 Martin Liska <mliska@suse.cz>
12371 PR gcov-profile/77378
12372 PR gcov-profile/77466
12373 * tree-profile.c (tree_profiling): Detect whether target can use
12374 -fprofile-update=atomic.
12376 2016-09-06 Richard Biener <rguenther@suse.de>
12378 PR tree-optimization/77479
12379 * tree-vrp.c (update_value_range): Extend overflow handling to
12382 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12385 * config/i386/i386.md (isa): Add x64_avx512bw.
12386 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
12387 (kmov_isa): New mode attr.
12388 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
12389 (*zero_extend<mode>si2): Likewise.
12390 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
12392 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
12394 * doc/invoke.texi (SPU Options): nops -> NOPs.
12395 (x86 Options): Ditto.
12397 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12399 PR middle-end/77475
12400 * toplev.c (process_options): Temporarily set input_location
12401 to UNKNOWN_LOCATION around targetm.target_option.override () call.
12403 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
12405 PR rtl-optimization/77452
12406 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
12407 inner-mode reference to a CONST_VECTOR constant in the constant pool.
12409 2016-09-05 Marek Polacek <polacek@redhat.com>
12412 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
12414 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12417 * gensupport.c (alter_output_for_subst_insn): Remove redundant
12418 *insn_out == '*' test. Don't copy unnecessary to yet another
12419 memory buffer, and don't leak it.
12421 PR rtl-optimization/77425
12422 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
12424 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
12426 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
12428 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12430 * common.opt (fdiagnostics-generate-patch): New option.
12431 * diagnostic.c: Include "edit-context.h".
12432 (diagnostic_initialize): Initialize context->edit_context_ptr.
12433 (diagnostic_finish): Delete context->edit_context_ptr.
12434 (diagnostic_report_diagnostic): Add fix-it hints from the
12435 diagnostic to context->edit_context_ptr, if any.
12436 * diagnostic.h (class edit_context): Add forward decl.
12437 (struct diagnostic_context): Add field "edit_context_ptr".
12438 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
12439 -fdiagnostics-generate-patch.
12440 (-fdiagnostics-generate-patch): New item.
12441 * toplev.c: Include "edit-context.h".
12442 (process_options): Set global_dc->edit_context_ptr to a new
12443 edit_context if the options need one.
12444 (toplev::main): Handle -fdiagnostics-generate-patch by using
12445 global_dc->edit_context_ptr.
12447 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12450 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
12451 map and firstprivate clauses on target construct for _Atomic
12453 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
12454 on target construct for _Atomic qualified decls.
12455 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
12457 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
12458 _Atomic qualified arguments not mentioned in uniform clause.
12460 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12462 * Makefile.in (OBJS-libcommon): Add edit-context.o.
12463 * diagnostic-color.c (color_dict): Add "diff-filename",
12464 "diff-hunk", "diff-delete", and "diff-insert".
12465 (parse_gcc_colors): Update default value of GCC_COLORS in comment
12466 to reflect above changes.
12467 * doc/invoke.texi (-fdiagnostics-color): Update description of
12468 default GCC_COLORS, and of the supported capabilities.
12469 * edit-context.c: New file.
12470 * edit-context.h: New file.
12471 * input.c (struct fcache): Add field "missing_trailing_newline".
12472 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
12474 (add_file_to_cache_tab): Likewise.
12475 (fcache::fcache): Likewise.
12476 (get_next_line): Update c->missing_trailing_newline.
12477 (location_missing_trailing_newline): New function.
12478 * input.h (location_missing_trailing_newline): New decl.
12479 * selftest-run-tests.c (selftest::run_tests): Call
12480 edit_context_c_tests.
12481 * selftest.h (edit_context_c_tests): New decl.
12483 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12484 Richard Biener <rguenth@suse.de>
12486 PR tree-optimization/77444
12487 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
12488 as steptype, remove redundant initialization.
12490 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12493 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
12494 (sanopt_optimize_walker): Optimize away
12495 __asan_before_dynamic_init (...) followed by
12496 __asan_after_dynamic_init () without intervening memory loads/stores.
12497 * ipa-pure-const.c (special_builtin_state): Handle
12498 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
12499 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
12501 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12503 * cfg.c (free_original_copy_tables): Replace second assignment of
12504 bb_copy = NULL by bb_original = NULL.
12506 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12509 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
12510 assignment added in r216794.
12512 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12514 * Makefile.in (OBJS): Add typed-splay-tree.o.
12515 * selftest-run-tests.c (selftest::run_tests): Call
12516 typed_splay_tree_c_tests.
12517 * selftest.h (typed_splay_tree_c_tests): New decl.
12518 * typed-splay-tree.c: New file.
12519 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
12520 (typed_splay_tree::max): New method.
12521 (typed_splay_tree::min): New method.
12522 (typed_splay_tree::foreach): New method.
12523 (typed_splay_tree::closure): New struct.
12524 (typed_splay_tree::inner_foreach_fn): New function.
12526 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12528 * ipa-cp.c (ipcp_store_bits_results): Change option name from
12529 -fipa-cp-bit to -fipa-bit-cp.
12531 2016-09-01 Martin Sebor <msebor@redhat.com>
12533 PR tree-optimization/71831
12534 * tree-object-size.h: Return bool instead of the size and add
12535 argument for the size.
12536 * tree-object-size.c (compute_object_offset): Update signature.
12537 (addr_object_size): Same.
12538 (compute_builtin_object_size): Return bool instead of the size
12539 and add argument for the size. Handle POINTER_PLUS_EXPR when
12540 optimization is disabled.
12541 (expr_object_size): Adjust.
12542 (plus_stmt_object_size): Adjust.
12543 (pass_object_sizes::execute): Adjust.
12544 * builtins.c (fold_builtin_object_size): Adjust.
12545 * doc/extend.texi (Object Size Checking): Update.
12546 * ubsan.c (instrument_object_size): Adjust.
12548 2016-09-01 Martin Sebor <msebor@redhat.com>
12550 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
12551 it fits the output of the formatted function regardless of its
12553 * genmodes.c (parser::parse_expr): Same.
12554 * gimplify.c (gimplify_asm_expr): Same.
12555 * passes.c (pass_manager::register_one_dump_file): Same.
12556 * print-tree.c (print_node): Same.
12558 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12560 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
12562 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12564 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
12566 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12568 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
12569 * config/rs6000/vector.md: Ditto.
12570 * config/rs6000/vsx.md: Ditto.
12572 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
12574 * ipa-inline-analysis.c (param_change_prob): Get to the base object
12575 first in all cases.
12577 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12579 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
12580 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
12581 *return_and_restore_gpregs_<mode>_r11,
12582 *return_and_restore_gpregs_<mode>_r12,
12583 *return_and_restore_gpregs_<mode>_r1,
12584 *return_and_restore_fpregs_<mode>_r11,
12585 *return_and_restore_fpregs_<mode>_r12,
12586 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
12587 directly instead of via the "l" constraint. Renumber operands.
12590 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12592 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
12593 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
12594 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
12595 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
12596 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
12597 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
12598 *call_value_nonlocal_darwin64, reload_macho_picbase,
12599 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
12600 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
12601 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
12602 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
12603 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
12604 *save_fpregs_<mode>_r1): Ditto.
12605 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
12606 *return_and_restore_gpregs_spe): Ditto.
12608 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12610 * config/rs6000/rs6000.md
12611 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
12612 the use of the link register.
12613 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
12615 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12616 Michael Meissner <meissner@linux.vnet.ibm.com>
12619 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
12620 reg+reg addressing for TImode.
12621 (rs6000_legitimate_address_p): Only allow register indirect
12622 addressing for TImode, even without TARGET_QUAD_MEMORY.
12624 2016-09-01 Richard Biener <rguenther@suse.de>
12626 PR middle-end/77436
12627 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
12628 check whether the result fits the desired result type.
12630 2016-09-01 Nathan Sidwell <nathan@acm.org>
12632 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
12634 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
12636 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
12638 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
12640 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12642 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
12643 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
12644 for comparisons of integer ZERO_EXTEND against zero.
12646 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
12648 * config/i386/i386.c (ix86_option_override_internal): Also disable the
12649 STV pass if -mstackrealign is enabled.
12651 2016-08-31 Ilya Verbin <iverbin@gmail.com>
12653 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
12656 2016-08-31 David Malcolm <dmalcolm@redhat.com>
12658 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
12659 (layout_range::intersects_line_p): New method.
12660 (test_range_contains_point_for_single_point): Rename to...
12661 (test_layout_range_for_single_point): ...this, and add testing
12662 for layout_range::intersects_line_p.
12663 (test_range_contains_point_for_single_line): Rename to...
12664 (test_layout_range_for_single_line): ...this, and add testing
12665 for layout_range::intersects_line_p.
12666 (test_range_contains_point_for_multiple_lines): Rename to...
12667 (test_layout_range_for_multiple_lines): ...this, and add testing
12668 for layout_range::intersects_line_p.
12669 (layout::layout): Populate m_fixit_hints.
12670 (layout::get_expanded_location): Handle the case of a line-span
12672 (layout::validate_fixit_hint_p): New method.
12673 (get_line_span_for_fixit_hint): New function.
12674 (layout::calculate_line_spans): Add spans for fixit-hints.
12675 (layout::should_print_annotation_line_p): New method.
12676 (layout::print_any_fixits): Drop param "richloc", instead using
12677 validated fixits in m_fixit_hints. Add "const" to hint pointers.
12678 (diagnostic_show_locus): Avoid printing blank annotation lines.
12679 (selftest::test_diagnostic_context::test_diagnostic_context):
12680 Initialize show_column and start_span.
12681 (selftest::test_diagnostic_context::start_span_cb): New static
12683 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
12684 (selftest::diagnostic_show_locus_c_tests): Update for function
12685 renamings. Call test_diagnostic_show_locus_fixit_lines.
12687 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
12689 PR tree-optimization/73714
12690 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
12692 2016-08-31 David Malcolm <dmalcolm@redhat.com>
12694 * selftest.c: Move "namespace selftest {" to top of file,
12695 removing explicit "selftest::" qualifiers throughout.
12697 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
12699 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
12701 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
12702 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
12703 Replace builtin with vector extension.
12704 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
12706 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
12707 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
12708 Replace builtin with vector extension.
12709 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
12710 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
12711 Replace builtin with vector extension.
12712 * config/i386/xmmintrin.h (__m128_u): New type.
12713 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
12714 (_mm_load_ps, _mm_store_ps): Simplify.
12716 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
12718 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
12720 2016-08-30 David Malcolm <dmalcolm@redhat.com>
12722 * diagnostic-show-locus.c (colorizer::begin_state): Support more
12723 than 3 ranges per diagnostic by alternating between color 1 and
12725 (layout::layout): Replace use of rich_location::MAX_RANGES
12726 with richloc->get_num_locations ().
12727 (layout::calculate_line_spans): Replace use of
12728 rich_location::MAX_RANGES with m_layout_ranges.length ().
12729 (layout::print_annotation_line): Handle arbitrary numbers of
12730 ranges in caret-printing by defaulting to '^'.
12731 (selftest::test_one_liner_many_fixits): New function.
12732 (test_diagnostic_show_locus_one_liner): Call it.
12733 * diagnostic.c (diagnostic_initialize): Update for renaming
12734 of rich_location::MAX_RANGES to
12735 rich_location::STATICALLY_ALLOCATED_RANGES.
12736 * diagnostic.h (struct diagnostic_context): Likewise.
12738 2016-08-30 David Malcolm <dmalcolm@redhat.com>
12740 * selftest.c (selftest::named_temp_file::named_temp_file): New
12742 (selftest::temp_source_file::~temp_source_file): Move to...
12743 (selftest::named_temp_file::~named_temp_file): ...here.
12744 (selftest::test_named_temp_file): New function.
12745 (selftest::selftest_c_tests): Call test_named_temp_file.
12746 * selftest.h (class named_temp_file): New class.
12747 (class temp_source_file): Convert to a subclass of named_temp_file.
12749 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
12751 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
12752 USEs of LR_REGNO in returns and sibcalls.
12753 (rs6000_output_mi_thunk): Similar.
12754 (rs6000_sibcall_aix): Similar.
12755 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
12756 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
12757 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
12758 Remove the USE of LR_REGNO from the patterns as well. Delete an
12760 (return_internal_<mode>): Delete.
12762 2016-08-30 Tamar Christina <tamar.christina@arm.com>
12764 * config/aarch64/aarch64-simd.md
12765 (aarch64_ld2<mode>_dreg_le): New.
12766 (aarch64_ld2<mode>_dreg_be): New.
12767 (aarch64_ld2<mode>_dreg): Removed.
12768 (aarch64_ld3<mode>_dreg_le): New.
12769 (aarch64_ld3<mode>_dreg_be): New.
12770 (aarch64_ld3<mode>_dreg): Removed.
12771 (aarch64_ld4<mode>_dreg_le): New.
12772 (aarch64_ld4<mode>_dreg_be): New.
12773 (aarch64_ld4<mode>_dreg): Removed.
12774 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
12776 2016-08-30 David Malcolm <dmalcolm@redhat.com>
12778 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
12779 redundant location param.
12780 (test_one_liner_fixit_remove): Likewise.
12781 (test_one_liner_fixit_replace): Likewise.
12782 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
12783 * gcc-rich-location.c
12784 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
12785 get_range_from_loc. Drop overload taking a const char *.
12786 * gcc-rich-location.h
12787 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
12790 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
12792 * config/linux.c (linux_libc_has_function): Return true on musl.
12794 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
12796 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
12798 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
12800 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
12801 used for abnormal egdes.
12803 2016-08-30 Jakub Jelinek <jakub@redhat.com>
12805 PR tree-optimization/72866
12806 * tree-vect-patterns.c (search_type_for_mask): Turn into
12807 a small wrapper, move all code to ...
12808 (search_type_for_mask_1): ... this new function. Add caching
12809 and adjust recursive calls.
12812 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
12813 instead of lookup_type_die (type_main_variant (type)) even for array
12816 PR middle-end/77377
12817 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
12818 constant pool reference return x instead of c.
12820 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
12822 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
12825 2016-08-29 David Malcolm <dmalcolm@redhat.com>
12828 (selftest::test_make_location_nonpure_range_endpoints): Fix
12831 2016-08-29 David Malcolm <dmalcolm@redhat.com>
12833 * diagnostic-show-locus.c
12834 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
12836 (selftest::test_diagnostic_show_locus_one_liner): Call it.
12837 * input.c (get_pure_location): Move to libcpp/line-map.c.
12838 * input.h (get_pure_location): Convert decl to an inline function
12839 calling implementation in libcpp.
12841 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
12844 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
12845 template for intel asm dialect.
12846 (vec_set_hi_<mode><mask_name>): Ditto.
12848 2016-08-29 David Malcolm <dmalcolm@redhat.com>
12850 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
12851 (selftest::fail_formatted): Likewise.
12853 2016-08-29 David Malcolm <dmalcolm@redhat.com>
12855 * input.c (make_location): Call get_start and get_finish
12856 on the endpoints to avoid storing packed ranges or ad-hoc
12858 (selftest::test_make_location_nonpure_range_endpoints): New function.
12859 (selftest::input_c_tests): Call it.
12860 * input.h (get_start): New inline function.
12862 2016-08-29 Tom de Vries <tom@codesourcery.com>
12865 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
12868 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
12870 * Makefile.in (gcov-iov.h): Add dummy recipe.
12872 2016-08-29 Nathan Sidwell <nathan@acm.org>
12874 * config/nvptx/nvptx.c: #include tree-vrp.h.
12876 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
12879 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
12880 HIGH+LO construct during reload.
12882 2016-08-28 Tom de Vries <tom@codesourcery.com>
12885 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
12886 'sysv_abi va_list' attribute.
12887 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
12888 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
12891 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12893 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
12894 * emit-rtl.c (unshare_all_rtl_1): Adjust.
12895 (unshare_all_rtl_again): Likewise.
12896 * function.c (assign_stack_local_1): Likewise.
12897 (assign_stack_temp_for_type): Likewise.
12899 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12901 * cfgbuild.c (make_edges): Adjust.
12902 * cfgrtl.c (can_delete_label_p): Likewise.
12903 * dwarf2cfi.c (create_trace_edges): Likewise.
12904 * except.c (sjlj_emit_dispatch_table): Likewise.
12905 * function.h (struct expr_status): make x_forced_labels a vector.
12906 * jump.c (rebuild_jump_labels_1): Adjust.
12907 * reload1.c (set_initial_label_offsets): Likewise.
12908 * stmt.c (force_label_rtx): Likewise.
12909 (expand_label): Likewise.
12911 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12913 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
12915 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
12917 PR tree-optimization/71077
12918 PR tree-optimization/68542
12919 * fold-const.c (fold_relational_const): Fix folding of
12920 VECTOR_CST comparisons that have a scalar boolean result type.
12921 (selftest::test_vector_folding): New static function.
12922 (selftest::fold_const_c_tests): Call it.
12924 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
12926 * doc/extend.texi (SPU Built-in Functions): Remove stale
12927 references to material formerly at IBM and Sony.
12929 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
12932 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
12934 2016-08-26 David Malcolm <dmalcolm@redhat.com>
12936 * diagnostic-show-locus.c
12937 (selftest::test_fixit_consolidation): New function.
12938 (selftest::diagnostic_show_locus_c_tests): Call it.
12939 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
12940 constructor based on source_range.
12942 2016-08-26 David Malcolm <dmalcolm@redhat.com>
12944 * diagnostic-color.c (color_dict): Add "fixit-insert" and
12946 (parse_gcc_colors): Update description of default GCC_COLORS.
12947 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
12948 (colorizer::set_fixit_insert): New method.
12949 (colorizer::set_fixit_delete): New method.
12950 (colorizer::get_color_by_name): New method.
12951 (colorizer::STATE_FIXIT_INSERT): New constant.
12952 (colorizer::STATE_FIXIT_DELETE): New constant.
12953 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
12954 fields in favor of new field "m_stop_color". Add fields
12955 "m_fixit_insert" and "m_fixit_delete".
12956 (colorizer::colorizer): Update for above changes. Replace
12957 colorize_start calls with calls to get_color_by_name.
12958 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
12959 STATE_FIXIT_DELETE. Update for field renamings.
12960 (colorizer::finish_state): Simplify by using m_stop_color,
12961 rather than multiple identical "*_ce" fields.
12962 (colorizer::get_color_by_name): New method.
12963 (layout::print_any_fixits): Print insertions and replacements
12964 using the "fixit-insert" color, and deletions using the
12965 "fixit-delete" color.
12966 * doc/invoke.texi (-fdiagnostics-color): Update description of
12967 default GCC_COLORS, and of the supported capabilities.
12969 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
12971 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
12972 current_function_static_stack_size variable with the static
12973 stack frame size of the current function when
12974 flag_stack_usage_info is enabled.
12976 2016-08-26 Nathan Sidwell <nathan@acm.org>
12978 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
12979 assignment inside if condition.
12981 2016-08-26 Richard Biener <rguenther@suse.de>
12983 PR tree-optimization/69047
12984 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
12985 extracts similar to what FRE does.
12986 (non_rewritable_mem_ref_base): Likewise.
12988 2016-08-26 Joseph Myers <joseph@codesourcery.com>
12990 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
12991 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
12992 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12993 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12994 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
12996 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12997 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12998 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12999 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
13000 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13002 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13005 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
13006 reservation duration to 15 cycles.
13007 (cortex_a8_vfp_macs): Likewise.
13008 (cortex_a8_vfp_macd): Likewise.
13009 (cortex_a8_vfp_divs): Likewise.
13010 (cortex_a8_vfp_divd): Likewise.
13012 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13014 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
13015 (aarch_macro_fusion_pair_p): Use above to avoid early return.
13017 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13018 Martin Jambhor <mjambor@suse.cz>
13020 * common.opt: New option -fipa-bit-cp.
13021 * doc/invoke.texi: Document -fipa-bit-cp.
13022 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
13023 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
13024 * tree-ssa-ccp.h: New header file.
13025 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
13026 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
13027 Replace all occurences of tree parameter by two new params: signop, int.
13028 (bit_value_unop_1): Change to bit_value_unop and export it.
13029 Replace all occurences of tree parameter by two new params: signop,
13031 (bit_value_binop): Change call from bit_value_binop_1 to
13033 (bit_value_assume_aligned): Likewise.
13034 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
13035 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
13037 (ccp_finalize): Skip processing if val->mask == 0.
13038 * ipa-cp.c: Include tree-ssa-ccp.h
13039 (ipcp_bits_lattice): New class.
13040 (ipcp_param_lattice (bits_lattice): New member.
13041 (print_all_lattices): Call ipcp_bits_lattice::print.
13042 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
13043 (initialize_node_lattices): Likewise.
13044 (propagate_bits_accross_jump_function): New function.
13045 (propagate_constants_accross_call): Call
13046 propagate_bits_accross_jump_function.
13047 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
13048 (ipcp_store_bits_results): New function.
13049 (ipcp_driver): Call ipcp_store_bits_results.
13050 * ipa-prop.h (ipa_bits): New struct.
13051 (ipa_jump_func): Add new member bits of type ipa_bits.
13052 (ipa_param_descriptor): Change decl to decl_or_type.
13053 (ipa_get_param): Change decl to decl_or_type and assert on
13055 (ipa_get_type): New function.
13056 (ipcp_transformation_summary): New member bits.
13057 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
13058 (ipa_populate_param_decls): Likewise.
13059 (ipa_dump_param): Likewise.
13060 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
13062 (ipa_set_jf_unknown): Set ipa_bits::known to false.
13063 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
13065 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
13066 (ipa_write_jump_function): Add streaming for ipa_bits.
13067 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
13068 (write_ipcp_transformation_info): Add streaming for ipa_bits
13069 summary for ltrans.
13070 (read_ipcp_transfomration_info): Add support for reading streamed
13072 (ipcp_update_bits): New function.
13073 (ipcp_transform_function): Call ipcp_update_bits.
13075 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
13077 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
13078 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
13080 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
13082 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
13084 2016-08-25 Richard Biener <rguenther@suse.de>
13086 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
13087 Only add locations in late dwarf.
13088 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
13089 (dwarf2out_early_finish): But do it here.
13091 2016-08-24 Michael Collison <michael.collison@linaro.org>
13092 Michael Collison <michael.collison@arm.com>
13094 * config/arm/arm-modes.def: Add new condition code mode CC_V
13095 to represent the overflow bit.
13096 * config/arm/arm.c (maybe_get_arm_condition_code):
13097 Add support for CC_Vmode.
13098 (arm_gen_unlikely_cbranch): New function to generate common
13099 rtl conditional branches for overflow patterns.
13100 * config/arm/arm-protos.h: Add prototype for
13101 arm_gen_unlikely_cbranch.
13102 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
13103 addsi3_compareV_upper): New patterns to support signed
13104 builtin overflow add operations.
13105 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
13106 New patterns to support unsigned builtin add overflow operations.
13107 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
13108 builtin overflow subtract operations,
13109 (usubv<mode>4): New patterns to support unsigned builtin subtract
13110 overflow operations.
13111 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
13112 to support builtin overflow negate operations.
13114 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13117 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13119 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13120 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13123 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13125 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
13126 MULTILIB_OPTIONS should be used. Small wording fixes.
13127 * genmultilib: Memorize set of all option combinations in
13128 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
13129 found in MULTILIB_OPTIONS by checking if option set is listed in
13130 combination_space. Output new and existing error message to stderr.
13132 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13134 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
13135 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
13136 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
13137 (MULTILIB_REUSE): Remove reuse rules for option set including
13138 -mfpu=fp-armv8 and -mfpu=vfpv4
13140 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
13142 * config/arm/t-rtems: Add vfp multilib.
13144 2016-08-23 Ian Lance Taylor <iant@golang.org>
13146 * config/s390/s390.c (s390_asm_file_start): Call
13147 default_file_start.
13149 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13151 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
13152 initialization of all 0's to the 0 constant, instead of directly
13153 generating XOR. Add support for V4SImode vector initialization on
13154 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
13155 initialization. Change variables used in V4SFmode vector
13156 intialization. For V4SFmode vector splat on ISA 3.0, make sure
13157 any memory addresses are in index form. Add support for using
13158 VSPLTH/VSPLTB to initialize vector short and vector char vectors
13159 with all of the same element.
13160 (regno_or_subregno): New helper function to return a register
13161 number for either REG or SUBREG.
13162 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
13163 Use regno_or_subregno where possible.
13164 (rs6000_split_v4si_init_di_reg): New helper function to build up a
13165 DImode value from two SImode values in order to generate V4SImode
13166 vector initialization on 64-bit systems with direct move.
13167 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
13169 (rtx_is_swappable_p): V4SImode vector initialization insn is not
13171 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
13173 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
13174 attributes to initialize V8HImode and V16QImode vectors with the
13176 (VSX_SPLAT_COUNT): Likewise.
13177 (VSX_SPLAT_SUFFIX): Likewise.
13178 (UNSPEC_VSX_VEC_INIT): New unspec.
13179 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
13180 Allow SFmode values to come from Altivec registers.
13181 (vsx_init_v4si): New insn/split for V4SImode vector initialization
13182 on 64-bit systems with direct move.
13183 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
13184 vector initializations, to allow V4SImode vector initializations
13185 on 64-bit systems with direct move.
13186 (vsx_splat_v4si): Likewise.
13187 (vsx_splat_v4si_di): Likewise.
13188 (vsx_splat_v4sf): Likewise.
13189 (vsx_splat_v4sf_internal): Likewise.
13190 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
13192 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
13193 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
13194 initializing V8HImode and V16QImode vectors with the same
13196 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
13197 optimization if -maltivec=be.
13199 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
13201 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
13202 attribute for alternatives 3 and 4.
13204 2016-08-23 David Malcolm <dmalcolm@redhat.com>
13206 * selftest.c (selftest::assert_str_contains): New function.
13207 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
13208 * selftest.h (selftest::assert_str_contains): New decl.
13209 (ASSERT_STR_CONTAINS): New macro.
13211 2016-08-23 Richard Biener <rguenther@suse.de>
13213 PR tree-optimization/77286
13214 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
13216 (vect_transform_loop): Split exit edges of loop and scalar
13217 loop if required and at the appropriate time.
13219 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13221 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13222 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13224 Correct a typo in a comment.
13226 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13228 * config/s390/s390.md ("*andc_split"): New splitter for and with
13231 2016-08-23 Richard Biener <rguenther@suse.de>
13233 PR tree-optimization/27336
13234 * tree-vrp.c (infer_value_range): Handle stmts that can throw
13235 by looking for a non-EH edge.
13236 (process_assert_insertions_for): Likewise.
13238 2016-08-23 Richard Biener <rguenther@suse.de>
13240 PR middle-end/77305
13241 * statistics.c (statistics_counter_event): Robustify against
13244 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13246 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
13247 for targets amdfam10 and barcelona.
13249 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
13251 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
13252 (zero_extend<mode>di2): Ditto.
13253 (*zero_extend<mode>si2): Ditto.
13254 (*zero_extendqihi2): Ditto.
13256 2016-08-22 Joseph Myers <joseph@codesourcery.com>
13258 PR middle-end/77269
13259 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
13260 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
13262 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
13264 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
13265 identical consecutive elements.
13266 [SSA_NAME]: Print the name's def stmt on its own line. When printing
13267 the node's def stmt, avoid printing an unwanted trailing newline by
13268 replacing the call to print_gimple_stmt() with its inlined body and
13269 adjusting it to not set pp_needs_newline and to call pp_flush()
13270 instead of pp_newline_and_flush().
13272 2016-08-22 Joseph Myers <joseph@codesourcery.com>
13274 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
13275 (float32_type_node, float64_type_node, float32x_type_node)
13276 (float128x_type_node): New macros.
13277 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
13278 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
13279 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
13280 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
13281 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
13282 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
13283 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
13284 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
13285 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
13286 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
13287 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
13288 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
13289 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
13290 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
13291 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
13292 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
13293 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
13294 (copysign, fabs, huge_val, inf, nan, nans): Use it.
13295 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
13297 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
13298 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
13299 * doc/extend.texi (Other Builtins): Document these built-in
13301 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
13304 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
13306 * doc/install.texi (Binaries): www.opencsw.org now uses https.
13308 2016-08-22 Richard Biener <rguenther@suse.de>
13310 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
13312 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
13315 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
13316 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
13317 non-SSE2 athlons only, otherwise prefer SSE prefetches.
13319 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13321 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
13322 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
13323 (vrp_visit_switch_stmt): Likewise.
13324 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
13325 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
13326 (vrp_visit_stmt): Use extract_range_from_stmt.
13327 (vrp_visit_phi_node): Use extract_range_from_phi_node.
13329 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13331 * Makefile.in: Add tree-vrp.h to GTFILES.
13332 * gengtype.c (open_base_files): Add tree-vrp.h.
13333 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
13334 * builtins.c: Likewise.
13335 * fold-const.c: Likewise.
13336 * gimple-builder.c: Likewise.
13337 * gimple-laddress.c: Likewise.
13338 * hsa-gen.c: Likewise.
13339 * internal-fn.c: Likewise.
13341 * targhooks.c: Liewise,
13342 * tree-ssa-address.c: Likewise.
13343 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
13344 * tree-vrp.c (struct value_range): Move to tree-vrp.h
13345 * tree-vrp.h: New file.
13347 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13349 PR tree-optimization/61839
13350 * tree-vrp.c (two_valued_val_range_p): New.
13351 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
13352 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
13353 Also Convert VAR BINOP CST where VAR is two-valued to
13354 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
13356 2016-08-19 David Malcolm <dmalcolm@redhat.com>
13358 * diagnostic-show-locus.c
13359 (layout::annotation_line_showed_range_p): New method.
13360 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
13361 Reimplement case fixit_hint::REPLACE to cover removals, and
13362 replacements where the range of the replacement isn't one
13363 of the ranges in the rich_location.
13364 (test_one_liner_fixit_replace): Likewise.
13365 (selftest::test_one_liner_fixit_replace_non_equal_range): New
13367 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
13369 (selftest::test_diagnostic_show_locus_one_liner): Call the new
13371 * diagnostic.c (print_parseable_fixits): Remove case
13372 fixit_hint::REMOVE.
13374 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
13377 * config/i386/i386.c (ix86_option_override_internal): Remove
13378 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
13379 Enable SSE prefetch also for TARGET_PREFETCHWT1.
13380 Do not try to enable TARGET_PRFCHW ISA flag here.
13381 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
13382 Rewrite expander function body.
13383 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
13385 2016-08-19 Joseph Myers <joseph@codesourcery.com>
13388 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
13389 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
13390 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
13391 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
13392 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
13393 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
13394 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
13395 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
13396 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
13398 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
13400 (struct floatn_type_info): New structure type.
13401 (floatn_nx_types): New variable declaration.
13402 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
13403 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
13404 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
13405 * tree.c (floatn_nx_types): New variable.
13406 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
13407 corresponding complex types.
13408 * target.def (floatn_mode): New hook.
13409 * targhooks.c: Include "real.h".
13410 (default_floatn_mode): New function.
13411 * targhooks.h (default_floatn_mode): New prototype.
13412 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
13414 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
13415 effective-target and dg-add-options keywords.
13416 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
13417 Document new effective-target keywords.
13418 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
13419 * doc/tm.texi: Regenerate.
13420 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
13421 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
13422 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
13424 * real.h (struct real_format): Add field ieee_bits.
13425 * real.c (ieee_single_format, mips_single_format)
13426 (motorola_single_format, spu_single_format, ieee_double_format)
13427 (mips_double_format, motorola_double_format)
13428 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
13429 (ieee_extended_intel_128_format)
13430 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
13431 (mips_extended_format, ieee_quad_format, mips_quad_format)
13432 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
13433 (decimal_double_format, decimal_quad_format, ieee_half_format)
13434 (arm_half_format, real_internal_format: Initialize ieee_bits
13436 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
13437 float128_type_node. Set float80_type_node to float64x_type_node
13438 if appropriate and long_double_type_node not appropriate.
13439 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
13440 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
13441 Initialize ieee_bits field.
13442 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
13443 (rs6000_init_builtins): Set ieee128_float_type_node to
13444 float128_type_node.
13445 (rs6000_floatn_mode): New function.
13447 2016-08-19 Jakub Jelinek <jakub@redhat.com>
13449 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
13450 _rdseed64_step): Uglify argument names and/or local variable names
13451 in inline functions.
13452 * config/i386/rtmintrin.h (_xabort): Likewise.
13453 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
13454 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
13455 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
13456 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
13457 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
13458 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
13459 _mm_maskz_ternarylogic_epi32): Likewise.
13460 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
13461 __lwpins32, __lwpins64): Likewise.
13462 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
13463 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
13464 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
13465 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
13466 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
13467 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
13468 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
13469 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
13470 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
13471 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
13472 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
13473 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
13474 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
13475 _mm256_mask_i64gather_epi32): Likewise.
13476 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
13477 * config/i386/ia32intrin.h (__writeeflags): Likewise.
13478 * config/i386/pkuintrin.h (_wrpkru): Likewise.
13479 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
13480 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
13481 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
13482 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
13483 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
13484 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
13485 _mm512_mask_prefetch_i64scatter_ps): Likewise.
13486 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
13487 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
13488 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
13489 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
13490 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
13491 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
13492 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
13493 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
13495 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
13497 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
13498 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
13500 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
13501 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
13503 (_rdpkru_u32): Add space after function name.
13505 * config/i386/t-i386 (i386-c.o): Don't depend on
13506 i386-builtin-types.inc.
13507 (i386.o): Depend on i386-builtin-types.inc.
13509 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
13512 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
13513 Use const_vec_duplicate to check for duplicated elements.
13515 2016-08-19 Richard Biener <rguenther@suse.de>
13517 PR tree-optimization/77290
13518 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13519 Fix flag_tree_parallelize_loops check.
13521 2016-08-19 Richard Biener <rguenther@suse.de>
13523 * match.pd (x | 0 -> x): Add.
13525 2016-08-19 Richard Biener <rguenther@suse.de>
13527 PR tree-optimization/77286
13528 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
13529 Deal with virtual PHIs being out-of-order.
13531 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13533 * doc/invoke.texi (fverbose-asm): Note that source code lines
13534 are emitted, and provide an example.
13535 * final.c (asm_show_source): New function.
13536 (final_scan_insn): Call asm_show_source.
13538 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13540 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
13541 param with diagnostic_kind.
13542 (class colorizer): Similarly replace field m_diagnostic with
13544 (colorizer::colorizer): Replace diagnostic
13545 param with diagnostic_kind.
13546 (colorizer::begin_state): Update for above field change.
13547 (layout::layout): Replace diagnostic param with rich_location *
13548 and diagnostic_kind.
13549 (diagnostic_show_locus): Replace diagnostic param with richloc
13550 and diagnostic_kind.
13551 (class selftest::test_diagnostic_context): New class.
13552 (selftest::test_diagnostic_show_locus_unknown_location): New
13554 (selftest::test_one_liner_simple_caret): New function.
13555 (selftest::test_one_liner_caret_and_range): New function.
13556 (selftest::test_one_liner_multiple_carets_and_ranges): New
13558 (selftest::test_one_liner_fixit_remove): New function.
13559 (selftest::test_one_liner_fixit_replace): New function.
13560 (selftest::test_diagnostic_show_locus_one_liner): New function.
13561 (selftest::diagnostic_show_locus_c_tests): Call the new test
13563 * diagnostic.c (diagnostic_initialize): Initialize
13564 colorize_source_p, show_ruler_p and parseable_fixits_p.
13565 (default_diagnostic_finalizer): Update for change to
13566 diagnostic_show_locus.
13567 (diagnostic_append_note): Likewise.
13568 * diagnostic.h (diagnostic_show_locus): Replace
13569 const diagnostic_info * param with location * and diagnostic_t.
13571 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13573 * input.c (saved_line_table): New global.
13574 (class selftest::temp_line_table): Rename to line_table_test and
13575 move declaration to selftest.h, and drop field m_old_line_table.
13576 (selftest::temp_line_table::temp_line_table): Rename ctor to...
13577 (selftest::line_table_test::line_table_test): ...this. Add a
13578 default ctor. Store current value of line_table within
13580 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
13581 (selftest::line_table_test::~line_table_test): ...this, and
13582 restore line_table from the saved_line_table, rather than
13584 (selftest::test_accessing_ordinary_linemaps): Update for above
13586 (selftest::test_lexer): Likewise.
13587 (struct selftest::lexer_test): Likewise.
13588 (selftest::lexer_test::lexer_test): Likewise.
13589 (selftest::input_c_tests): Move the looping over test cases from
13591 (selftest::for_each_line_table_case): New function.
13592 * input.h (saved_line_table): New decl.
13593 * selftest.h (struct selftest::line_table_case): New forward decl.
13594 (class selftest::line_table_test): New class, moved here from
13595 selftest::temp_line_table in input.c, and renamed.
13596 (selftest::for_each_line_table_case): New decl.
13598 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
13601 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
13603 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
13605 PR middle-end/70895
13606 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
13607 enclosing parallel construct for reduction variables on OpenACC loop
13610 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
13612 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
13613 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
13615 (function_to_dwarf_procedure): Update comment.
13617 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13619 * input.c (diagnostics_file_cache_forcibly_evict_file): New
13621 * input.h (diagnostics_file_cache_forcibly_evict_file): New
13623 * selftest.c (selftest::temp_source_file::~temp_source_file):
13624 Evict m_filename from the diagnostic file cache.
13626 2016-08-18 Richard Biener <rguenther@suse.de>
13628 * tree-pass.h (make_pass_materialize_all_clones): Declare.
13629 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
13630 make_pass_materialize_all_clones): New simple IPA pass encapsulating
13631 clone materialization.
13632 * passes.def (all_late_ipa_passes): Start with
13633 pass_materialize_all_clones.
13634 * cgraphunit.c (symbol_table::compile): Remove call to
13635 materialize_all_clones.
13636 * tree-into-ssa.c: Include statistics.h.
13637 (update_ssa): Count number of times we do incremental/rewrite
13640 2016-08-18 Richard Biener <rguenther@suse.de>
13642 PR tree-optimization/77282
13643 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13644 When doing auto-parallelizing also prevent use of PHIs that
13645 carry dependences across loop backedges.
13647 2016-08-18 Tamar Christina <tamar.christina@arm.com>
13648 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13650 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
13652 2016-08-18 Richard Biener <rguenther@suse.de>
13654 * ssa-iterators.h (ssa_vuse_operand): New inline.
13655 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
13656 (predicate_all_scalar_phis): Use remove_phi_node to remove
13657 phi nodes predicated. Delay removing virtual PHIs.
13658 (predicate_mem_writes): Update virtual operands.
13659 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
13660 (tree_if_conversion): Do not rewrite virtual SSA form.
13661 * tree-phinodes.c (release_phi_node): Make static.
13662 * tree-phinodes.h (release_phi_node): Remove.
13664 2016-08-18 Jakub Jelinek <jakub@redhat.com>
13666 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
13667 codes that appear in bdesc_* arrays, instead include i386-builtin.def
13668 twice to define those.
13669 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
13670 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
13671 bdesc_multi_arg): Define by including i386-builtin.def the third time.
13672 * config/i386/i386-builtin.def: New file.
13674 2016-08-17 David Malcolm <dmalcolm@redhat.com>
13676 * input.c (get_source_range_for_char): Rename to...
13677 (selftest::get_source_range_for_char): ...this, and move within
13678 the #if CHECKING_P guard.
13679 (get_num_source_ranges_for_substring): Rename to...
13680 (selftest::get_num_source_ranges_for_substring): ...this, move
13681 within the #if CHECKING_P guard, and make static.
13682 (selftest::assert_num_substring_ranges): Initialize
13685 2016-08-18 Alan Modra <amodra@gmail.com>
13687 PR rtl-optimization/72771
13688 * reload.c (find_reloads): Don't assume that a subreg mem is OK
13689 when find_reloads_toplev returns address_reloaded==-1.
13690 (alternative_allows_const_pool_ref): Update comment.
13692 2015-08-17 Alan Hayward <alan.hayward@arm.com>
13694 PR tree-optimization/71752
13695 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
13696 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
13698 2016-08-17 Jakub Jelinek <jakub@redhat.com>
13700 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
13701 instead of testing ECF_NORETURN bit in gimple_call_flags.
13702 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
13703 * predict.c (tree_bb_level_predictions): Likewise.
13704 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
13706 PR middle-end/77259
13707 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
13708 turning a call into __builtin_unreachable-like noreturn call, adjust
13709 gimple_call_set_fntype.
13710 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
13711 gimple_call_fntype has void return type.
13713 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
13715 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
13716 maybe_lookup_decl, to handle nested acc loop directives.
13718 2016-08-17 Richard Biener <rguenther@suse.de>
13720 PR tree-optimization/76490
13721 * tree-vrp.c (update_value_range): Preserve overflow infinities
13722 when intersecting with ranges from get_range_info.
13723 (operand_less_p): Handle overflow infinities correctly.
13724 (value_range_constant_singleton): Use vrp_operand_equal_p
13725 to handle overflow max/min correctly.
13726 (vrp_valueize): Likewise.
13727 (union_ranges): Likewise.
13728 (intersect_ranges): Likewise.
13729 (vrp_visit_phi_node): Improve iteration limitation to only
13730 apply when we'll possibly re-visit the PHI via a changed argument
13733 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
13735 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
13736 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
13737 rather than those that should not be built.
13739 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
13742 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
13744 2016-08-17 Richard Biener <rguenther@suse.de>
13746 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
13747 (verify_vssa): New function verifying virtual SSA form.
13748 (verify_ssa): Call it.
13749 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
13750 Do not apply loop-closed SSA handling to virtuals.
13751 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
13752 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
13753 when rewriting their symbol.
13754 (prepare_def_site_for): Likewise.
13755 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
13756 operands of moved stmts.
13758 2016-08-17 Richard Biener <rguenther@suse.de>
13760 PR tree-optimization/23855
13761 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
13762 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
13763 find guards to hoist. Do not update SSA form but rewrite virtuals
13764 into loop closed SSA.
13765 (find_loop_guard): Adjust to skip already hoisted guards. Do
13766 not mark virtuals for renaming or update SSA form.
13768 2016-08-17 Martin Liska <mliska@suse.cz>
13770 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
13771 a LONG_LONG_TYPE_SIZE comparison.
13772 * gcov-io.h: Remove macro definitions.
13773 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
13774 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
13777 2016-08-16 Jakub Jelinek <jakub@redhat.com>
13779 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
13780 that builtins not mentioned in bdesc_* arrays come first, then
13781 the ones mentioned in bdesc_* arrays in the order they appear in
13782 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
13783 IX86_BUILTIN__BDESC_*_LAST enumerator.
13784 (bdesc_mpx): Fix up a comment typo.
13785 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
13786 __builtin_ia32_vpcomneu[bwdq] builtins.
13787 (BDESC_VERIFY, BDESC_VERIFYS): Define.
13788 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
13789 enum ix86_builtins ordering.
13790 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
13791 for direct bdesc_* array member access instead of searching all the
13792 arrays until an fcode match is found.
13794 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
13796 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
13797 pattern as define_insn_and_split. Split insn before reload to
13799 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
13800 <shift_insn><mode>3_1.
13801 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
13802 <rotate_insn><mode>3_1.
13804 2016-08-16 David Malcolm <dmalcolm@redhat.com>
13807 * input.c (get_source_range_for_substring): Rename to...
13808 (get_source_location_for_substring): ...this, adding param
13809 "caret_idx", and converting output param from source_range * to
13811 (get_source_range_for_char): New function.
13812 (get_num_source_ranges_for_substring): Update comment to reflect
13814 (assert_char_at_range): Update to use get_source_range_for_char
13815 rather than get_source_range_for_substring.
13816 (test_lexer_string_locations_concatenation_2): Likewise.
13817 * substring-locations.h (get_source_range_for_substring): Rename
13819 (get_source_location_for_substring): ...this, and adding param
13820 "caret_idx", and converting output param from source_range * to
13823 2016-08-16 David Malcolm <dmalcolm@redhat.com>
13825 * input.c (class selftest::temp_source_file): Move to
13827 (selftest::temp_source_file::temp_source_file): Move to
13829 (selftest::temp_source_file::~temp_source_file): Likewise.
13830 * selftest.c (selftest::temp_source_file::temp_source_file): Move
13832 (selftest::temp_source_file::~temp_source_file): Likewise.
13833 * selftest.h (class selftest::temp_source_file): Move here from
13836 2016-08-16 Jakub Jelinek <jakub@redhat.com>
13839 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
13840 inlining, add cgraph edge for the added __builtin_unreachable call.
13842 PR middle-end/67485
13843 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
13844 only cast it to SHWI for the final comparison.
13846 2016-08-16 Martin Liska <mliska@suse.cz>
13848 PR gcov-profile/36412
13849 * doc/gcov.texi: Document --hash-filenames(-x).
13850 * gcov.c (print_usage): Add the option.
13851 (process_args): Process the option, sort options alphabetically.
13852 (md5sum_to_hex): New function.
13853 (make_gcov_file_name): Do the md5sum and append it to a
13856 2016-08-16 Bin Cheng <bin.cheng@arm.com>
13858 PR tree-optimization/69848
13859 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
13860 and swtich operands to avoid additional NOT instruction.
13861 (vcond<v_cmp_mixed><mode>): Ditto.
13862 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
13864 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
13866 * doc/install.texi (*-*-solaris2*): Adjust latest change.
13868 2016-08-16 Richard Biener <rguenther@suse.de>
13870 PR tree-optimization/76783
13871 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
13872 BB visited flags at start.
13874 2016-08-16 Bin Cheng <bin.cheng@arm.com>
13876 PR tree-optimization/72817
13877 PR tree-optimization/73450
13878 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
13879 multiple_of_p for adjusted IV.base.
13881 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
13884 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
13885 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
13886 for !flag_finite_math_only or flag_signed_zeros.
13887 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
13888 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
13889 depend on flag_finite_math_only.
13890 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
13892 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
13893 (*ieee_smin<mode>3): Ditto.
13894 (*ieee_smax<mode>3): Ditto.
13895 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
13896 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
13898 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
13899 depend on flag_finite_math_only.
13900 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
13901 (*mmx_<code>v2sf3): Remove.
13902 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
13903 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
13904 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
13906 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13908 PR rtl-optimization/73650
13909 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
13910 it is not a simple move.
13912 2016-08-15 Martin Liska <mliska@suse.cz>
13915 * gcc.c (do_spec_1): Call save_string with the right size.
13916 (save_string): Do an assert about string we copy.
13918 2016-08-15 Richard Biener <rguenther@suse.de>
13920 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
13921 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
13923 (pass_data_stv): Likewise.
13925 2016-08-15 Richard Biener <rguenther@suse.de>
13927 PR tree-optimization/73434
13928 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
13929 TBAA info on the base when forwarding a non-invariant address.
13931 2016-08-15 Jakub Jelinek <jakub@redhat.com>
13933 * dwarf2out.c (struct checksum_attributes): Add
13934 at_string_length_bit_size and at_string_length_byte_size fields.
13935 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
13936 and DW_AT_string_length_byte_size.
13937 (die_checksum_ordered): Handle at_string_length_bit_size and
13938 at_string_length_byte_size.
13939 (gen_array_type_die): For dwarf_version >= 5 emit
13940 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
13941 (adjust_string_types): For dwarf_version >= 5 remove
13942 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
13943 (resolve_addr): Likewise.
13946 * dwarf2out.c (string_types): New variable.
13947 (gen_array_type_die): Change early_dwarf handling of
13948 DW_AT_string_length, create DW_OP_call4 referencing the
13949 length var temporarily. Handle parameters that are pointers
13951 (adjust_string_types): New function.
13952 (gen_subprogram_die): Temporarily set string_types to local var,
13953 call adjust_string_types if needed.
13954 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
13956 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
13958 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
13960 * doc/install.texi (*-*-solaris2*): Fix version number and document
13961 requirement on GNU make for building libjava with the Solaris linker.
13963 2016-08-15 Martin Liska <mliska@suse.cz>
13964 Jakub Jelinek <jakub@redhat.com>
13966 PR tree-optimization/72824
13967 * tree-loop-distribution.c (const_with_all_bytes_same)
13968 <case VECTOR_CST>: Fix a typo.
13970 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
13973 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
13974 Renamed from _mm512_undefined_si512.
13975 (_mm_undefined_si512): New definition.
13977 2016-08-13 Richard Biener <rguenther@suse.de>
13979 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
13980 into PHIs and update the lattice for its def.
13982 2016-08-12 Jakub Jelinek <jakub@redhat.com>
13985 * ubsan.c (instrument_si_overflow): Pass true instead of false
13987 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
13988 of bbs. Return TODO_cleanup_cfg if any returned true.
13990 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13992 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
13993 ISA 3.0 MTVSRDD instruction.
13994 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
13997 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
13999 PR tree-optimization/71083
14000 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
14001 bitfield access when possible.
14003 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
14005 PR middle-end/71654
14006 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
14007 sign-changing cast from a shorter unsigned type to a wider
14010 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14012 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
14013 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
14014 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
14016 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14018 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
14019 Correct costs for vec_construct.
14021 2016-08-12 Bin Cheng <bin.cheng@arm.com>
14023 PR tree-optimization/69848
14024 * tree-vectorizer.h (enum vect_def_type): New condition reduction
14025 type CONST_COND_REDUCTION.
14026 * tree-vect-loop.c (vectorizable_reduction): Support new condition
14027 reudction type CONST_COND_REDUCTION.
14029 2016-08-12 Richard Biener <rguenther@suse.de>
14031 PR tree-optimization/57326
14032 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
14033 returning an SSA name.
14034 (phi_translate_1): When fully_constant_expression returns a NAME
14035 make sure we have a leader for it.
14037 2016-08-12 Martin Liska <mliska@suse.cz>
14038 Adam Fineman <afineman@afineman.com>
14040 * gcov.c (process_file): Create .gcov file when .gcda
14043 2016-08-12 Marek Polacek <polacek@redhat.com>
14046 * alias.c (find_base_value): Adjust fall through comment.
14047 * cfgexpand.c (expand_debug_expr): Likewise.
14048 * combine.c (find_split_point): Likewise.
14049 (expand_compound_operation): Likewise. Add FALLTHRU.
14050 (make_compound_operation): Adjust fall through comment.
14051 (canon_reg_for_combine): Add FALLTHRU.
14052 (force_to_mode): Adjust fall through comment.
14053 (simplify_shift_const_1): Likewise.
14054 (simplify_comparison): Likewise.
14055 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
14057 * config/aarch64/predicates.md: Likewise.
14058 * config/i386/i386.c (function_arg_advance_32): Likewise.
14059 (ix86_gimplify_va_arg): Likewise.
14060 (print_reg): Likewise.
14061 (ix86_print_operand): Likewise.
14062 (ix86_build_const_vector): Likewise.
14063 (ix86_expand_branch): Likewise.
14064 (ix86_sched_init_global): Adjust fall through comment.
14065 (ix86_expand_args_builtin): Add FALLTHRU.
14066 (ix86_expand_builtin): Likewise.
14067 (ix86_expand_vector_init_one_var): Likewise.
14068 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
14069 (rs6000_adjust_cost): Likewise.
14070 (insn_must_be_first_in_group): Likewise.
14071 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
14072 * dbxout.c (dbxout_symbol): Adjust fall through comment.
14073 * df-scan.c (df_uses_record): Likewise.
14074 * dojump.c (do_jump): Add FALLTHRU.
14075 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
14077 (resolve_args_picking_1): Adjust fall through comment.
14078 (loc_list_from_tree_1): Likewise.
14079 * expmed.c (make_tree): Likewise.
14080 * expr.c (expand_expr_real_2): Add FALLTHRU.
14081 (expand_expr_real_1): Likewise. Adjust fall through comment.
14082 * fold-const.c (const_binop): Adjust fall through comment.
14083 (fold_truth_not_expr): Likewise.
14084 (fold_cond_expr_with_comparison): Add FALLTHRU.
14085 (fold_binary_loc): Likewise.
14086 (contains_label_1): Adjust fall through comment.
14087 (multiple_of_p): Likewise.
14088 * gcov-tool.c (process_args): Add FALLTHRU.
14089 * genattrtab.c (check_attr_test): Likewise.
14090 (write_test_expr): Likewise.
14091 * genconfig.c (walk_insn_part): Likewise.
14092 * genpreds.c (validate_exp): Adjust fall through comment.
14093 (needs_variable): Likewise.
14094 * gensupport.c (get_alternatives_number): Add FALLTHRU.
14095 (subst_dup): Likewise.
14096 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
14097 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
14098 (gimplify_scan_omp_clauses): Add FALLTHRU.
14099 (goa_stabilize_expr): Likewise.
14100 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
14102 * hsa-gen.c (get_address_from_value): Likewise.
14103 * ipa-icf.c (sem_function::hash_stmt): Likewise.
14104 * ira.c (ira_setup_alts): Add FALLTHRU.
14105 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
14107 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
14108 * opts.c (common_handle_option): Likewise.
14109 * read-rtl.c (read_rtx_code): Likewise.
14110 * real.c (round_for_format): Likewise.
14111 * recog.c (asm_operand_ok): Likewise.
14112 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
14113 * reload1.c (set_label_offsets): Likewise.
14114 (eliminate_regs_1): Likewise.
14115 (reload_reg_reaches_end_p): Likewise.
14116 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
14117 (rtx_cost): Likewise.
14118 * sched-rgn.c (is_exception_free): Likewise.
14119 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
14120 * stor-layout.c (int_mode_for_mode): Likewise.
14121 * toplev.c (print_to_asm_out_file): Likewise.
14122 (print_to_stderr): Likewise.
14123 * tree-cfg.c (gimple_verify_flow_info): Likewise.
14124 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
14125 (chrec_fold_multiply): Likewise.
14126 (evolution_function_is_invariant_rec_p): Likewise.
14127 (for_each_scev_op): Likewise.
14128 * tree-data-ref.c (siv_subscript_p): Likewise.
14129 (get_references_in_stmt): Likewise.
14130 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
14131 (substitute_in_expr): Likewise.
14132 (type_cache_hasher::equal): Likewise.
14133 (walk_type_fields): Likewise.
14134 * var-tracking.c (adjust_mems): Add FALLTHRU.
14135 (set_dv_changed): Adjust fall through comment.
14136 * varasm.c (default_function_section): Add FALLTHRU.
14138 2016-08-12 Marek Polacek <polacek@redhat.com>
14141 * tree-complex.c (expand_complex_division): Add missing break.
14143 2016-08-12 Richard Biener <rguenther@suse.de>
14145 * passes.c (execute_todo): Do not push/pop TV_TODO.
14146 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
14147 (execute_one_pass): Likewise.
14148 * common.opt (ftime-report-details): New switch.
14149 * doc/invoke.texi (ftime-report-details): Document.
14150 * timevar.h (timer::print_row): Adjust signature.
14151 (timer::all_zero): New static helper.
14152 (timer::child_map_t): New typedef.
14153 (timer::time_var_def): Add children field.
14154 * timevar.c (timer::named_items::print): Adjust.
14155 (timer::~timer): Free timevar recorded children.
14156 (timer::pop_internal): When -ftime-report-details record
14157 time spent in sub-timevars.
14158 (timer::print_row): Adjust.
14159 (timer::print): Print sub-timevar stats, use all_zero.
14160 * timevar.def (TV_TODO): Remove.
14162 2016-08-12 Richard Biener <rguenther@suse.de>
14164 PR tree-optimization/72851
14165 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
14166 worklists to use bitmaps indexed in execution order.
14167 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
14168 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
14169 (cfg_blocks): Make a bitmap.
14170 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
14172 (cfg_blocks_empty_p): Adjust.
14173 (cfg_blocks_add): Likewise.
14174 (cfg_blocks_get): Likewise.
14175 (add_ssa_edge): Likewise.
14176 (add_control_edge): Likewise.
14177 (simulate_stmt): Likewise.
14178 (process_ssa_edge_worklist): Likewise.
14179 (simulate_block): Likewise.
14180 (ssa_prop_init): Compute PRE order and stmt UIDs.
14181 (ssa_prop_fini): Adjust.
14182 (ssa_propagate): Adjust.
14184 2016-08-12 Richard Biener <rguenther@suse.de>
14186 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
14187 the currently executable edges have fixed ranges. Always
14188 go through update_value_range.
14190 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
14194 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
14195 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
14196 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
14197 (LANG_HOOKS_DECLS): Add it.
14198 * langhooks.h (struct lang_hooks_for_decls): Add
14199 function_decl_defaulted. Const_tree-ify
14200 function_decl_explicit_p and function_decl_deleted_p.
14201 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
14202 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
14203 also at strict DWARF v5.
14206 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
14207 TYPE_QUAL_CONST in reference-typed decls.
14210 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
14211 in DW_OP_pieces, just enough to handle pointers to member
14213 (gen_remaining_tmpl_value_param_die_attribute): Use a location
14214 expression on DWARFv5 if a constant value doesn't work.
14216 2016-08-11 David Malcolm <dmalcolm@redhat.com>
14218 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
14219 * selftest.c (selftest::test_assertions): New function.
14220 (selftest::selftest_c_tests): New function.
14221 * selftest.h (selftest::selftest_c_tests): New declaration.
14223 2016-08-11 Richard Biener <rguenther@suse.de>
14224 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14226 PR rtl-optimization/72855
14227 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
14229 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14232 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
14233 (vsx_store_<mode>): Likewise.
14235 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
14237 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
14238 TImode CONST_WIDE_INT store.
14239 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
14241 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
14243 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
14244 mode if unaligned SSE load and store are optimal.
14246 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
14248 PR tree-optimization/71083
14249 * tree-predcom.c (ref_at_iteration): Correctly align the
14252 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14254 * config/s390/s390-builtin-types.def: Add INT128 types.
14255 * config/s390/s390-builtins.def: Add INT128 variants for the add
14256 sub low-level builtins dealing with TImode.
14257 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
14258 via subreg when expanding a builtin.
14259 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
14260 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
14262 * config/s390/vecintrin.h: Adjust builtin names accordingly.
14263 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
14264 ("vec_addc<mode>", "vec_addc_u128"): Merge to
14265 "vacc<bhfgq>_<mode>".
14266 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
14267 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
14268 ("vec_subc<mode>", "vec_subc_u128"): Merge to
14269 "vscbi<bhfgq>_<mode>".
14270 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
14271 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
14273 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14275 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
14277 2016-08-11 Bin Cheng <bin.cheng@arm.com>
14279 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
14280 unused declaration.
14281 (vcond<v_cmp_mixed><mode>): Ditto.
14282 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
14284 2016-08-11 Bin Cheng <bin.cheng@arm.com>
14286 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
14287 variable explicitly, also assert on it before use.
14289 2016-08-11 Richard Biener <rguenther@suse.de>
14291 PR tree-optimization/72772
14292 * cfgloopmanip.c (create_preheader): Use split_edge if there
14293 is a single loop entry, avoiding degenerate PHIs.
14295 2016-08-11 Richard Biener <rguenther@suse.de>
14297 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
14298 unconditional TODO_cleanup_cfg.
14299 (pass_thread_jumps::execute): Initialize loops, perform a CFG
14300 cleanup only if we threaded a jump.
14302 2016-08-11 Alan Modra <amodra@gmail.com>
14305 * lra-constraints.c (simplify_operand_subreg): Allow subreg
14306 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
14307 slow. Emit two reloads for slow mem case, first loading in
14308 fast innermode, then converting to required mode.
14310 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
14312 * config/rs6000/altivec.h (vec_extract_exp): New macro.
14313 (vec_extract_sig): New macro.
14314 (vec_insert_exp): New macro.
14315 (vec_test_data_class): New macro.
14316 (scalar_extract_exp): New macro.
14317 (scalar_extract_sig): New macro.
14318 (scalar_insert_exp): New macro.
14319 (scalar_test_data_class): New macro.
14320 (scalar_test_neg): New macro.
14321 (scalar_cmp_exp_gt): New macro.
14322 (scalar_cmp_exp_lt): New macro.
14323 (scalar_cmp_exp_eq): New macro.
14324 (scalar_cmp_exp_unordered): New macro.
14325 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
14326 to enforce constraint that operand is a 7-bit unsigned literal.
14327 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
14328 for power9 built-ins.
14329 (BU_P9V_VSX_2): Likewise.
14330 (BU_P9V_64BIT_VSX_2): Likewise.
14331 (VSEEDP): Add scalar extract exponent support.
14332 (VSEESP): Add scalar extract signature support.
14333 (VSTDCNDP): Add scalar test negative support.
14334 (VSTDCNSP): Likewise.
14335 (VSIEDP): Add scalar insert exponent support.
14336 (VSCEDPGT): Add scalar compare exponent greater than support.
14337 (VSCEDPLT): Add scalar compare exponent less than support.
14338 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
14339 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
14340 (VSTDCDP): Add scalar test data class support.
14341 (VSTDCSP): Likewise.
14342 (VSEEDP): Add overload support for scalar extract exponent
14344 (VSESDP): Add overload support for scalar extract signature
14346 (VSTDCN): Add overload support for scalar test negative
14348 (VSTDCNDP): Add overload support for scalar test negative
14350 (VSTDCNSP): Add overload support for scalar test negative
14352 (VSIEDP): Add overload support for scalar insert exponent
14354 (VSTDC): Add overload support for scalar test data class
14356 (VSTDCDP): Add overload support for scalar test data class
14358 (VSTDCSP): Add overload support for scalar test data class
14360 (VSCEDPGT): Add overload support for scalar compare exponent
14361 greater than operation.
14362 (VSCEDPLT): Add overload support for scalar compare exponent
14363 less than operation.
14364 (VSCEDPEQ): Add overload support for scalar compare exponent
14365 test-for-equality operation.
14366 (VSCEDPUO): Add overload support for scalar compare exponent
14367 test-for-unordered operation.
14368 (VEEDP): Add vector extract exponent support.
14370 (VESDP): Add vector extract significand support.
14372 (VIEDP): Add vector insert exponent support.
14374 (VTDCDP): Add vector test data class support.
14375 (VTDCSP): Likewise.
14376 (VES): Add overload support for vector extract significand operation.
14379 (VEE): Add overload support for vector extract exponent operation.
14382 (VTDC): Add overload support for vector test data class operation.
14383 (VTDCDP): Likewise.
14384 (VTDCSP): Likewise.
14385 (VIE): Add overload support for vector insert exponent operation.
14388 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14389 overloaded binary floating point functions.
14390 (altivec_resolve_overloaded_builtin): Improve error messages to
14391 distinguish between functions not supported in the current
14392 compiler configuration and functions that were invoked with an
14393 invalid parameter combination, and include the built-in function
14394 name in both error messages.
14395 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
14397 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
14399 (rs6000_expand_binop_builtin): Add check to enforce that argument
14400 2 of the test data class operations is a 7-bit unsigned literal.
14401 (rs6000_invalid_builtin): Add code to issue an error message if a
14402 built-in function that requires the power9_vector and -m32
14403 command-line options is compiled without these options.
14404 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
14405 (UNSPEC_VSX_SXSIGDP): New value.
14406 (UNSPEC_VSX_SXSIGPDP): New value.
14407 (UNSPEC_VSX_SIEXPDP): New value.
14408 (UNSPEC_VSX_SCMPEXPDP): New value.
14409 (UNSPEC_VSX_STSTDC): New value.
14410 (UNSPEC_VSX_VXEXP): New value.
14411 (UNSPEC_VSX_VXSIG): New value.
14412 (UNSPEC_VSX_VIEXP): New value.
14413 (UNSPEC_VSX_VTSTDC): New value.
14414 (xsxexpdp): New insn for scalar extract exponent.
14415 (xsxsigdp): New insn for scalar extract significand.
14416 (xsiexpdp): New insn for scalar insert exponent.
14417 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
14418 (*xscmpexpdp): New insn for scalar compare exponents.
14419 (xststdc<Fvsx): New expansion for both single- and
14420 double-precision scalar test data class operations.
14421 (xststdcneg<Fvsx>): New expansion for both single- and
14422 double-precision scalar test for negative value operations.
14423 (*xststdc<Fvsx>): New insn for scalar test data class
14425 (xvxexp<VSs>): New insn for single- and double-precision
14426 vector extract exponent operation.
14427 (xvxsig<VSs>): New insn for single- and double-precision
14428 vector extract significand operation.
14429 (xviexp<VSs>): New insn for single- and double-precision
14430 vector insert exponent operation.
14431 (xvtstdc<VSs>): New insn for single- and double-precision
14432 vector test data class operation.
14433 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14434 built-in functions to represent the Power9 binary floating-point
14435 support instructions.
14437 2016-08-10 bin cheng <bin.cheng@arm.com>
14439 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
14441 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
14442 Renlin Li <renlin.li@arm.com>
14443 Bin Cheng <bin.cheng@arm.com>
14445 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
14446 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
14447 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
14448 (aarch64_vcond_internal<mode><mode>): Delete pattern.
14449 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
14450 (vcond<v_cmp_result><mode>): Ditto.
14451 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
14452 (vcondu<mode><mode>): Ditto.
14453 (vcond<v_cmp_mixed><mode>): New pattern.
14454 (vcondu<mode><v_cmp_mixed>): New pattern.
14455 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
14456 of aarch64_vcond_internal.
14458 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
14459 Renlin Li <renlin.li@arm.com>
14460 Bin Cheng <bin.cheng@arm.com>
14462 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
14463 (vec_cmp<mode><v_cmp_result>): New pattern.
14464 (vec_cmpu<mode><mode>): New pattern.
14465 (vcond_mask_<mode><v_cmp_result>): New pattern.
14467 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
14469 PR tree-optimization/71734
14470 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
14471 REF_LOOP, invoke ref_indep_loop_p_1.
14472 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
14473 to ref_indep_loop_p.
14474 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
14475 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
14476 is inside LOOP, do not cache dpendence value for loops with
14478 (ref_indep_loop_p_2): Delete function.
14479 (can_sm_ref_p): Pass LOOP as additional argument to
14482 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
14485 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
14486 being an offsettable address.
14488 2016-08-10 Martin Liska <mliska@suse.cz>
14490 PR gcov-profile/58306
14491 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
14492 atomic variants of profile update functions.
14494 2016-08-10 Martin Liska <mliska@suse.cz>
14496 Cherry picked (and modified) from google-4_7 branch
14497 2012-12-26 Rong Xu <xur@google.com>
14498 * common.opt (fprofile-update): Add new flag.
14499 * coretypes.h: Define enum profile_update.
14500 * doc/invoke.texi: Document -fprofile-update.
14501 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
14502 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
14503 * tree-profile.c (gimple_init_edge_profiler): Generate
14504 also atomic profiler update.
14505 (gimple_gen_edge_profiler): Likewise.
14507 2016-08-10 David Malcolm <dmalcolm@redhat.com>
14509 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
14510 stack_usage_file to NULL after fclose calls.
14512 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14515 * reload.c (push_reload): Compute subreg_in_class for
14516 subregs of constants and plus expressions. Remove special
14517 handling of SYMBOL_REFs.
14519 2016-08-10 Alan Modra <amodra@gmail.com>
14522 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
14523 SImode for TARGET_E500_DOUBLE when given SImode.
14525 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
14527 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
14528 unused variable __O.
14530 2016-08-09 Martin Liska <mliska@suse.cz>
14532 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
14533 _gcov_reset to __gcov_reset.
14534 * doc/gcov-tool.texi: Fix typo.
14536 2016-08-09 Martin Liska <mliska@suse.cz>
14538 * value-prof.c (gimple_divmod_values_to_profile): Do not
14539 instrument MOD histogram if a value is not a SSA name.
14541 2016-08-09 Martin Liska <mliska@suse.cz>
14543 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
14546 2016-08-09 Renlin Li <renlin.li@arm.com>
14548 PR middle-end/64971
14549 * calls.c (prepare_call_address): Convert funexp to Pmode when
14551 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
14552 (sibcall_value): Likewise.
14554 2016-08-09 Marek Polacek <polacek@redhat.com>
14557 * cselib.c (cselib_expand_value_rtx_1): Add return.
14558 * gengtype.c (dbgprint_count_type_at): Likewise.
14559 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
14560 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
14562 2016-08-09 Martin Jambor <mjambor@suse.cz>
14565 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
14566 if instance is a MEM_REF.
14568 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
14571 * config/i386/i386.md (*movtf_internal): Use
14572 lra_in_progress || reload_completed instead of !can_create_pseudo_p
14573 in the insn constraint.
14574 (*movxf_internal): Ditto.
14575 (*movdf_internal): Ditto.
14576 (*movsf_internal): Ditto.
14578 2016-08-09 Bin Cheng <bin.cheng@arm.com>
14580 PR tree-optimization/72772
14581 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
14584 2016-08-09 Bin Cheng <bin.cheng@arm.com>
14586 PR tree-optimization/72772
14587 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
14589 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
14590 parameter STOP and update calls. Move expand_simple_operations
14591 function call from here...
14592 (simplify_using_initial_conditions): ...to here. Delete parameter
14594 (tree_simplify_using_condition): Delete parameter STOP.
14595 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
14596 simplify_using_initial_conditions.
14598 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
14601 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
14602 Use create_tmp_var_raw instead of create_tmp_var.
14604 2016-08-09 Richard Biener <rguenther@suse.de>
14606 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
14607 Treat same SSA names related.
14609 2016-08-09 Jakub Jelinek <jakub@redhat.com>
14611 PR tree-optimization/72824
14612 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
14613 real_zerop is not negative.
14615 2016-08-09 Richard Biener <rguenther@suse.de>
14617 PR tree-optimization/71802
14618 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
14619 all merge opportunities with the predecessor.
14621 2016-08-09 Richard Biener <rguenther@suse.de>
14624 * ipa-prop.c (ipa_modify_formal_parameters): Build
14625 parameter types with natural alignment also for the
14628 2016-08-08 Andi Kleen <ak@linux.intel.com>
14630 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
14632 2016-08-08 David Malcolm <dmalcolm@redhat.com>
14635 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
14636 do-nothing langhook.
14637 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
14638 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
14639 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
14640 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
14642 2016-08-08 David Malcolm <dmalcolm@redhat.com>
14645 * input.c: Ensure that HAVE_ICONV is defined.
14647 2016-08-08 Jakub Jelinek <jakub@redhat.com>
14649 PR middle-end/72781
14650 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
14651 private vars for lastprivate and for linear iterator.
14653 PR middle-end/68762
14654 * omp-simd-clone.c: Include varasm.h.
14655 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
14656 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
14657 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
14658 update function name.
14660 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14662 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
14663 (avr_diagnose_devicespecs_error): Remove.
14664 (avr_devicespecs_file): Remove composing absolute path for specfile
14665 and its verbose info. Remove conditions to check specs-file,
14667 2016-08-08 Jakub Jelinek <jakub@redhat.com>
14669 PR rtl-optimization/72821
14670 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
14671 just return false for them.
14673 2016-08-08 Alan Modra <amodra@gmail.com>
14676 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
14677 toc refs created during reload. Update function comment.
14679 2016-08-08 Alan Modra <amodra@gmail.com>
14682 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
14683 alternatives. Put loads first, then stores, and reg/reg moves
14684 within same class later. Delete attr length.
14686 2016-08-08 Alan Modra <amodra@gmail.com>
14689 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
14690 (mem_operand_ds_form): New predicate.
14691 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
14692 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
14693 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
14694 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
14695 (extendsfdf2_fpr): Replace o constraint with wY.
14697 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
14699 * tree-ssa-threadbackward.c: Include tree-inline.h
14700 (profitable_jump_thread_path): Use estimate_num_insns to estimate
14701 size of copied block; for cold paths reduce duplication.
14702 (find_jump_threads_backwards): Remove redundant tests.
14703 (pass_thread_jumps::gate): Enable for -Os.
14705 2016-08-07 Jakub Jelinek <jakub@redhat.com>
14708 * stor-layout.c (layout_decl): Fix up formatting.
14709 (relayout_decl): Allow DECL to be FIELD_DECL.
14711 2016-08-07 Alan Modra <amodra@gmail.com>
14713 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
14715 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
14717 * data-streamer-in.c (streamer_read_wide_int): New.
14718 (streamer_read_widest_int): Renamed function.
14719 * data-streamer-out.c (streamer_write_wide_int): New
14720 (streamer_write_widest_int): Renamed function.
14721 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
14723 (input_cfg): Call renamed function.
14724 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
14726 (output_cfg): Call renamed function.
14727 * data-streamer.h: Add declarations.
14729 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14731 * tree-ssa-ccp.c (extend_mask): New param sgn.
14732 Remove ORing with wi::mask.
14733 (get_default_value): Adjust call to extend_mask to pass sign.
14734 (evaluate_stmt): Likewise.
14736 2016-08-06 Jakub Jelinek <jakub@redhat.com>
14738 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
14741 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14743 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
14744 transform if operand's type is pointer to function or method.
14746 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
14748 PR tree-optimization/18046
14749 * tree-ssa-threadedge.c: Include cfganal.h.
14750 (simplify_control_statement_condition): If simplifying a
14751 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
14752 with the dominating ASSERT_EXPR before handing it off to VRP.
14753 Mention that a CASE_LABEL_EXPR may be returned.
14754 (thread_around_empty_blocks): Adjust to handle
14755 simplify_control_statement_condition() returning a
14757 (thread_through_normal_block): Likewise.
14758 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
14759 a switch statement by trying to determine which case label
14762 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
14764 PR rtl-optimization/69847
14765 * lra-constraints.c (process_invariant_for_inheritance): Save
14766 pattern instead of src.
14767 (remove_inheritance_pseudos): Use the pattern. Add assert.
14769 2016-08-05 David Malcolm <dmalcolm@redhat.com>
14771 * input.c (string_concat::string_concat): New constructor.
14772 (string_concat_db::string_concat_db): New constructor.
14773 (string_concat_db::record_string_concatenation): New method.
14774 (string_concat_db::get_string_concatenation): New method.
14775 (string_concat_db::get_key_loc): New method.
14776 (class auto_cpp_string_vec): New class.
14777 (get_substring_ranges_for_loc): New function.
14778 (get_source_range_for_substring): New function.
14779 (get_num_source_ranges_for_substring): New function.
14780 (class selftest::lexer_test_options): New class.
14781 (struct selftest::lexer_test): New struct.
14782 (class selftest::ebcdic_execution_charset): New class.
14783 (selftest::ebcdic_execution_charset::s_singleton): New variable.
14784 (selftest::lexer_test::lexer_test): New constructor.
14785 (selftest::lexer_test::~lexer_test): New destructor.
14786 (selftest::lexer_test::get_token): New method.
14787 (selftest::assert_char_at_range): New function.
14788 (ASSERT_CHAR_AT_RANGE): New macro.
14789 (selftest::assert_num_substring_ranges): New function.
14790 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
14791 (selftest::assert_has_no_substring_ranges): New function.
14792 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
14793 (selftest::test_lexer_string_locations_simple): New function.
14794 (selftest::test_lexer_string_locations_ebcdic): New function.
14795 (selftest::test_lexer_string_locations_hex): New function.
14796 (selftest::test_lexer_string_locations_oct): New function.
14797 (selftest::test_lexer_string_locations_letter_escape_1): New function.
14798 (selftest::test_lexer_string_locations_letter_escape_2): New function.
14799 (selftest::test_lexer_string_locations_ucn4): New function.
14800 (selftest::test_lexer_string_locations_ucn8): New function.
14801 (selftest::uint32_from_big_endian): New function.
14802 (selftest::test_lexer_string_locations_wide_string): New function.
14803 (selftest::uint16_from_big_endian): New function.
14804 (selftest::test_lexer_string_locations_string16): New function.
14805 (selftest::test_lexer_string_locations_string32): New function.
14806 (selftest::test_lexer_string_locations_u8): New function.
14807 (selftest::test_lexer_string_locations_utf8_source): New function.
14808 (selftest::test_lexer_string_locations_concatenation_1): New
14810 (selftest::test_lexer_string_locations_concatenation_2): New
14812 (selftest::test_lexer_string_locations_concatenation_3): New
14814 (selftest::test_lexer_string_locations_macro): New function.
14815 (selftest::test_lexer_string_locations_stringified_macro_argument):
14817 (selftest::test_lexer_string_locations_non_string): New function.
14818 (selftest::test_lexer_string_locations_long_line): New function.
14819 (selftest::test_lexer_char_constants): New function.
14820 (selftest::input_c_tests): Call the new test functions once per
14821 case within the line_table test matrix.
14822 * input.h (struct string_concat): New struct.
14823 (struct location_hash): New struct.
14824 (class string_concat_db): New class.
14825 * substring-locations.h: New header.
14827 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
14829 PR tree-optimization/72810
14830 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
14831 the type of the case labels when truncating.
14833 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
14836 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
14837 (aarch64_fp16_ptr_type_node): Likewise.
14838 * config/aarch64/aarch64-simd-builtins.c
14839 (aarch64_fp16_ptr_type_node): Define.
14840 (aarch64_init_fp16_types): New, refactored out of...
14841 (aarch64_init_builtins): ...here, update to call
14842 aarch64_init_fp16_types.
14843 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
14845 (aapcs_vfp_sub_candidate): Likewise.
14847 2016-08-05 Martin Liska <mliska@suse.cz>
14848 Joshua Cranmer <Pidgeot18@gmail.com>
14850 * gcov.c (line_t::has_block): New function.
14851 (enum loop_type): New enum.
14852 (handle_cycle): New function.
14853 (unblock): Likewise.
14854 (circuit): Likewise.
14855 (get_cycles_count): Likewise.
14856 (accumulate_line_counts): Use new loop detection algorithm.
14858 2016-08-05 Martin Liska <mliska@suse.cz>
14860 * gcov.c (output_intermediate_file): Rename
14861 function_info::line_next to next_file_fn.
14862 (process_file): Likewise.
14863 (read_graph_file): Likewise.
14864 (accumulate_line_counts): Likewise.
14865 (output_lines): Likewise.
14867 2016-08-05 Richard Biener <rguenther@suse.de>
14869 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
14870 restriction on threading to a loop header.
14872 2016-08-05 Richard Biener <rguenther@suse.de>
14874 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
14875 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
14876 adjust loop info accordingly.
14878 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
14880 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
14881 before folding call to __builtin_constant_p with parameters to false.
14883 2016-08-05 Alan Modra <amodra@gmail.com>
14885 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
14886 code accidentally committed 2016-05-02 providing class when given
14889 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
14891 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
14892 the case label ranges that partially overlap with OP's value
14895 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
14898 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
14899 Cast builtin function result to __mmask16 instead of __mmask8.
14900 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
14901 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
14902 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
14904 2016-08-04 David Malcolm <dmalcolm@redhat.com>
14906 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
14907 (ASSERT_TRUE_AT): New macro.
14908 (ASSERT_FALSE): Reimplement in terms of...
14909 (ASSERT_FALSE_AT): New macro.
14910 (ASSERT_STREQ_AT): Fix typo in comment.
14912 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
14914 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
14915 labels are exhaustive, designate the label with the widest
14916 range to be the default label.
14918 2016-08-04 Andrew Pinski <apinski@cavium.com>
14920 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
14921 (thunderx_tunings): Use thunderx_vector_cost instead of
14922 generic_vector_cost.
14924 2016-08-04 Martin Liska <mliska@suse.cz>
14926 * gcov.c (main): Fix GNU coding style.
14927 (output_intermediate_file): Likewise.
14928 (process_file): Likewise.
14929 (generate_results): Likewise.
14930 (release_structures): Likewise.
14931 (create_file_names): Likewise.
14932 (find_source): Likewise.
14933 (read_graph_file): Likewise.
14934 (find_exception_blocks): Likewise.
14935 (canonicalize_name): Likewise.
14936 (make_gcov_file_name): Likewise.
14937 (mangle_name): Likewise.
14938 (accumulate_line_counts): Likewise.
14939 (output_branch_count): Likewise.
14940 (read_line): Likewise.
14942 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
14944 PR rtl-optimization/71779
14945 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
14946 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
14947 or if it was truncated.
14949 PR rtl-optimization/70903
14950 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
14952 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
14954 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
14955 accessing SSA_NAME_PTR_INFO.
14957 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
14960 * common/config/avr/avr-common.c (avr_option_optimization_table)
14961 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
14963 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
14966 * config/avr/avr.md: New pattern to work around do_store_flag
14967 generating shift instructions for bit extractions.
14969 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
14971 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
14973 (add_equivalence): Likewise.
14974 (get_value_range): Allocate value range with vrp_value_range_pool.
14975 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
14976 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
14978 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
14980 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
14981 the default for the rs6000 port.
14983 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14985 PR middle-end/71876
14986 * calls.c (special_function_p): Remove special handling of
14987 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
14988 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
14989 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
14991 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
14993 PR middle-end/72778
14994 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
14995 Don't stop on regular insns.
14997 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
14999 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
15000 size to DImode boundary.
15001 (nvptx_propagate): Likewise.
15003 2016-08-03 Alan Modra <amodra@gmail.com>
15005 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
15006 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
15007 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
15008 from -mefficient-unaligned-vector. Note that this affects fp too.
15010 2016-08-03 Alan Modra <amodra@gmail.com>
15012 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
15015 2016-08-03 Alan Modra <amodra@gmail.com>
15017 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
15018 to a reg. Localize vars.
15020 2016-08-03 Alan Modra <amodra@gmail.com>
15022 * config/rs6000/rs6000.opt: Remove negatives from help strings
15025 2016-08-03 Alan Modra <amodra@gmail.com>
15027 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
15028 Delete duplicated code.
15030 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15032 PR middle-end/72778
15033 * lra-spills.c (regno_in_use_p): New.
15034 (lra_final_code_change): Use it.
15036 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15038 PR rtl-optimization/69847
15039 * lra-int.h (struct lra-reg): Use restore_rtx instead of
15041 (lra_rtx_hash): New.
15042 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
15044 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
15045 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
15046 * lra-spills.c (lra_final_code_change): Don't delete insn when the
15047 next insn is USE with the same reg as the current insn source.
15048 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
15050 (lra_constraints_init): Call initiate_invariants.
15051 (lra_constraints_finish): Call finish_invariants.
15052 (struct invariant, invariant_t, invariant_ptr_t): New.
15053 (const_invariant_ptr_t, invariants, invariants_pool): New.
15054 (invariant_table, invariant_hash, invariant_eq_p): New.
15055 (insert_invariant, initiate_invariants, finish_invariants): New.
15056 (clear_invariants, invalid_invariant_regs): New.
15057 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
15058 instead of restore_regno.
15059 (invariant_p, process_invariant_for_inheritance): New.
15060 (inherit_in_ebb): Implement invariant inheritance.
15061 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
15062 (remove_inheritance_pseudos): Implement undoing invariant
15064 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
15065 instead of restore_regno.
15066 * lra-assigns.c (regno_live_length): New.
15067 (reload_pseudo_compare_func): Use regno_live_length.
15068 (assign_by_spills): Use restore_rtx instead of restore_regno.
15069 (lra_assign): Ditto. Initiate regno_live_length.
15071 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
15073 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
15074 __builtin_aarch64_fmindf.
15076 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15078 PR tree-optimization/34114
15079 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
15080 information for more control IVs.
15082 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15084 PR tree-optimization/34114
15085 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
15086 PLUS_EXPR case. Handle SSA_NAME case.
15088 2016-08-02 Tamar Christina <tamar.christina@arm.com>
15090 * config/aarch64/aarch64-simd-builtins.def
15091 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
15092 (__builtin_aarch64_fmaxdf): Likewise.
15093 (__builtin_aarch64_smin_nandf): Likewise.
15094 (__builtin_aarch64_smax_nandf): Likewise.
15095 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
15096 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
15097 (<fmaxmin><mode>3): ...this.
15098 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
15099 (vminnm_f64): Likewise.
15100 (vmin_f64): Likewise.
15101 (vmax_f64): Likewise.
15102 * config/aarch64/iterators.md (FMAXMIN): Merge with...
15103 (FMAXMIN_UNS): ...this.
15104 (fmaxmin): Merged with
15105 (fmaxmin_op): ...this...
15106 (maxmin_uns_op): ...in to this.
15108 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15110 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15111 Add support for vec_extract on vector float, vector int, vector
15112 short, and vector char vector types.
15113 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15114 vector float, vector int, vector short, and vector char
15115 optimizations on 64-bit ISA 2.07 systems for both constant and
15116 variable element numbers.
15117 (rs6000_split_vec_extract_var): Likewise.
15118 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
15119 Altivec registers on ISA 2.07 and above.
15120 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
15121 which never was matched due to the split occuring before register
15122 allocation (and the code would not have worked on little endian
15123 systems if it did match). Allow extracts to go to the Altivec
15124 registers if ISA 2.07 (power8). Change from using "" around the
15125 C++ code to using {}'s.
15126 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
15127 vec_extracts when the vector is in memory.
15128 (vsx_extract_v4sf_var): New insn to optimize vector float
15129 vec_extracts when the element number is variable on 64-bit ISA
15131 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
15132 for 64-bit ISA 2.07 as well as ISA 3.0.
15133 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
15134 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
15135 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
15136 optimize vector int, vector short, and vector char vec_extracts
15137 when the vector is in memory.
15138 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
15139 optimize vector int, vector short, and vector char vec_extracts
15140 when the element number is variable.
15142 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15145 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
15146 does not overlap with other symbol flags.
15148 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
15150 * config/aarch64/aarch64.h (aarch64_frame):
15151 Remove padding0 and hardfp_offset. Add locals_offset,
15152 initial_adjust, callee_adjust, callee_offset and final_adjust.
15153 * config/aarch64/aarch64.c (aarch64_layout_frame):
15154 Remove unused padding0 and hardfp_offset initializations.
15155 Choose frame layout and set frame variables accordingly.
15156 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
15157 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
15158 (aarch64_pop_regs): Likewise.
15159 (aarch64_expand_prologue): Remove all decision code, just emit
15160 prolog according to frame variables.
15161 (aarch64_expand_epilogue): Remove all decision code, just emit
15162 epilog according to frame variables.
15163 (aarch64_initial_elimination_offset): Use offset to local/arg area.
15165 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
15168 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
15169 fix_debug_reg_uses after changing source register mode to
15170 V1TImode if source register is undefined.
15172 2015-08-01 Alan Hayward <alan.hayward@arm.com>
15174 PR tree-optimization/71818
15175 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
15176 with non invariant evolutions
15178 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15181 * config/avr/avr.md (length) [branch]: Correct insn length
15182 attribute for forward branches.
15184 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15186 * doc/extend.texi (AVR Built-in Functions): Document
15187 __builtin_avr_nops.
15188 * config/avr/builtins.def (NOPS): New.
15189 * config/avr/avr.c (avr_expand_nops): New static function.
15190 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
15192 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15194 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
15195 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
15198 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
15200 * config/aarch64/aarch64.c (vulcan_tunings): Update
15201 vulcan L1 cache_line_size.
15203 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
15205 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
15206 function that takes a vector memory address, a hard register, an
15207 element number and a temporary base register, and recreates an
15208 address that points to the appropriate element within the vector.
15209 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
15210 (rs6000_split_vec_extract_var): Add support for the target of a
15211 vec_extract with variable element number being a scalar memory
15213 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
15215 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
15216 vsx_extract_<mode>_load insn with a new insn that optimizes
15217 storing either element to a memory location, using scratch
15218 registers to pick apart the vector and reconstruct the address.
15219 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
15220 (vsx_extract_<mode>_store): Rework alternatives to more correctly
15221 support Altivec registers. Add support for ISA 3.0 Altivec d-form
15223 (vsx_extract_<mode>_var): Add support for extracting a variable
15224 element number from memory.
15226 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
15228 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
15229 when testing for compares against constants of the form 0xabab.
15231 2016-07-29 Bin Cheng <bin.cheng@arm.com>
15233 PR tree-optimization/57558
15234 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
15236 (vect_loop_versioning): Support versioning with niter assumptions.
15237 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
15238 (vect_get_loop_niters): New parameter. Reimplement to support
15239 assumptions in loop niter info.
15240 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
15241 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
15242 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
15243 Support loop versioning for niters.
15244 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
15245 (vect_free_loop_info_assumptions): New function.
15246 (vectorize_loops): Free loop niter info for loops with flag
15247 LOOP_F_ASSUMPTIONS set if vectorization failed.
15248 * tree-vectorizer.h (struct _loop_vec_info): New field
15249 num_iters_assumptions.
15250 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
15251 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
15252 (LOOP_REQUIRES_VERSIONING): New macro.
15253 (vect_free_loop_info_assumptions): New decl.
15255 2016-07-29 Bin Cheng <bin.cheng@arm.com>
15257 * cfgloop.h (struct loop): New field constraints.
15258 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
15259 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
15261 * cfgloop.c (alloc_loop): Initialize new field.
15262 * cfgloopmanip.c (copy_loop_info): Copy constraints.
15263 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
15264 Adjust niter analysis wrto loop constraints.
15265 * doc/loop.texi (@node Number of iterations): Add description for loop
15268 2016-07-29 Marek Polacek <polacek@redhat.com>
15271 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
15272 (ix86_expand_round_builtin): Likewise.
15274 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
15275 Georg-Johann Lay <avr@gjlay.de>
15277 PR rtl-optimization/71976
15278 * combine.c (get_last_value): Return 0 if the argument for which
15279 the function is called has a wider mode than the recorded value.
15281 2016-07-29 Marek Polacek <polacek@redhat.com>
15284 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
15285 (altivec_expand_st_builtin): Likewise.
15287 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
15289 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
15290 introduced in r238381.
15292 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15294 PR middle-end/68217
15295 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
15296 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
15298 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
15300 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
15302 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15303 Add support for vec_extract of vector double or vector long having
15304 a variable element number on 64-bit ISA 2.07 systems or newer.
15305 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
15307 (rs6000_split_vec_extract_var): New function to split a
15308 vec_extract built-in function with variable element number.
15309 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
15311 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
15312 (UNSPEC_VSX_EXTRACT): Likewise.
15313 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
15314 direct move instructions to be generated on 64-bit ISA 2.07
15315 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
15317 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
15318 arguments for vec_extract variable element.
15319 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
15320 vec_extract with variable element on V2DFmode and V2DImode
15322 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
15323 -mupper-regs-df requirement, since it isn't needed.
15324 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
15325 do direct moves on 64-bit systems, which allows optimization of
15326 vec_extract on 64-bit ISA 2.07 systems and newer.
15328 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
15329 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
15331 * config/aarch64/aarch64.md
15332 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
15333 statement and type.
15334 (<optab>qihi2_aarch64): Likewise, and split into two.
15335 (extendqihi2_aarch64): New.
15336 (zero_extendqihi2_aarch64): New.
15337 * config/aarch64/iterators.md (ldrxt): Remove.
15338 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
15341 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
15343 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
15345 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
15347 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
15348 (aarch64_push_reg): New function to push 1 or 2 registers.
15349 (aarch64_pop_reg): New function to pop 1 or 2 registers.
15350 (aarch64_expand_prologue): Use aarch64_push_regs.
15351 (aarch64_expand_epilogue): Use aarch64_pop_regs.
15353 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
15355 PR tree-optimization/71734
15356 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
15357 attribute instead of REF_LOOP and use it.
15358 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
15359 set it for Loops having non-zero safelen attribute.
15360 (ref_indep_loop_p): Pass zero as initial value for safelen.
15362 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
15364 PR middle-end/72657
15366 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
15367 call using chkp_gimple_call_builtin_p.
15368 (chkp_copy_bounds_for_assign): Likewise.
15370 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15372 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
15373 * config/arm/arm-protos.h (struct tune_params): Likewise.
15374 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
15375 (cortex_a9_sched_adjust_cost): Likewise.
15376 (fa726te_sched_adjust_cost): Likewise.
15377 (arm_adjust_cost): Likewise.
15378 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
15379 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
15380 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
15381 * config/i386/i386.c (ix86_adjust_cost): Likewise.
15382 * config/ia64/ia64.c: Likewise.
15383 * config/m68k/m68k.c: Likewise.
15384 * config/mep/mep.c (mep_adjust_cost): Likewise.
15385 * config/microblaze/microblaze.c (microblaze_adjust_cost):
15387 * config/mips/mips.c (mips_adjust_cost): Likewise.
15388 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
15390 * config/pa/pa.c (pa_adjust_cost): Likewise.
15391 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
15392 (rs6000_debug_adjust_cost): Likewise.
15393 * config/sh/sh.c (sh_adjust_cost): Likewise.
15394 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
15395 (hypersparc_adjust_cost): Likewise.
15396 (sparc_adjust_cost): Likewise.
15397 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
15398 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
15399 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
15401 * config/visium/visium.c (visium_adjust_cost): Likewise.
15402 * doc/tm.texi: Regenerate.
15403 * haifa-sched.c (dep_cost_1): Adjust.
15404 * target.def: Merge adjust_cost and adjust_cost_2.
15406 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15408 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
15410 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15412 * store-motion.c (struct st_expr): Make pattern_regs a vector.
15413 (extract_mentioned_regs): Append to a vector instead of
15414 returning a rtx_expr_list.
15415 (st_expr_entry): Adjust.
15416 (free_st_expr_entry): Likewise.
15417 (store_ops_ok): Likewise.
15418 (store_killed_in_insn): Likewise.
15419 (find_moveable_store): Likewise.
15421 2016-07-28 Martin Liska <mliska@suse.cz>
15423 PR gcov-profile/68025
15424 * tree-profile.c (tree_profiling): Respect
15425 no_profile_instrument_function attribute.
15426 * doc/extend.texi: Document no_profile_instrument_function
15429 2016-07-28 Martin Liska <mliska@suse.cz>
15431 PR rtl-optimization/70944
15432 * combine.c (make_compound_operation):
15433 Do not allow make_compound_operation for vector mode
15435 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
15437 PR middle-end/71994
15438 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
15439 before calling get_ops.
15441 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
15443 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
15444 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
15445 (BITS_PER_UNIT_LOG): Remove.
15446 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
15447 * expr.c (expand_assignment): Likewise.
15448 * stor-layout.c (initialize_sizetypes): Likewise.
15450 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15452 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
15453 signature of rs6000_expand_vector_extract so that the element
15454 number is a RTX instead of a constant integer.
15455 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
15457 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
15458 (altivec_expand_vec_ext_builtin): Likewise.
15459 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
15460 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
15461 MFVSRLD instruction.
15463 2016-07-27 David Malcolm <dmalcolm@redhat.com>
15465 * input.c (get_pure_location): Move here from tree.c.
15466 (make_location): Likewise. Add header comment.
15467 (selftest::test_accessing_ordinary_linemaps): Verify
15468 pure_location_p, make_location, get_location_from_adhoc_loc and
15469 get_range_from_loc.
15470 * input.h (get_pure_location): Move declaration here from tree.h.
15471 (get_finish): Likewise for inline function.
15472 (make_location): Likewise for declaration.
15473 * tree.c (get_pure_location): Move to input.c.
15474 (make_location): Likewise.
15475 * tree.h (get_pure_location): Move declaration to tree.h.
15476 (get_finish): Likewise for inline function.
15477 (make_location): Likewise for declaration.
15479 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15481 PR middle-end/71078
15482 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
15484 2016-07-27 David Malcolm <dmalcolm@redhat.com>
15486 * system.h (STATIC_ASSERT): Use static_assert if building
15487 with C++11 onwards.
15489 2016-07-27 Richard Biener <rguenther@suse.de>
15491 PR tree-optimization/72517
15492 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
15493 Revert change to not compute read-read dependences.
15495 2016-07-27 Richard Biener <rguenther@suse.de>
15497 * predict.c (set_even_probabilities): Make nedges unsigned.
15499 2016-07-27 Martin Liska <mliska@suse.cz>
15501 * predict.c (set_even_probabilities): Handle unlikely edges.
15502 (combine_predictions_for_bb): Likewise.
15504 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15507 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
15508 __float128 support when we don't have hardware support, so that
15509 the IEEE built-in functions like isgreater, first call __unordkf3
15510 to make sure neither operand is a NaN, and if both operands are
15511 ordered, do the normal comparison.
15513 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
15515 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
15517 (extract_code_and_val_from_cond_with_ops): Verify that name is
15518 either cond_op0 or cond_op1.
15520 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
15522 PR tree-optimization/18046
15523 * genmodes.c (emit_mode_size_inline): Emit an assert that
15524 verifies that mode is a valid array index.
15525 (emit_mode_nuinits_inline): Likewise.
15526 (emit_mode_inner_inline): Likewise.
15527 (emit_mode_unit_size_inline): Likewise.
15528 (emit_mode_unit_precision_inline): Likewise.
15529 * tree-vrp.c: Include params.h.
15530 (find_switch_asserts): Register edge assertions for the default
15531 label which correspond to the anti-ranges of each case label.
15532 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
15533 * doc/invoke.texi: Document it.
15535 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15537 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
15538 and unnecessary call to gimple_bb.
15540 2016-07-26 Richard Biener <rguenther@suse.de>
15542 PR rtl-optimization/71984
15543 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
15546 2016-07-26 Richard Biener <rguenther@suse.de>
15548 PR middle-end/72517
15549 * expmed.c (extract_bit_field_1): Constrain the vector mode
15550 with element size matching the extraction mode size when
15551 choosing a better vector mode to do the extraction from.
15553 2016-07-26 Richard Biener <rguenther@suse.de>
15554 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15556 PR middle-end/70920
15557 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
15560 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15562 * tree-ssa-structalias.c (struct scc_info): Change types of
15563 members to auto_sbitmap and auto_vec.
15564 (scc_info::scc_info): New constructor.
15565 (scc_info::~scc_info): New destructor.
15566 (init_scc_info): Remove.
15567 (free_scc_info): Remove.
15568 (find_indirect_cycles): Adjust.
15569 (perform_var_substitution): Likewise.
15570 (free_var_substitution_info): Likewise.
15572 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15574 * tree-outof-ssa.c (struct elim_graph): Change type of members
15575 to auto_vec and auto_sbitmap.
15576 (elim_graph::elim_graph): New constructor.
15577 (delete_elim_graph): Remove.
15578 (expand_phi_nodes): Adjust.
15580 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15582 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
15583 (new_elim_graph): Adjust.
15584 (clear_elim_graph): Likewise.
15585 (delete_elim_graph): Likewise.
15586 (elim_graph_size): Likewise.
15587 (elim_graph_add_node): Likewise.
15588 (elim_graph_add_edge): Likewise.
15589 (elim_graph_remove_succ_edge): Likewise.
15590 (eliminate_name): Likewise.
15591 (eliminate_build): Likewise.
15592 (elim_forward): Likewise.
15593 (elim_unvisited_predecessor): Likewise.
15594 (elim_backward): Likewise.
15595 (elim_create): Likewise.
15596 (eliminate_phi): Likewise.
15597 (expand_phi_nodes): Likewise.
15599 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15601 * bt-load.c (compute_out): Use auto_sbitmap class.
15602 (link_btr_uses): Likewise.
15603 * cfganal.c (mark_dfs_back_edges): Likewise.
15604 (post_order_compute): Likewise.
15605 (inverted_post_order_compute): Likewise.
15606 (pre_and_rev_post_order_compute_fn): Likewise.
15607 (single_pred_before_succ_order): Likewise.
15608 * cfgexpand.c (pass_expand::execute): Likewise.
15609 * cfgloop.c (verify_loop_structure): Likewise.
15610 * cfgloopmanip.c (fix_bb_placements): Likewise.
15611 (remove_path): Likewise.
15612 (update_dominators_in_loop): Likewise.
15613 * cfgrtl.c (break_superblocks): Likewise.
15614 * ddg.c (check_sccs): Likewise.
15615 (create_ddg_all_sccs): Likewise.
15616 * df-core.c (df_worklist_dataflow): Likewise.
15617 * dse.c (dse_step3): Likewise.
15618 * except.c (eh_region_outermost): Likewise.
15619 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15620 * gcse.c (prune_expressions): Likewise.
15621 (prune_insertions_deletions): Likewise.
15622 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
15623 * graph.c (draw_cfg_nodes_no_loops): Likewise.
15624 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
15625 * lcm.c (compute_earliest): Likewise.
15626 (compute_farthest): Likewise.
15627 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
15628 (unroll_loop_runtime_iterations): Likewise.
15629 (unroll_loop_stupid): Likewise.
15630 * lower-subreg.c (decompose_multiword_subregs): Likewise.
15631 * lra-lives.c: Likewise.
15632 * lra.c (lra): Likewise.
15633 * modulo-sched.c (schedule_reg_moves): Likewise.
15634 (optimize_sc): Likewise.
15635 (get_sched_window): Likewise.
15636 (sms_schedule_by_order): Likewise.
15637 (check_nodes_order): Likewise.
15638 (order_nodes_of_sccs): Likewise.
15639 (order_nodes_in_scc): Likewise.
15640 * recog.c (split_all_insns): Likewise.
15641 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
15642 * reload1.c (reload): Likewise.
15643 * sched-rgn.c (haifa_find_rgns): Likewise.
15644 (split_edges): Likewise.
15645 (compute_trg_info): Likewise.
15646 * sel-sched.c (init_seqno): Likewise.
15647 * store-motion.c (remove_reachable_equiv_notes): Likewise.
15648 * tree-into-ssa.c (update_ssa): Likewise.
15649 * tree-ssa-live.c (live_worklist): Likewise.
15650 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
15651 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
15653 (try_peel_loop): Likewise.
15654 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
15656 * tree-ssa-pre.c (compute_antic): Likewise.
15657 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
15658 * tree-stdarg.c (reachable_at_most_once): Likewise.
15659 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
15660 * var-tracking.c (vt_find_locations): Likewise.
15662 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15664 * sbitmap.h (auto_sbitmap): New class.
15666 2016-07-26 Alan Modra <amodra@gmail.com>
15669 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
15672 2016-07-25 David Malcolm <dmalcolm@redhat.com>
15674 * input.c (selftest::temp_source_file::temp_source_file): Fix
15675 missing "%s" in fprintf.
15677 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
15679 PR middle-end/71732
15680 * cselib.c (cselib_process_insn): Invalidate argument slots for
15683 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15685 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
15686 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
15687 vmulxh_lane_f16, vmulxh_laneq_f16): New.
15689 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15691 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15692 * config/aarch64/aarch64.md (fma, fnma): Support HF.
15693 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
15695 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15697 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15698 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
15700 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
15701 (add<mode>3): Likewise.
15702 (sub<mode>3): Likewise.
15703 (mul<mode>3): Likewise.
15704 (div<mode>3): Likewise.
15705 (*div<mode>3): Likewise.
15706 (<fmaxmin><mode>3): Extend to HF.
15707 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
15708 (fabd<mode>3): Likewise.
15709 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
15710 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
15711 (aarch64_fmulx<mode>): Likewise.
15712 (aarch64_fac<optab><mode>): Likewise.
15713 (aarch64_frecps<mode>): Likewise.
15714 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
15715 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
15716 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
15717 (VSDQ_HSDI): Support HI.
15718 (fcvt_target, FCVT_TARGET): Likewise.
15719 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
15720 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
15721 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
15722 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
15723 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
15724 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
15725 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
15726 vrsqrtsh_f16): New.
15728 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15730 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
15731 * config/aarch64/aarch64-builtins.c (hi_UP): New.
15732 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15733 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
15735 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
15736 (aarch64_cm<optab><mode>): Likewise.
15737 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
15738 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
15739 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15740 (sqrt<mode>2): Likewise.
15741 (*sqrt<mode>2): Likewise.
15742 (abs<mode>2): Likewise.
15743 (<optab><mode>hf2): New pattern for HF mode.
15744 (<optab>hihf2): Likewise.
15745 * config/aarch64/arm_neon.h: Include arm_fp16.h.
15746 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
15747 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
15749 * config/aarch64/arm_fp16.h: New file.
15750 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
15751 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
15752 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
15753 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
15754 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
15755 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
15756 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
15757 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
15758 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
15759 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
15760 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
15761 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
15764 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15766 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
15767 reduc_smin_scal_): Use VDQIF_F16.
15768 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
15769 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
15771 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
15772 * config/aarch64/iterators.md (VDQIF_F16): New.
15773 (vp): Support HF modes.
15774 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
15775 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
15777 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15779 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
15780 "*aarch64_mulx_elt_from_dup<mode>".
15781 (*aarch64_mul3_elt<mode>): Update schedule type.
15782 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
15783 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
15784 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
15785 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
15786 (f, fp): Support HF modes.
15787 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
15788 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
15789 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
15790 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
15791 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
15792 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_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-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
15799 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
15802 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15804 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15805 * config/aarch64/aarch64-simd.md
15806 (aarch64_rsqrts<mode>): Extend to HF modes.
15807 (fabd<mode>3): Likewise.
15808 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
15809 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
15810 (aarch64_<maxmin_uns>p<mode>): Likewise.
15811 (<su><maxmin><mode>3): Likewise.
15812 (<maxmin_uns><mode>3): Likewise.
15813 (<fmaxmin><mode>3): Likewise.
15814 (aarch64_faddp<mode>): Likewise.
15815 (aarch64_fmulx<mode>): Likewise.
15816 (aarch64_frecps<mode>): Likewise.
15817 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
15818 (add<mode>3): Extend to HF modes.
15819 (sub<mode>3): Likewise.
15820 (mul<mode>3): Likewise.
15821 (div<mode>3): Likewise.
15822 (*div<mode>3): Likewise.
15823 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
15825 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
15826 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
15827 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
15828 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
15829 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
15830 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
15831 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
15832 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
15833 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
15834 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
15835 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
15836 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
15837 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
15838 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
15840 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15842 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
15843 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15844 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
15845 (neg<mode>2): Likewise.
15846 (abs<mode>2): Likewise.
15847 (<frint_pattern><mode>2): Likewise.
15848 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
15849 (<optab><VDQF:mode><fcvt_target>2): Likewise.
15850 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
15851 (ftrunc<VDQF:mode>2): Likewise.
15852 (<optab><fcvt_target><VDQF:mode>2): Likewise.
15853 (sqrt<mode>2): Likewise.
15854 (*sqrt<mode>2): Likewise.
15855 (aarch64_frecpe<mode>): Likewise.
15856 (aarch64_cm<optab><mode>): Likewise.
15857 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
15859 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
15860 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
15862 * config/aarch64/arm_neon.h (vdup_n_f16): New.
15863 (vdupq_n_f16): Likewise.
15864 (vld1_dup_f16): Use vdup_n_f16.
15865 (vld1q_dup_f16): Use vdupq_n_f16.
15866 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
15867 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
15868 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
15869 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
15870 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
15871 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
15872 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
15873 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
15874 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
15875 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
15876 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
15877 vsqrt_f16, vsqrtq_f16): New.
15879 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15881 * config/aarch64/aarch64-simd.md
15882 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
15883 (aarch64_ext<mode>): Likewise.
15884 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
15885 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
15886 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
15888 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
15890 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
15891 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
15892 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
15893 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
15894 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
15895 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
15896 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
15898 (vmov_n_f16): Reimplement using vdup_n_f16.
15899 (vmovq_n_f16): Reimplement using vdupq_n_f16..
15901 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15903 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
15904 "frame_related_p". Generate CFA annotation when it's necessary.
15905 (aarch64_expand_prologue): Use aarch64_add_constant.
15906 (aarch64_expand_epilogue): Likewise.
15907 (aarch64_output_mi_thunk): Pass "false" when calling
15908 aarch64_add_constant.
15910 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15912 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
15915 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15917 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
15918 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
15919 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
15920 (aarch64_build_constant): Delete.
15922 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
15925 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
15927 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
15928 flag_toplevel_reorder.
15930 2016-07-25 Richard Biener <rguenther@suse.de>
15932 * cgraph.c (cgraph_node::verify_node): Compare against builtin
15933 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
15934 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
15935 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
15936 (streamer_get_builtin_tree): Likewise.
15937 (streamer_write_builtin): Likewise.
15938 * lto-streamer.h (LTO_builtin_decl): Remove.
15939 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
15940 (lto_input_scc): Remove LTO_builtin_decl handling.
15941 (lto_input_tree_1): Liekwise.
15942 * lto-streamer-out.c (lto_output_tree_1): Remove special
15943 handling of builtins.
15944 (DFS::DFS): Likewise.
15945 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
15946 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
15948 (streamer_write_builtin): Remove.
15950 2016-07-25 Martin Liska <mliska@suse.cz>
15952 * lto-cgraph.c (input_symtab): Don't call get_working_sets
15953 if flag_auto_profile is set to true.
15955 2016-07-25 Martin Liska <mliska@suse.cz>
15957 PR gcov-profile/71868
15958 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
15959 have a function with multiple latches, count them all.
15961 2016-07-25 Martin Liska <mliska@suse.cz>
15963 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
15965 2016-07-25 Martin Liska <mliska@suse.cz>
15967 PR tree-optimization/71987
15968 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
15969 just for SSA_NAMEs. Fix GNU coding style.
15971 2016-07-25 Martin Liska <mliska@suse.cz>
15973 PR gcov-profile/64874
15974 * gcov-io.h: Update command about file format.
15975 * gcov-iov.c (main): Adapt the numbering scheme.
15977 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
15979 PR middle-end/66726
15980 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
15981 whose result is used in PHI.
15982 (final_range_test_p): Likewise.
15983 (maybe_optimize_range_tests): Likewise.
15985 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
15987 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15988 Reformat two multi-line strings.
15990 2016-07-22 Martin Sebor <msebor@redhat.com>
15992 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
15994 2016-07-22 Martin Sebor <msebor@redhat.com>
15997 * doc/extend.texi (Compound Literals): Correct and clarify.
15998 (Cast to Union): Same.
16000 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
16002 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16003 comments to explain why certain error messages make mention of
16004 undocumented options.
16005 (rs6000_invalid_builtin): Change error messages to replace mention
16006 of undocumented options with mention of the -mcpu=power9 option
16007 that enables those undocumented options.
16008 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
16009 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
16010 definition of this macro to correct an existing error.
16011 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
16012 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
16013 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
16014 descriptions of built-in functions so that they depend on
16015 -mcpu=power9 instead of on the corresponding undocumented flags.
16016 * doc/invoke.texi (Option Summary): Remove all mention of newly
16017 undocumented flags.
16018 (IBM RS/6000 and PowerPC Options): Likewise.
16019 * doc/md.texi (Constraints for Particuliar Machines): Remove all
16020 mention of newly undocumented flags.
16022 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
16024 * ipa-cp.c (determine_versionability): Do not create constprop clones,
16025 when target_clones attribute is set.
16027 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16029 * common.opt (funsafe-loop-optimizations): Mark ignore.
16030 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
16031 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
16033 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
16034 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
16036 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16038 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16040 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16042 (number_of_iterations_exit): Warn missed loop optimization for
16043 possible infinite loops.
16045 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
16048 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
16049 when to emit a ".machine" pseudo-op.
16051 2016-07-22 Martin Liska <mliska@suse.cz>
16053 PR gcov-profile/69028
16054 PR gcov-profile/62047
16055 * coverage.c (coverage_compute_lineno_checksum): Do not
16056 calculate checksum for fns w/o xloc.file.
16057 (coverage_compute_profile_id): Likewise.
16059 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
16061 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
16062 (avr_secondary_reload): ...and implementation.
16063 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
16064 * config/avr/avr.md (reload_in<mode>): Remove insns.
16065 (adjust_len) [lpm]: Remove insn attribute value.
16066 * config/avr/predicates.md (flash_operand): Remove insn predicate.
16068 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16070 PR middle-end/71876
16071 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
16073 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
16074 * calls.c (special_function_p): Remove the special handling of the
16075 "__builtin_" prefix.
16077 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16079 PR middle-end/71876
16080 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
16081 if STMT may be an alloca call.
16082 (gimple_alloca_call_p, alloca_call_p): Return only true for the
16083 builtin alloca call.
16084 * calls.h (gimple_maybe_alloca_call_p): New function.
16085 * tree-inline.c (inline_forbidden_p_stmt): Use
16086 gimple_maybe_alloca_call_p here.
16088 2016-07-21 David Malcolm <dmalcolm@redhat.com>
16090 * spellcheck-tree.c (best_macro_match::best_macro_match):
16091 Explictly specify the template arguments when invoking the base
16092 class constructor, to help older C++ compilers.
16094 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16097 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
16098 before builtin_decl_implicit.
16100 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16102 * optabs.c (emit_condiitonal_move): Short circuit for identical
16105 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16107 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
16108 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
16109 (noce_conversion_profitable_p): New.
16110 (noce_try_store_flag_constants): Use it.
16111 (noce_try_addcc): Likewise.
16112 (noce_try_store_flag_mask): Likewise.
16113 (noce_try_cmove): Likewise.
16114 (noce_try_cmove_arith): Likewise.
16115 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
16117 (noce_convert_multiple_sets): Move cost model to here, from...
16118 (bb_ok_for_noce_convert_multiple_sets) ...here.
16119 (noce_process_if_block): Update calls for above changes.
16120 (noce_find_if_block): Record new noce_if_info parameters.
16122 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16124 * target.def (max_noce_ifcvt_seq_cost): New.
16125 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
16126 * doc/tm.texi: Regenerate.
16127 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
16128 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
16129 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
16130 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
16131 * doc/invoke.texi: Document new params.
16133 2016-07-21 Richard Biener <rguenther@suse.de>
16135 PR tree-optimization/71947
16136 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
16137 ranges have useful limit_vr information.
16139 2016-07-21 Richard Biener <rguenther@suse.de>
16141 * function-tests.c (build_trivial_generic_function): Set
16142 BLOCK_SUPERCONTEXT of DECL_INITIAL.
16143 * omp-low.c (create_omp_child_function): Likewise.
16144 (grid_expand_target_grid_body): Likewise.
16145 * cgraphunit.c (init_lowered_empty_function): Likewise.
16146 (cgraph_node::expand_thunk): Likewise.
16147 * tree-parloops.c (create_loop_fn): Likewise.
16148 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
16150 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16152 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
16155 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
16157 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
16158 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
16159 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
16160 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
16161 values for insn attribute.
16162 * config/avr/avr.c (avr_out_insert_notbit): New function.
16163 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
16164 ADJUST_LEN_INSV_NOTBIT_0/_7.
16165 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
16167 2016-07-21 Bin Cheng <bin.cheng@arm.com>
16169 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
16170 (chrec_convert_1, chrec_convert): Ditto.
16171 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
16172 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
16173 * tree-vrp.c (adjust_range_with_scev): Ditto.
16174 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
16175 (scev_var_range_cant_overflow): New function.
16176 (scev_probably_wraps_p): New parameter. Call above function.
16177 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
16179 2016-07-21 Bin Cheng <bin.cheng@arm.com>
16181 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
16182 by removing computation of may_be_zero.
16184 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16186 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
16188 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
16190 Improving concepts performance and diagnostics.
16191 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
16192 for constraint satisfaction and subsumption.
16193 * timevar.h (auto_timevar): New constructor that matches the push/pop
16194 pattern of usage in pt.c.
16196 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
16198 * hwint.h (HOST_WIDE_INT_0): New define.
16199 (HOST_WIDE_INT_0U): Ditto.
16200 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
16201 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
16202 * simplify-rtx.c: Ditto.
16203 * tree-object-size.c: Ditto.
16205 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16207 * config/s390/s390.c (s390_encode_section_info): Remove mode size
16210 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
16212 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
16213 * combine.c: Use HOST_WIDE_INT_M1U instead of
16214 ~(unsigned HOST_WIDE_INT) 0.
16215 * double-int.h: Ditto.
16217 * dwarf2asm.c:Ditto.
16219 * genmodes.c: Ditto.
16221 * read-rtl.c: Ditto.
16222 * tree-ssa-loop-ivopts.c: Ditto.
16223 * tree-ssa-loop-prefetch.c: Ditto.
16224 * tree-vect-generic.c: Ditto.
16225 * tree-vect-patterns.c: Ditto.
16228 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16230 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
16231 constant addresses outside [0,0xc0] into a register.
16232 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
16233 cases where the base address register is unused after.
16234 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
16235 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
16236 (avr_out_store_psi_reg_disp_tiny): Same.
16238 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16240 Implement attribute progmem on reduced Tiny cores by adding
16241 flash offset 0x4000 to respective symbols.
16244 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
16245 documentation how it works on reduced Tiny cores.
16246 (AVR Named Address Spaces): No support for reduced Tiny.
16247 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
16248 (avr_address_tiny_pm_p): New static function.
16249 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
16250 if the address is in progmem.
16251 (avr_assemble_integer): Same.
16252 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
16253 for symbol_ref in progmem.
16254 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
16255 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
16256 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
16258 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
16260 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
16261 * configure: Regenerate.
16262 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
16263 (USE_THIN_ARCHIVES): New variable.
16264 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
16265 this archive as a thin archive.
16267 2016-07-20 David Malcolm <dmalcolm@redhat.com>
16269 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
16270 same location as last time, don't skip if we have fix-it hints.
16271 Clarify the skipping logic by converting it from one "if" clause
16272 to repeated "if" clauses.
16273 * spellcheck-tree.c: Include "cpplib.h".
16274 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
16275 (best_macro_match::best_macro_match): New constructor.
16276 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
16277 Move here from c/c-decl.c.
16278 (class best_macro_match): Move here from c/c-decl.c, converting
16279 from a typedef to a subclass, gaining a ctor.
16281 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16283 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
16284 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
16286 (avr_addr_space_diagnose_usage): ...and implementation.
16287 (avr_addr_space_supported_p): New function.
16288 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
16289 report bad address space usage if that space is supported.
16290 (avr_insert_attributes): Same. No more complain about unsupported
16292 * config/avr/avr-c.c (tm_p.h): Include it.
16293 (avr_cpu_cpp_builtins): Only define addr-space related built-in
16294 macro if avr_addr_space_supported_p.
16296 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
16298 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
16299 flag_toplevel_reorder.
16301 2016-07-20 David Malcolm <dmalcolm@redhat.com>
16303 * gcc-rich-location.c
16304 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
16306 * gcc-rich-location.h
16307 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
16309 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16311 * target.def (addr_space): Add new diagnose_usage to hook vector.
16312 * targhooks.c (default_addr_space_diagnose_usage): Add default
16313 implementation and...
16314 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
16315 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
16316 is some address space, call targetm.addr_space.diagnose_usage.
16317 * doc/tm.texi.in (Named Address Spaces): Add anchor for
16318 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
16319 * doc/tm.texi: Regenerate.
16321 2016-07-20 Martin Liska <mliska@suse.cz>
16323 PR middle-end/71898
16324 * graphite-isl-ast-to-gimple.c (later_of_the_two):
16325 Properly handly PHI stmts.
16327 2016-07-20 Bin Cheng <bin.cheng@arm.com>
16329 PR tree-optimization/71503
16330 PR tree-optimization/71683
16331 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
16334 2016-07-20 Martin Liska <mliska@suse.cz>
16336 * doc/invoke.texi (-fipa-ra): Document when the option is
16337 disabled. Fix a typo.
16339 2016-07-20 Martin Liska <mliska@suse.cz>
16341 * Makefile.in: Include fibonacci_heap.c
16342 * fibonacci_heap.c: New file.
16343 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
16344 (fibonacci_heap::union_with): Fix deletion of the second heap.
16345 * selftest-run-tests.c (selftest::run_tests): Incorporate
16346 fibonacci heap tests.
16347 * selftest.h: Declare fibonacci_heap_c_tests.
16349 2016-07-20 Martin Liska <mliska@suse.cz>
16351 * selftest-run-tests.c (selftest::run_tests): New function.
16352 * selftest.h (sreal_c_tests): Declare.
16353 * sreal.c (sreal_verify_basics): New function.
16354 (verify_aritmetics): Likewise.
16355 (sreal_verify_arithmetics): Likewise.
16356 (verify_shifting): Likewise.
16357 (sreal_verify_shifting): Likewise.
16358 (void sreal_c_tests): Likewise.
16360 2016-07-19 Jakub Jelinek <jakub@redhat.com>
16362 PR rtl-optimization/71916
16363 * cfgrtl.c (contains_no_active_insn_p): Return false also for
16364 bb which have a single succ fake edge.
16366 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
16369 * dwarf2out.c (gen_subprogram_die): Only call
16370 gen_unspecified_parameters_die while dumping early dwarf.
16372 2016-07-19 Jakub Jelinek <jakub@redhat.com>
16374 PR middle-end/71874
16375 * gimple-fold.c (fold_builtin_memory_op): Use
16376 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
16378 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
16380 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
16381 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
16382 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
16383 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
16384 * combine.c: Ditto.
16387 * double-int.c: Ditto.
16389 * dwarf2out.c: Ditto.
16392 * fold-const.c: Ditto.
16393 * function.c: Ditto.
16395 * genmodes.c: Ditto.
16399 * loop-doloop.c: Ditto.
16400 * loop-invariant.c: Ditto.
16401 * loop-iv.c: Ditto.
16406 * rtlanal.c: Ditto.
16407 * simplify-rtx.c: Ditto.
16408 * stor-layout.c: Ditto.
16410 * tree-ssa-loop-ivopts.c: Ditto.
16411 * tree-vect-generic.c: Ditto.
16412 * tree-vect-patterns.c: Ditto.
16417 * wide-int-print.cc: Ditto.
16418 * wide-int.cc: Ditto.
16419 * wide-int.h: Ditto.
16421 2016-07-19 David Malcolm <dmalcolm@redhat.com>
16423 * selftest.c (selftest::assert_streq): Handle NULL values of
16424 val_actual and val_expected.
16426 2016-07-19 Martin Jambor <mjambor@suse.cz>
16429 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
16430 rather than cgraph_create_node to get a call graph node.
16432 2016-07-19 Richard Biener <rguenther@suse.de>
16434 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
16435 handle all tcc_constant bases and valueize SSA names.
16436 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
16437 tcc_constant bases.
16439 2016-07-19 David Malcolm <dmalcolm@redhat.com>
16441 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
16442 the flags of the exit block and bb2, not just the entry block.
16444 2016-07-19 Richard Biener <rguenther@suse.de>
16446 PR tree-optimization/71901
16447 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
16448 align member, group stuff with the bitfield.
16449 (vn_ref_op_align_unit): New inline.
16450 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
16451 record element alignment and operand 3 unchanged.
16452 (ao_ref_init_from_vn_reference): Adjust.
16453 (valueize_refs_1): Likewise.
16454 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16456 2016-07-19 Richard Biener <rguenther@suse.de>
16458 PR tree-optimization/71908
16459 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
16460 symbolic constants in a more reliable way.
16462 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
16464 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
16466 (vect_update_inits_of_drs): Likewise.
16467 (vect_create_cond_for_alias_checks): Likewise.
16468 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
16470 2016-07-19 Richard Biener <rguenther@suse.de>
16473 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
16474 with an abstract origin that is not an inlined function outer
16475 scope add a self-reference as abstract origin.
16476 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
16478 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16481 * config/rs6000/rs6000.c (rs6000_function_value): Fix
16482 unintentional System V.4 structure return breakage for structures
16483 with a single floating point element.
16485 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
16487 PR tree-optimization/71734
16488 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
16489 contains REF, use it to check safelen, assume that safelen value
16490 must be greater 1, fix style.
16491 (ref_indep_loop_p_2): Add REF_LOOP argument.
16492 (ref_indep_loop_p): Pass LOOP as additional argument to
16493 ref_indep_loop_p_2.
16495 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
16497 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
16498 allocation in the prologue.
16499 * explow.c (get_dynamic_stack_base): New function to return an address
16500 expression for the dynamic stack base.
16501 (get_dynamic_stack_size): New function to do the required dynamic stack
16502 space size calculations.
16503 (allocate_dynamic_stack_space): Use new functions.
16504 (align_dynamic_address): Move some code from
16505 allocate_dynamic_stack_space to new function.
16506 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
16508 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16510 * config/s390/s390.c (s390_encode_section_info): Always set
16511 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
16514 2016-07-18 Richard Biener <rguenther@suse.de>
16516 PR tree-optimization/71893
16517 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
16518 for sizetype cast added by array_ref_element_size.
16519 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16521 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
16523 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
16524 register parameters. Remove code to initialize argument pointer
16525 on TARGET_64BIT. Optimize call to _mcount when it can be reached
16526 using a pc-relative branch. Cleanup conditional code.
16527 * config/pa/pa.md (call_mcount): New expander.
16528 (call_mcount_nonpic): New insn.
16529 (call_mcount_pic): New insn and split.
16530 (call_mcount_pic_post_reload): New insn.
16531 (call_mcount_64bit): New insn and split.
16532 (call_mcount_64bit_post_reload): New insn.
16534 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
16536 * config/avr/predicates.md (const_m255_to_m1_operand): New.
16537 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
16538 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
16539 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
16540 (*usum_widenqihi3, *udiff_widenqihi3)
16541 (*addhi3_zero_extend.const): New combiner insns.
16542 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
16543 just 1 bit is affected.
16544 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
16545 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
16547 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
16549 * omp-low.c (lower_omp_target): Mark data clauses with
16550 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
16551 zero-length subarrays.
16553 2016-07-15 Richard Biener <rguenther@suse.de>
16555 PR tree-optimization/71881
16556 * tree-loop-distribution.c (destroy_loop): Remove blocks in
16557 reverse DOM order to make debug temp generation happy.
16559 2016-07-15 Richard Biener <rguenther@suse.de>
16561 PR tree-optimization/71887
16562 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
16563 verify it is not zero for division / modulo handling.
16564 (value_replacement): Adjust.
16566 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
16567 Julian Brown <julian@codesourcery.com>
16569 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
16570 * config/aarch64/aarch64-cost-tables.h
16571 (vulcan_extra_costs): New variable.
16572 * config/aarch64/aarch64.c
16573 (vulcan_addrcost_table): Likewise.
16574 (vulcan_regmove_cost): Likewise.
16575 (vulcan_vector_cost): Likewise.
16576 (vulcan_branch_cost): Likewise.
16577 (vulcan_tunings): Likewise.
16579 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
16581 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
16582 (output_in_order): Loop over undefined variables too. Output them
16583 via assemble_undefined_decl. Skip variables that correspond to hard
16584 registers or have value-exprs.
16585 * varpool.c (symbol_table::output_variables): Handle undefined
16586 variables together with defined ones.
16588 2016-07-15 Richard Biener <rguenther@suse.de>
16590 * tree-ssa-pre.c (get_representative_for): Make sure to return
16591 the value number of SSA names.
16592 (phi_translate_1): get_representative_for cannot return NULL.
16593 (do_pre_regular_insertion): Remove redundant call to
16594 fully_constant_expression.
16595 (do_pre_partial_partial_insertion): Likewise.
16597 2016-07-15 Bin Cheng <bin.cheng@arm.com>
16599 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
16600 (derive_simple_iv_with_niters): New function.
16601 (simple_iv): Rewrite using simple_iv_with_niters.
16602 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
16603 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16605 (number_of_iterations_exit): Rewrite using above function.
16606 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16609 2016-07-15 Richard Biener <rguenther@suse.de>
16611 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
16612 vec_construct cost.
16614 2016-07-14 Jakub Jelinek <jakub@redhat.com>
16616 PR tree-optimization/71872
16617 * tree-data-ref.c (get_references_in_stmt): Ignore references
16618 with is_gimple_constant get_base_address.
16620 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
16622 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
16623 (TARGET_HAVE_LDACQD): New macro.
16624 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
16625 than TARGET_HAVE_LDACQ.
16626 (arm_load_acquire_exclusivedi): Likewise.
16627 (arm_store_release_exclusivedi): Likewise.
16629 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
16631 PR rtl-optimization/71878
16632 * lra-constraints.c (match_reload): Pass information about other
16633 output operands. Create new unique register value if matching input
16634 operand shares same register value as output operand being considered.
16635 (curr_insn_transform): Record output operands already processed.
16637 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16640 PR tree-optimization/70923
16641 * tree-vect-patterns.c: Include mult-synthesis.h.
16642 (target_supports_mult_synth_alg): New function.
16643 (synth_lshift_by_additions): Likewise.
16644 (apply_binop_and_append_stmt): Likewise.
16645 (vect_synth_mult_by_constant): Likewise.
16646 (target_has_vecop_for_code): Likewise.
16647 (vect_recog_mult_pattern): Use above functions to synthesize vector
16648 multiplication by integer constants.
16650 2016-07-14 Alan Modra <amodra@gmail.com>
16652 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
16653 gpr alternatives. Correct '*' placement on Y,r alternative.
16654 Add '*' on operand 1 of r,r alternative.
16656 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16658 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
16659 * expmed.h: ... Here.
16661 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
16663 * gimple.h (stmt_can_terminate_bb_p): New function.
16664 * tree-cfg.c (need_fake_edge_p): Rename to ...
16665 (stmt_can_terminate_bb_p): ... this; return true if stmt can
16666 throw external; handle const and pure calls.
16667 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
16669 2016-07-14 Richard Biener <rguenther@suse.de>
16671 PR tree-optimization/71866
16672 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
16673 (do_hoist_insertion): Avoid endless recursion when we
16674 didn't insert anything because we managed to simplify
16675 things down to a constant or SSA name.
16676 (fully_constant_expression): Re-write in terms of ...
16677 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
16678 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
16679 vn_nary_build_or_lookup_1.
16680 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
16681 (vn_nary_build_or_lookup): ... this which now wraps it.
16683 2016-07-14 Alan Modra <amodra@gmail.com>
16686 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
16687 with p9_vector override before power9-dform override.
16689 2016-07-13 Andi Kleen <ak@linux.intel.com>
16691 * value-prof.c (gimple_value_profile_transformations): Don't run
16692 when auto_profile is on.
16694 2016-07-13 Andi Kleen <ak@linux.intel.com>
16696 * auto-profile.c (update_inlined_ind_target,
16697 afdo_indirect_call): Print information to dump file.
16699 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
16701 * genrecog.c (special_predicate_operand_p): New function.
16702 (predicate_name): Move function.
16703 (validate_pattern): Don't warn about missing mode for all
16704 define_special_predicate predicates.
16706 2016-07-13 Bin Cheng <bin.cheng@arm.com>
16708 * tree-vect-data-refs.c (vect_no_alias_p): New function.
16709 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
16710 resolve alias checks which are known at compilation time.
16711 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
16712 alias checks are resolved. Move dump info for too many runtime
16713 alias checks to here...
16714 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
16716 2016-07-13 Richard Biener <rguenther@suse.de>
16718 PR tree-optimization/24574
16719 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
16720 position and add shift, rotate, divison and modulo support
16722 (value_replacement): Pass in argument position to absorbing_element_p.
16724 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
16727 * ipa-inline-transform.c (inline_call): Support
16728 instrumented thunks.
16730 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16732 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
16733 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
16735 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
16736 Baseline. Make initial alternative TARGET_32BIT only.
16737 (udivsi3): Likewise.
16738 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
16739 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
16742 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16744 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
16745 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
16746 availability with TARGET_HAVE_MOVT.
16747 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
16748 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
16749 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
16751 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
16752 extra instruction if MOVW is available. Use a cost variable
16753 incremented by COSTS_N_INSNS (1) when the condition match rather than
16754 returning an arithmetic expression based on COSTS_N_INSNS. Make
16755 constant with bottom half word zero cost 2 instruction if MOVW is
16757 * config/arm/arm.md (define_attr "arch"): Add v8mb.
16758 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
16759 target is ARMv8-M Baseline.
16760 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
16761 (arm_movtas_ze): Likewise.
16762 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
16763 alternative for constants satisfying j constraint.
16764 (thumb1_movsi_insn): Likewise.
16765 (movsi splitter for K alternative): Tighten condition to not trigger
16766 if movt is available and j constraint is satisfied.
16767 (Pe immediate splitter): Likewise.
16768 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
16769 constant fitting in an halfword to use MOVW.
16770 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
16773 2016-07-13 Richard Biener <rguenther@suse.de>
16775 PR middle-end/71104
16776 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
16777 gimplifying the LHS. Make sure to gimplify a returning twice
16778 call LHS without using SSA names.
16780 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16782 * tree-data-ref.c (find_data_references_in_stmt): Remove
16783 unnecessary call to vec::release.
16784 (graphite_find_data_references_in_stmt): Likewise.
16785 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
16786 * tree-vect-stmts.c (vectorizable_condition): Likewise.
16788 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16790 * cfgexpand.c (expand_used_vars): Make the type of a local
16792 * genmatch.c (lower_for): Likewise.
16793 * haifa-sched.c (haifa_sched_init): Likewise.
16794 (add_to_speculative_block): Likewise.
16795 (create_check_block_twin): Likewise.
16796 * predict.c (handle_missing_profiles): Likewise.
16797 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
16798 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
16799 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
16801 (maybe_lower_iteration_bound): Likewise.
16802 * tree-ssa-sccvn.c (DFS): Likewise.
16803 * tree-stdarg.c (reachable_at_most_once): Likewise.
16804 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
16805 (vectorizable_store): Likewise.
16807 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16809 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
16810 (sccvn_dom_walker): make cond_stack an auto_vec.
16812 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16814 * ree.c (struct ext_state): Make type of members auto_vec.
16815 (find_and_remove_re): Adjust.
16817 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16819 * cfgexpand.c (struct stack_vars_data): Make type of fields
16821 (expand_used_vars): Adjust.
16823 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16825 * ipa.c (record_cdtor_fn): Adjust.
16826 (build_cdtor_fns): Likewise.
16827 (ipa_cdtor_merge): Make static_ctors and static_dtors local
16830 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16832 * genextract.c (struct accum_extract): Add constructor and make
16834 (gen_insn): Adjust.
16836 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16838 * tree.c (struct free_lang_data_d): Add constructor and change
16839 types of members to ones that automatically manage resources.
16840 (fld_worklist_push): Adjust.
16841 (find_decls_types): Likewise.
16842 (find_decls_types_in_eh_region): Likewise.
16843 (free_lang_data_in_cgraph): Stop manually creating and
16844 destroying members of free_lang_data_d.
16846 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
16848 PR rtl-optimization/68961
16849 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
16850 peephole variant. Use sse_reg_operand predicates.
16852 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
16854 * config/i386/predicates.md (x86_64_immediate_operand)
16855 <case CONST_INT>: Remove unneeded truncation to DImode.
16856 <case CONST>: Ditto.
16857 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
16859 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16862 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
16863 The xxperm and xxpermr instructions require that the 2nd input
16864 operand overlap with the output operand, and not the 1st.
16865 (altivec_vperm_v8hiv16qi): Likewise.
16866 (altivec_vperm_<mode>_uns_internal): Likewise.
16867 (altivec_vpermr_<mode>_internal): Likewise.
16868 (vperm_v8hiv4si): Likewise.
16869 (vperm_v16qiv8hi): Likewise.
16871 2016-07-12 Nathan Sidwell <nathan@acm.org>
16873 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
16874 when -mno-pic-data-is-text-relative is in effect, by default.
16875 * doc/invoke.texi (mpic-data-is-text-relative): Document new
16876 behavior and clarify.
16878 2016-07-12 Martin Liska <mliska@suse.cz>
16880 * params.def: Add avg-loop niter.
16881 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
16882 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
16883 * doc/invoke.texi: Document the new parameter.
16885 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16887 PR middle-end/71700
16888 * expr.c (store_constructor): Mask sign-extended bits when widening
16889 sub-word constructor element at the start of a word.
16891 2016-07-12 Martin Liska <mliska@suse.cz>
16893 * Makefile.in: Append rule for params-options.h.
16894 * params-options.h: New file.
16896 2016-07-12 Martin Liska <mliska@suse.cz>
16898 * ira-build.c (mark_loops_for_removal): Properly iterate
16901 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
16902 Richard Biener <rguenther@suse.de>
16904 PR tree-optimization/23286
16905 PR tree-optimization/70159
16906 * doc/invoke.texi: Document -fcode-hoisting.
16907 * common.opt (fcode-hoisting): New flag.
16908 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
16909 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
16910 (do_regular_insertion): Rename to ...
16911 (do_pre_regular_insertion): ... this and amend general comments
16912 on insertion strathegy.
16913 (do_partial_partial_insertion): Rename to ...
16914 (do_pre_partial_partial_insertion): ... this.
16915 (do_hoist_insertion): New function.
16916 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
16917 and call do_hoist_insertion properly.
16919 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
16920 (pass_pre::execute): Register hoist_insert stats.
16922 2016-07-12 Jakub Jelinek <jakub@redhat.com>
16924 PR middle-end/71716
16925 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
16926 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
16927 is different from mode's bitsize. Small cleanup.
16929 2016-07-12 Richard Biener <rguenther@suse.de>
16931 PR rtl-optimization/68961
16932 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
16933 to simplify to a non-constant.
16935 2016-07-11 Jakub Jelinek <jakub@redhat.com>
16937 PR middle-end/71758
16938 * omp-low.c (expand_omp_target): Gimplify device.
16940 PR tree-optimization/71823
16941 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
16942 to get vec_oprnds2 from op2.
16944 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
16946 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
16947 Hoist common subexpressions.
16948 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
16950 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
16953 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
16954 prevent generation of 'stxsiwx' on pre Power8 hardware.
16956 2016-07-11 David Malcolm <dmalcolm@redhat.com>
16958 * input.c: Include cpplib.h.
16959 (selftest::temp_source_file): New class.
16960 (selftest::temp_source_file::temp_source_file): New ctor.
16961 (selftest::temp_source_file::~temp_source_file): New dtor.
16962 (selftest::should_have_column_data_p): New function.
16963 (selftest::test_should_have_column_data_p): New function.
16964 (selftest::temp_line_table): New class.
16965 (selftest::temp_line_table::temp_line_table): New ctor.
16966 (selftest::temp_line_table::~temp_line_table): New dtor.
16967 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
16968 it to create a temp_line_table.
16969 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
16970 locations that are known to have column data.
16971 (selftest::line_table_case): New struct.
16972 (selftest::test_reading_source_line): Move tempfile handling
16973 to class temp_source_file.
16974 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
16975 (selftest::assert_token_loc_eq): New function.
16976 (ASSERT_TOKEN_LOC_EQ): New macro.
16977 (selftest::test_lexer): New function.
16978 (selftest::boundary_locations): New array.
16979 (selftest::input_c_tests): Call test_should_have_column_data_p.
16980 Loop over a test matrix of interesting values of location and
16981 default_range_bits, calling test_lexer on each case in the matrix.
16982 Move call to test_accessing_ordinary_linemaps into the matrix.
16983 * selftest.h (ASSERT_EQ): Reimplement in terms of...
16984 (ASSERT_EQ_AT): New macro.
16986 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
16989 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
16990 Don't convert TImode in debug insn.
16992 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
16994 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
16995 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
16996 (tree_type_common::lang_flag_7): New.
16997 (tree_type_common::spare): Reduce size.
16998 * tree.h (TYPE_ALIGN_OK): Remove.
16999 (TYPE_LANG_FLAG_7): New.
17000 (get_inner_reference): Adjust header.
17001 * print-tree.c (print_node): Adjust.
17002 * expr.c (get_inner_reference): Remove parameter keep_aligning.
17003 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
17004 calls to get_inner_reference.
17005 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
17006 handling of TYPE_ALIGN_OK.
17007 * builtins.c (get_object_alignment_2): Adjust call to
17008 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
17009 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
17011 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
17012 * cfgexpand.c (expand_debug_expr): Likewise.
17013 * dbxout.c (dbxout_expand_expr): Likewise.
17014 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
17015 loc_list_from_tree, fortran_common): Likewise.
17016 * fold-const.c (optimize_bit_field_compare,
17017 decode_field_reference, fold_unary_loc, fold_comparison,
17018 split_address_to_core_and_offset): Likewise.
17019 * gimple-laddress.c (execute): Likewise.
17020 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
17021 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
17022 * hsa-gen.c (gen_hsa_addr): Likewise.
17023 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
17024 * tsan.c (instrument_expr): Likewise.
17025 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
17026 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
17027 * tree-affine.c (tree_to_aff_combination,
17028 get_inner_reference_aff): Adjust calls to get_inner_reference.
17029 * tree-data-ref.c (split_constant_offset_1,
17030 dr_analyze_innermost): Likewise.
17031 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
17032 * tree-sra.c (ipa_sra_check_caller): Likewise.
17033 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
17034 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
17035 bswap_replace): Likewise.
17036 * tree-vect-data-refs.c (vect_check_gather,
17037 vect_analyze_data_refs): Likewise.
17038 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
17039 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
17042 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17044 * Makefile.in (selftest-valgrind): New phony target.
17045 * function-tests.c (selftest::build_cfg): Delete pass instances
17046 created by the test.
17047 (selftest::convert_to_ssa): Likewise.
17048 (selftest::test_expansion_to_rtl): Likewise.
17049 * tree-cfg.c (selftest::test_linear_chain): Release dominator
17051 (selftest::test_diamond): Likewise.
17053 2016-07-11 Richard Biener <rguenther@suse.de>
17055 PR tree-optimization/71816
17056 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
17057 than replacing all of its operands.
17059 2016-07-11 Alan Modra <amodra@gmail.com>
17061 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
17062 (ctr<mode>): Add unspec.
17063 (ctr<mode>_internal*): Likewise.
17065 2016-07-08 James Bowman <james.bowman@ftdichip.com>
17067 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
17068 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
17070 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
17072 PR rtl-optimization/71621
17073 * lra-constraints.c (process_alt_operands): Check combination of
17074 reg class and mode.
17076 2016-07-08 Jason Merrill <jason@redhat.com>
17077 Richard Biener <rguenther@suse.de>
17079 P0145: Refining Expression Order for C++.
17080 * gimplify.c (initial_rhs_predicate_for): New.
17081 (gimplfy_modify_expr): Gimplify RHS before LHS.
17083 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17086 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17087 Allow standard error handling to take over when a wrong number
17088 of arguments is presented to __builtin_vec_ld () or
17089 __builtin_vec_st ().
17091 2016-07-08 Jiong Wang <jiong.wang@arm.com>
17093 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
17098 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
17099 __builtin_aarch64_fmaxv2sf.
17100 (vmaxnmq_f32): Likewise.
17101 (vmaxnmq_f64): Likewise.
17102 (vminnm_f32): Likewise.
17103 (vminnmq_f32): Likewise.
17104 (vminnmq_f64): Likewise.
17106 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
17109 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
17110 enable -mfloat128-hardware by default.
17111 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
17112 that IEEE 128-bit hardware support needs.
17113 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17114 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
17115 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
17116 floating point requires.
17117 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
17118 -mfloat128 and -mfloat128-hardware changes.
17120 2016-07-08 Alan Hayward <alan.hayward@arm.com>
17122 PR tree-optimization/71667
17123 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
17125 2016-07-08 Martin Liska <mliska@suse.cz>
17127 PR middle-end/71606
17128 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
17129 folding produces SAVE_EXPRs, thus return false for the type.
17131 2016-07-07 Martin Liska <mliska@suse.cz>
17133 * file-find.c (remove_prefix): New function.
17134 * file-find.h (remove_prefix): Declare the function.
17135 * gcc-ar.c (main): Skip a folder of the wrapper if
17136 a wrapped binary would point to the same file.
17138 2016-07-07 Jan Hubicka <jh@suse.cz>
17140 * tree-scalar-evolution.c (iv_can_overflow_p): export.
17141 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
17142 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
17144 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
17147 * ipa-inline-analysis.c (compute_inline_parameters): Set
17148 local.can_change_signature to false for intrumentation
17151 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17153 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
17154 with TARGET_HAVE_MOVT.
17155 (TARGET_HAVE_MOVT): Define.
17156 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
17157 availability with TARGET_HAVE_MOVT.
17158 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
17160 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
17162 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
17163 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
17164 * config/arm/constraints.md (define_constraint "j"): Use
17165 TARGET_HAVE_MOVT to check MOVT availability.
17167 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17169 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
17171 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17173 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
17174 (armv8-m.main): Likewise.
17175 (armv8-m.main+dsp): Likewise.
17176 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
17177 (FL_FOR_ARCH8M_MAIN): Likewise.
17178 * config/arm/arm-tables.opt: Regenerate.
17179 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
17180 armv8-m.main+dsp to BE8_LINK_SPEC.
17181 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
17182 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
17183 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
17184 Baseline and Mainline.
17185 (arm_option_override_internal): Also disable arm_restrict_it when
17186 !arm_arch_notm. Update comment for -munaligned-access to also cover
17188 (arm_file_start): Increase buffer size for printing architecture name.
17189 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
17190 and armv8-m.main+dsp.
17191 (mno-unaligned-access): Clarify that this is disabled by default for
17192 ARMv8-M Baseline architectures as well.
17194 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17196 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
17197 decide whether to prevent some libgcc routines being included for some
17198 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
17199 link between this condition and the one in
17200 libgcc/config/arm/lib1func.S.
17202 2016-07-07 Richard Biener <rguenther@suse.de>
17204 * tree-ssa-pre.c: Include alias.h.
17205 (compute_avail): If we have multiple VN_REFERENCEs with the
17206 same hashtable entry adjust that to make it a valid replacement
17207 for all of them with respect to alignment and aliasing
17208 when doing insertion.
17209 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
17210 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
17212 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
17216 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
17217 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
17220 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17222 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
17223 (adjust_mems): Adjust.
17224 (adjust_insn): Likewise.
17225 (prepare_call_arguments): Likewise.
17227 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17229 * gcse.c (struct ls_expr): Make stores field a vector.
17230 (ldst_entry): Adjust.
17231 (free_ldst_entry): Likewise.
17232 (print_ldst_list): Likewise.
17233 (compute_ld_motion_mems): Likewise.
17234 (update_ld_motion_stores): Likewise.
17236 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17238 * gcse.c (struct ls_expr): Remove loads field.
17239 (ldst_entry): Adjust.
17240 (free_ldst_entry): Likewise.
17241 (print_ldst_list): Likewise.
17242 (compute_ld_motion_mems): Likewise.
17244 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17246 * store-motion.c (struct st_expr): Make antic_stores a vector.
17247 (st_expr_entry): Adjust.
17248 (free_st_expr_entry): Likewise.
17249 (print_store_motion_mems): Likewise.
17250 (find_moveable_store): Likewise.
17251 (compute_store_table): Likewise.
17252 (remove_reachable_equiv_notes): Likewise.
17253 (replace_store_insn): Likewise.
17254 (build_store_vectors): Likewise.
17256 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17258 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
17259 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
17261 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
17263 PR tree-optimization/71518
17264 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
17265 misalign also for outer loops with negative step.
17267 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
17269 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
17270 (cortex_a53_shift): Add mov_shift.
17271 (cortex_a53_shift_reg): Add new reservation for register shifts.
17272 (cortex_a53_alu): Remove bfm.
17273 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
17274 (cortex_a53_alu_extr): Add new reservation for EXTR.
17275 (bypasses): Improve bypass modelling.
17277 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17280 * config/avr/avr.c (avr_asm_select_section): Strip off
17281 SECTION_DECLARED from flags when calling get_section.
17283 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17285 * tree-vectorizer.h (vect_memory_access_type): Add
17286 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
17287 * tree-vect-stmts.c (compare_step_with_zero): New function.
17288 (perm_mask_for_reverse): Move further up file.
17289 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
17291 (get_negative_load_store_type): New function.
17292 (get_load_store_type): Call it. Add an ncopies argument.
17293 (vectorizable_mask_load_store): Update call accordingly and
17294 remove tests for negative steps.
17295 (vectorizable_store, vectorizable_load): Likewise. Handle new
17296 memory_access_types.
17298 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17300 * tree-vectorizer.h (vect_memory_access_type): New enum.
17301 (_stmt_vec_info): Add a memory_access_type field.
17302 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
17303 (vect_model_store_cost): Take an access type instead of a boolean.
17304 (vect_model_load_cost): Likewise.
17305 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
17306 vect_model_store_cost and vect_model_load_cost.
17307 * tree-vect-stmts.c (vec_load_store_type): New enum.
17308 (vect_model_store_cost): Take an access type instead of a
17309 store_lanes_p boolean. Simplify tests.
17310 (vect_model_load_cost): Likewise, but for load_lanes_p.
17311 (get_group_load_store_type, get_load_store_type): New functions.
17312 (vectorizable_store): Use get_load_store_type. Record the access
17313 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
17314 (vectorizable_load): Likewise.
17315 (vectorizable_mask_load_store): Likewise. Replace is_store
17316 variable with vls_type.
17318 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17320 * tree-vectorizer.h (vect_grouped_load_supported): Add a
17321 single_element_p parameter.
17322 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
17323 Check the PR65518 case here rather than in vectorizable_load.
17324 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
17325 * tree-vect-stmts.c (vectorizable_load): Likewise.
17327 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17329 * tree-vectorizer.h (gather_scatter_info): New structure.
17330 (vect_check_gather_scatter): Return a bool rather than a decl.
17331 Replace return-by-pointer arguments with a single
17332 gather_scatter_info *.
17333 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
17334 (vect_analyze_data_refs): Update call accordingly.
17335 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
17336 (vectorizable_mask_load_store): Likewise. Also record the
17337 offset dt and vectype in the gather_scatter_info.
17338 (vectorizable_store): Likewise.
17339 (vectorizable_load): Likewise.
17341 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17343 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
17344 strided groups, use the cost of N scalar accesses instead
17345 of ncopies vector accesses.
17346 (vect_model_load_cost): Likewise.
17348 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17350 * tree-vect-stmts.c (vect_cost_group_size): Delete.
17351 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
17352 variable to indicate when once-per-group costs are being used.
17353 (vect_model_load_cost): Likewise. Fix comment and misindented code.
17355 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17357 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
17358 peeling-for-gaps condition.
17360 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17362 * config/s390/s390.c (s390_expand_vec_init): Force initializer
17363 element to register if it doesn't match general_operand.
17365 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
17366 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17368 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
17370 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
17371 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
17372 (SIGNBIT): New mode iterator.
17373 (Fsignbit): New mode attribute.
17374 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
17375 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
17376 when direct moves are available.
17377 (signbit<mode>2_dm): New define_insn_and_split).
17378 (signbit<mode>2_dm2): New define_insn.
17380 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17382 PR rtl-optimization/71594
17383 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
17384 into subregs of appropriate mode before trying to emit a conditional
17387 2016-07-05 Jan Hubicka <jh@suse.cz>
17389 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
17390 (simple_iv): Use it.
17392 2016-07-05 Jan Hubicka <jh@suse.cz>
17394 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
17396 2016-07-05 Jiong Wang <jiong.wang@arm.com>
17398 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
17401 2016-07-05 Jan Hubicka <jh@suse.cz>
17403 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
17406 2016-07-05 Richard Biener <rguenther@suse.de>
17408 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
17409 Handle empty else block.
17410 (is_feasible_trace): Likewise.
17411 (split_paths): Likewise.
17413 2016-07-05 Richard Biener <rguenther@suse.de>
17415 * tree-loop-distribution.c (distribute_loop): Fix issue with
17416 the cost model loop.
17418 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
17420 * config/arm/neon-testgen.ml: Delete.
17421 * config/arm/neon.ml: Delete.
17423 2016-07-04 Jakub Jelinek <jakub@redhat.com>
17426 * tree.c (attribute_value_equal): Use get_attribute_name instead of
17427 directly using TREE_PURPOSE.
17429 2016-07-04 Jiong Wang <jiong.wang@arm.com>
17431 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
17432 * config/aarch64/aarch64_neon.h: Likewise.
17433 * config/aarch64/arm_neon.h: Likewise.
17434 * config/aarch64/atomics.md: Likewise.
17435 * config/aarch64/aarch64-simd-builtins.def: Likewise.
17436 * doc/invoke.texi: Likewise.
17438 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
17440 * config/s390/s390.md: Add "z13" cpu_facility.
17441 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
17442 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
17443 condition" type instructions.
17445 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
17446 Jeff Law <law@redhat.com>
17448 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
17449 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
17451 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
17453 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
17454 permutation for TARGET_AVX512F.
17455 (ix86_expand_vec_one_operand_perm_avx512): New function.
17456 (expand_vec_perm_1): Invoke introduced function.
17457 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
17458 it may be not valid after vectorization.
17460 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17463 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
17464 typo in comment. Only force to memory if it is a weak
17465 external reference.
17467 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
17468 Jiong Wang <jiong.wang@arm.com>
17470 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
17471 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
17472 (AARCH64_FL_F16): New.
17473 (AARCH64_FL_FOR_ARCH8_2): New.
17474 (AARCH64_ISA_8_2): New.
17475 (AARCH64_ISA_F16): New.
17476 (TARGET_FP_F16INST): New.
17477 (TARGET_SIMD_F16INST): New.
17478 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
17479 ("fp"): Disabling "fp" also disables "fp16".
17480 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
17481 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
17482 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
17483 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
17485 2016-07-04 Jan Beulich <jbeulich@suse.com>
17487 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
17489 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17492 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
17493 the insns, use an insn form that does not adjust the offset on
17494 little endian systems.
17496 2016-07-01 Jan Beulich <jbeulich@suse.com>
17498 * varasm.c (get_variable_section): Validate initializer in
17499 named .bss-like sections.
17501 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
17503 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
17504 Exchange the order of the second and third operands in the vpermr
17505 instruction tmeplate.
17507 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
17510 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
17511 Disallow TDmode values.
17513 2016-07-01 Alan Modra <amodra@gmail.com>
17515 PR rtl-optimization/71709
17516 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
17517 being set, not referenced.
17519 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17521 PR tree-optimization/70729
17522 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
17523 of loop since it can be not valid after transformation.
17525 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17527 * config/arm/arm.c (thumb_reload_in_hi): Delete.
17528 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
17530 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
17532 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
17535 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
17538 * config/rs6000/constraints.md (wY constraint): New constraint to
17539 match the requirements for the LXSD and STXSD instructions.
17540 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
17541 predicate to match the requirements for the LXSD and STXSD
17543 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
17544 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
17545 to make sure that the bottom 2 bits of offset are 0, the address
17546 form is offsettable, and no updating is done in the address mode.
17547 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
17548 (movdi_internal32): Likewise
17549 (movdi_internal64): Likewise.
17551 2016-06-30 Jakub Jelinek <jakub@redhat.com>
17553 PR tree-optimization/71707
17554 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
17555 strinfo even for ADDR_EXPR ptr.
17557 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
17559 * config/rs6000/altivec.md (darn_32): Change the condition to
17560 TARGET_P9_MISC instead of TARGET_MODULO.
17561 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
17562 condition expression.
17563 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
17564 condition expression.
17565 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
17566 (DFP_TEST): New code iterator.
17567 (dfptstsfi_<code>_mode>): New define_expand.
17568 (*dfp_sgnfcnc_<mode>): New define_insn.
17569 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
17570 definition next to BU_P9_MISC_1 definition and change the MASK
17571 value to RS6000_BTM_P9_MISC.
17572 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
17573 (BU_P9_64BIT_MISC_0): Likewise.
17574 (BU_P9_DFP_MISC_0): New macro definition.
17575 (BU_P9_DFP_MISC_1): New macro definition.
17576 (BU_P9_DFP_MISC_2): New macro definition.
17577 (BU_P9_DFP_OVERLOAD_1): New macro definition.
17578 (BU_P9_DFP_OVERLOAD_2): New macro definition.
17579 (BU_P9_DFP_OVERLOAD_3): New macro definition.
17580 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
17581 (TSTSFI_LT_TD): Likewise.
17582 (TSTSFI_EQ_DD): Likewise.
17583 (TSTSFI_EQ_TD): Likewise.
17584 (TSTSFI_GT_DD): Likewise.
17585 (TSTSFI_GT_TD): Likewise.
17586 (TSTSFI_OV_DD): Likewise.
17587 (TSTSFI_OV_TD): Likewise.
17588 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
17589 (TSTSFI_LT_DD): Likewise.
17590 (TSTSFI_LT_TD): Likewise.
17591 (TSTSFI_EQ): Likewise.
17592 (TSTSFI_EQ_DD): Likewise.
17593 (TSTSFI_EQ_TD): Likewise.
17594 (TSTSFI_GT): Likewise.
17595 (TSTSFI_GT_DD): Likewise.
17596 (TSTSFI_GT_TD): Likewise.
17597 (TSTSFI_OV): Likewise.
17598 (TSTSFI_OV_DD): Likewise.
17599 (TSTSFI_OV_TD): Likewise.
17600 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17601 overloaded test significance functions.
17602 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17603 OPTION_MASK_P9_MISC into the representation of this mask.
17604 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
17606 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
17607 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
17609 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
17610 argument is a 6-bit unsigned literal value if the icode argument
17611 represents a DFP test significance built-in call.
17612 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
17613 flag used independently and in combination with the
17614 RS6000_BTM_64BIT flag.
17615 (rs6000_opt_masks): Add entry for power9-misc command-line option.
17616 (rs6000_builtin_mask_names): Add entry for power9-misc
17617 command-line option.
17618 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
17619 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
17620 RS6000_BTM_P9_MISC macros.
17621 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
17622 option and change the description of the -mpower9-vector option to
17623 enable only vector instructions, removing its erroneously claimed
17624 support for scalar instructions.
17625 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
17626 the ISA 3.0 digital floating point test significance built-in
17629 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
17631 * config/aarch64/aarch64.c (cortexa35_tunings):
17632 Enable AES fusion. Use cortexa57_branch_cost.
17633 (cortexa53_tunings): Use cortexa57_branch_cost.
17634 (cortexa72_tunings): Use cortexa57_branch_cost.
17635 Use AUTOPREFETCHER_WEAK.
17636 (cortexa73_tunings): Use cortexa57_branch_cost.
17638 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17639 James Greenhalgh <james.greenhalgh@arm.com>
17641 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
17642 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
17643 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
17644 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
17645 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
17646 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
17647 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
17648 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
17649 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
17650 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
17651 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
17652 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
17653 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
17656 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
17657 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17659 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
17661 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
17663 2016-06-30 David Malcolm <dmalcolm@redhat.com>
17666 * gcc.c (driver::build_option_suggestions): Pass "option" to
17667 add_misspelling_candidates.
17668 * opts-common.c (add_misspelling_candidates): Add "option" param;
17669 use it to avoid adding negated forms for options marked with
17671 * opts.h (add_misspelling_candidates): Add "option" param.
17673 2016-06-30 Jakub Jelinek <jakub@redhat.com>
17675 PR middle-end/71693
17676 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
17677 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
17678 first when permuting bitwise operation with rotate. Cast
17679 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
17681 2016-06-29 David Malcolm <dmalcolm@redhat.com>
17683 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
17684 for misspelled param names.
17685 * params.c: Include spellcheck.h.
17686 (find_param_fuzzy): New function.
17687 * params.h (find_param_fuzzy): New prototype.
17688 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
17689 * spellcheck.h (struct edit_distance_traits<const char *>):
17692 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
17694 * config/rs6000/predicates.md (const_0_to_7_operand): New
17695 predicate, recognize 0..7.
17696 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17697 support for doing extracts from V16QImode, V8HImode, V4SImode
17699 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
17700 vector extract support.
17701 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
17702 for ISA 3.0 vector extract.
17703 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
17704 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
17705 extracts of a constant element number from small integer vectors
17706 on 64-bit ISA 3.0 systems.
17707 (vsx_extract_<mode>_di): Likewise.
17708 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
17709 say when we can do ISA 3.0 vector extracts.
17710 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
17711 registers, using the stxsiwx instruction.
17713 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
17715 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
17716 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
17717 qdf24xx_regmove_cost, qdf24xx_tunings): New.
17718 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
17719 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
17720 * config/arm/arm.c (arm_qdf24xx_tune): New.
17722 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
17724 * config/aarch64/aarch64.c (cortexa53_tunings):
17725 Increase loop alignment to 8. Set function alignment to 16.
17726 (cortexa35_tunings): Likewise.
17727 (cortexa57_tunings): Increase loop alignment to 8.
17728 (cortexa72_tunings): Likewise.
17729 (cortexa73_tunings): Likewise.
17731 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
17733 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
17734 for arm_fp16_ok and arm_fp16_hw.
17735 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
17736 arm_fp16_alternative.
17738 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
17740 PR tree-optimization/71655
17741 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
17742 types when swapping operands.
17744 2016-06-29 Martin Liska <mliska@suse.cz>
17746 PR middle-end/71585
17747 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
17748 * ipa-inline-transform.c (inline_call): Remove unnecessary call
17749 of build_optimization_node.
17751 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
17753 PR tree-optimization/70729
17754 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
17755 independent in loops having positive safelen value.
17756 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
17757 it may be not valid after vectorization.
17759 2016-06-29 Jakub Jelinek <jakub@redhat.com>
17761 PR tree-optimization/71625
17762 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
17763 is sorted by ascending list->offset. If PTR is non-NULL and there is
17764 previous strinfo, call get_stridx_plus_constant.
17765 (get_stridx): Pass exp as second argument to get_addr_stridx.
17766 (addr_stridxptr): Add missing list = list->next, so that there can be
17767 more than one entries in the list. Bump limit from 16 to 32. Ensure
17768 the list is sorted by ascending list->offset.
17769 (get_stridx_plus_constant): Adjust so that it can be also called with
17770 ADDR_EXPR instead of SSA_NAME as PTR.
17771 (handle_char_store): Pass NULL_TREE as second argument to
17774 2016-06-29 Richard Biener <rguenther@suse.de>
17776 PR rtl-optimization/68961
17777 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
17779 2016-06-29 Richard Biener <rguenther@suse.de>
17781 PR middle-end/71002
17782 * alias.c (component_uses_parent_alias_set_from): Handle
17783 type punning through union accesses by using the union alias set.
17784 * gimple.c (gimple_get_alias_set): Remove union type punning case.
17786 2016-07-29 Richard Biener <rguenther@suse.de>
17788 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
17789 precision not matching mode precision.
17791 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
17793 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
17794 pa_output_arg_descriptor.
17795 (call_val_symref_64bit_post_reload): Likewise.
17796 (call_val_powf_64bit_post_reload): Likewise.
17797 (sibcall_internal_symref_64bit): Likewise.
17798 (sibcall_value_internal_symref_64bit): Likewise.
17800 2016-06-28 Jakub Jelinek <jakub@redhat.com>
17802 PR middle-end/71626
17803 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
17804 a constant, force its SUBREG_REG into memory or register instead
17807 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17810 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
17811 * doc/invoke.texi (AVR Options): Document it.
17813 2016-06-28 Walter Lee <walt@tilera.com>
17815 * config/tilegx/linux.h: Do not include arch/icache.h
17816 (CLEAR_INSN_CACHE): Provide inlined definition directly.
17817 * config/tilepro/linux.h: Do not include arch/icache.h
17818 (CLEAR_INSN_CACHE): Provide inlined definition directly.
17820 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
17822 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
17823 for big-endian BIT_FIELD_REF.
17825 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
17827 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
17828 ('size' attribute): Add '128'.
17830 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
17831 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
17832 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
17833 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
17834 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
17835 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
17836 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
17837 *trunc<mode>df2_odd): Set size attribute to '128'.
17838 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
17839 * config/rs6000/power6.md (power6-fp): Include dfp type.
17840 * config/rs6000/power7.md (power7-fp): Likewise.
17841 * config/rs6000/power8.md (power8-fp): Likewise.
17842 * config/rs6000/power9.md: New file.
17843 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
17844 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
17845 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
17847 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
17848 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
17849 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
17850 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
17851 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
17852 dfp_dscri_<mode>): Change type attribute to dfp.
17853 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
17854 attribute to vecsimple.
17855 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
17856 and prefetch streams.
17857 (rs6000_option_override_internal): Remove temporary code setting
17858 tuning to power8. Don't set rs6000_sched_groups for power9.
17859 (last_scheduled_insn): Change to rtx_insn *.
17860 (divide_cnt, vec_load_pendulum): New variables.
17861 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
17862 (rs6000_issue_rate): Set issue rate for Power9.
17863 (is_power9_pairable_vec_type): New.
17864 (power9_sched_reorder2): New.
17865 (rs6000_sched_reorder2): Call new function for Power9 specific
17867 (insn_must_be_first_in_group): Remove Power9.
17868 (insn_must_be_last_in_group): Likewise.
17869 (force_new_group): Likewise.
17870 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
17871 Initialize divide_cnt/vec_load_pendulum.
17872 (_rs6000_sched_context, rs6000_init_sched_context,
17873 rs6000_set_sched_context): Handle context save/restore of new
17876 2016-06-28 Richard Biener <rguenther@suse.de>
17878 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17879 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
17880 COMPONENT_REF operand.
17881 (nonoverlapping_component_refs_p): Likewise.
17882 * stor-layout.c (start_bitfield_representative): Mark
17883 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
17885 2016-06-28 Jakub Jelinek <jakub@redhat.com>
17887 * Makefile.in: Don't cat ../stage_current if it does not exist.
17889 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
17890 last argument is a bit-field.
17892 PR rtl-optimization/71673
17893 * internal-fn.c (expand_arith_overflow_result_store): Use
17894 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
17895 expand_simple_binop.
17897 PR middle-end/66867
17898 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
17899 expand_ifn_atomic_compare_exchange): New functions.
17900 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
17901 * tree.h (build_call_expr_internal_loc): Rename to ...
17902 (build_call_expr_internal_loc_array): ... this. Fix up type of
17904 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
17905 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
17906 ATOMIC_COMPARE_EXCHANGE result.
17907 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
17908 * gimple-fold.h (optimize_atomic_compare_exchange_p,
17909 fold_builtin_atomic_compare_exchange): New prototypes.
17910 * gimple-fold.c (optimize_atomic_compare_exchange_p,
17911 fold_builtin_atomic_compare_exchange): New functions..
17912 * tree-ssa.c (execute_update_addresses_taken): If
17913 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
17914 of call when finding addressable vars, and if such var becomes
17915 non-addressable, call fold_builtin_atomic_compare_exchange.
17917 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
17920 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
17921 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
17923 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
17925 * config/rs6000/rs6000.md ('type' attribute): Add
17926 veclogical,veccmpfx,vecexts,vecmove insn types.
17927 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
17928 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
17929 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
17930 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
17931 *nabs<mode>2_hw): Change type to vecmove.
17932 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
17933 *boolcc<mode>3_internal, *eqv<mode>3_internal,
17934 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
17935 *ieee_128bit_vsx_abs<mode>2_internal,
17936 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
17937 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
17938 *ieee128_mtvsrd_32bit): Change type to veclogical.
17939 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17940 *movdi_internal32, *movdi_internal64): Update insn types.
17941 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
17942 vsx_extract_<mode>): Change type to veclogical.
17943 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
17944 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
17945 *vsx_sign_extend_si_v2di): Change type to vecexts.
17946 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
17947 type to veclogical.
17948 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
17949 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
17950 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
17951 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
17952 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
17953 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
17954 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
17955 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
17956 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
17957 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
17958 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
17959 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
17960 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
17961 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
17962 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
17963 (ppc7450-vecsimple): Add veclogical, vecmove.
17964 (ppc7450-veccmp): Add veccmpfx.
17965 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
17967 (ppc8540_vector_compare): Add veccmpfx.
17968 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
17969 * config/rs6000/cell.md (cell-fp): Add fpsimple.
17970 (cell-vecsimple): Add veclogical, vecmove.
17971 (cell-veccmp): Add veccmpfx.
17972 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
17973 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
17975 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
17976 * config/rs6000/power4.md (power4-fp): Add fpsimple.
17977 (power4-vecsimple): Add veclogical, vecmove.
17978 (power4-veccmp): Add veccmpfx.
17979 * config/rs6000/power5.md (power5-fp): Add fpsimple.
17980 * config/rs6000/power6.md (power6-fp): Add fpsimple.
17981 (power6-vecsimple): Add veclogical, vecmove.
17982 (power6-veccmp): Add veccmpfx.
17983 * config/rs6000/power7.md (power7-fp): Add fpsimple.
17984 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
17985 * config/rs6000/power8.md (power8-fp): Add fpsimple.
17986 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
17987 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
17988 * config/rs6000/titan.md (titan_fp): Add fpsimple.
17989 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
17991 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
17993 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
17996 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17997 OPTION_MASK_P9_DFORM_VECTOR.
17998 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
17999 disable -mpower9-dform-vector when using reload.
18000 (quad_address_p): Remove 'gpr_p' argument and all associated code.
18001 New 'strict' argument. Update all callers. Add strict addressing
18003 (rs6000_legitimate_offset_address_p): Remove call to
18004 virtual_stack_registers_memory_p.
18005 (rs6000_legitimize_reload_address): Add quad address support.
18006 (rs6000_legitimate_address_p): Move call to quad_address_p above
18007 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
18008 to account for new strict usage.
18009 (rs6000_output_move_128bit): Adjust quad_address_p args to account
18010 for new strict usage.
18011 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
18013 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
18020 * config/i386/i386.c (ix86_spill_class): Disable condition to
18021 always return NO_REGS.
18023 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
18025 * predict.c: Include gimple-pretty-print.h
18026 (predicted_by_loop_heuristics_p): Check also
18027 PRED_LOOP_EXIT_WITH_RECURSION
18028 (predict_loops): Find self recursive calls and use special purpose
18029 predictors for them; dump log about decisions.
18030 (pass_profile::execute): Dump info about #of iterations.
18031 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
18032 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
18034 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
18036 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
18037 output_asm_insn calls and shorten long lines. Output .CALL
18038 argument descriptor using pa_output_arg_descriptor. Add various
18039 inline $$dyncall and other optimizations.
18040 (pa_attr_length_indirect_call): Adjust ordering and lengths.
18042 2016-06-25 Jakub Jelinek <jakub@redhat.com>
18044 PR tree-optimization/71643
18045 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
18048 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
18049 leak a bitmap if dep_bb is NULL.
18051 PR tree-optimization/71631
18052 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
18053 to rewrite_expr_tree even if negate_result, move new_lhs var
18054 declaration and initialization earlier, for powi_result set afterwards
18055 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
18056 if new_lhs != lhs, and don't shadow gsi var.
18058 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18060 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
18061 Add in_loop parameter.
18062 (predict_loops): Add loop guard heuristics.
18063 * predict.def (PRED_LOOP_GUARD): New heuristics.
18065 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18067 * predict.c: Include ipa-utils.h
18068 (tree_bb_level_prediction): Predict recursive calls.
18069 (tree_estimate_probability_bb): Skip inexpensive calls for call
18071 * predict.def (PRED_RECURSIVE_CALL): New.
18073 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18075 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
18076 (BU_FLOAT128_1): Likewise.
18078 (COPYSIGNQ): Likewise.
18079 (RS6000_BUILTIN_NANQ): Likewise.
18080 (RS6000_BUILTIN_NANSQ): Likewise.
18081 (RS6000_BUILTIN_INFQ): Likewise.
18082 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
18083 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
18084 (TARGET_FOLD_BUILTIN): New #define.
18085 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
18086 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
18087 (rs6000_fold_builtin): New target hook implementation, handling
18088 folding of 128-bit NaNs and infinities.
18089 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
18090 entries are filled in to avoid problems during bootstrap
18091 self-test; define builtins for 128-bit NaNs and infinities.
18092 (rs6000_opt_mask): Add entry for float128.
18093 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
18094 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
18095 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
18096 (const_str_type_node): New #define.
18097 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
18098 to a define_expand that dispatches to either copysign<mode>3_soft
18099 or copysign<mode>3_hard.
18100 (copysign<mode>3_hard): Rename from copysign<mode>3.
18101 (copysign<mode>3_soft): New define_insn.
18102 * doc/extend.texi: Document new builtins.
18104 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18106 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
18107 PRIu64 instead of lu.
18109 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
18112 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
18113 copy the type name.
18115 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18117 PR tree-optimization/71647
18118 * omp-low.c (lower_rec_input_clauses): Convert
18119 omp_clause_aligned_alignment (c) to size_type_node for the
18120 last argument of __builtin_assume_aligned.
18122 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
18124 * configure.ac (calling ___tls_get_addr via GOT): New
18125 assembler/linker check.
18126 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
18127 assembler and linker supports calling ___tls_get_addr via GOT.
18128 Otherise, defined to 0.
18129 * config.in: Regenerated.
18130 * configure: Likewise.
18131 * config/i386/constraints.md (Yb): New constraint.
18132 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
18133 (REG_CLASS_NAMES): Likewise.
18134 (REG_CLASS_CONTENTS): Likewise.
18135 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
18136 the b constraint with the Yb constraint. Call ___tls_get_addr
18137 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
18139 (*tls_local_dynamic_base_32_gnu): Likewise.
18140 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
18141 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
18142 (*tls_local_dynamic_base_64_<mode>): Likewise.
18144 2016-06-24 Martin Liska <mliska@suse.cz>
18146 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
18147 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
18149 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
18150 argument to true if the expected number of iterations is
18153 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
18155 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
18156 assemble for 32bit target.
18157 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
18158 and $ld_ix86_gld_32_opt to link for 32bit target.
18159 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
18160 * configure: Regenerate.
18162 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18164 * config/arm/arm.c (int_log2): Delete definition and prototype.
18165 (shift_op): Use exact_log2 instead of int_log2.
18166 (vfp3_const_double_for_fract_bits): Likewise.
18168 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18170 * internal-fn.c (expand_arith_set_overflow): New function.
18171 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
18173 (expand_arith_overflow_result_store): Likewise. Handle precision
18174 smaller than mode precision.
18175 * tree-vrp.c (extract_range_basic): For imag part, handle
18176 properly signed 1-bit precision result.
18177 * doc/extend.texi (__builtin_add_overflow): Document that last
18178 argument can't be pointer to enumerated or boolean type.
18179 (__builtin_add_overflow_p): Document that last argument can't
18180 have enumerated or boolean type.
18182 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18183 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18185 * config/rs6000/predicates.md (splat_input_operand): Rework.
18186 Don't allow constants, since the insns that use this predicate
18187 don't support constants. Constants are handled by other insns
18188 that are created via combine. During and after register
18189 allocation, only allow indexed or indirect addresses, and not
18190 general addresses. Only allow modes supported by the hardware.
18191 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
18192 comment. Move check for using VSPLTIS<x> to a common location,
18193 instead of doing it in two different places.
18195 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
18197 * config/i386/driver-i386.c (host_detect_local_cpu): Set
18198 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
18199 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
18200 signature_CENTAUR_ebx.
18202 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
18206 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
18207 (as_ix86_gas_32_opt): This.
18208 (ld_ix86_tls_ldm_opt): Renamed to ...
18209 (ld_ix86_gld_32_opt): This.
18210 (R_386_TLS_LDM reloc): Updated.
18211 (R_386_GOT32X reloc): New assembler/linker check.
18212 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
18213 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
18215 * config.in: Regenerated.
18216 * configure: Likewise.
18217 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
18218 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
18219 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
18220 if ix86_force_load_from_GOT_p returns true.
18221 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
18222 ix86_force_load_from_GOT_p returns true.
18223 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
18224 the external function address via the GOT slot.
18225 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
18226 HAVE_AS_IX86_GOT32X before returning false.
18227 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
18228 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
18230 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
18232 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
18234 2016-06-23 Andi Kleen <ak@linux.intel.com>
18236 * Makefile.in: Regenerate.
18237 * doc/install.texi: Document autoprofiledbootstrap.
18239 2016-06-23 Andi Kleen <ak@linux.intel.com>
18241 * config/i386/gcc-auto-profile: New file.
18243 2016-06-23 Martin Liska <mliska@suse.cz>
18245 PR middle-end/71619
18246 * predict.c (predict_loops): Revert the hunk that was removed
18249 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
18251 * config.gcc: Add support for arm*-*-phoenix* targets.
18252 * config/arm/t-phoenix: New.
18253 * config/phoenix.h: New.
18255 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
18256 H.J. Lu <hongjiu.lu@intel.com>
18259 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
18260 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
18261 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
18262 ix86_force_load_from_GOT_p returns true.
18263 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
18264 ix86_force_load_from_GOT_p returns true.
18265 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
18266 ix86_force_load_from_GOT_p returns true.
18267 (ix86_expand_move): Load the external function address via the
18268 GOT slot if ix86_force_load_from_GOT_p returns true.
18269 * config/i386/predicates.md (x86_64_immediate_operand): Return
18270 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
18271 (x86_64_zext_immediate_operand): Ditto.
18273 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
18275 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
18277 2016-06-22 David Malcolm <dmalcolm@redhat.com>
18280 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
18281 * diagnostic.c (pedwarn_at_rich_loc): New function.
18282 * spellcheck.h (best_match::best_match): Add a
18283 "best_distance_so_far" optional parameter.
18284 (best_match::set_best_so_far): New method.
18285 (best_match::get_best_distance): New accessor.
18286 (best_match::get_best_candidate_length): New accessor.
18288 2016-06-22 Nick Clifton <nickc@redhat.com>
18290 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
18291 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
18292 modes are accepted as well.
18293 (ucompare_loc_descriptor): Likewise.
18294 (minmax_loc_descriptor): Likewise.
18295 (clz_loc_descriptor): Likewise.
18296 (popcount_loc_descriptor): Likewise.
18297 (bswap_loc_descriptor): Likewise.
18298 (rotate_loc_descriptor): Likewise.
18299 (mem_loc_descriptor): Likewise.
18300 (loc_descriptor): Likewise.
18302 2016-06-22 David Malcolm <dmalcolm@redhat.com>
18304 * common.opt (fdiagnostics-parseable-fixits): New option.
18305 * diagnostic.c: Include "selftest.h".
18306 (print_escaped_string): New function.
18307 (print_parseable_fixits): New function.
18308 (diagnostic_report_diagnostic): Call print_parseable_fixits.
18309 (selftest::assert_print_escaped_string): New function.
18310 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
18311 (selftest::test_print_escaped_string): New function.
18312 (selftest::test_print_parseable_fixits_none): New function.
18313 (selftest::test_print_parseable_fixits_insert): New function.
18314 (selftest::test_print_parseable_fixits_remove): New function.
18315 (selftest::test_print_parseable_fixits_replace): New function.
18316 (selftest::diagnostic_c_tests): New function.
18317 * diagnostic.h (struct diagnostic_context): Add field
18318 "parseable_fixits_p".
18319 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
18320 -fdiagnostics-parseable-fixits.
18321 (-fdiagnostics-parseable-fixits): New option.
18322 * opts.c (common_handle_option): Handle
18323 -fdiagnostics-parseable-fixits.
18324 * selftest-run-tests.c (selftest::run_tests): Call
18325 selftest::diagnostic_c_tests.
18326 * selftest.h (selftest::diagnostic_c_tests): New prototype.
18328 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
18330 PR tree-optimization/71488
18331 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
18332 comparison of boolean vectors.
18333 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
18334 of boolean vectors using bitwise operations.
18336 2016-06-22 Andreas Schwab <schwab@suse.de>
18338 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
18339 Remove declaration.
18341 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
18343 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
18345 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
18347 * config/i386/i386.c (print_reg): Emit an error message on attempt to
18350 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18352 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
18353 * config/arm/arm-cores.def (cortex-a73): New entry.
18354 (cortex-a73.cortex-a35): Likewise.
18355 (cortex-a73.cortex-a53): Likewise.
18356 * config/arm/arm-tables.opt: Regenerate.
18357 * config/arm/arm-tune.md: Likewise.
18358 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
18359 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
18360 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
18361 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
18362 * doc/invoke.texi (ARM Options): Document cortex-a73,
18363 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
18365 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18367 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
18368 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
18369 (cortex-a73.cortex-a35): Likewise.
18370 (cortex-a73.cortex-a53): Likewise.
18371 * config/aarch64/aarch64-tune.md: Regenerate.
18372 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
18373 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
18376 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18378 * configure.ac (gcc_cv_as_compress_debug): Remove
18379 --compress-debug-sections as extra as switch.
18380 Handle gas --compress-debug-sections=type.
18381 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
18382 Handle gld --compress-debug-sections=type.
18383 * configure: Regenerate.
18385 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
18387 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
18389 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
18391 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
18392 (do_rewrite): likewise.
18394 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18396 * common/config/mep/mep-common.c: Remove.
18397 * config.gcc: Remove mep-* support.
18398 * config/mep/constraints.md: Remove.
18399 * config/mep/default.h: Remove.
18400 * config/mep/intrinsics.h: Remove.
18401 * config/mep/intrinsics.md: Remove.
18402 * config/mep/ivc2-template.h: Remove.
18403 * config/mep/mep-c5.cpu: Remove.
18404 * config/mep/mep-core.cpu: Remove.
18405 * config/mep/mep-default.cpu: Remove.
18406 * config/mep/mep-ext-cop.cpu: Remove.
18407 * config/mep/mep-intrin.h: Remove.
18408 * config/mep/mep-ivc2.cpu: Remove.
18409 * config/mep/mep-pragma.c: Remove.
18410 * config/mep/mep-protos.h: Remove.
18411 * config/mep/mep.c: Remove.
18412 * config/mep/mep.cpu: Remove.
18413 * config/mep/mep.h: Remove.
18414 * config/mep/mep.md: Remove.
18415 * config/mep/mep.opt: Remove.
18416 * config/mep/predicates.md: Remove.
18417 * config/mep/t-mep: Remove.
18418 * doc/install.texi: Remove mep-* documentation.
18419 * doc/md.texi: Likewise.
18421 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18423 * config.gcc: Remove support for avr-rtems.
18424 * config/avr/gen-avr-mmcu-specs.c: Likewise.
18425 * config/avr/rtems.h: Remove.
18426 * config/avr/t-rtems: Remove.
18428 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18430 * config.gcc: Remove m32r-rtems support.
18431 * config/m32r/rtems.h: Remove.
18433 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18435 * config.gcc: Remove h8300-rtems support.
18436 * config/h8300/rtems.h: Remove.
18437 * config/h8300/t-rtems: Remove.
18439 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18441 * config.gcc: Remove support for knetbsd.
18442 * configure.ac: Likewise.
18443 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
18444 * config/knetbsd-gnu.h: Remove.
18445 * configure: Regenerate.
18447 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18449 * config.gcc: Remove support for openbsd 2 and 3.
18450 * config/openbsd-oldgas.h: Remove.
18452 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18454 * config.gcc: Remove interix support.
18455 * config/i386/i386-interix.h: Remove.
18456 * config/i386/interix.opt: Remove.
18457 * config/i386/t-interix: Remove.
18458 * configure: Regenerate.
18459 * configure.ac: Remove interix support.
18460 * doc/install.texi: Remove interix documentation.
18462 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
18464 * config/rs6000/rs6000.h: Add conditional preprocessing directives
18465 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
18468 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
18470 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
18471 they are both PLACEHOLDER_EXPRs.
18473 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
18475 * stor-layout.c (layout_type): Move setting complex MODE to
18476 layout_type, instead of setting it ahead of time by the caller.
18477 * tree.c (build_complex_type): Likewise.
18479 2016-06-21 Martin Liska <mliska@suse.cz>
18481 * predict.c (force_edge_cold): Replace imposisble with
18484 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
18486 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
18487 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
18489 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
18491 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
18493 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
18494 Ilya Enkovich <ilya.enkovich@intel.com>
18497 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
18498 New member function to convert V1TImode register to SUBREG
18499 TImode in debug insn.
18500 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
18501 after changing register mode to V1TImode.
18503 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
18505 * config/aarch64/aarch64-cores.def (vulcan): New core.
18506 * config/aarch64/aarch64-tune.md: Regenerate.
18507 * doc/invoke.texi: Document vulcan as an available option.
18509 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
18511 * cse.c (canon_asm_operands): New function extracted from...
18512 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
18513 either standalone or member of a PARALLEL.
18515 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
18518 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
18519 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
18520 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
18522 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
18525 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
18526 constant addresses if can_create_pseudo_p.
18528 2016-06-21 Jakub Jelinek <jakub@redhat.com>
18530 PR tree-optimization/71588
18531 * tree-ssa-strlen.c (valid_builtin_call): New function.
18532 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
18535 2016-06-20 Jakub Jelinek <jakub@redhat.com>
18537 PR middle-end/71581
18538 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
18539 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
18540 for conversion of scalar user var to complex type and use the
18541 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
18544 PR rtl-optimization/71591
18545 * toplev.c (toplev::run_self_tests): If no_backend, complain and
18546 don't run any tests.
18548 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
18551 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
18552 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
18553 space for PIC with non-v32 and the common non-PIC "jump".
18555 2016-06-20 Jakub Jelinek <jakub@redhat.com>
18558 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
18559 returned values and add UN*/LTGT/*ORDERED cases with values matching
18560 D operand modifier on vcmp for AVX.
18562 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18564 * config/aarch64/aarch64.opt
18565 (mpc-relative-literal-loads): Rename internal option name.
18566 * config/aarch64/aarch64.c
18567 (aarch64_nopcrelative_literal_loads): Rename to
18568 aarch64_pcrelative_literal_loads.
18569 (aarch64_expand_mov_immediate): Likewise.
18570 (aarch64_secondary_reload): Likewise.
18571 (aarch64_can_use_per_function_literal_pools_p): Likewise.
18572 (aarch64_override_options_after_change_1): Rename and simplify logic.
18573 (aarch64_classify_symbol): Merge large model checks into switch,
18574 remove pc-relative load check.
18576 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18578 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
18579 costs relative to the cost of a register move.
18581 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18583 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
18584 (vcvt_n_f64_u64): Likewise.
18585 (vcvt_n_s64_f64): Likewise.
18586 (vcvt_n_u64_f64): Likewise.
18587 (vcvt_f64_s64): Likewise.
18588 (vrecpe_f64): Likewise.
18589 (vcvt_f64_u64): Likewise.
18590 (vrecps_f64): Likewise.
18592 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18594 * config/aarch64/aarch64.md
18595 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
18597 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
18599 * config/aarch64/aarch64-builtins.c
18600 (aarch64_types_binop_uss_qualifiers): Delete.
18601 (TYPES_BINOP_USS): Likewise.
18602 (aarch64_types_binop_sus_qualifiers): Likewise.
18603 (TYPES_BINOP_SUS): Likewise.
18604 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
18605 (TYPES_FCVTIMM_SUS): Likewise.
18606 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
18608 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
18609 (fcvtzs): Use SHIFTIMM rather than BINOP.
18610 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
18612 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18614 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
18615 costs relative to the cost of a register move.
18617 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18619 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
18620 Allow scalar/single vector modes to be tieable.
18622 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18624 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
18626 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18628 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
18630 * tree.h (TYPE_ALIGN): Likewise.
18632 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
18635 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
18637 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
18639 * config/avr/avr.c (avr_print_operand): Fix "format not a string
18640 literal" build warnings.
18641 (avr_print_operand_address): Dito.
18643 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
18646 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
18647 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
18649 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
18651 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
18653 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
18656 * reload1.c (reload): Pass 0 to finish_spills when called because
18657 update_eliminables_and_spill returns true and remove did_spill.
18658 (finish_spills): Adjust comment and document GLOBAL parameter.
18660 2016-06-17 DJ Delorie <dj@redhat.com>
18663 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
18664 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
18665 (umulqihi3_virt): Likewise.
18666 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
18667 (umulqihi3_real): Likewise.
18669 2016-06-17 Martin Liska <mliska@suse.cz>
18671 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
18673 2016-06-17 Martin Liska <mliska@suse.cz>
18675 * predict.def: PRED_LOOP_EXIT from 92 to 85.
18677 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
18679 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
18681 (vaddq_f32): Likewise.
18682 (vmul_f32): Likewise.
18683 (vmulq_f32): Likewise.
18684 (vsub_f32): Likewise.
18685 (vsubq_f32): Likewise.
18687 2016-06-17 Bin Cheng <bin.cheng@arm.com>
18689 PR tree-optimization/71347
18690 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
18691 cost for all uses in group.
18693 2016-06-17 Bin Cheng <bin.cheng@arm.com>
18695 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
18696 insert gimple seq if it's not empty.
18698 2016-06-17 Bin Cheng <bin.cheng@arm.com>
18700 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
18702 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
18703 rather than OFFSET.
18704 (comp_dr_with_seg_len_pair): Ditto.
18705 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
18706 struct dr_with_seg_len_pair against DR_OFFSET.
18707 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
18708 DR_OFFSET directly.
18710 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
18712 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
18714 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
18716 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
18717 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
18718 (pa_output_millicode_call): Likewise.
18719 (pa_output_call): Likewise.
18720 (pa_output_indirect_call): Likewise.
18721 (pa_asm_output_mi_thunk): Likewise.
18723 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18725 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
18727 2016-06-16 Martin Liska <mliska@suse.cz>
18729 * predict.c (combine_predictions_for_insn): When we find a first
18730 match predictor, we should consider just predictors with
18731 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
18732 DS theory predictor.
18733 (combine_predictions_for_bb): Likewise.
18735 2016-06-16 Jakub Jelinek <jakub@redhat.com>
18737 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
18738 with base of reference to struct.
18740 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
18742 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
18744 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18747 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
18748 progmem_swtable_section.
18749 (progmem_swtable_section): Remove.
18750 (avr_asm_function_rodata_section): Remove.
18751 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
18752 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
18754 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
18756 * config/i386/driver-i386.c (host_detect_local_cpu): Set
18757 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
18758 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
18759 signature_CENTAUR_ebx.
18760 * config/i386/i386.c (ix86_option_override_internal): Add
18761 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
18762 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
18763 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
18765 2016-06-16 Martin Liska <mliska@suse.cz>
18767 * predict.def: Add fortran loop preheader predictor.
18768 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
18769 fold IFN_BUILTIN_EXPECT with a known constant argument.
18771 2016-06-16 Martin Liska <mliska@suse.cz>
18773 * predict.def: Add 'Fortran' to display text of all
18774 PRED_FORTRAN_* predictors.
18776 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
18779 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
18780 [IA64_BUILTIN_NANSQ]: Ditto.
18781 (ia64_fold_builtin): New function.
18782 (TARGET_FOLD_BUILTIN): New define.
18783 (ia64_init_builtins) Declare const_string_type node.
18784 Add __builtin_nanq and __builtin_nansq builtin functions.
18785 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
18787 2016-06-16 Nick Clifton <nickc@redhat.com>
18789 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
18790 MSP430_HWMULT_ prefix to enum values.
18791 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
18792 * config/msp430/msp430.c: Update use of enum values.
18793 * config/msp430/msp430.md: Likewise.
18794 * config/msp430/msp430.opt: Likewise.
18796 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
18798 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
18799 of comparsions in the last iteration.
18801 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
18802 Joern Rennecke <joern.rennecke@embecosm.com>
18804 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
18806 (arc_needs_pcl_p): Add GOTOFFPC.
18807 (arc_legitimate_pic_addr_p): Likewise.
18808 (arc_output_pic_addr_const): Likewise.
18809 (arc_legitimize_pic_address): Generate a pc-relative address using
18811 (arc_output_libcall): Use @pcl syntax.
18812 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
18813 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
18814 (*movsi_insn): Use @pcl syntax.
18815 (doloop_begin_i): Likewise.
18817 2016-06-16 Martin Liska <mliska@suse.cz>
18819 * predict.def: Define a new predictor.
18821 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
18823 * config/arc/arc.opt (mtp-regno): Update text.
18825 2016-06-16 Renlin Li <renlin.li@arm.com>
18827 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
18829 2016-06-16 Jakub Jelinek <jakub@redhat.com>
18832 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
18833 (setcc + and peephole2): Likewise.
18835 PR rtl-optimization/71532
18836 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
18839 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18841 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
18842 DImode constants with XXSPLTIB in vector registers.
18843 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
18844 vsx_extract_<mode>_internal{1,2} into a single insn that handles
18845 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
18846 extraction of the element at the top of the register as a scalar
18848 (vsx_extract_<mode>_internal1): Likewise.
18849 (vsx_extract_<mode>_internal2): Likewise.
18850 * config/rs6000/constraints.md (wi constraint): Remove a comment
18851 about DImode not being allowed in Altivec registers.
18852 (wB constraint): New constraint for constants that can be
18853 generated in Altivec registers with VSPLTISW/VUPKHSW.
18854 * config/rs6000/predicates.md (xxspltib_constant_split): Update
18856 (xxspltib_constant_nosplit): Likewise.
18857 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
18858 support for -mupper-regs-di to enable DImode to go into Altivec
18860 (POWERPC_MASKS): Likewise.
18861 (power7 cpu): Likewise.
18862 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
18863 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
18864 for DImode being allowed in Altivec registers. Update wi/wj
18865 constraints. Set scalar_in_vmx_p flag.
18866 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
18867 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
18868 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
18869 (rs6000_opt_masks): Add -mupper-regs-di.
18870 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
18871 direct move to use wi and not wj.
18872 (lfiwzx): Likewise.
18873 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
18875 (floatunssi<mode>2_lfiwzx_mem): Likewise.
18876 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
18877 any VSX register, instead of just Altivec registers, to allow
18878 either operand to be an Altivec register or both.
18879 (fixuns_trunc<mode>di2_fctiduz): Likewise.
18880 (movdi_internal32): Add support for -mupper-regs-di. Add support
18881 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
18882 the alternatives and attributes to be lined up to be easier to
18884 (movdi_internal64): Likewise.
18885 (64-bit DImode splitters): Change predicates to only split loading
18886 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
18887 load constants in ISA 3.0 or ISA 2.07 respectively.
18888 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18889 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
18890 mention -mcpu=power9 sets these options.
18891 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
18894 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18897 * config/avr/avr.c (avr_set_current_function): Warn misspelled
18898 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
18899 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
18900 by default to warn misspelled interrupt/ signal handler.
18901 * doc/invoke.texi (AVR Options): Document it. Update description
18902 for -nodevicelib option.
18904 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18906 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
18907 up parentheses. Use GET_MODE_UNIT_BITSIZE.
18908 (aarch64_<sur>shll2_n<mode>): Likewise.
18910 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
18912 PR middle-end/71529
18913 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
18914 DECL_CONTEXT for copied arguments.
18916 2016-06-15 Alan Hayward <alan.hayward@arm.com>
18918 PR tree-optimization/71483
18919 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
18922 2016-06-15 Martin Liska <mliska@suse.cz>
18924 * predict.c (tree_predict_by_opcode): Call predict_edge_def
18925 instead of predict_edge w/o a probability.
18927 2016-06-15 Alan Hayward <alan.hayward@arm.com>
18929 PR tree-optimization/71439
18930 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
18933 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18935 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
18936 register subregs in SET_SRC.
18938 2016-06-15 Richard Biener <rguenther@suse.de>
18940 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
18941 store restrictions.
18943 2016-06-15 Richard Biener <rguenther@suse.de>
18945 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
18946 not consider dependences between accesses that belong to the
18948 (vect_analyze_data_ref_dependences): Do not analyze read-read
18949 or self-dependences.
18951 2016-06-14 David Malcolm <dmalcolm@redhat.com>
18953 * spellcheck-tree.c: Include spellcheck-tree.h rather than
18955 (find_closest_identifier): Reimplement in terms of
18956 best_match<tree,tree>.
18957 * spellcheck-tree.h: New file.
18958 * spellcheck.c (struct edit_distance_traits<const char *>): New
18960 (find_closest_string): Reimplement in terms of
18961 best_match<const char *, const char *>.
18962 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
18963 overload to spellcheck-tree.h.
18964 (find_closest_identifier): Likewise.
18965 (struct edit_distance_traits<T>): New template.
18966 (class best_match): New class.
18968 2016-06-14 David Malcolm <dmalcolm@redhat.com>
18970 * selftest-run-tests.c (selftest::run_tests): Call
18971 selftest::spellcheck_tree_c_tests.
18972 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
18973 * spellcheck-tree.c: Include selftest.h and stringpool.h.
18974 (selftest::test_find_closest_identifier): New function.
18975 (selftest::spellcheck_tree_c_tests): New function.
18976 * spellcheck.c (selftest::test_find_closest_string): Verify that
18977 the order of the vec does not affect the results for this case.
18978 (selftest::test_data): New array.
18979 (selftest::test_metric_conditions): New function.
18980 (selftest::spellcheck_c_tests): Add a test of case-comparison.
18981 Call selftest::test_metric_conditions.
18983 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18985 * config/rs6000/rs6000-builtin.def (commentary): Typo.
18986 (BU_P9_MISC_1): Likewise.
18987 (BU_P9_64BIT_MISC_0): Likewise.
18988 (BU_P9_MISC_0): Likewise.
18990 2016-06-14 David Malcolm <dmalcolm@redhat.com>
18992 * gcc-rich-location.c
18993 (gcc_rich_location::add_fixit_misspelled_id): New method.
18994 * gcc-rich-location.h
18995 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
18997 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
18999 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
19000 FreeBSD 11 and above.
19002 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
19004 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
19006 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19008 * expmed.h: Close parenthesis in "at your option" in copyright
19010 * lower-subreg.h: Likewise.
19012 2016-06-14 Richard Biener <rguenther@suse.de>
19014 PR middle-end/71526
19015 * genmatch.c (expr::gen_transform): Use in_type for comparisons
19018 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19020 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
19022 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
19023 mask+shift version.
19024 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
19026 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
19027 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
19029 2016-06-14 Richard Biener <rguenther@suse.de>
19031 PR tree-optimization/71522
19032 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
19033 copying into float copying.
19035 2016-06-14 Jakub Jelinek <jakub@redhat.com>
19037 PR tree-optimization/71520
19038 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
19039 (replace_block_by): Move user labels from bb1 to bb2.
19041 2016-06-14 Richard Biener <rguenther@suse.de>
19043 PR middle-end/71310
19045 * expr.h (get_bit_range): Declare.
19046 * expr.c (get_bit_range): Export.
19047 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
19048 word_mode again to constrain the bitfield access.
19050 2016-06-14 Richard Biener <rguenther@suse.de>
19052 PR tree-optimization/71521
19053 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
19054 division int_const_binop against zero divisor.
19056 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19058 * config/i386/i386.md (signbittf2): New expander.
19059 * config/i386/sse.md (ptesttf2): New insn pattern.
19061 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19064 * input.c (selftest::test_reading_source_line): Avoid reading from
19065 __FILE__ by creating a tempfile with known content and reading
19068 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19070 * pretty-print.c (assert_pp_format_colored): Skip the test if
19072 (test_pp_format): Remove comment about GCC_COLORS.
19074 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19076 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
19077 * pretty-print.c (assert_pp_format_va): Add location param and use
19078 it with ASSERT_STREQ_AT.
19079 (assert_pp_format): Add location param and pass it to
19080 assert_pp_format_va.
19081 (assert_pp_format_colored): Likewise.
19082 (ASSERT_PP_FORMAT_1): New.
19083 (ASSERT_PP_FORMAT_2): New.
19084 (ASSERT_PP_FORMAT_3): New.
19085 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
19086 explicitly, or implicitly via the above macros.
19087 * selftest.c (selftest::pass): Use a selftest::location rather
19088 than file and line.
19089 (selftest::fail): Likewise. Print the function name.
19090 (selftest::fail_formatted): Likewise.
19091 (selftest::assert_streq): Use a selftest::location rather than
19093 * selftest.h (selftest::location): New struct.
19094 (SELFTEST_LOCATION): New macro.
19095 (selftest::pass): Accept a const location & rather than file
19097 (selftest::fail): Likewise.
19098 (selftest::fail_formatted): Likewise.
19099 (selftest::assert_streq): Likewise.
19100 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
19101 (ASSERT_FALSE): Likewise.
19102 (ASSERT_EQ): Likewise.
19103 (ASSERT_NE): Likewise.
19104 (ASSERT_STREQ): Likewise.
19105 (ASSERT_PRED1): Likewise.
19106 (ASSERT_STREQ_AT): New macro.
19108 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19110 * selftest.c (selftest::fail_formatted): New function.
19111 (selftest::assert_streq): New function.
19112 * selftest.h (selftests::fail_formatted): New decl.
19113 (selftest::assert_streq): New decl.
19114 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
19116 2016-06-13 Jeff Law <law@redhat.com>
19118 PR tree-optimization/71403
19119 * tree-ssa-threadbackward.c
19120 (convert_and_register_jump_thread_path): No longer accept reference
19121 to path. Do not pop items off the path anymore.
19122 (fsm_find_control_statement_thread_paths): Do not allow threading
19123 to a deeper loop nest. Pop the last item off the path here rather
19124 than in convert_and_register_jump_thread_path.
19126 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19127 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
19129 [AArch64] Emit division using the Newton series
19131 * config/aarch64/aarch64-protos.h
19132 (cpu_approx_modes): Add new member "division".
19133 (aarch64_emit_approx_div): Declare new function.
19134 * config/aarch64/aarch64.c
19135 (generic_approx_modes): New member "division".
19136 (exynosm1_approx_modes): Likewise.
19137 (xgene1_approx_modes): Likewise.
19138 (aarch64_emit_approx_div): Define new function.
19139 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
19140 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
19141 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
19142 * doc/invoke.texi (-mlow-precision-div): Describe new option.
19144 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19145 Wilco Dijkstra <wilco.dijkstra@arm.com>
19147 [AArch64] Emit square root using the Newton series
19149 * config/aarch64/aarch64-protos.h
19150 (aarch64_emit_approx_rsqrt): Replace with new function
19151 "aarch64_emit_approx_sqrt".
19152 (cpu_approx_modes): New member "sqrt".
19153 * config/aarch64/aarch64.c
19154 (generic_approx_modes): New member "sqrt".
19155 (exynosm1_approx_modes): Likewise.
19156 (xgene1_approx_modes): Likewise.
19157 (aarch64_emit_approx_rsqrt): Replace with new function
19158 "aarch64_emit_approx_sqrt".
19159 (aarch64_override_options_after_change_1): Handle new option.
19160 * config/aarch64/aarch64-simd.md
19161 (rsqrt<mode>2): Use new function instead.
19162 (sqrt<mode>2): New expansion and insn definitions.
19163 * config/aarch64/aarch64.md: Likewise.
19164 * config/aarch64/aarch64.opt
19165 (mlow-precision-sqrt): Add new option description.
19166 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
19168 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19170 [AArch64] Add more choices for the reciprocal square root approximation
19172 Allow a target to prefer such operation depending on the operation mode.
19174 * config/aarch64/aarch64-protos.h
19175 (AARCH64_APPROX_MODE): New macro.
19176 (AARCH64_APPROX_{NONE,ALL}): Likewise.
19177 (cpu_approx_modes): New structure.
19178 (tune_params): New member "approx_modes".
19179 * config/aarch64/aarch64-tuning-flags.def
19180 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
19181 * config/aarch64/aarch64.c
19182 (generic_approx_modes): New core "cpu_approx_modes" structure.
19183 (exynosm1_approx_modes): Likewise.
19184 (xgene1_approx_modes): Likewise.
19185 (generic_tunings): New member "approx_modes".
19186 (cortexa35_tunings): Likewise.
19187 (cortexa53_tunings): Likewise.
19188 (cortexa57_tunings): Likewise.
19189 (cortexa72_tunings): Likewise.
19190 (exynosm1_tunings): Likewise.
19191 (thunderx_tunings): Likewise.
19192 (xgene1_tunings): Likewise.
19193 (use_rsqrt_p): New argument for the mode and use new member from
19195 (aarch64_builtin_reciprocal): Devise mode from builtin.
19196 (aarch64_optab_supported_p): New argument for the mode.
19197 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
19199 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
19201 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
19202 RS6000_BTM_MODULO flag into the set of flags that are considered
19203 to be part of the common configuration.
19205 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
19207 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
19208 difference unsigned.
19209 (vec_absdb): New macro for vector absolute difference unsigned
19211 (vec_absdh): New macro for vector absolute difference unsigned
19213 (vec_absdw): New macro for vector absolute difference unsigned word.
19214 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
19215 (vadu<mode>3): New insn.
19216 (*p9_vadu<mode>3): New insn.
19217 * config/rs6000/rs6000-builtin.def (vadub): New built-in
19219 (vaduh): New built-in definition.
19220 (vaduw): New built-in definition.
19221 (vadu): New overloaded built-in definition.
19222 (vadub): New overloaded built-in definition.
19223 (vaduh): New overloaded built-in definition.
19224 (vaduw): New overloaded built-in definition.
19225 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19226 overloaded vector absolute difference unsigned functions.
19227 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
19228 the ISA 3.0 vector absolute difference unsigned built-in functions.
19230 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
19232 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
19233 update shared_lookup_references only once after changing operands.
19235 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
19237 PR middle-end/71373
19238 * tree-nested.c (convert_nonlocal_omp_clauses)
19239 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
19241 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
19242 * tree.def (CASE_LABEL_EXPR): Likewise.
19244 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
19247 * input.c (test_builtins): Fix an assertion.
19249 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19251 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
19252 (paritysi2): Ditto.
19254 (isinf<mode>2): Ditto.
19256 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19258 * ggc-tests.c (test_finalization): Only test need_finalization_p
19259 for GCC_VERSION >= 4003.
19261 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19263 * config/s390/vecintrin.h: Fix file description in comment.
19265 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19267 * config/s390/s390-builtin-types.def: Change builtin type naming
19268 scheme to match builtin-types.def.
19270 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
19272 * fold-const.c (optimize_minmax_comparison): Remove.
19273 (fold_comparison): Remove call to the above.
19274 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
19275 New transformations.
19277 2016-06-13 Alan Hayward <alan.hayward@arm.com>
19279 PR tree-optimization/71416
19280 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
19283 2016-06-13 Martin Liska <mliska@suse.cz>
19285 * predict.c (enum predictor_reason): Prefix enum with REASON_.
19286 (combine_predictions_for_insn): Likewise.
19287 (prune_predictions_for_bb): Likewise.
19288 (combine_predictions_for_bb): Likewise.
19290 2016-06-13 Richard Biener <rguenther@suse.de>
19292 PR tree-optimization/71505
19293 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
19294 assert match comment.
19296 2016-06-13 Marek Polacek <polacek@redhat.com>
19298 PR middle-end/71476
19299 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
19300 gimplify_switch_expr.
19301 (warn_switch_unreachable_r): New function.
19303 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19306 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
19309 2016-06-13 Richard Biener <rguenther@suse.de>
19311 PR middle-end/64516
19312 * fold-const.c (fold_unary_loc): Preserve alignment when
19313 folding a VIEW_CONVERT_EXPR into a MEM_REF.
19315 2016-06-13 Martin Liska <mliska@suse.cz>
19318 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
19319 w/ -fsanitize=bounds.
19321 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
19323 * config/i386/i386.c (ix86_init_builtins): Calculate
19324 FLOAT128_FTYPE_CONST_STRING function type only once.
19325 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
19326 built-in functions are available for x86-32 and x86-64 targets.
19328 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
19331 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
19332 New primitive type.
19333 (FLOAT128_FTYPE_CONST_STRING): New function type.
19334 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
19335 [IX86_BUILTIN_NANSQ]: Ditto.
19336 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
19337 (ix86_init_builtin_types): Declare const_string_type_node.
19338 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
19340 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
19341 * doc/extend.texi (x86 Built-in Functions): Document
19342 __builtin_nanq and __builtin_nansq.
19344 2016-06-11 Jiong Wang <jiong.wang@arm.com>
19347 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
19348 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
19349 length for pop patterns.
19350 (arm_attr_length_push_multi): Update comments.
19351 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
19353 (*pop_multiple_with_writeback_and_return): Likewise.
19354 (*pop_multiple_with_return): Likewise.
19356 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
19358 PR middle-end/71310
19359 * fold-const.c (optimize_bit_field_compare): Don't try to use
19360 word_mode unconditionally for reading the bit field, look at
19361 DECL_BIT_FIELD_REPRESENTATIVE instead.
19363 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
19365 PR middle-end/71478
19366 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
19367 vector integer type.
19369 2016-06-10 Jakub Jelinek <jakub@redhat.com>
19371 PR middle-end/71494
19372 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
19373 without LABEL_DECL, set *handled_ops_p to false instead of true.
19375 2016-06-10 Martin Sebor <msebor@redhat.com>
19378 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
19379 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
19380 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
19382 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
19383 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
19384 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
19385 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
19386 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
19387 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
19388 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
19389 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
19391 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19393 * config/arm/arm.h (pool_vector_label,
19394 return_used_this_function): Remove.
19396 2016-06-10 Jeff Law <law@redhat.com>
19398 PR tree-optimization/71335
19399 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
19400 zero length paths here.
19401 (convert_and_register_jump_thread_path): Remove hacks related to
19402 duplicated blocks in the jump thread path.
19403 (fsm_find_control_statement_thread_paths): Avoid putting the same
19404 block on the thread path twice, but ensure the thread path is
19405 unchanged from the caller's point of view.
19407 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
19409 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
19410 * predict.def (PRED_LOOP_BRANCH): Remove.
19412 2016-06-10 David Malcolm <dmalcolm@redhat.com>
19414 * Makefile.in (OBJS): Add ggc-tests.o.
19415 (GTFILES): Add ggc-tests.c.
19416 * ggc-tests.c: New file.
19417 * selftest-run-tests.c (selftest::run_tests): Call
19418 selftest::ggc_tests_c_tests.
19419 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
19421 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
19423 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
19425 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
19428 * varasm.c (place_block_symbol): Adjust alignment for asan protected
19429 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
19431 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
19433 * profile.c: Include cfgloop.h.
19434 (branch_prob): Compute estimated number of iterations.
19435 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
19436 recompute estimate number of iterations from profile.
19438 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19440 PR inline-asm/68843
19441 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
19442 must be grouped on top of stack. Don't force early clobber
19443 on ordinary reg outputs.
19445 2016-06-10 Richard Biener <rguenther@suse.de>
19447 * targhooks.c (default_builtin_vectorization_cost): Adjust
19448 vec_construct cost.
19450 2016-06-10 Richard Biener <rguenther@suse.de>
19452 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
19453 to fold the RHS to a constant if possible.
19455 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
19457 PR middle-end/71373
19458 * tree-nested.c (convert_nonlocal_omp_clauses)
19459 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
19460 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
19461 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
19463 * gimplify.c (gimplify_adjust_omp_clauses): Discard
19465 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
19467 * omp-low.c (scan_sharing_clauses): Don't expect
19468 OMP_CLAUSE__CACHE_.
19470 2016-06-10 Alan Hayward <alan.hayward@arm.com>
19472 PR tree-optimization/71407
19473 PR tree-optimization/71416
19474 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
19475 BIT_FIELD_REF type.
19477 2016-06-10 Richard Biener <rguenther@suse.de>
19479 PR middle-end/71477
19480 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
19482 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
19484 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
19486 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
19487 Jiong Wang <jiong.wang@arm.com>
19489 PR rtl-optimization/70751
19490 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
19491 spilled into memory.
19493 2016-06-09 Jonathan Yong <10walls@gmail.com>
19496 2015-09-21 Jonathan Yong <10walls@gmail.com>
19498 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
19499 sysroot/usr/lib/32api for additional win32 libraries,
19500 fixes failing Cygwin bootstrapping.
19502 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
19504 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
19507 2016-06-09 David Malcolm <dmalcolm@redhat.com>
19510 * pretty-print.c (pp_indent): Specify that %p is printed in a
19511 host-dependent manner.
19512 (test_pp_format): Remove the test for %p.
19514 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
19516 * config/mips/mips.c (mips_output_jump): Fix formatting.
19518 2016-06-09 Richard Biener <rguenther@suse.de>
19520 PR tree-optimization/71462
19521 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
19524 2016-06-09 Martin Liska <mliska@suse.cz>
19526 * predict.c (dump_prediction): Add new argument.
19527 (enum predictor_reason): New enum.
19528 (struct predictor_hash): New struct.
19529 (predictor_hash::hash): New function.
19530 (predictor_hash::equal): Likewise.
19531 (not_removed_prediction_p): New function.
19532 (prune_predictions_for_bb): Likewise.
19533 (combine_predictions_for_bb): Prune predictions.
19535 2016-06-09 Martin Liska <mliska@suse.cz>
19537 * predict.c (filter_predictions): New function.
19538 (remove_predictions_associated_with_edge): Use the filter
19540 (equal_edge_p): New function.
19542 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
19544 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
19545 Correct usage of @samp vs @option, add @samp where appropriate.
19546 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
19547 Add armv6s-m and document it, as it is no official ARM name.
19549 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19551 * ifcvt.c (struct noce_if_info): Add transform_name field.
19552 (noce_try_move): Set if_info->transform_name to the function name.
19553 (noce_try_ifelse_collapse): Likewise.
19554 (noce_try_store_flag): Likewise.
19555 (noce_try_inverse_constants): Likewise.
19556 (noce_try_store_flag_constants): Likewise.
19557 (noce_try_addcc): Likewise.
19558 (noce_try_store_flag_mask): Likewise.
19559 (noce_try_cmove): Likewise.
19560 (noce_try_cmove_arith): Likewise.
19561 (noce_try_minmax): Likewise.
19562 (noce_try_abs): Likewise.
19563 (noce_try_sign_mask): Likewise.
19564 (noce_try_bitop): Likewise.
19565 (noce_convert_multiple_sets): Likewise.
19566 (noce_process_if_block): Print if_info->transform_name to
19567 dump_file if transformation succeeded.
19569 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19571 * config/arm/cortex-a57.md (cortex_a57_alu):
19574 2016-06-08 Martin Sebor <msebor@redhat.com>
19575 Jakub Jelinek <jakub@redhat.com>
19579 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
19580 BUILT_IN_MUL_OVERFLOW_P): New builtins.
19581 * builtins.c: Include gimple-fold.h.
19582 (fold_builtin_arith_overflow): Handle
19583 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
19584 (fold_builtin_3): Likewise.
19585 * doc/extend.texi (Integer Overflow Builtins): Document
19586 __builtin_{add,sub,mul}_overflow_p.
19588 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
19590 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
19591 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
19593 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
19595 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
19596 Rewrite, looking one level down for records and arrays.
19598 2016-06-08 David Malcolm <dmalcolm@redhat.com>
19600 * pretty-print.c: Include "selftest.h".
19601 (pp_format): Fix comment.
19602 (identifier_to_locale): Likewise.
19603 (selftest::test_basic_printing): New function.
19604 (selftest::assert_pp_format): New function.
19605 (selftest::test_pp_format): New function.
19606 (selftest::pretty_print_c_tests): New function.
19607 * selftest-run-tests.c (selftest::run_tests): Call
19608 selftest::pretty_print_c_tests.
19609 * selftest.h (pretty_print_c_tests): New declaration.
19611 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
19613 * invoke.texi (max-loop-headers-insns): Document.
19614 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
19615 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
19616 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
19618 2016-06-08 Richard Biener <rguenther@suse.de>
19620 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
19621 on strided SLP loads and fall back to scalar loads in case
19622 we can't chunk them.
19624 2016-06-08 Richard Biener <rguenther@suse.de>
19626 PR tree-optimization/71452
19627 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
19628 type used for the SSA rewrite has enough precision to cover
19629 the dynamic type of the location.
19631 2016-06-08 Jakub Jelinek <jakub@redhat.com>
19632 Richard Biener <rguenther@suse.de>
19635 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
19636 the same as DECL_P (base0) for indirect_base0. Use equality_code
19637 in one further place.
19639 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
19641 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
19642 to one word if the field is known to overlap other words.
19643 (extract_bit_field_1): Likewise.
19644 (store_split_bit_field): Remove compensating code.
19645 (extract_split_bit_field): Likewise.
19647 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
19651 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
19653 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19655 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
19657 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
19658 (arch64_addpv4sf): Delete.
19659 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
19660 "gen_aarch64_addpv4sf".
19661 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
19663 (vpadds_f32): Likewise.
19664 (vpaddq_f32): Likewise.
19665 (vpaddq_f64): Likewise.
19667 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19669 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
19671 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
19672 to VALLF. Rename to "fabd<mode>3".
19673 "*fabd_scalar<mode>3): Delete.
19674 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
19676 (vabdd_f64): Likewise.
19677 (vabd_f32): Likewise.
19678 (vabd_f64): Likewise.
19679 (vabdq_f32): Likewise.
19680 (vabdq_f64): Likewise.
19682 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19684 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
19686 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
19687 "aarch64_rsqrts<mode>".
19688 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
19689 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
19691 (vrsqrtsd_f64): Likewise.
19692 (vrsqrts_f32): Likewise.
19693 (vrsqrts_f64): Likewise.
19694 (vrsqrtsq_f32): Likewise.
19695 (vrsqrtsq_f64): Likewise.
19697 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19699 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
19701 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
19702 "aarch64_rsqrte<mode>".
19703 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
19704 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
19706 (vrsqrted_f64): Likewise.
19707 (vrsqrte_f32): Likewise.
19708 (vrsqrte_f64): Likewise.
19709 (vrsqrteq_f32): Likewise.
19710 (vrsqrteq_f64): Likewise.
19712 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19714 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
19716 (fcvtzs): Likewise.
19717 (fcvtzu): Likewise.
19718 * config/aarch64/aarch64-simd.md
19719 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
19720 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
19721 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
19723 (vcvt_n_f32_u32): Likewise.
19724 (vcvt_n_s32_f32): Likewise.
19725 (vcvt_n_u32_f32): Likewise.
19726 (vcvtq_n_f32_s32): Likewise.
19727 (vcvtq_n_f32_u32): Likewise.
19728 (vcvtq_n_f64_s64): Likewise.
19729 (vcvtq_n_f64_u64): Likewise.
19730 (vcvtq_n_s32_f32): Likewise.
19731 (vcvtq_n_s64_f64): Likewise.
19732 (vcvtq_n_u32_f32): Likewise.
19733 (vcvtq_n_u64_f64): Likewise.
19734 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
19735 (VSDQ_SDI): Likewise.
19736 (fcvt_target): Support V4DI, V4SI and V2SI.
19737 (FCVT_TARGET): Likewise.
19739 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19741 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
19742 (TYPES_BINOP_SUS): Likewise.
19743 (aarch64_simd_builtin_data): Update include file name.
19744 (aarch64_builtins): Likewise.
19745 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
19746 for conversion between scalar float-point and fixed-point.
19748 (fcvtzs): Likewise.
19749 (fcvtzu): Likewise.
19750 * config/aarch64/aarch64.md
19751 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
19752 pattern for conversion between scalar float to fixed-pointer.
19753 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
19754 (UNSPEC_FCVTZS): New UNSPEC enumeration.
19755 (UNSPEC_FCVTZU): Likewise.
19756 (UNSPEC_SCVTF): Likewise.
19757 (UNSPEC_UCVTF): Likewise.
19758 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
19760 (vcvtd_n_f64_u64): Likewise.
19761 (vcvtd_n_s64_f64): Likewise.
19762 (vcvtd_n_u64_f64): Likewise.
19763 (vcvtd_n_f32_s32): Likewise.
19764 (vcvts_n_f32_u32): Likewise.
19765 (vcvtd_n_s32_f32): Likewise.
19766 (vcvts_n_u32_f32): Likewise.
19767 * config/aarch64/iterators.md (fcvt_target): Support integer to float
19769 (FCVT_TARGET): Likewise.
19770 (FCVT_FIXED2F): New iterator.
19771 (FCVT_F2FIXED): Likewise.
19772 (fcvt_fixed_insn): New define_int_attr.
19774 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
19776 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
19777 some statements was removed.
19779 2016-06-08 Alan Hayward <alan.hayward@arm.com>
19781 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
19782 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
19783 (vect_can_advance_ivs_p): likewise.
19784 (vect_update_ivs_after_vectorizer): likewise.
19785 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
19786 (vect_analyze_scalar_cycles_1): likewise.
19787 (vect_analyze_loop_operations): likewise.
19788 (report_vect_op): likewise.
19789 (vect_is_slp_reduction): likewise.
19790 (vect_is_simple_reduction): likewise.
19791 (get_initial_def_for_induction): likewise.
19792 (vect_transform_loop): likewise.
19793 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
19794 (vect_recog_sad_pattern): likewise.
19795 (vect_recog_widen_sum_pattern): likewise.
19796 (vect_recog_widening_pattern): likewise.
19797 (vect_recog_divmod_pattern): likewise.
19798 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
19799 (vect_analyze_slp_instance): likewise.
19800 (vect_transform_slp_perm_load): likewise.
19801 (vect_schedule_slp_instance): likewise.
19803 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
19805 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
19806 (return_prediction): PRED_CONST_RETURN predict return as not taken.
19807 * predict.def (PRED_CONTINUE): Change hitrate 50->67
19808 (PRED_LOOP_BRANCH): Document predictor as broken.
19809 (PRED_LOOP_EXIT): Change hitrate 91->92.
19810 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
19811 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
19812 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
19813 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
19814 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
19815 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
19816 (PRED_CALL): Chane hitrate 71->67.
19817 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
19818 (PRED_GOTO): Document as unused right now.
19819 (PRED_CONST_RETURN): Change hitrate 67->69
19820 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
19821 (PRED_NULL_RETURN): Change hitrate 91->90.
19822 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
19823 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
19824 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
19826 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
19828 * config/rs6000/altivec.h: Add __builtin_vec_mul.
19829 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
19830 special case Altivec builtin.
19831 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
19832 VSX_BUILTIN_VEC_MUL (replaced with special case code).
19833 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
19834 code for ALTIVEC_BUILTIN_VEC_MUL.
19835 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
19836 for __builtin_vec_mul.
19838 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
19840 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
19843 2016-06-07 David Malcolm <dmalcolm@redhat.com>
19845 * spellcheck.c (selftest::test_find_closest_string): New function.
19846 (spellcheck_c_tests): Call the above.
19848 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19850 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
19852 2016-06-07 Jakub Jelinek <jakub@redhat.com>
19854 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
19855 Yv=Yv,C alternatives.
19857 2016-06-07 Richard Biener <rguenther@suse.de>
19860 * common.opt (ffast-math): Make Optimization.
19862 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
19863 Prachi Godbole <prachi.godbole@imgtec.com>
19865 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
19866 `fabs' and `fneg' type attributes.
19867 (p5600_fpu_fabs): Add `fmove' to the comment.
19869 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
19871 * gimple.c: Include builtins.h
19872 (gimple_inexpensive_call_p): New function.
19873 * gimple.h (gimple_inexpensive_call_p): Declare.
19874 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
19875 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
19878 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
19880 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
19881 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
19882 warning_at_rich_loc, warning_n, pedwarn, permerror,
19883 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
19884 sorry, fatal_error, internal_error, internal_error_no_backtrace):
19887 2016-06-07 Richard Biener <rguenther@suse.de>
19889 PR tree-optimization/71428
19890 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
19891 BIT_FIELD_REF op vs. load.
19893 2016-06-07 Richard Biener <rguenther@suse.de>
19895 PR middle-end/71423
19896 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
19899 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
19901 * config/pa/pa.md (call): Generate indirect long calls to non-local
19902 functions on TARGET_64BIT.
19903 (call_value): Likewise.
19905 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
19907 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
19908 pattern and subsequent splitters.
19909 (call_val_reg_64bit_post_reload): Likewise.
19911 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
19913 PR middle-end/71408
19914 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
19915 propagate_op_to_single_use.
19917 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
19919 PR middle-end/71281
19920 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
19922 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
19924 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
19925 (enum x86_dirflag_state): New enum.
19926 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
19927 (machine_function): Remove needs_cld.
19928 (ix86_current_function_needs_cld): Remove.
19929 * config/i386/i386.c (ix86_set_func_type): Set
19930 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
19931 (ix86_expand_prologue): Do not emit CLD here.
19932 (ix86_dirflag_mode_needed): New function.
19933 (ix86_dirflag_mode_entry): Ditto.
19934 (ix86_mode_needed): Handle X86_DIRFLAG entity.
19935 (ix86_mode_after): Ditto.
19936 (ix86_mode_entry): Ditto.
19937 (ix86_mode_exit): Ditto.
19938 (ix86_emit_mode_set): Ditto.
19939 * config/i386/i386.md (strmov_singleop): Set
19940 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
19941 Do not set ix86_current_function_needs_cld.
19943 (strset_singleop): Ditto.
19945 (cmpstrnqi_nz_1): Ditto.
19946 (cmpstrnqi_1): Ditto.
19947 (strlenqi_1): Ditto.
19949 2016-06-06 Jakub Jelinek <jakub@redhat.com>
19951 PR tree-optimization/71259
19952 * tree-vect-slp.c (vect_get_constant_vectors): For
19953 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
19954 one for constant op, and use COND_EXPR for non-constant.
19956 2016-06-06 David Malcolm <dmalcolm@redhat.com>
19958 * Makefile.in (OBJS): Add function-tests.o,
19959 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
19960 selftest-run-tests.o.
19961 (OBJS-libcommon): Add selftest.o.
19962 (OBJS-libcommon-target): Add selftest.o.
19963 (all.internal): Add "selftest".
19964 (all.cross): Likewise.
19965 (selftest): New phony target.
19966 (s-selftest): New target.
19967 (selftest-gdb): New phony target.
19968 (COLLECT2_OBJS): Add selftest.o.
19969 * bitmap.c: Include "selftest.h".
19970 (selftest::test_gc_alloc): New function.
19971 (selftest::test_set_range): New function.
19972 (selftest::test_clear_bit_in_middle): New function.
19973 (selftest::test_copying): New function.
19974 (selftest::test_bitmap_single_bit_set_p): New function.
19975 (selftest::bitmap_c_tests): New function.
19976 * common.opt (fself-test): New.
19977 * diagnostic-show-locus.c: Include "selftest.h".
19978 (make_range): New function.
19979 (test_range_contains_point_for_single_point): New function.
19980 (test_range_contains_point_for_single_line): New function.
19981 (test_range_contains_point_for_multiple_lines): New function.
19982 (assert_eq): New function.
19983 (test_get_line_width_without_trailing_whitespace): New function.
19984 (selftest::diagnostic_show_locus_c_tests): New function.
19985 * et-forest.c: Include "selftest.h".
19986 (selftest::test_single_node): New function.
19987 (selftest::test_simple_tree): New function.
19988 (selftest::test_disconnected_nodes): New function.
19989 (selftest::et_forest_c_tests): New function.
19990 * fold-const.c: Include "selftest.h".
19991 (selftest::assert_binop_folds_to_const): New function.
19992 (selftest::assert_binop_folds_to_nonlvalue): New function.
19993 (selftest::test_arithmetic_folding): New function.
19994 (selftest::fold_const_c_tests): New function.
19995 * function-tests.c: New file.
19996 * gimple.c: Include "selftest.h".
19997 Include "gimple-pretty-print.h".
19998 (selftest::verify_gimple_pp): New function.
19999 (selftest::test_assign_single): New function.
20000 (selftest::test_assign_binop): New function.
20001 (selftest::test_nop_stmt): New function.
20002 (selftest::test_return_stmt): New function.
20003 (selftest::test_return_without_value): New function.
20004 (selftest::gimple_c_tests): New function.
20005 * hash-map-tests.c: New file.
20006 * hash-set-tests.c: New file.
20007 * input.c: Include "selftest.h".
20008 (selftest::assert_loceq): New function.
20009 (selftest::test_accessing_ordinary_linemaps): New function.
20010 (selftest::test_unknown_location): New function.
20011 (selftest::test_builtins): New function.
20012 (selftest::test_reading_source_line): New function.
20013 (selftest::input_c_tests): New function.
20014 * rtl-tests.c: New file.
20015 * selftest-run-tests.c: New file.
20016 * selftest.c: New file.
20017 * selftest.h: New file.
20018 * spellcheck.c: Include "selftest.h".
20019 (selftest::levenshtein_distance_unit_test_oneway): New function,
20020 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
20021 (selftest::levenshtein_distance_unit_test): Likewise.
20022 (selftest::spellcheck_c_tests): Likewise.
20023 * toplev.c: Include selftest.h.
20024 (toplev::run_self_tests): New.
20025 (toplev::main): Handle -fself-test.
20026 * toplev.h (toplev::run_self_tests): New.
20027 * tree.c: Include "selftest.h".
20028 (selftest::test_integer_constants): New function.
20029 (selftest::test_identifiers): New function.
20030 (selftest::test_labels): New function.
20031 (selftest::tree_c_tests): New function.
20032 * tree-cfg.c: Include "selftest.h".
20033 (selftest::push_fndecl): New function.
20034 (selftest::test_linear_chain): New function.
20035 (selftest::test_diamond): New function.
20036 (selftest::test_fully_connected): New function.
20037 (selftest::tree_cfg_c_tests): New function.
20038 * vec.c: Include "selftest.h".
20039 (selftest::safe_push_range): New function.
20040 (selftest::test_quick_push): New function.
20041 (selftest::test_safe_push): New function.
20042 (selftest::test_truncate): New function.
20043 (selftest::test_safe_grow_cleared): New function.
20044 (selftest::test_pop): New function.
20045 (selftest::test_safe_insert): New function.
20046 (selftest::test_ordered_remove): New function.
20047 (selftest::test_unordered_remove): New function.
20048 (selftest::test_block_remove): New function.
20049 (selftest::reverse_cmp): New function.
20050 (selftest::test_qsort): New function.
20051 (selftest::vec_c_tests): New function.c.
20052 * wide-int.cc: Include selftest.h and wide-int-print.h.
20053 (selftest::from_int <wide_int>): New function.
20054 (selftest::from_int <offset_int>): New function.
20055 (selftest::from_int <widest_int>): New function.
20056 (selftest::assert_deceq): New function.
20057 (selftest::assert_hexeq): New function.
20058 (selftest::test_printing <VALUE_TYPE>): New function template.
20059 (selftest::test_ops <VALUE_TYPE>): New function template.
20060 (selftest::test_comparisons <VALUE_TYPE>): New function template.
20061 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
20063 (selftest::wide_int_cc_tests): New function.
20065 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20067 PR middle-end/37780
20068 * ifcvt.c (noce_try_ifelse_collapse): New function.
20070 (noce_process_if_block): Call noce_try_ifelse_collapse.
20071 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
20072 (simplify_ternary_operation): Use the above to simplify
20073 conditional CLZ/CTZ expressions.
20075 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20077 PR middle-end/37780
20078 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
20079 define_insn_and_split.
20081 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20083 PR middle-end/37780
20084 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
20086 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
20089 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
20090 Implicitly clobber memory for basic asm with non-empty assembler
20091 string. Use targetm.md_asm_adjust also here.
20092 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
20093 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
20094 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
20095 non-empty assembler string.
20096 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
20097 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
20098 (decode_asm_operands): Handle basic asm in PARALLEL block.
20099 (extract_insn): Handle basic asm in PARALLEL block.
20100 * doc/extend.texi: Mention new behavior of basic asm.
20101 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
20102 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
20103 branch_needs_nop_p): Use asm_noperands.
20105 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
20107 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
20108 Include the M7 SPARC DFA scheduler.
20109 New attribute v3pipe.
20110 Annotate insns with v3pipe where appropriate.
20111 Define cpu_feature vis4.
20112 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
20113 Add (V8QI "8") to vbits.
20114 Add insns {add,sub}v8qi3
20115 Add insns ss{add,sub}v8qi3
20116 Add insns us{add,sub}{v8qi,v4hi}3
20117 Add insns {min,max}{v8qi,v4hi,v2si}3
20118 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
20119 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
20120 * config/sparc/niagara4.md: Add a comment explaining the
20121 discrepancy between the documented latenty numbers and the
20123 * config/sparc/niagara7.md: New file.
20124 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
20125 supports SPARC5 and VIS 4.0 instructions.
20126 * configure: Regenerate.
20127 * config.in: Likewise.
20128 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
20129 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
20130 TARGET_CPU_niagara7.
20131 (ASM_CPU64_DEFAULT_SPEC): Likewise.
20132 (CPP_CPU_SPEC): Handle niagara7.
20133 (ASM_CPU_SPEC): Likewise.
20134 * config/sparc/sparc-opts.h (processor_type): Add
20135 PROCESSOR_NIAGARA7.
20136 (mvis4): New option.
20137 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
20138 (AS_NIAGARA7_FLAG): Define.
20139 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
20140 (CPP_CPU64_DEFAULT_SPEC): Likewise.
20141 (CPP_CPU_SPEC): Handle niagara7.
20142 (ASM_CPU_SPEC): Likewise.
20143 * config/sparc/sparc.c (niagara7_costs): Define.
20144 (sparc_option_override): Handle niagara7 and adjust cache-related
20145 parameters with better values for niagara cpus. Also support VIS4.
20146 (sparc32_initialize_trampoline): Likewise.
20147 (sparc_use_sched_lookahead): Likewise.
20148 (sparc_issue_rate): Likewise.
20149 (sparc_register_move_cost): Likewise.
20150 (dump_target_flag_bits): Support VIS4.
20151 (sparc_vis_init_builtins): Likewise.
20152 (sparc_builtins): Likewise.
20153 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
20155 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
20157 * config/sparc/sparc.opt (sparc_processor_type): New value
20159 * config/sparc/visintrin.h (__attribute__): Prototypes for the
20161 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
20163 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
20166 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
20168 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
20170 2016-06-06 Richard Biener <rguenther@suse.de>
20172 PR tree-optimization/71398
20173 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
20176 2016-06-05 James Bowman <james.bowman@ftdichip.com>
20178 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
20179 ft32_expand_prolog, ft32_expand_epilogue):
20180 Handle pretend_args.
20181 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
20182 * config/ft32/ft32.md: Add pretend_returner.
20184 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
20187 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
20188 Copy op1 RTX to avoid invalid sharing.
20189 (ix86_expand_vector_move_misalign): Ditto.
20191 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
20193 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
20196 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
20198 * predict.c (predicted_by_loop_heuristics_p): New function.
20199 (predict_iv_comparison): Use it.
20200 (predict_loops): Walk from innermost loops; do not predict edges
20201 leaving multiple loops multiple times; implement
20202 PRED_LOOP_ITERATIONS_MAX heuristics.
20203 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
20205 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
20207 * cfg.c (check_bb_profile): Do not report mismatched profiles when
20208 only edges out of BB are EH edges.
20210 2016-06-04 Martin Sebor <msebor@redhat.com>
20211 Marcin Baczyński <marbacz@gmail.com>
20214 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
20215 a void expression in a void function.
20217 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
20219 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
20220 aux; dump reasons of decisions.
20221 (should_duplicate_loop_header_p): Likewise.
20222 (do_while_loop_p): Likewise.
20223 (ch_base::copy_headers): Dump asi num insns duplicated.
20225 2016-06-04 Jakub Jelinek <jakub@redhat.com>
20227 PR tree-optimization/71405
20228 * tree-ssa.c (execute_update_addresses_taken): For clobber with
20229 incompatible type, build a new clobber with the right type instead
20230 of building a VIEW_CONVERT_EXPR around it.
20232 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
20234 PR tree-optimization/52171
20235 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
20236 by_pieces_ninsns instead of move_by_pieces_ninsns.
20238 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
20240 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
20241 for reg+reg addressing mode.
20243 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20245 * rs6000-c.c (c/c-tree.h): Add #include.
20246 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
20247 in C++ when found in the base position of vec_ld or vec_st.
20249 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
20251 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
20252 use of profile unless profile status is PROFILE_READ.
20253 * profile.c (compute_branch_probabilities): Set profile status
20254 only after reporting predictor hitrates.
20256 2016-06-03 Joseph Myers <joseph@codesourcery.com>
20260 * common.opt (ffp-int-builtin-inexact): New option.
20261 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
20262 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
20263 (ceil@var{m}2): Document dependence on this option.
20264 * ipa-inline-transform.c (inline_call): Handle
20265 flag_fp_int_builtin_inexact.
20266 * ipa-inline.c (can_inline_edge_p): Likewise.
20267 * config/i386/i386.md (rintxf2): Do not test
20268 flag_unsafe_math_optimizations.
20269 (rint<mode>2_frndint): New define_insn.
20270 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
20271 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
20272 for 387 instead of extending and truncating.
20273 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
20274 !flag_trapping_math instead of flag_unsafe_math_optimizations.
20275 Change to frndint<mode>2_<rounding>.
20276 (frndintxf2_<rounding>_i387): Likewise. Change to
20277 frndint<mode>2_<rounding>_i387.
20278 (<rounding_insn>xf2): Likewise.
20279 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
20280 !flag_trapping_math instead of flag_unsafe_math_optimizations for
20281 x87. Test TARGET_ROUND || !flag_trapping_math ||
20282 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
20283 SSE. Use ROUND_NO_EXC in constant operand of
20284 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
20285 for 387 instead of extending and truncating.
20287 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
20288 Julia Koval <julia.koval@intel.com>
20300 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
20301 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
20302 all registers, except for function return registers if there are
20303 no caller-saved registers.
20304 (ix86_set_func_type): New function.
20305 (ix86_set_current_function): Call ix86_set_func_type to set
20306 no_caller_saved_registers and func_type. Call reinit_regs if
20307 caller-saved registers are changed. Don't allow MPX, SSE, MMX
20308 nor x87 instructions in interrupt handler nor function with
20309 no_caller_saved_registers attribute.
20310 (ix86_function_ok_for_sibcall): Return false if there are no
20311 caller-saved registers.
20312 (type_natural_mode): Don't warn ABI change for MMX in interrupt
20314 (ix86_function_arg_advance): Skip for callee in interrupt handler.
20315 (ix86_function_arg): Return special arguments in interrupt handler.
20316 (ix86_promote_function_mode): Promote pointer to word_mode only
20317 for normal functions.
20318 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
20320 (ix86_epilogue_uses): New function.
20321 (ix86_hard_regno_scratch_ok): Likewise.
20322 (ix86_save_reg): Preserve all registers in interrupt handler
20323 after reload. Preserve all registers, except for function return
20324 registers, if there are no caller-saved registers after reload.
20325 (find_drap_reg): Always use callee-saved register if there are
20326 no caller-saved registers.
20327 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
20328 for interrupt handler.
20329 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
20330 Emit cld instruction if stringops are used in interrupt handler
20331 or interrupt handler isn't a leaf function.
20332 (ix86_expand_epilogue): Generate interrupt return for interrupt
20333 handler and pop the 'ERROR_CODE' off the stack before interrupt
20334 return in exception handler.
20335 (ix86_expand_call): Disallow calling interrupt handler directly.
20336 If there are no caller-saved registers, mark all registers that
20337 are clobbered by the call which returns as clobbered.
20338 (ix86_handle_no_caller_saved_registers_attribute): New function.
20339 (ix86_handle_interrupt_attribute): Likewise.
20340 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
20342 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
20343 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
20344 accumulation in interrupt function if stack may be realigned to
20346 (EPILOGUE_USES): New.
20347 (function_type): New enum.
20348 (machine_function): Add func_type and no_caller_saved_registers.
20349 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
20350 (interrupt_return): New pattern.
20351 * doc/extend.texi: Document x86 interrupt and
20352 no_caller_saved_registers attributes.
20354 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
20356 PR tree-optimization/52171
20357 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
20358 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
20359 Look for constant strings. Move some code to emit_block_cmp_hints
20361 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
20362 * defaults.h (COMPARE_MAX_PIECES): New macro.
20363 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
20364 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
20365 (clear_by_pieces_1): Don't declare. Move definition before use.
20366 (can_do_by_pieces): New static function.
20367 (can_move_by_pieces): Use it. Return bool.
20368 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
20369 OP. All callers changed. Handle COMPARE_BY_PIECES.
20370 (class pieces_addr); New.
20371 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
20372 pieces_addr::adjust, pieces_addr::increment_address,
20373 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
20375 (class op_by_pieces_d): New.
20376 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
20378 (class move_by_pieces_d, class compare_by_pieces_d,
20379 class store_by_pieces_d): New subclasses of op_by_pieces_d.
20380 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
20381 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
20382 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
20383 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
20384 compare_by_pieces_d::finish_mode): New member functions.
20385 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
20387 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
20388 (emit_block_cmp_hints): New function.
20389 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
20390 use the newly defined classes.
20391 * expr.h (by_pieces_constfn): New typedef.
20392 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
20393 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
20394 (move_by_pieces_ninsns): Don't declare.
20395 (can_move_by_pieces): Change return value to bool.
20396 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
20397 (compare_by_pieces_branch_ratio): New hook.
20398 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
20399 (by_pieces_ninsns): Declare.
20400 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
20402 (default_compare_by_pieces_branch_ratio): New function.
20403 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
20404 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
20405 * doc/tm.texi: Regenerate.
20406 * tree-ssa-strlen.c: Include "builtins.h".
20407 (handle_builtin_memcmp): New static function.
20408 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
20409 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
20411 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20413 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
20414 relevant stmts which are simple and invariant.
20415 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
20416 instead of simple and invariant
20418 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20420 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
20421 (vectorizable_reduction): Check for new relevant state.
20422 (vectorizable_live_operation): vectorize live stmts using
20423 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
20424 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
20425 (vect_stmt_relevant_p): Check for stmts which are only used live.
20426 (process_use): Use of a stmt does not inherit it's live value.
20427 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
20428 (vect_analyze_stmt): Check for new relevant state.
20429 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
20430 outside the loop, but not inside it.
20432 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20434 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
20435 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
20436 (vect_get_vec_def_for_operand): Split out code.
20438 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
20440 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
20442 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20444 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
20446 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20448 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
20450 2016-06-03 Jakub Jelinek <jakub@redhat.com>
20452 PR middle-end/71387
20453 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
20454 to noreturn e->callee->decl that has void return type and void
20455 arguments, adjust gimple_call_fntype and remove lhs even if it had
20456 previously addressable type.
20458 2016-06-02 Jeff Law <law@redhat.com>
20460 PR tree-optimization/71328
20461 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
20462 error when checking for a jump back onto the copied path.
20464 2016-06-02 David Malcolm <dmalcolm@redhat.com>
20466 * config/microblaze/microblaze.c (get_branch_target): Add return
20467 NULL_RTX for the non-CALL_P case.
20468 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
20469 (insert_wic): Remove unused local "j".
20471 2016-06-02 Martin Liska <mliska@suse.cz>
20473 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
20475 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
20476 Julia Koval <julia.koval@intel.com>
20478 * function.c (assign_parm_setup_stack): Force source into a
20479 register if needed.
20480 * target.def (function_incoming_arg): Update documentation to
20481 allow arbitrary address computation based on hard register.
20482 * doc/tm.texi: Regenerated.
20484 2016-06-02 Martin Liska <mliska@suse.cz>
20486 * predict.c (combine_predictions_for_bb): Fix first match in
20487 cases where a first predictor contains more than one occurence
20488 in list of predictors. Take the best value in such case.
20490 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20492 PR rtl-optimization/71295
20493 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
20494 offset would go over the size of the inner mode reject it.
20496 2016-06-02 Jakub Jelinek <jakub@redhat.com>
20498 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
20499 x=x,x and v=v,m instead of x=x,m.
20501 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
20502 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
20503 alternative to v=rm,C.
20505 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
20506 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
20507 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
20508 instead of vex for the last two above mentioned alternatives.
20510 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20513 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
20515 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
20517 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
20519 2016-06-01 David Malcolm <dmalcolm@redhat.com>
20521 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
20522 from int to unsigned.
20524 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
20526 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
20527 alternatives, eliminating preferred register class. Add support
20528 for the MTVSRDD instruction in ISA 3.0.
20529 (vsx_splat_v4si_internal): Use splat_input_operand instead of
20530 reg_or_indexed_operand.
20531 (vsx_splat_v4sf_internal): Likewise.
20533 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
20536 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
20537 for loading up all 0's or all 1's.
20539 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
20541 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
20543 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
20545 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
20547 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
20548 * gcc.c (set_source_date_epoch_envvar): New function, sets
20549 the SOURCE_DATE_EPOCH environment variable to the current time.
20551 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
20553 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
20554 the factor for live Phi nodes.
20556 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
20558 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
20559 * tree-parloops.c (parallelize_loops): likewise.
20560 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
20561 tree_unswitch_outer_loop): likewise.
20563 2016-06-01 Jakub Jelinek <jakub@redhat.com>
20565 PR middle-end/71371
20566 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
20567 around creation of the temporary.
20569 2016-06-01 Richard Biener <rguenther@suse.de>
20571 PR tree-optimization/71366
20572 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
20573 (unloop_loops): Move removing edges here ...
20574 (try_unroll_loop_completely): ... from here.
20575 (try_peel_loop): ... and here.
20576 (tree_unroll_loops_completely_1): Track parent loops via
20577 bitmap of header BBs.
20578 (tree_unroll_loops_completely): Adjust for that.
20580 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
20582 * config/rs6000/altivec.h (vec_slv): New macro.
20583 (vec_srv): New macro.
20584 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
20585 (UNSPEC_VSRV): New value.
20588 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
20589 (vsrv): New builtin definition.
20590 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
20591 define argument types for new builtin.
20592 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
20594 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
20597 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
20598 Jocelyn Mayer <l_indien@magic.fr>
20601 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
20602 detect processor family for signature_CENTAUR_ebx.
20603 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
20604 signature_CENTAUR_ebx.
20605 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
20606 <default>: Pass x86-64 for has_longmode.
20608 2016-06-01 Nathan Sidwell <nathan@acm.org>
20610 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
20613 2016-06-01 Richard Biener <rguenther@suse.de>
20615 PR tree-optimization/71261
20616 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
20617 of stmts successfully put in the bool pattern. Remove
20618 single-use restriction.
20619 (adjust_bool_pattern_cast): Add cast at the use site via the
20620 pattern def sequence.
20621 (adjust_bool_pattern): Remove recursion, maintain a hash-map
20622 of patterned defs. Use the pattern def seqence instead of
20623 multiple independent patterns.
20624 (sort_after_uid): New qsort compare function.
20625 (adjust_bool_stmts): New function to process stmts in the bool
20626 pattern in IL order.
20627 (vect_recog_bool_pattern): Adjust.
20628 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
20629 (ifcvt_walk_pattern_tree): Likewise.
20630 (stmt_is_root_of_bool_pattern): Likewise.
20631 (ifcvt_repair_bool_pattern): Likewise.
20632 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
20634 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
20636 * loop-unroll.c (decide_unroll_constant_iterations,
20637 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
20638 likely upper bounds.
20639 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
20641 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
20643 * tree-core.h (enum omp_clause_code): Remove
20644 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
20646 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20648 * config/arm/sync.md (arm_store_exclusive<mode>):
20649 Use 'H' output modifier on operands[2] rather than creating a new
20650 entry in out-of-bounds memory of the operands array.
20651 (arm_store_release_exclusivedi): Likewise.
20653 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20655 * config/arm/arm.c (arm_fusion_enabled_p): New function.
20656 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
20657 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
20658 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
20660 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
20662 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
20663 into account live statements for mask producers.
20665 2016-06-01 Richard Biener <rguenther@suse.de>
20667 PR tree-optimization/71311
20668 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
20669 restrict to non-INTEGER_CST @0.
20671 2016-06-01 Richard Biener <rguenther@suse.de>
20673 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
20674 (relational patterns): Use :c to avoid pattern duplications.
20676 2016-06-01 Richard Biener <rguenther@suse.de>
20678 * genmatch.c (comparison_code_p): New predicate.
20679 (swap_tree_comparison): New function.
20680 (commutate): Add for_vec parameter to append new for entries.
20681 Support commutating relational operators by swapping it alongside
20683 (lower_commutative): Adjust.
20684 (dt_simplify::gen): Do not pass artificial operators to gen
20686 (decision_tree::gen): Do not add artificial operators as parameters.
20687 (parser::parse_expr): Verify operator commutativity when :c is
20688 applied. Allow :C to override this.
20689 * match.pd: Adjust patterns to use :C instead of :c where required.
20691 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
20693 PR tree-optimization/71077
20694 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
20695 the combining step, use boolean_false_node and boolean_true_node
20696 as the designated false/true return values.
20698 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
20700 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
20701 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
20702 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
20705 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
20707 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
20708 of flags impliying the register renaming.
20709 * toplev.c (process_options): Do not imply flag_rename_registers with
20712 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
20714 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
20715 default implementation.
20717 2016-05-31 Nathan Sidwell <nathan@acm.org>
20719 * dwarf2out.c (cur_line_info_table): Add GTY marker.
20721 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
20723 * config/sh/constraints.md (b): Remove constraint.
20724 * config/sh/predicates.md (arith_reg_operand): Remove
20726 * config/sh/sh-modes.def (PDI): Remove.
20727 * config/sh/sh.c (sh_target_reg_class,
20728 sh_optimize_target_register_callee_saved): Remove functions.
20729 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
20730 (sh_expand_epilogue): Update comment.
20731 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
20732 sh_secondary_reload): Remove TARGET_REGS related code.
20733 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
20734 TARGET_REGISTER_P): Remove macros.
20735 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
20736 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
20737 TR1_REG, TR2_REG): Remove constants.
20738 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
20740 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
20742 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
20743 define_expand patterns.
20744 (adddi3_compact): Rename to adddi3.
20745 (subdi3_compact): Rename to subdi3.
20746 (*negdi2): Rename to negdi2.
20747 (*abs<mode>2): Rename to abs<mode>2.
20749 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
20751 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
20752 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
20753 (atomic_sub_fetchsi): ... this new pattern.
20754 (mvtc): Add CC_REG clobber.
20756 2016-05-31 Marek Polacek <polacek@redhat.com>
20758 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
20760 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20762 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
20763 aarch64_fusion_enabled_p to check for fusion capabilities.
20765 2016-05-31 Richard Biener <rguenther@suse.de>
20767 PR tree-optimization/71352
20768 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
20769 minus one and a negate.
20771 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20773 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
20774 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
20776 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
20777 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
20778 Remove use of aarch64_simd_attr_length_move, set length attribute
20780 (*aarch64_be_movoi): Likewise.
20781 (*aarch64_be_movci): Likewise.
20782 (*aarch64_be_movxi): Likewise.
20784 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
20786 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
20787 It no longer does that.
20788 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
20790 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
20792 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
20793 attribute __unused__.
20795 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
20797 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
20798 * config/arm/arm.c (arm_arch_thumb1): Define.
20799 (arm_option_override): Initialize arm_arch_thumb1.
20800 * config/arm/arm.h (arm_arch_thumb1): Declare.
20801 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
20802 support Thumb-1 ISA.
20804 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
20807 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
20808 `Yv' for scalar operand.
20810 2016-05-31 Tom de Vries <tom@codesourcery.com>
20812 PR tree-optimization/69068
20813 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
20814 phis with more than two args.
20816 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
20818 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
20819 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
20822 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
20824 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
20826 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
20828 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
20829 cpu_32, cpu_64, tune_32 and tune_64.
20830 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
20832 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
20834 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
20836 2016-05-30 Andi Kleen <ak@linux.intel.com>
20838 * auto-profile.c (read_profile): Replace asserts with errors
20839 when file does not exist.
20840 * gcov-io.c (gcov_read_words): Dito.
20842 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20844 * tree-cfg.c (print_loop): Print likely upper bounds.
20846 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20848 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
20849 * opts.c (default_options): Enable peel loops at -O3.
20850 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
20851 (try_peel_loop): Do not re-peel already peeled loops;
20852 use likely upper bounds; fix profile updating.
20853 (pass_complete_unroll::execute): Initialize peeled_loops.
20855 2016-05-30 Martin Liska <mliska@suse.cz>
20857 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
20858 computed costs by frequency of BB they belong to.
20859 (get_scaled_computation_cost_at): New function.
20861 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
20862 Marc Glisse <marc.glisse@inria.fr>
20864 PR tree-optimization/71289
20865 * match.pd (-1 / B < A, A > -1 / B): New transformations.
20867 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20869 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
20871 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20873 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
20874 for peeled copies; avoid underflow when updating estimates; correctly
20875 scale loop profile.
20877 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
20879 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
20880 r236875. Corrected oe3 to oe2 as obvious.
20882 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
20884 PR middle-end/71269
20885 PR middle-end/71252
20886 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
20887 that inserted stmt will not dominate stmts that defines its operand.
20888 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
20889 (rewrite_expr_tree_parallel): Likewise.
20891 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
20893 PR middle-end/71252
20894 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
20895 all fields including stmt_to_insert are swapped.
20897 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20899 * predict.h (force_edge_cold): Declare.
20900 * predict.c (force_edge_cold): New function.
20901 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
20903 (canonicalize_loop_induction_variables): Fix formating.
20905 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
20907 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
20908 (visium_expand_copysign): Use gen_int_mode directly.
20909 (visium_compute_frame_size): Minor tweaks.
20911 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20913 * tree-vect-loop.c (vect_analyze_loop_2): Use
20914 likely_max_stmt_executions_int.
20916 2016-05-30 Tom de Vries <tom@codesourcery.com>
20918 PR tree-optimization/69067
20919 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
20921 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
20924 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
20925 New peepholes to remove unneeded fild/fistp pairs.
20926 (define_peephole2 atomic_loaddi_fpu): Ditto.
20928 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20930 * predict.c (maybe_hot_frequency_p): Avoid division.
20932 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
20934 * doc/install.texi: Use https for shop.fsf.org.
20936 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20938 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
20939 likely_max_stmt_executions_int.
20941 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20943 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
20944 likely_max_stmt_executions_int.
20946 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20948 * profile.c (compute_branch_probabilities): Do not report hitrates
20950 (branch_prob): Report hitrates here.
20951 * predict.c (gimple_predict_edge): Do not assert profile status;
20952 fix formatting issues.
20954 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20956 * predict.c (edge_predicted_by_p): New function.
20957 (predict_paths_for_bb): Do not put multiple predictions of the same type
20960 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20962 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
20965 2016-05-28 Alan Modra <amodra@gmail.com>
20967 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
20969 2016-05-28 Alan Modra <amodra@gmail.com>
20971 PR rtl-optimization/71275
20972 * ira.c (ira): Free dominance info.
20974 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
20976 * doc/sourcebuild.texi: New address for upstream Go repository.
20978 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
20980 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
20981 (TARGET_ARM_V7M): Likewise.
20983 2016-05-26 Jeff Law <law@redhat.com>
20985 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
20986 (thread_across_edge): Remove calls to find_jump_threads_backwards.
20987 * passes.def: Add jump threading passes before DOM/VRP.
20988 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
20989 argument to a basic block from an edge. Remove tests which are
20991 (pass_data_thread_jumps, class pass_thread_jumps): New.
20992 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
20993 (make_pass_thread_jumps): Likewise.
20994 * tree-pass.h (make_pass_thread_jumps): Declare.
20996 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
20998 * config/visium/visium-protos.h (split_double_move): Rename into...
20999 (visium_split_double_move): ...this.
21000 (visium_split_double_add): Declare.
21001 * config/visium/visium.c (split_double_move): Rename into...
21002 (visium_split_double_move): ...this.
21003 (visium_split_double_add): New function.
21004 (visium_expand_copysign): Renumber operands for consistency.
21005 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
21006 (DFmode move splitter): Likewise.
21007 (*addi3_insn): Split by means of visium_split_double_add.
21008 (*adddi3_insn_flags): Delete.
21009 (*plus_plus_sltu<subst_arith>): New insn.
21010 (*subdi3_insn): Split by means of visium_split_double_add.
21011 (subdi3_insn_flags): Delete.
21012 (*minus_minus_sltu<subst_arith>): New insn.
21013 (*negdi2_insn): Split by means of visium_split_double_add.
21014 (*negdi2_insn_flags): Delete.
21016 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
21018 * configure.ac: Treat a --with-headers option without argument
21019 the same as the default (i.e. consult sys-include directory).
21020 * configure: Regenerate.
21022 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21024 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
21025 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
21027 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
21028 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21030 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21033 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
21034 tree-stdarg analysis results.
21035 (aarch64_setup_incoming_varargs): Likewise.
21037 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21039 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
21040 va_list_gpr_counter_field and va_list_fpr_counter_field.
21042 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
21045 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
21046 * config/aarch64/aarch64.c
21047 (aarch64_cannot_change_mode_class): Remove function.
21048 * config/aarch64/aarch64-protos.h
21049 (aarch64_cannot_change_mode_class): Remove.
21051 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21053 * cfgloop.c (record_niter_bound): Record likely upper bounds.
21054 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
21055 get_likely_max_loop_iterations_int): New.
21056 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
21057 any_likely_upper_bound.
21058 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
21060 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
21061 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
21063 (unroll_loop_constant_iterations): Likewise.
21064 (unroll_loop_runtime_iterations): Likewise.
21065 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
21066 * lto-streamer-out.c (output_cfg): Likewise.
21067 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
21069 (canonicalize_loop_induction_variables): Dump likely upper bounds.
21070 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
21071 (likely_max_loop_iterations): New.
21072 (likely_max_loop_iterations_int): New.
21073 (likely_max_stmt_executions): New.
21074 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
21075 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
21076 likely_max_stmt_executions): Declare.
21078 2016-05-27 Marek Polacek <polacek@redhat.com>
21080 PR middle-end/71308
21081 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
21083 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21085 * config/s390/s390.md (2x risbg splitters): Use
21086 reg_overlap_mentioned_p instead of rtx_equal_p.
21088 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
21090 * combine.c (make_compound_operation): Take known zero bits into
21091 account when checking for possible zero_extend.
21093 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21095 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
21096 Use const_int_operand for operand 2 predicate. Simplify expand code
21099 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
21101 PR middle-end/71279
21102 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
21105 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21107 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
21108 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
21109 that returns CC_SESWPmode and CC_ZESWPmode.
21110 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
21112 (aarch64_rtx_costs): Likewise.
21114 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21116 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
21117 for ISA 3.0 min/max support.
21118 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
21119 conditional move support.
21120 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
21121 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
21123 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
21124 conditional moves where the comparison type is different from move
21126 (fp_minmax): New code iterator for smin/smax.
21127 (minmax): New code attributes for min/max.
21128 (SMINMAX): Likewise.
21129 (smax<mode>3): Combine min, max insns into one insn using the
21130 fp_minmax code iterator. Add support for ISA 3.0 min/max
21131 instructions that don't need -ffast-math.
21132 (s<minmax><mode>3): Likewise.
21133 (smax<mode>3_vsx): Likewise.
21134 (smin<mode>3): Likewise.
21135 (s<minmax><mode>3_vsx): Likewise.
21136 (smin<mode>3_vsx): Likewise.
21137 (pre-VSX min/max splitters): Likewise.
21138 (s<minmax><mode>3_fpr): Likewise.
21139 (movsfcc): Rewrite floating point conditional moves to combine
21140 SFmode/DFmode into a single insn.
21141 (mov<mode>cc): Likewise.
21142 (movdfcc): Likewise.
21143 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
21144 SFDF2 iterators to handle all combinations.
21145 (fseldfsf4): Likewise.
21146 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
21147 (fseldfdf4): Likewise.
21148 (fselsfdf4): Likewise.
21149 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
21150 comparison instructions that set a 0/-1 mask, and use it for
21151 floating point conditional move via XXSEL.
21152 (fpmask<mode>): Likewise.
21153 (xxsel<mode>): Likewise.
21154 * config/rs6000/predicates.md (min_max_operator): Delete, no
21156 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
21157 instructions that generate a 0/-1 mask for use with XXSEL.
21158 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
21159 say whether floating point min/max is available, either through
21160 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
21161 (TARGET_MINMAX_DF): Likewise.
21163 2016-05-27 Alan Modra <amodra@gmail.com>
21165 PR rtl-optimization/71275
21166 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
21167 for update_equiv_regs and combine_and_move_insns.
21169 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
21171 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
21172 if_then_else or cond RTXes to calculate attribute value.
21173 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
21174 <attr "length_immediate>: Ditto.
21175 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
21176 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
21177 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
21178 <attr "type">: Ditto.
21179 <attr "prefix_data16">: Ditto.
21180 <attr "prefix_extra">: Ditto.
21181 <attr "length_immediate">: Ditto.
21182 <attr "prefix">: Ditto.
21183 (vec_set<mode>_0) <attr "isa">: Ditto.
21184 <attr "prefix_extra">: Ditto.
21185 <attr "length_immediate">: Ditto.
21186 <attr "prefix">: Ditto.
21187 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
21188 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
21189 (sse2_storelpd) <attr "prefix_data16">: Ditto.
21190 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
21191 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
21192 <attr "length_immediate">: Ditto.
21193 <attr "prefix">: Ditto.
21194 (sse2_movsd) <attr "length_immediate">: Ditto.
21195 <attr "prefix">: Ditto.
21196 (vec_concatv2df) <attr "isa">: Ditto.
21197 <attr "prefix">: Ditto.
21198 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
21199 (*vec_extractv2di_1) <attr "isa">: Ditto.
21200 <attr "type">: Ditto.
21201 <attr "length_immediate">: Ditto.
21202 <attr "prefix_rex">: Ditto.
21203 <attr "prefix_extra">: Ditto.
21204 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
21205 <attr "prefix_extra">: Ditto.
21206 <attr "length_immediate">: Ditto.
21207 (vec_concatv2di) <attr "isa">: Ditto.
21208 <attr "prefix_extra">: Ditto.
21209 <attr "length_immediate">: Ditto.
21210 <attr "prefix">: Ditto.
21212 2016-05-26 Martin Liska <mliska@suse.cz>
21214 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
21216 (operator+): Likewise.
21217 (operator-): Likewise.
21218 (comp_cost::operator+=): Likewise.
21219 (comp_cost::operator-=): Likewise.
21220 (comp_cost::operator/=): Likewise.
21221 (comp_cost::operator*=): Likewise.
21222 (operator<): Likewise.
21223 (operator==): Likewise.
21224 (operator<=): Likewise.
21225 (new_cost): Remove.
21226 (infinite_cost_p): Likewise.
21227 (add_costs): Likewise.
21228 (sub_costs): Likewise.
21229 (compare_costs): Likewise.
21230 (set_group_iv_cost): Use the newly introduced functions.
21231 (get_address_cost): Likewise.
21232 (get_shiftadd_cost): Likewise.
21233 (force_expr_to_var_cost): Likewise.
21234 (split_address_cost): Likewise.
21235 (ptr_difference_cost): Likewise.
21236 (difference_cost): Likewise.
21237 (get_computation_cost_at): Likewise.
21238 (determine_group_iv_cost_generic): Likewise.
21239 (determine_group_iv_cost_address): Likewise.
21240 (determine_group_iv_cost_cond): Likewise.
21241 (autoinc_possible_for_pair): Likewise.
21242 (determine_group_iv_costs): Likewise.
21243 (cheaper_cost_pair): Likewise.
21244 (iv_ca_recount_cost): Likewise.
21245 (iv_ca_set_no_cp): Likewise.
21246 (iv_ca_set_cp): Likewise.
21247 (iv_ca_cost): Likewise.
21248 (iv_ca_new): Likewise.
21249 (iv_ca_dump): Likewise.
21250 (iv_ca_narrow): Likewise.
21251 (iv_ca_prune): Likewise.
21252 (iv_ca_replace): Likewise.
21253 (try_add_cand_for): Likewise.
21254 (try_improve_iv_set): Likewise.
21255 (find_optimal_iv_set): Likewise.
21257 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
21259 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
21260 that internal functions will clobber all caller-saved registers.
21262 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
21264 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
21265 Return a better case_values_threshold when optimizing.
21267 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
21269 * config/aarch64/aarch64-simd.md (aarch64_combinez):
21270 Add ? to integer variant.
21271 (aarch64_combinez_be): Likewise.
21273 2016-05-26 Jakub Jelinek <jakub@redhat.com>
21275 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
21276 instead of x constraint.
21277 (vcvtps2ph256<mask_name>): Likewise.
21279 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
21280 alternative. Formatting fix.
21282 * config/i386/sse.md
21283 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
21285 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
21286 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
21287 maybe_evex prefix instead of vex.
21288 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
21289 EXT_REX_SSE_REG_P (op0) case in the splitter.
21291 2016-05-25 Jeff Law <law@redhat.com>
21293 PR tree-optimization/71272
21294 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
21295 Update comments. Add test for empty path.
21297 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
21299 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
21300 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
21301 special case builtin.
21302 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21303 code for ALTIVEC_BUILTIN_VEC_CMPNE.
21304 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
21305 for __builtin_vec_cmpne.
21307 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
21309 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
21310 redundant test and bail out if the type of the new operand is not
21311 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
21313 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
21315 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
21316 (x_ix86_target_flags_explicit): Remove.
21317 * config/i386/i386.c (ix86_function_specific_save): Do not copy
21318 x_ix86_target_flags_explicit.
21319 (ix86_function_specific_restore): Ditto.
21321 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
21322 H.J. Lu <hongjiu.lu@intel.com>
21325 * common/config/i386/i386-common.c
21326 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
21327 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
21328 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
21329 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
21330 (-mgeneral-regs-only): Add new option.
21331 * config/i386/i386.c (ix86_option_override_internal): Don't enable
21332 x87 instructions if only general registers are allowed.
21333 (ix86_target_string): Add ix86_flags argument. Handle additional
21334 flags options through ix86_flags argument. Update all callers.
21335 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
21337 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21339 PR rtl-optimization/66940
21340 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
21341 decrementing desired_val will not overflow before performing these
21344 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
21346 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
21347 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
21348 * config/i386/i386.c (enum ix86_builtins): Add
21349 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
21350 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
21351 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
21352 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
21353 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
21354 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
21355 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
21356 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
21357 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
21358 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
21359 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
21360 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
21361 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
21362 __builtin_ia32_cvtps2dq512_mask.
21363 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
21364 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
21365 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
21366 * config/i386/sse.md
21367 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
21369 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
21370 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
21372 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
21373 (avx512f_vec_pack_sfix_v8df): New define_expand.
21374 (avx512f_roundpd512): Rename to ...
21375 (avx512f_round<castmode>512): ... this. Change iterator.
21376 (avx512f_roundps512_sfix): New define_expand.
21377 (round<mode>2_sfix): Change iterator.
21379 2016-05-25 Nick Clifton <nickc@redhat.com>
21381 * config/msp430/msp430.c (msp430_attr): Produce an error if a
21382 static interrupt handler is detected.
21383 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
21384 default linker script.
21385 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
21386 the low part of a symbolic pointer.
21388 2016-05-25 Richard Biener <rguenther@suse.de>
21390 PR tree-optimization/71261
21391 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
21392 interesting stmt instead of immediate uses when looking
21393 for the use operand to replace.
21395 2016-05-25 Martin Liska <mliska@suse.cz>
21397 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
21399 2016-05-25 Richard Biener <rguenther@suse.de>
21401 PR tree-optimization/71264
21402 * tree-vect-stmts.c (vect_init_vector): Properly deal with
21405 2016-05-25 Martin Liska <mliska@suse.cz>
21407 PR tree-optimization/71239
21408 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
21409 if DECL_SIZE is NULL.
21411 2016-05-25 Richard Biener <rguenther@suse.de>
21413 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
21414 * tree-if-conv.c (pass_data_if_conversion): Use it.
21416 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
21418 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
21419 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
21420 * varpool.c (varpool_node::get_availability): Likewise.
21422 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21424 * config/rs6000/altivec.md (VNEG iterator): New iterator for
21425 VNEGW/VNEGD instructions.
21426 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
21427 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
21428 support for ISA 3.0 VNEGW/VNEGD instructions.
21430 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
21432 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
21433 pointers inside OACC_DATA regions.
21434 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
21435 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
21436 (gimplify_adjust_omp_clauses): Fix typo in comment.
21438 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21440 * config/rs6000/altivec.md (VParity): New mode iterator for vector
21441 parity built-in functions.
21442 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
21444 (p9v_parity<mode>2): Likewise.
21445 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
21447 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
21448 (parity<mode>2): ISA 3.0 expander for vector parity.
21449 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
21451 (BU_P9_64BIT_MISC_0): Likewise.
21452 (BU_P9_MISC_0): Likewise.
21453 (BU_P9V_AV_1): Likewise.
21454 (BU_P9V_AV_2): Likewise.
21455 (BU_P9V_AV_3): Likewise.
21456 (BU_P9V_AV_P): Likewise.
21457 (BU_P9V_VSX_1): Likewise.
21458 (BU_P9V_OVERLOAD_1): Likewise.
21459 (BU_P9V_OVERLOAD_2): Likewise.
21460 (BU_P9V_OVERLOAD_3): Likewise.
21461 (VCTZB): Add vector count trailing zeros support.
21465 (VPRTYBD): Add vector parity support.
21466 (VPRTYBQ): Likewise.
21467 (VPRTYBW): Likewise.
21468 (VCTZ): Add overloaded vector count trailing zeros support.
21469 (VPRTYB): Add overloaded vector parity support.
21470 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21471 overloaded vector count trailing zeros and parity instructions.
21472 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
21473 vector parity support.
21474 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
21475 trailing zeros support.
21476 (vec_cntlz): Likewise.
21477 (vec_vctzb): Likewise.
21478 (vec_vctzd): Likewise.
21479 (vec_vctzh): Likewise.
21480 (vec_vctzw): Likewise.
21481 (vec_vprtyb): Add ISA 3.0 vector parity support.
21482 (vec_vprtybd): Likewise.
21483 (vec_vprtybw): Likewise.
21484 (vec_vprtybq): Likewise.
21485 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
21486 the ISA 3.0 vector count trailing zeros and vector parity built-in
21489 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
21491 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
21492 when there is stmt_to_insert.
21494 2016-05-24 Martin Sebor <msebor@redhat.com>
21497 * tree.h (complete_or_array_type_p): New inline function.
21499 2016-05-24 Jakub Jelinek <jakub@redhat.com>
21501 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
21502 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
21503 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
21505 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
21506 Limit 1st alternative to noavx isa, split 2nd alternative into one
21507 noavx and one avx alternative, use *x and Bm in the former and
21508 x and m in the latter.
21510 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
21511 of sse4 for the first alternative, drop %v from the template
21512 and d operand modifier. Split second alternative into one sse4_noavx
21513 and one avx alternative, use *x instead of *v in the former and v
21514 instead of *v in the latter.
21515 (*sse4_1_extractps): Use noavx isa instead of * for the first
21516 alternative, drop %v from the template. Split second alternative into
21517 one noavx and one avx alternative, use *x instead of *v in the
21518 former and v instead of *v in the latter.
21519 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
21520 with noavx and the last one with avx.
21521 (sse4_1_phminposuw): Guard first alternative with noavx isa,
21522 split the second one into one noavx and one avx alternative,
21523 use *x and Bm in the former and x and m in the latter one.
21524 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
21527 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
21528 first two alternatives to noavx, use *x instead of *v in the second
21529 one, add avx alternative without *.
21530 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
21531 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
21532 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
21534 2016-05-24 Jeff Law <law@redhat.com>
21536 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
21537 New function, extracted from...
21538 (fsm_find_control_statement_thread_paths): Here. Use the new function.
21539 Allow simple copies and constant initializations in the SSA chain.
21541 2016-05-24 Marek Polacek <polacek@redhat.com>
21544 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
21547 2016-05-24 Jakub Jelinek <jakub@redhat.com>
21550 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
21551 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
21552 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
21553 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
21554 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
21556 2016-05-24 Richard Biener <rguenther@suse.de>
21558 PR tree-optimization/71240
21559 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
21562 2016-05-24 Richard Biener <rguenther@suse.de>
21564 PR tree-optimization/71230
21565 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
21567 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
21569 * tree-vectorizer.h (vectorizable_comparison): Delete.
21570 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
21571 PURE_SLP_STMT check.
21572 * tree-vect-stmts.c (vectorizable_call): Likewise.
21573 (vectorizable_simd_clone_call): Likewise.
21574 (vectorizable_conversion): Likewise.
21575 (vectorizable_assignment): Likewise.
21576 (vectorizable_shift): Likewise.
21577 (vectorizable_operation): Likewise.
21578 (vectorizable_load): Likewise.
21579 (vectorizable_condition): Likewise.
21580 (vectorizable_store): Likewise. Assert that we don't have
21582 (vectorizable_comparison): Make static. Remove redundant
21583 PURE_SLP_STMT check.
21584 (vect_transform_stmt): Assert that we always have an slp_node
21587 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21589 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
21590 operands[2] against 1 with comparison against CONST1_RTX.
21591 (<shift>di3_neon): Likewise.
21592 * config/arm/predicates.md (const0_operand): Replace with comparison
21593 against CONST0_RTX.
21595 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21597 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
21598 operands[2] against 1 with comparison against CONST1_RTX.
21599 (ashrdi3): Likewise.
21600 (lshrdi3): Likewise.
21601 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
21603 (ashrsi3): Likewise.
21604 (lshrsi3): Likewise.
21605 (rotrsi3): Likewise.
21606 (define_split above *compareqi_eq0): Likewise.
21607 (define_split above "prologue"): Likewise.
21608 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
21609 * config/arm/predicates.md (shift_operator): Likewise.
21610 (shift_nomul_operator): Likewise.
21611 (sat_shift_operator): Likewise.
21612 (thumb1_cmp_operand): Likewise.
21613 (const_neon_scalar_shift_amount_operand): Replace manual range
21614 check with IN_RANGE.
21615 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
21616 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
21618 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21620 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
21621 with HOST_WIDE_INT_1.
21623 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
21624 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
21625 (arm_canonicalize_comparison): Likewise.
21626 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
21628 (thumb1_size_rtx_costs): Likewise.
21629 (vfp_const_double_index): Replace cast of 1 to unsigned
21630 HOST_WIDE_INT with HOST_WIDE_INT_1U.
21631 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
21633 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
21634 HOST_WIDE_INT with HOST_WIDE_INT_1U.
21635 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
21636 HOST_WIDE_INT with HOST_WIDE_INT_1.
21638 2016-05-24 Marek Polacek <polacek@redhat.com>
21640 * tree-cfg.h (should_remove_lhs_p): New predicate.
21641 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
21642 * gimplify.c (gimplify_modify_expr): Likewise.
21643 * tree-cfg.c (verify_gimple_call): Likewise.
21644 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
21645 * gimple-fold.c: Include "tree-cfg.h".
21646 (gimple_fold_call): Use should_remove_lhs_p.
21648 2016-05-24 Richard Biener <rguenther@suse.de>
21650 PR tree-optimization/71253
21651 * cfganal.h (control_dependences): Make robust against edge
21653 (control_dependences::control_dependences): Remove edge_list argument.
21654 (control_dependences::get_edge): Remove.
21655 (control_dependences::get_edge_src): Add.
21656 (control_dependences::get_edge_dest): Likewise.
21657 (control_dependences::m_el): Make a vector of edge src/dest index.
21658 * cfganal.c (control_dependences::find_control_dependence): Adjust.
21659 (control_dependences::control_dependences): Likewise.
21660 (control_dependences::~control_dependence): Likewise.
21661 (control_dependences::get_edge): Remove.
21662 (control_dependences::get_edge_src): Add.
21663 (control_dependences::get_edge_dest): Likewise.
21664 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
21666 (perform_tree_ssa_dce): Adjust.
21667 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
21669 (pass_loop_distribution::execute): Adjust. Do loop destroying
21670 conditional on changed.
21672 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21675 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
21676 return. Reindent transformation comment and mention the ARM state
21679 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
21681 PR middle-end/71252
21682 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
21683 after build_and_add_sum creates new use stmt.
21685 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
21687 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
21688 load_lanes/grouped_load classification comes first. Don't check
21689 whether the vectorization factor is a multiple of the group size
21692 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
21694 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
21695 GROUP_GAP for single-element interleaving.
21696 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
21699 2016-05-24 Richard Biener <rguenther@suse.de>
21701 PR middle-end/70434
21703 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
21704 bases which are accessed with non-invariant indices.
21705 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
21706 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
21708 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
21710 PR middle-end/71170
21711 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
21712 (add_to_ops_vec): Add stmt_to_insert.
21713 (add_repeat_to_ops_vec): Init stmt_to_insert.
21714 (insert_stmt_before_use): New.
21715 (transform_add_to_multiply): Remove mult_stmt insertion and add it
21717 (get_ops): Init stmt_to_insert.
21718 (maybe_optimize_range_tests): Likewise.
21719 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
21720 (rewrite_expr_tree_parallel): Likewise.
21721 (reassociate_bb): Likewise.
21723 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21726 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
21727 ISA 3.0 xxperm fusion alternative.
21728 (altivec_vperm_v8hiv16qi): Likewise.
21729 (altivec_vperm_<mode>_uns_internal): Likewise.
21730 (vperm_v8hiv4si): Likewise.
21731 (vperm_v16qiv8hi): Likewise.
21733 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21734 Kelvin Nilsen <kelvin@gcc.gnu.org>
21736 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
21737 vpermr/xxpermr on ISA 3.0.
21738 (altivec_expand_vec_perm_le): Likewise.
21739 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
21740 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
21743 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
21745 * config/i386/i386.h (IS_STACK_MODE): Enable for
21746 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
21747 SSE_FLOAT_MODE_P macros.
21748 * config/i386/i386.c (ix86_preferred_reload_class): Use
21749 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
21750 Cleanup regclass processing for CONST_DOUBLE_P.
21751 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
21752 (ix86_rtx_costs): Remove redundant TARGET_80387 check
21753 with IS_STACK_MODE macro.
21754 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
21756 (*movdf_internal): Use IS_STACK_MODE macro.
21757 (*movsf_internal): Ditto.
21759 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
21761 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
21762 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
21764 2016-05-23 Jeff Law <law@redhat.com>
21766 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
21768 (fsm_find_control_statement_thread_paths): Call it.
21770 2016-05-23 Martin Jambor <mjambor@suse.cz>
21773 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
21774 from_global_constant if t is not NULL.
21776 2016-05-23 Marek Polacek <polacek@redhat.com>
21779 * common.opt (Wswitch-unreachable): New option.
21780 * doc/invoke.texi: Document -Wswitch-unreachable.
21781 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
21784 2016-05-23 Bin Cheng <bin.cheng@arm.com>
21786 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
21787 TMR_INDEX is non-NULL.
21789 2016-05-23 Richard Biener <rguenther@suse.de>
21791 PR tree-optimization/71230
21792 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
21793 (try_special_add_to_ops): ... here. Always test for single-use.
21795 2016-05-23 Martin Jambor <mjambor@suse.cz>
21797 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
21798 default block if a PHI node in the original one would be resized.
21800 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21802 PR tree-optimization/58135
21803 * tree-vect-slp.c: When group size is not multiple
21804 of vector size, allow splitting of store group at
21807 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
21809 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
21811 2016-05-22 Jakub Jelinek <jakub@redhat.com>
21813 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
21814 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
21815 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
21818 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
21819 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
21820 v constraint instead of x and vinserti32x4 insn.
21822 * config/i386/sse.md (i128vldq): New mode iterator.
21823 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
21824 avx512dq and avx512vl alternatives.
21826 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
21827 constraint, use maybe_evex prefix instead of vex.
21828 (vec_dupv4sf): Use v constraint instead of x for output
21829 operand except for noavx alternative, use Yv constraint
21830 instead of x for input. Use maybe_evex prefix instead of vex.
21831 (*vec_dupv4si): Likewise.
21832 (*vec_dupv2di): Likewise.
21834 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
21836 PR middle-end/40921
21837 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
21838 (linearize_expr_tree): Call try_special_add_to_ops.
21839 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
21841 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21843 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
21844 to computed stack_usage.
21846 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21849 * config/avr/avr.md (define_expand "mov<mode>"): If the source
21850 operand is subreg (symbol_ref) then move the symbol ref to register.
21852 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
21854 * tree.c (array_at_struct_end_p): Look through MEM_REF.
21856 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
21858 PR middle-end/71179
21859 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
21862 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
21864 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
21865 ranges by calling get_single_symbol and tidy up. Look more closely
21866 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
21868 2016-05-20 Jeff Law <law@redhat.com>
21870 * bitmap.c (bitmap_find_bit): Remove useless test.
21872 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
21874 * function.c (thread_prologue_and_epilogue_insns): Commit the
21875 insertion of the epilogue.
21877 2016-05-20 Martin Jambor <mjambor@suse.cz>
21879 PR tree-optimization/70884
21880 * tree-sra.c (initialize_constant_pool_replacements): Do not check
21881 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
21882 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
21883 of constant pool data as a reason for scalarization.
21885 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
21887 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
21888 for naked functions.
21889 (thumb1_expand_prologue): Likewise.
21891 2016-05-20 Nathan Sidwell <nathan@acm.org>
21893 * config/nvptx/nptx.c (nvptx_option_override): Only set
21894 flag_toplevel_reorder, if not explicitly specified. Set
21895 flag_no_common, unless explicitly specified.
21897 2016-05-20 David Malcolm <dmalcolm@redhat.com>
21899 * calls.c (can_implement_as_sibling_call_p): Mark param
21900 reg_parm_stack_space with ATTRIBUTE_UNUSED.
21902 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
21904 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
21905 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
21906 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
21908 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
21909 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
21910 and CASE_CONST_ANY.
21912 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
21914 * config/nvptx/nvptx.md (sincossf3): New pattern.
21916 2016-05-20 David Malcolm <dmalcolm@redhat.com>
21918 * calls.c (maybe_complain_about_tail_call): New function.
21919 (initialize_argument_information): Call
21920 maybe_complain_about_tail_call when clearing *may_tailcall.
21921 (can_implement_as_sibling_call_p): Call
21922 maybe_complain_about_tail_call when returning false.
21923 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
21924 ensure try_tail_call is set. Call maybe_complain_about_tail_call
21925 if tail-call optimization fails.
21926 * cfgexpand.c (expand_call_stmt): Initialize
21927 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
21928 * gimple-pretty-print.c (dump_gimple_call): Dump
21929 gimple_call_must_tail_p.
21930 * gimple.c (gimple_build_call_from_tree): Call
21931 gimple_call_set_must_tail with the value of
21932 CALL_EXPR_MUST_TAIL_CALL.
21933 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
21934 (gimple_call_set_must_tail): New function.
21935 (gimple_call_must_tail_p): New function.
21936 * print-tree.c (print_node): Update printing of TREE_STATIC
21937 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
21938 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
21939 trailing comment listing applicable flags.
21940 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
21942 2016-05-20 David Malcolm <dmalcolm@redhat.com>
21944 * calls.c (expand_call): Move "Rest of purposes for tail call
21945 optimizations to fail" to...
21946 (can_implement_as_sibling_call_p): ...this new function, and
21947 split into multiple "if" statements.
21949 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
21951 * cfgloop.h (expected_loop_iterations_unbounded,
21952 expected_loop_iterations): Unconstify.
21953 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
21954 profile with known upper bound; return 3 when profile is absent.
21955 (expected_loop_iterations): Update.
21957 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
21959 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
21960 and get_max_loop_iterations_int.
21962 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
21964 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
21965 realistic upper bounds here.
21967 2016-05-20 Jakub Jelinek <jakub@redhat.com>
21970 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
21971 calls if the LHS is variable length or has addressable type.
21972 If targets[0]->decl is a noreturn call with void return type and
21973 zero arguments, adjust fntype and remove lhs in that case.
21975 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
21977 PR tree-optimization/71079
21978 PR tree-optimization/71206
21979 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
21981 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21983 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
21984 (get_vec_alignment_for_array_decl): Likewise.
21985 (get_vec_alignment_for_record_decl): Likewise.
21986 (increase_alignment::execute): Move code to find alignment to
21987 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
21988 (type_align_map): New hash_map.
21990 2016-05-20 Richard Guenther <rguenther@suse.de>
21992 PR tree-optimization/29756
21993 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
21994 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
21995 * fold-const.c (operand_equal_p): Likewise.
21996 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
21997 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
21998 * tree-inline.c (estimate_operator_cost): Likewise.
21999 * tree-pretty-print.c (dump_generic_node): Likewise.
22000 * tree-ssa-operands.c (get_expr_operands): Likewise.
22001 * cfgexpand.c (expand_debug_expr): Likewise.
22002 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
22003 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
22004 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
22005 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
22006 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
22007 (execute_update_addresses_taken): Do it.
22009 2016-05-20 Richard Biener <rguenther@suse.de>
22011 PR tree-optimization/71185
22012 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
22013 register operations.
22015 2016-05-20 Richard Biener <rguenther@suse.de>
22017 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
22018 gimple_seq_add_seq_without_update.
22019 (release_bb_predicate): Assert we have no operands to free.
22020 (if_convertible_loop_p_1): Calculate post dominators later.
22021 Do not free BB predicates here.
22022 (combine_blocks): Do not recompute BB predicates.
22023 (version_loop_for_if_conversion): Save BB predicates around
22026 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22028 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
22029 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
22030 code. Ignore sibcalls on EDGE_IGNORE edges.
22031 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
22032 on edges for sibcalls that run without prologue. The rest of the
22033 function is combined from...
22034 (fix_fake_fallthrough_edge): ... this, and ...
22035 (try_shrink_wrapping): ... a part of this. Remove the bb_with
22036 function argument, make it a local variable.
22038 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
22040 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
22041 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
22042 for 32-bit mode and SEH for 64-bit.
22043 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
22044 TARGET_64BIT_DEFAULT.
22046 2016-05-19 Ryan Burn <contact@rnburn.com>
22048 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
22049 * gengtype.c (open_base_files): Add cilk.h to ifiles.
22051 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
22053 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
22054 force pending loads from memory.
22056 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
22058 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
22059 (UNSPEC_DARN_32): New unspec constant.
22060 (UNSPEC_DARN_RAW): New unspec constant.
22061 (darn_32): New instruction.
22062 (darn_raw): New instruction.
22063 (darn): New instruction.
22064 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
22065 support and documentation for this macro.
22066 (BU_P9_MISC_1): New macro definition.
22067 (BU_P9_64BIT_MISC_0): New macro definition.
22068 (BU_P9_MISC_0): New macro definition.
22069 (darn_32): New builtin definition.
22070 (darn_raw): New builtin definition.
22071 (darn): New builtin definition.
22072 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
22073 RS6000_BUILTIN_0 directives to surround each occurrence of
22074 #include "rs6000-builtin.def".
22075 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
22076 RS6000_BTM_64BIT flags to the returned mask, depending on
22078 (def_builtin): Correct an error in the assignments made to the
22079 debugging variable attr_string.
22080 (rs6000_expand_builtin): Add support for no-operand built-in
22082 (builtin_function_type): Remove fatal_error assertion that is no
22084 (rs6000_common_init_builtins): Add support for no-operand built-in
22086 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
22088 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
22090 (RS6000_BTM_64BIT): New macro definition.
22091 * doc/extend.texi: Document __builtin_darn (void),
22092 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
22095 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
22097 * tree-vect-loop.c (vect_analyze_loop_2): Use also
22098 max_loop_iterations_int.
22100 2016-05-19 Marek Polacek <polacek@redhat.com>
22102 PR tree-optimization/71031
22103 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
22104 condition and adjust the code a bit.
22106 2016-05-19 Martin Liska <mliska@suse.cz>
22108 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
22109 auto_vec instead of vec.
22111 2016-05-19 Martin Liska <mliska@suse.cz>
22113 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
22115 2016-05-19 Martin Liska <mliska@suse.cz>
22117 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
22119 2016-05-19 Martin Liska <mliska@suse.cz>
22121 * ipa-pure-const.c (set_function_state): Remove an existing
22123 (remove_node_data): Do not free it as it's released
22124 in set_function_state.
22126 2016-05-19 Martin Liska <mliska@suse.cz>
22128 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
22131 2016-05-19 Martin Liska <mliska@suse.cz>
22133 * omp-simd-clone.c (simd_clone_adjust): Release vector.
22135 2016-05-19 Martin Liska <mliska@suse.cz>
22137 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
22138 an auto_vec instead of re-creating it.
22140 2016-05-19 Martin Liska <mliska@suse.cz>
22142 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
22143 auto_vec instead of vec.
22145 2016-05-19 Martin Liska <mliska@suse.cz>
22147 * lto-section-in.c (lto_get_section_data): Call
22148 lto_check_version with additional argument.
22149 * lto-streamer.c (lto_check_version): Add new argument.
22150 * lto-streamer.h (lto_check_version): Likewise.
22152 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22154 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
22155 Don't add cost of inner memory when handling sign-extended loads.
22157 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
22159 PR rtl-optimization/71148
22160 * cse.c (cse_main): Free dominance info.
22161 (rest_of_handle_cse): Don't free dominance info.
22162 (rest_of_handle_cse2): Likewise.
22163 (rest_of_handle_cse_after_global_opts): Likewise.
22165 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22168 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
22169 NULL_TREE early if NEON is not available. Remove now redundant check
22170 in ARM_CHECK_BUILTIN_MODE.
22172 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
22175 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
22176 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
22177 * doc/cpp.texi: Document new macros.
22179 2016-05-19 Bin Cheng <bin.cheng@arm.com>
22181 PR tree-optimization/69848
22182 * tree-vect-loop.c (vectorizable_reduction): Don't factor
22183 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
22185 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22187 * function.c (thread_prologue_and_epilogue_insn): Move the
22188 "goto epilogue_done" one block later.
22190 2016-05-19 Richard Biener <rguenther@suse.de>
22192 PR tree-optimization/70729
22193 * passes.def: Move LIM pass before PRE. Remove no longer
22194 required copyprop and move first DCE out of the loop pipeline.
22196 2016-05-18 David Malcolm <dmalcolm@redhat.com>
22199 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
22200 (OBJS-libcommon-target): ...here.
22201 * opts-common.c: Include spellcheck.h.
22202 (cmdline_handle_error): Build a vec of valid options and use it
22203 to suggest provide hints for misspelled arguments.
22205 2016-05-18 Jakub Jelinek <jakub@redhat.com>
22208 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
22209 lhs if it has TREE_ADDRESSABLE type.
22211 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
22214 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
22215 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
22217 2016-05-18 Martin Jambor <mjambor@suse.cz>
22220 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
22221 input for NOP_EXPR pass-through functions.
22222 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
22223 aggregate global constant VAR_DECLs in constant jump functions.
22225 2016-05-18 Martin Jambor <mjambor@suse.cz>
22228 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
22229 from TREE_READONLY parameters.
22231 2016-05-18 Martin Jambor <mjambor@suse.cz>
22234 * cgraph.h (cgraph_indirect_call_info): New field
22235 guaranteed_unmodified.
22236 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
22237 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
22239 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
22240 pass the parameter value to ipa_find_agg_cst_for_param.
22241 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
22242 guaranteed_unmodified, store AA results there instead of bailing out
22244 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
22245 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
22246 (find_constructor_constant_at_offset): New function.
22247 (ipa_find_agg_cst_from_init): Likewise.
22248 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
22249 static initializers of contants, report back through a new paameter
22250 from_global_constant if that was the case.
22251 (try_make_edge_direct_simple_call): Also pass parameter value to
22252 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
22254 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
22255 (ipa_read_indirect_edge_info): Likewise.
22256 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
22257 (ipa_load_from_parm_agg): Likewise.
22259 2016-05-18 Jiong Wang <jiong.wang@arm.com>
22261 PR rtl-optimization/71150
22262 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
22265 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22268 * config/rs6000/constraints.md (wE constraint): New constraint
22269 for a vector constant that can be loaded with XXSPLTIB.
22270 (wM constraint): New constraint for a vector constant of a 1's.
22271 (wS constraint): New constraint for a vector constant that can be
22272 loaded with XXSPLTIB and a vector sign extend instruction.
22273 * config/rs6000/predicates.md (xxspltib_constant_split): New
22274 predicates for wE/wS constraints.
22275 (xxspltib_constant_nosplit): Likewise.
22276 (easy_vector_constant): Add support for constants that can be
22277 loaded via XXSPLTIB.
22278 (all_ones_constant): New predicate for vector constant with all
22280 (splat_input_operand): Add support for ISA 3.0 word splat operations.
22281 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
22282 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
22283 instruction and possibly with a sign extension.
22284 (output_vec_const_move): Add support for XXSPLTIB. If we are
22285 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
22286 instead of XXLXOR/XXLORC.
22287 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
22289 (rs6000_legitimize_reload_address): Likewise.
22290 (rs6000_output_move_128bit): Use output_vec_const_move to emit
22292 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
22293 combine VSX_M and VSX_M2 into one iterator.
22294 (VSX_M2): Likewise.
22295 (VSINT_84): New iterators for loading constants with XXSPLTIB.
22296 (VSINT_842): Likewise.
22297 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
22298 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
22299 XXSPLTIB instruction.
22300 (xxspltib_<mode>_nosplit): Likewise.
22301 (xxspltib_<mode>_split): New insn to load up constants with
22302 XXSPLTIB and a sign extend instruction.
22303 (vsx_mov<mode>): Replace single move that handled all vector types
22304 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
22305 moves (when -mvsx-timode is in effect) into the main vector
22306 moves. Eliminate separate moves for <VSr> <VSa>, where the
22307 preferred register class (<VSr>) is listed first, and the
22308 secondary register class (<VSa>) is listed second with a '?' to
22309 discourage use. Prefer loading 0/-1 in any VSX register for ISA
22310 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
22311 that if the register was involved in a slow operation, the
22312 clear/set operation does not wait for the slow operation to
22313 finish. Adjust the length attributes for 32-bit mode. Use
22314 rs6000_output_move_128bit and drop the use of the string
22315 instructions for 32-bit movti when -mvsx-timode is in effect. Use
22316 spacing so that the alternatives and attributes don't generate
22317 long lines, and put things in columns, so that it is easier to
22318 match up the operands and attributes with the insn alternatives.
22319 (vsx_mov<mode>_64bit): Likewise.
22320 (vsx_mov<mode>_32bit): Likewise.
22321 (vsx_movti_64bit): Fold movti into normal vector moves.
22322 (vsx_movti_32bit): Likewise.
22323 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
22324 splat instructions.
22325 (vsx_splat_v4si_internal): Likewise.
22326 (vsx_splat_v4sf_internal): Likewise.
22327 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
22328 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
22329 extend vector elements.
22330 (vsx_sign_extend_hi_<mode>): Likewise.
22331 (vsx_sign_extend_si_v2di): Likewise.
22332 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
22334 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
22335 constraints. Add trailing period to wL documentation.
22337 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
22339 PR middle-end/71020
22340 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
22341 * tree-dfa.c (replace_abnormal_ssa_names): New function.
22342 * tree-call-cdce.c: Include tree-dfa.h.
22343 (can_guard_call_p): New function, extracted from...
22344 (can_use_internal_fn): ...here.
22345 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
22347 (shrink_wrap_one_built_in_call): Likewise.
22348 (use_internal_fn): Likewise.
22349 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
22350 and return void. Call replace_abnormal_ssa_names.
22351 (pass_call_cdce::execute): Check can_guard_call_p during the
22352 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
22353 will always change something.
22355 2016-05-18 Martin Jambor <mjambor@suse.cz>
22358 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
22359 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
22361 2016-05-18 Martin Jambor <mjambor@suse.cz>
22364 * ipa-inline.h (condition): New field size.
22365 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
22366 for comaprison and store it into the new condition.
22367 (evaluate_conditions_for_known_args): Use condition size to check
22368 access sizes for all but CHANGED conditions.
22369 (unmodified_parm_1): New parameter size_p, store access size into it.
22370 (unmodified_parm): Likewise.
22371 (unmodified_parm_or_parm_agg_item): Likewise.
22372 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
22373 (set_cond_stmt_execution_predicate): Extract access sizes and store
22374 them to conditions.
22375 (set_switch_stmt_execution_predicate): Likewise.
22376 (will_be_nonconstant_expr_predicate): Likewise.
22377 (will_be_nonconstant_predicate): Likewise.
22378 (inline_read_section): Stream condition size.
22379 (inline_write_summary): Likewise.
22381 2016-05-18 Richard Biener <rguenther@suse.de>
22383 * tree-ssa-loop-im.c (determine_max_movement): Properly add
22384 condition cost to PHI cost instead of total_cost.
22386 2016-05-18 Martin Liska <mliska@suse.cz>
22389 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
22392 2016-05-18 Richard Biener <rguenther@suse.de>
22394 * lto-streamer.h (LTO_major_version): Bump to 6.
22396 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
22398 * function.c (make_split_prologue_seq, make_prologue_seq,
22399 make_epilogue_seq): New functions, factored out from...
22400 (thread_prologue_and_epilogue_insns): Here.
22402 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
22404 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
22405 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
22406 of before. Add a comment.
22408 2016-05-18 Bin Cheng <bin.cheng@arm.com>
22410 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
22411 expression pointer, not pointer to the pointer.
22413 2016-05-18 Jakub Jelinek <jakub@redhat.com>
22415 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
22416 (avx2_pbroadcast<mode>): Add another alternative with v instead
22417 of x constraints in it, using <pbroadcast_evex_isa> isa.
22418 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
22420 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
22421 constraint x instead of v in second alternative, add avx512bw
22424 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
22425 constraint x instead of v in second alternative, add avx512bw
22428 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
22429 constraint x instead of v in second alternative, add avx512bw
22432 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
22433 avx512bw alternative.
22435 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
22437 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
22438 array to 128 chars.
22439 (define_insn "*andnottf3"): Ditto.
22440 (define_insn "*<code><mode>3"/any_logic): Ditto.
22441 (define_insn "*<code>tf3"/any_logic): Ditto.
22442 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
22443 operand to block AVX-512VL insn variant emit when it is not enabled.
22445 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
22447 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
22448 constraint fot SF mode.
22450 2016-05-18 Petr Murzin <petr.murzin@intel.com>
22451 Kirill Yukhin <kirill.yukhin@intel.com>
22453 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
22455 (define_insn "rsqrt14<mode>"): Ditto.
22456 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
22457 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
22458 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
22459 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
22460 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
22462 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
22463 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
22464 * config/i386/i386.c (ix86_print_operand): Expand check for size
22465 override codes for Intel syntax.
22467 2016-05-18 Richard Biener <rguenther@suse.de>
22469 PR tree-optimization/71168
22470 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
22471 initialization earlier.
22473 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
22475 * config/aarch64/aarch64-simd.md
22476 (aarch64_reduc_plus_internal<mode>): Rename to...
22477 (reduc_plus_scal): ...This, and remove previous implementation.
22479 2016-05-18 Richard Biener <rguenther@suse.de>
22481 * passes.def: Put late dse and cd_dce in canonical order.
22483 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
22485 * ipa-inline-transform.c (preserve_function_body_p): Look for
22486 first non-thunk clone.
22487 (save_function_body): Save into first non-thunk.
22488 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
22490 (lto_output_node): Inline thunks don't need body in every
22492 * lto-streamer-in.c: Do not fixup thunk clones.
22493 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
22495 * tree-inline.c (copy_bb): Be prepared for target node to be new after
22498 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
22500 PR middle-end/63586
22501 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
22502 (reassociate_bb): Call transform_add_to_multiply.
22504 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
22506 * config/aarch64/aarch64.c (all_extensions): Removed unused
22509 2016-05-17 Nathan Sidwell <nathan@acm.org>
22511 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
22512 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
22514 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
22516 PR tree-optimization/54579
22517 PR middle-end/55299
22518 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
22520 2016-05-17 Marek Polacek <polacek@redhat.com>
22523 * tree-inline.c (expand_call_inline): Call
22524 maybe_remove_unused_call_args.
22526 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
22528 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
22529 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
22530 * doc/md.texi (fmin@var{m}3): Likewise.
22532 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22534 * match.pd (X & C): New transformation.
22536 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22538 * match.pd (~X & Y): New transformation.
22540 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22542 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
22543 information for new SSA_NAME.
22544 (simplify_conversion_using_ranges): Get range through get_range_info
22545 instead of get_value_range.
22547 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22549 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
22550 Remove inline assembly.
22551 (vmvn_s16): Likewise.
22552 (vmvn_s32): Likewise.
22553 (vmvn_u8): Likewise.
22554 (vmvn_u16): Likewise.
22555 (vmvn_u32): Likewise.
22556 (vmvnq_s8): Likewise.
22557 (vmvnq_s16): Likewise.
22558 (vmvnq_s32): Likewise.
22559 (vmvnq_u8): Likewise.
22560 (vmvnq_u16): Likewise.
22561 (vmvnq_u32): Likewise.
22562 (vmvn_p8): Likewise.
22563 (vmvnq_p16): Likewise.
22565 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22567 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
22569 (vmul_n_s16): Likewise.
22570 (vmul_n_s32): Likewise.
22571 (vmul_n_u16): Likewise.
22572 (vmul_n_u32): Likewise.
22573 (vmulq_n_f32): Likewise.
22574 (vmulq_n_f64): Likewise.
22575 (vmulq_n_s16): Likewise.
22576 (vmulq_n_s32): Likewise.
22577 (vmulq_n_u16): Likewise.
22578 (vmulq_n_u32): Likewise.
22580 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22582 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
22583 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
22585 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22587 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
22588 to *aarch64_fma4_elt_from_dup<mode>.
22589 (*aarch64_fnma4_elt_to_128df): Rename to
22590 *aarch64_fnma4_elt_from_dup<mode>.
22591 * config/aarch64/arm_neon.h (vfma_n_f64): New.
22592 (vfms_n_f32): Likewise.
22593 (vfms_n_f64): Likewise.
22594 (vfmsq_n_f32): Likewise.
22595 (vfmsq_n_f64): Likewise.
22597 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
22599 * wide-int.h: Change fixed_wide_int_storage from class to struct.
22601 2016-05-17 Richard Biener <rguenther@suse.de>
22603 PR tree-optimization/71132
22604 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
22605 Only add control dependences for blocks in the loop.
22606 (build_rdg): Adjust.
22607 (generate_code_for_partition): Return whether loop should
22608 be destroyed and delay that.
22609 (distribute_loop): Likewise.
22610 (pass_loop_distribution::execute): Record loops to be destroyed
22611 and perform delayed destroying of loops.
22613 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22616 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
22618 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22620 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
22622 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
22625 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
22626 insertion point for instructions generated by validize_mem.
22628 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22630 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
22633 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22635 * config/aarch64/aarch64.c
22636 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
22637 rather than a macro.
22639 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
22641 * doc/invoke.texi (AArch64 Options): Various updates.
22643 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22645 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
22646 into instrumentation thunks.
22647 * cif-code.def (CIF_CHKP): New.
22649 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
22651 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
22653 2016-05-16 Martin Jambor <mjambor@suse.cz>
22655 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
22656 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
22658 2016-05-16 Marek Polacek <polacek@redhat.com>
22660 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
22663 2016-05-16 Martin Jambor <mjambor@suse.cz>
22666 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
22667 the outlined kernel function.
22669 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
22671 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
22672 (ISA_HAS_DLSA): Ditto.
22674 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
22676 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
22678 2016-05-16 Nathan Sidwell <nathan@acm.org>
22680 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
22681 (nvptx_name_replacement): Restore. Add comment.
22682 (write_fn_proto, write_fn_proto_from_insn,
22683 nvptx_output_call_insn): Restore
22684 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
22686 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
22688 * config/aarch64/aarch64.md
22689 (add<mode>3_compareC_cconly_imm): Remove use of %w.
22690 (add<mode>3_compareC_imm): Likewise.
22691 (<optab>si3_uxtw): Split into register and immediate variants.
22692 (andsi3_compare0_uxtw): Likewise.
22693 (and<mode>3_compare0): Likewise.
22694 (and<mode>3nr_compare0): Likewise.
22695 (stack_protect_test_<mode>): Don't use %x for memory operands.
22697 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
22699 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
22701 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
22703 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
22704 Split integer shifts into shift_reg and bfm.
22705 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
22706 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
22707 (ror<mode>3_insn): Likewise.
22708 (<optab>si3_insn_uxtw): Likewise.
22709 (<optab><mode>3_insn): Change to rotate_imm.
22710 (extr<mode>5_insn_alt): Likewise.
22711 (extrsi5_insn_uxtw): Likewise.
22712 (extrsi5_insn_uxtw_alt): Likewise.
22714 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
22716 * doc/tm.texi: Regenerate.
22717 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
22718 (TARGET_INVALID_RETURN_TYPE): Remove.
22719 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
22720 TARGET_INVALID_RETURN_TYPE.
22721 * target.def (invalid_parameter_type): Remove.
22722 (invalid_return_type): Remove.
22724 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22726 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
22727 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
22729 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
22731 (preserve_function_body_p): No need to preserve function body
22732 * cif-codes.def (CIF_THUNK): Remove.
22733 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
22735 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22737 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
22739 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22741 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
22744 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22746 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
22747 (inline_small_functions): Do not look for function symbol when
22750 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22752 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
22755 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
22756 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22757 Jiong Wang <jiong.wang@arm.com>
22759 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
22760 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
22761 Define __ARM_FP16_ARGS when appropriate.
22762 * config/arm/arm.c (arm_invalid_parameter_type): Remove
22764 (arm_invalid_return_type): Likewise.
22765 (TARGET_INVALID_PARAMETER_TYPE): Remove.
22766 (TARGET_INVALID_RETURN_TYPE): Remove.
22767 (aapcs_vfp_sub_candidate): Allow HFmode.
22768 (aapcs_vfp_allocate): Add comment. Support HFmode.
22769 (aapcs_vfp_allocate_return_reg): Likewise.
22770 (struct aapcs_cp_arg_layout): Slightly reword comments for
22771 is_return_candidate and allocate_return_reg.
22772 (output_mov_vfp): Update assert.
22773 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
22775 (arm_invalid_parameter_type): Remove.
22776 (amr_invalid_return_type): Remove.
22777 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
22778 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
22779 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
22781 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
22783 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
22784 * config/aarch64/arch64-protos.h
22785 (aarch64_legitimize_reload_address): Remove.
22786 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
22789 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
22791 * configure.ac: Add ACX_NONCANONICAL_HOST.
22792 * configure: Regenerate.
22793 * Makefile.in: Set host_noncanonical.
22795 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
22798 * config/i386/i386.md (*movtf_internal): Before register allocation,
22799 do not allow FP constants for CM_MEDIUM memory model, allow only
22800 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
22801 (*movxf_internal): Ditto.
22802 (*movdf_internal): Ditto.
22803 (*movsf_internal): Ditto.
22805 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22807 PR rtl-optimization/67483
22808 * combine.c (make_compound_operation): Don't call extract_left_shift
22809 with negative shift amounts.
22811 2016-05-13 Jakub Jelinek <jakub@redhat.com>
22814 * fold-const.c (fold_checksum_tree): Allow modification
22815 of TYPE_ALIAS_SET during folding.
22817 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
22818 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
22819 (ix86_split_to_parts): Likewise. Fix up formatting.
22821 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
22823 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
22824 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
22827 2016-05-13 Nathan Sidwell <nathan@acm.org>
22829 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
22830 (nvptx_name_replacement): Delete.
22831 (write_fn_proto, write_fn_proto_from_insn,
22832 nvptx_output_call_insn): Remove nvptx_name_replacement call.
22833 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
22834 * langhooks.c (add_builtin_funcction_common): Call
22835 targetm.mangle_decl_assembler_name.
22837 * config/nvptx/nvptx.c (write_fn_proto): Handle
22838 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
22840 2016-05-13 Martin Liska <mliska@suse.cz>
22842 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
22843 and PRIu64 in printf format.
22845 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22847 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
22850 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22852 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
22853 Change --param max-completely-peeled-times to
22854 --param max-completely-peel-times in dump file printing.
22856 2016-05-13 Richard Biener <rguenther@suse.de>
22858 PR tree-optimization/42587
22859 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
22860 (find_bswap_or_nop_1): Likewise.
22861 (bswap_replace): Likewise.
22863 2016-05-13 Martin Liska <mliska@suse.cz>
22865 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
22866 Initialize a variable with default value.
22868 2016-05-13 Martin Liska <mliska@suse.cz>
22870 * doc/invoke.texi: Enhance explanation of error recovery
22873 2016-05-13 Martin Liska <mliska@suse.cz>
22875 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
22876 (struct cost_pair): Change inv_expr_id (int) to inv_expr
22877 (iv_inv_expr_ent *).
22878 (struct iv_inv_expr_ent): Comment struct fields.
22879 (sort_iv_inv_expr_ent): New function.
22880 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
22881 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
22882 a hash_map between iv_inv_expr_ent and number of usages.
22883 (niter_for_exit): Fix coding style.
22884 (tree_ssa_iv_optimize_init): Use renamed variable.
22885 (determine_base_object): Fix coding style.
22886 (alloc_iv): Likewise.
22887 (find_interesting_uses_outside): Likewise.
22888 (add_candidate_1): Likewise.
22889 (add_standard_iv_candidates): Likewise.
22890 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
22891 (prepare_decl_rtl): Fix coding style.
22892 (get_address_cost): Likewise.
22893 (get_shiftadd_cost): Likewise.
22894 (force_expr_to_var_cost): Likewise.
22895 (compare_aff_trees): Likewise.
22896 (get_expr_id): Restructure the function.
22897 (get_loop_invariant_expr_id): Renamed to
22898 get_loop_invariant_expr.
22899 (get_computation_cost_at): Replace usage of inv_expr_id with
22901 (get_computation_cost): Likewise.
22902 (determine_group_iv_cost_generic): Likewise.
22903 (determine_group_iv_cost_address): Likewise.
22904 (iv_period): Fix coding style.
22905 (iv_elimination_compare_lt): Likewise.
22906 (may_eliminate_iv): Likewise.
22907 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
22909 (determine_group_iv_costs): Dump invariant expressions.
22910 (iv_ca_recount_cost): Use the newly added hash_map.
22911 (iv_ca_set_remove_invariants): Fix coding style.
22912 (iv_ca_set_add_invariants): Fix coding style.
22913 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
22915 (iv_ca_set_cp): Likewise.
22916 (iv_ca_new): Initialize the newly added hash_map and remove
22917 initialization of fields.
22918 (iv_ca_free): Delete the hash_map.
22919 (iv_ca_dump): Dump invariant expressions.
22920 (iv_ca_extend): Fix coding style.
22921 (try_add_cand_for): Likewise.
22922 (create_new_ivs): Dump information about # of avg iterations and
22923 # of used invariant expressions.
22924 (rewrite_use_compare): Fix coding style.
22925 (free_loop_data): Set default value for max_inv_expr_id.
22927 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
22929 * cse.c (rest_of_handle_cse): Use cleanup_cfg
22930 returned value cse_cfg_altered computation.
22931 (rest_of_handle_cse2): Likewise.
22932 (rest_of_handle_cse_after_global_opts): Likewise.
22934 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22937 * config/arm/arm.c (arm32_output_mi_thunk): New.
22938 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
22939 to split Thumb1 vs TARGET_32BIT functionality.
22940 (arm_thumb1_mi_thunk): New.
22942 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22944 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
22947 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22950 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
22952 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
22954 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
22955 (expand_builtin_trap): Emit a regular call.
22956 (set_builtin_user_assembler_name): Remove obsolete cases.
22957 * dse.c (scan_insn): Adjust.
22958 * except.c: Include calls.h.
22959 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
22960 emit a regular call to setjmp.
22961 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
22962 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
22963 (emit_block_move_via_libcall): Delete.
22964 (block_move_fn): Delete.
22965 (init_block_move_fn): Likewise.
22966 (emit_block_move_libcall_fn): Likewise.
22967 (emit_block_op_via_libcall): New function.
22968 (set_storage_via_libcall): Tidy up and use memset builtin.
22969 (block_clear_fn): Delete.
22970 (init_block_clear_fn): Likewise.
22971 (clear_storage_libcall_fn): Likewise.
22972 (expand_assignment): Call emit_block_move_via_libcall.
22973 Do not include gt-expr.h.
22974 * expr.h (emit_block_op_via_libcall): Declare.
22975 (emit_block_copy_via_libcall): New inline function.
22976 (emit_block_move_via_libcall): Likewise.
22977 (emit_block_comp_via_libcall): Likewise.
22978 (block_clear_fn): Delete.
22979 (init_block_move_fn): Likewise.
22980 (init_block_clear_fn): Likewise.
22981 (emit_block_move_via_libcall): Likewise.
22982 (set_storage_via_libcall): Add default parameter value.
22983 * libfuncs.h (enum libfunc_index): Remove obsolete values.
22984 (abort_libfunc): Delete.
22985 (memcpy_libfunc): Likewise.
22986 (memmove_libfunc): Likewise.
22987 (memcmp_libfunc): Likewise.
22988 (memset_libfunc): Likewise.
22989 (setbits_libfunc): Likewise.
22990 (setjmp_libfunc): Likewise.
22991 (longjmp_libfunc): Likewise.
22992 (profile_function_entry_libfunc): Likewise.
22993 (profile_function_exit_libfunc): Likewise.
22994 (gcov_flush_libfunc): Likewise.
22995 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
22996 and DECL_VISIBILITY on the declaration.
22997 (init_optabs): Do not initialize obsolete libfuncs.
22998 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
22999 * tree-core.h (ECF_RET1): Define.
23000 (ECF_TM_PURE): Adjust.
23001 (ECF_TM_BUILTIN): Likewise.
23002 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
23003 (build_common_builtin_nodes): Initialize abort builtin.
23004 Add ECF_RET1 on memcpy, memmove and memset builtins.
23005 Pass final flags for alloca and alloca_with_align builtins.
23006 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
23008 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
23009 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
23010 set_storage_via_libcall and call emit_block_copy_via_libcall.
23012 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
23014 * config/i386/i386.md (*call_got_x32): Change operand 0 to
23015 DImode before it is passed to ix86_output_call_operand.
23016 (*call_value_got_x32): Ditto for operand 1.
23018 2016-05-12 Jiong Wang <jiong.wang@arm.com>
23020 PR rtl-optimization/70904
23021 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
23022 reload for wide mode.
23024 2016-05-12 Marek Polacek <polacek@redhat.com>
23027 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
23028 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
23029 * langhooks.h (incomplete_type_error): Likewise.
23030 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
23031 parameter, pass it down to incomplete_type_error.
23032 * tree.h (size_in_bytes): New inline overload.
23033 (size_in_bytes_loc): Renamed from size_in_bytes.
23035 2016-05-12 Richard Biener <rguenther@suse.de>
23037 PR tree-optimization/71059
23038 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
23039 nary before looking up or entering the expression into the VN
23041 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
23042 Make sure to re-use NARYs without result as inserted by
23045 2016-05-12 Richard Biener <rguenther@suse.de>
23047 PR tree-optimization/71062
23048 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
23050 * tree-ssa-structalias.c (set_uids_in_ptset): Set
23051 vars_contains_restrict if the var is a restrict tag.
23052 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
23053 do not disambiguate pointers against it.
23054 (dump_points_to_solution): Re-structure and adjust for new
23055 vars_contains_restrict flag.
23056 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
23058 2016-05-12 Martin Liska <mliska@suse.cz>
23060 * doc/invoke.texi: Explain connection between
23061 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
23063 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
23065 PR tree-optimization/71006
23066 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
23067 consider COND_EXPR as a mask producer.
23069 2016-05-12 Marek Polacek <polacek@redhat.com>
23072 * opts.c (common_handle_option): Detect missing argument for --help^.
23074 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23077 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
23078 when popping the PC and within an interrupt handler routine.
23079 Add missing tab to output of "ldmfd".
23080 (output_return_instruction): Output LDMFD with SP update rather
23081 than POP when returning from interrupt handler.
23083 2016-05-12 Jakub Jelinek <jakub@redhat.com>
23085 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
23086 TARGET_64BIT && TARGET_AVX512DQ.
23087 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
23088 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
23089 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
23090 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
23091 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
23092 (*vec_extractv4si_zext): Add avx512dq alternative.
23093 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
23094 use v instead of x constraint in other alternatives where possible.
23096 * config/i386/sse.md (sse2_loadld): Use v instead of x
23097 constraint in alternatives 0,1,4.
23099 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
23100 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
23101 v constraints instead of x and <pinsr_evex_isa> isa attribute.
23104 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
23105 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
23106 is not emitted unless TARGET_AVX512BW.
23107 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
23108 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
23109 for the result operand.
23111 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
23112 constraint instead of x in avx alternatives. Use maybe_evex instead
23115 * config/i386/constraints.md (Yv): New constraint.
23116 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
23117 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
23118 * config/i386/i386.md (avx512fvecmode): New mode attr.
23119 (*pushtf): Use v constraint instead of x.
23120 (*movtf_internal): Likewise. For TARGET_AVX512VL and
23121 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
23122 (*absneg<mode>2): Use Yv constraint instead of x constraint.
23123 (*absnegtf2_sse): Likewise.
23124 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
23125 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
23126 avx512f alternatives.
23127 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
23129 2016-05-12 Richard Biener <rguenther@suse.de>
23131 PR tree-optimization/71060
23132 * tree-data-ref.c (initialize_data_dependence_relation): Do not
23133 require exact match of DR_BASE_OBJECT but only matching address and
23136 2016-05-12 Richard Biener <rguenther@suse.de>
23138 PR tree-optimization/70986
23139 * cfganal.c: Include cfgloop.h.
23140 (dfs_find_deadend): Prefer to take edges exiting loops.
23142 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23144 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
23145 compile and run time.
23147 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
23150 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
23152 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
23154 * config/i386/i386.c (legitimize_pic_address): Use
23155 copy_to_suggested_reg instead of gen_movsi.
23157 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23159 * config/rs6000/predicates.md (quad_memory_operand): Move most of
23160 the code into quad_address_p and call it to share code with
23161 vsx_quad_dform_memory_operand.
23162 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
23164 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
23165 bit instead of being a separate word. Split -mpower9-dform into
23166 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
23167 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
23168 for the register class supporting 128-bit quad word memory offsets.
23169 (mode_supports_vsx_dform_quad): Helper function to return if the
23170 register class uses quad word memory offsets.
23171 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
23172 (rs6000_debug_reg_global): Always print if we are using LRA or not.
23173 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
23174 instructions are enabled, set up the appropriate addr_masks for
23176 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
23177 -mpower9-dform-scalar, instead of -mpower9-dform.
23178 (rs6000_option_override_internal): Split -mpower9-dform into two
23179 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
23180 -mpower9-dform switch sets or clears both. If we are not using
23181 the LRA register allocator, do not enable -mpower9-dform-vector by
23182 default. If we are using LRA, enable -mpower9-dform-vector and
23183 -mvsx-timode if it is appropriate. Issue a warning if either
23184 -mpower9-dform-vector or -mvsx-timode are explicitly used without
23186 (quad_address_offset_p): New helper function to return if the
23187 offset is legal for quad word memory instructions.
23188 (quad_address_p): New function to determin if GPR or vector
23189 register quad word memory addresses are legal.
23190 (mem_operand_gpr): Validate quad word address offsets.
23191 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
23192 d-form (register + offset) instructions.
23193 (offsettable_ok_by_alignment): Likewise.
23194 (rs6000_legitimate_offset_address_p): Likewise.
23195 (legitimate_lo_sum_address_p): Likewise.
23196 (rs6000_legitimize_address): Likewise.
23197 (rs6000_legitimize_reload_address): Add more debug statements for
23199 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
23200 d-form instructions.
23201 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
23202 d-form instructions. Distinguish different cases in debug
23203 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
23204 d-form instructions.
23205 (rs6000_preferred_reload_class): Likewise.
23206 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
23207 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
23208 of the ISA 2.06 indexed memory instructions.
23209 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
23210 use them to save/restore the saved vector registers instead of
23211 using Altivec instructions.
23212 (rs6000_emit_epilogue): Likewise.
23213 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
23214 (rs6000_opt_masks): Split -mpower9-dform into
23215 -mpower9-dform-scalar and -mpower9-dform-vector.
23216 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
23218 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
23219 ISA 3.0 vector indexed memory instructions, and fold the code into
23220 the normal mov<mode> patterns.
23221 (p9_vecstore_<mode>): Likewise.
23222 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
23224 (vsx_movti_64bit): Likewise.
23225 (vsx_movti_32bit): Likewise.
23226 * config/rs6000/constraints.md (wO constraint): New constraint for
23227 ISA 3.0 vector d-form support.
23228 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
23229 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
23230 include -mpower9-dform-vector until we switch over to LRA.
23231 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
23232 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
23233 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
23234 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
23235 for -mpower9-dform and -mlra.
23236 * doc/md.texi (wO constraint): Document wO constraint.
23238 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
23240 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
23241 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
23242 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
23243 Move handling of non-insn arguments inline into the sole user:
23244 (output_trans_func): ...here.
23245 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
23246 in emitted function prototype.
23247 (output_internal_insn_latency_func): Ditto. Simplify.
23248 (output_internal_maximal_insn_latency_func): Ditto. Delete
23249 always-unused argument.
23250 (output_insn_latency_func): Ditto.
23251 (output_maximal_insn_latency_func): Ditto.
23253 2016-05-11 Richard Biener <rguenther@suse.de>
23255 PR tree-optimization/71055
23256 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
23257 sth with precision not equal to access size verify we don't chop
23260 2016-05-11 Richard Biener <rguenther@suse.de>
23263 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
23264 (dwarf2out_finish): Move retry_incomplete_types call ...
23265 (dwarf2out_early_finish): ... here.
23267 2016-05-11 Richard Biener <rguenther@suse.de>
23269 PR middle-end/71002
23270 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
23271 if the langhook insists on it.
23272 * fold-const.c (make_bit_field_ref): Add arg for the original
23273 reference and preserve its alias-set.
23274 (decode_field_reference): Take exp by reference and adjust it
23275 to the original memory reference.
23276 (optimize_bit_field_compare): Adjust callers.
23277 (fold_truth_andor_1): Likewise.
23278 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
23280 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
23282 PR middle-end/70807
23283 * cfgrtl.h (delete_insn_and_edges): Now return bool.
23284 * cfgrtl.c (delete_insn_and_edges): Likewise.
23285 * config/i386/i386.c (convert_scalars_to_vector): Remove
23287 * cse.c (cse_insn): Compute cse_cfg_altered.
23288 (delete_trivially_dead_insns): Likewise.
23289 (cse_cc_succs): Likewise.
23290 (rest_of_handle_cse): Free dominance info if required.
23291 (rest_of_handle_cse2): Likewise.
23292 (rest_of_handle_cse_after_global_opts): Likewise.
23294 2016-05-11 Alan Modra <amodra@gmail.com>
23296 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
23297 abi_v4_pass_in_fpr): New functions.
23298 (rs6000_function_arg_boundary): Exclude complex IBM long double
23299 from 64-bit alignment when ABI_V4.
23300 (rs6000_function_arg, rs6000_function_arg_advance_1,
23301 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
23303 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
23305 PR rtl-optimization/71028
23306 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
23307 jump with just a return in the fallthrough block if the branch
23308 block contains just a return as well.
23310 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
23312 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
23313 * match.pd ((X & Y) ^ Y): ... this.
23314 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
23315 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
23317 2016-05-10 David Malcolm <dmalcolm@redhat.com>
23319 * read-md.c (require_char_ws): New function.
23320 (read_string): Simplify using require_char_ws.
23321 (handle_constants): Likewise.
23322 (handle_enum): Likewise.
23323 (handle_file): Likewise.
23324 * read-md.h (require_char_ws): New declaration.
23325 * read-rtl.c (read_conditions): Simplify using require_char_ws.
23326 (read_mapping): Likewise.
23327 (read_rtx_code): Likewise.
23328 (read_nested_rtx): Likewise.
23330 2016-05-10 James Norris <jnorris@codesourcery.com>
23332 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
23333 if offloading is enabled and -fopenacc or -fopenmp is specified.
23334 (CRTOFFLOADEND): Likewise.
23335 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
23336 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
23338 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
23340 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
23341 gotoff_operand code paths. Use copy_to_suggested_regs and
23342 expand_simple_binop where appropriate. Cleanup.
23344 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23347 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
23349 (dimode_scalar_chain::vector_const_cost): New.
23350 (dimode_scalar_chain::compute_convert_gain): Handle constants.
23351 (dimode_scalar_chain::convert_op): Likewise.
23352 (dimode_scalar_chain::convert_insn): Likewise.
23354 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
23356 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
23357 unary operation, not a binary one.
23359 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23361 PR middle-end/70877
23362 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
23363 calls with type casted fndecl.
23365 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23367 PR tree-optimization/70786
23368 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
23369 * calls.c (initialize_argument_information): Bind bounds
23370 with corresponding args passed by reference.
23372 2016-05-10 Jakub Jelinek <jakub@redhat.com>
23375 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
23376 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
23377 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
23380 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23383 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
23384 code for a zero scale factor.
23385 (vsx_xvcvdpuxds_scale): Likewise.
23387 2016-05-10 David Malcolm <dmalcolm@redhat.com>
23389 * diagnostic-show-locus.c (layout::layout): Call show_ruler
23390 if show_ruler_p was set on the context.
23391 (layout::show_ruler): New method.
23392 * diagnostic.h (struct diagnostic_context): Add field
23395 2016-05-10 Richard Biener <rguenther@suse.de>
23397 PR tree-optimization/71039
23398 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
23399 (chk_uses): New function.
23400 (propagate_with_phi): Verify we can safely replicate the lhs of an
23401 aggregate assignment on all incoming edges.
23403 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
23405 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
23407 (rx_atomic_sequence): New class.
23408 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
23409 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
23411 (rx_atomic_sequence::rx_atomic_sequence,
23412 rx_atomic_sequence::~rx_atomic_sequence): New functions.
23413 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
23414 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
23415 CTRLREG_INTB): New constants.
23416 (FETCHOP): New code iterator.
23417 (fethcop_name, fetchop_name2): New iterator code attributes.
23418 (QIHI): New mode iterator.
23419 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
23420 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
23421 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
23423 2016-05-10 Martin Liska <mliska@suse.cz>
23425 * tree-inline.c (remap_dependence_clique): Do not remap
23426 debugging statements.
23428 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23430 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
23431 ("*fixuns_truncdfdi2_z13")
23432 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
23433 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
23434 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
23436 2016-05-10 Richard Biener <rguenther@suse.de>
23438 PR tree-optimization/70497
23439 PR tree-optimization/28367
23440 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
23442 (visit_reference_op_load): ... here.
23443 (vn_reference_lookup_3): Use it to handle subreg-like accesses
23444 with simplified BIT_FIELD_REFs.
23445 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
23446 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
23449 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
23451 * dwarf2out.c (add_abstract_origin_attribute): Adjust
23452 documentation comment. For BLOCK nodes, add a
23453 DW_AT_abstract_origin attribute that points to the DIE generated
23454 for the origin BLOCK.
23455 (gen_lexical_block_die): Call add_abstract_origin_attribute for
23456 blocks from inlined functions.
23458 2016-05-10 Alan Modra <amodra@gmail.com>
23461 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
23462 regrename modifying insns saving lr before __morestack call.
23463 * config/rs6000/rs6000.md (split_stack_return): Similarly for
23464 insns restoring lr after __morestack call.
23466 2016-05-09 Jakub Jelinek <jakub@redhat.com>
23468 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
23469 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
23471 * config/i386/sse.md (vec_interleave_high<mode>,
23472 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
23473 <avx512>_vpermt2var<mode>3_maskz): Likewise.
23475 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
23477 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
23478 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
23479 parallel reassociation for power8 and forward.
23481 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
23483 * config/i386/i386.md (absneg splitters with general regs): Use
23484 general_reg_operand predicate.
23485 (btsq peephole2): Use x86_64_immediate_operand to check if new
23486 value is suitable for immediate operand. Generate emitted insn
23487 using RTL expressions.
23488 (btcq peephole2): Ditto.
23489 (btrq peephole2): Ditto. Generate correct immediate operand
23492 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
23494 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
23497 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
23499 * tree-affine.c (wide_int_constant_multiple_p): Add missing
23500 pointer dereference.
23502 2016-05-09 Richard Biener <rguenther@suse.de>
23504 PR tree-optimization/70985
23505 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
23506 op0 isn't a gimple register.
23508 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
23510 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
23511 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
23512 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
23513 (i6400_fpu_mult): New cpu units.
23514 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
23515 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
23516 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
23517 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
23518 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
23519 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
23520 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
23521 (i6400_msa_long_float4, i6400_msa_long_float5)
23522 (i6400_msa_long_float8, i6400_msa_fdiv_df)
23523 (i6400_msa_fdiv_sf): New reservations.
23524 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
23525 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
23526 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
23527 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
23528 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
23529 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
23530 (msa_short_cmp, msa_short_float2, msa_short_logic3)
23531 (msa_short_store4, msa_long_load, msa_short_store)
23532 (msa_long_logic, msa_long_float2, msa_long_float4)
23533 (msa_long_float5, msa_long_float8, msa_long_mult)
23534 (msa_long_fdiv, msa_long_div): New reservations.
23536 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
23537 Sameera Deshpande <sameera.deshpande@imgtec.com>
23538 Matthew Fortune <matthew.fortune@imgtec.com>
23539 Graham Stott <graham.stott@imgtec.com>
23540 Chao-ying Fu <chao-ying.fu@imgtec.com>
23542 * config.gcc: Add MSA header file for mips*-*-* target.
23543 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
23544 (Ubv8i, Urv8): New constraints.
23545 * config/mips/mips-ftypes.def: Add function types for MSA
23547 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
23548 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
23549 * config/mips/mips-msa.md: New file.
23550 * config/mips/mips-protos.h
23551 (mips_split_128bit_const_insns): New prototype.
23552 (mips_msa_idiv_insns): Likewise.
23553 (mips_split_128bit_move): Likewise.
23554 (mips_split_128bit_move_p): Likewise.
23555 (mips_split_msa_copy_d): Likewise.
23556 (mips_split_msa_insert_d): Likewise.
23557 (mips_split_msa_fill_d): Likewise.
23558 (mips_expand_msa_branch): Likewise.
23559 (mips_const_vector_same_val_p): Likewise.
23560 (mips_const_vector_same_bytes_p): Likewise.
23561 (mips_const_vector_same_int_p): Likewise.
23562 (mips_const_vector_shuffle_set_p): Likewise.
23563 (mips_const_vector_bitimm_set_p): Likewise.
23564 (mips_const_vector_bitimm_clr_p): Likewise.
23565 (mips_msa_vec_parallel_const_half): Likewise.
23566 (mips_msa_output_division): Likewise.
23567 (mips_ldst_scaled_shift): Likewise.
23568 (mips_expand_vec_cond_expr): Likewise.
23569 * config/mips/mips.c (enum mips_builtin_type): Add
23570 MIPS_BUILTIN_MSA_TEST_BRANCH.
23571 (mips_gen_const_int_vector_shuffle): New prototype.
23572 (mips_const_vector_bitimm_set_p): New function.
23573 (mips_const_vector_bitimm_clr_p): Likewise.
23574 (mips_const_vector_same_val_p): Likewise.
23575 (mips_const_vector_same_bytes_p): Likewise.
23576 (mips_const_vector_same_int_p): Likewise.
23577 (mips_const_vector_shuffle_set_p): Likewise.
23578 (mips_symbol_insns): Forbid loading symbols via immediate for
23580 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
23582 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
23584 (mips_lx_address_p): Add support load indexed address for MSA.
23585 (mips_address_insns): Add calculation of instructions needed for
23586 stores and loads for MSA.
23587 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
23588 CONST_VECTOR for MSA and let it fall through.
23589 (mips_ldst_scaled_shift): New function.
23590 (mips_subword_at_byte): Likewise.
23591 (mips_msa_idiv_insns): Likewise.
23592 (mips_legitimize_move): Validate MSA moves.
23593 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
23594 calculation of costs for MSA division.
23595 (mips_split_move_p): Check if MSA moves need splitting.
23596 (mips_split_move): Split MSA moves if necessary.
23597 (mips_split_128bit_move_p): New function.
23598 (mips_split_128bit_move): Likewise.
23599 (mips_split_msa_copy_d): Likewise.
23600 (mips_split_msa_insert_d): Likewise.
23601 (mips_split_msa_fill_d): Likewise.
23602 (mips_output_move): Handle MSA moves.
23603 (mips_expand_msa_branch): New function.
23604 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
23605 Reinstate 'y' modifier.
23606 (mips_file_start): Add MSA .gnu_attribute.
23607 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
23609 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
23610 (mips_class_max_nregs): Add register size for MSA supported mode.
23611 (mips_cannot_change_mode_class): Allow conversion between MSA
23612 vector modes and TImode.
23613 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
23615 (mips_secondary_reload_class): Force MSA loads/stores via memory.
23616 (mips_preferred_simd_mode): Add preffered modes for MSA.
23617 (mips_vector_mode_supported_p): Add MSA supported modes.
23618 (mips_autovectorize_vector_sizes): New function.
23619 (mips_msa_output_division): Likewise.
23620 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
23621 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
23622 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
23623 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
23624 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
23625 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
23626 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
23627 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
23628 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
23629 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
23630 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
23631 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
23632 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
23633 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
23634 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
23635 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
23636 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
23637 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
23638 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
23639 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
23640 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
23641 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
23642 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
23643 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
23644 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
23645 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
23646 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
23647 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
23648 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
23649 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
23650 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
23651 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
23652 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
23653 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
23654 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
23655 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
23656 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
23657 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
23658 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
23659 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
23660 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
23661 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
23662 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
23663 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
23664 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
23665 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
23666 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
23667 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
23668 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
23669 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
23670 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
23671 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
23672 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
23673 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
23674 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
23675 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
23676 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
23677 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
23678 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
23679 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
23680 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
23681 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
23682 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
23683 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
23684 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
23685 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
23686 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
23687 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
23688 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
23689 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
23690 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
23691 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
23692 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
23693 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
23694 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
23695 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
23696 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
23697 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
23698 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
23699 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
23700 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
23701 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
23702 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
23703 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
23704 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
23705 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
23706 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
23707 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
23708 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
23709 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
23710 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
23711 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
23712 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
23713 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
23714 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
23715 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
23716 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
23717 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
23718 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
23719 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
23720 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
23721 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
23722 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
23723 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
23724 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
23725 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
23726 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
23727 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
23728 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
23729 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
23730 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
23731 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
23732 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
23733 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
23734 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
23735 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
23736 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
23737 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
23738 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
23739 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
23740 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
23741 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
23742 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
23743 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
23744 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
23745 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
23746 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
23747 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
23748 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
23749 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
23750 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
23751 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
23752 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
23753 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
23754 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
23755 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
23756 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
23757 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
23758 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
23759 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
23760 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
23761 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
23762 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
23763 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
23764 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
23765 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
23766 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
23767 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
23768 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
23769 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
23770 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
23772 (mips_get_builtin_decl_index): New array.
23773 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
23774 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
23775 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
23776 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
23777 (mips_init_builtins): Initialize mips_get_builtin_decl_index
23779 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
23781 (mips_expand_builtin_insn): Prepare operands for
23782 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
23783 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
23784 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
23785 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
23786 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
23787 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
23788 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
23789 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
23790 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
23791 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
23792 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
23793 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
23794 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
23795 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
23796 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
23797 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
23798 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
23799 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
23800 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
23801 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
23802 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
23803 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
23804 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
23805 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
23806 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
23807 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
23808 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
23809 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
23810 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
23811 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
23812 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
23813 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
23814 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
23815 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
23816 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
23817 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
23818 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
23819 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
23820 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
23821 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
23822 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
23823 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
23824 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
23825 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
23826 These are set implicitly and an error is reported if overridden.
23827 (mips_expand_builtin_msa_test_branch): New function.
23828 (mips_expand_msa_shuffle): Likewise.
23829 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
23830 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
23831 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
23832 (mips_expand_vec_unpack): Add support for MSA.
23833 (mips_expand_vector_init): Likewise.
23834 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
23835 instead of const0_rtx.
23836 (mips_msa_vec_parallel_const_half): New function.
23837 (mips_gen_const_int_vector): Likewise.
23838 (mips_gen_const_int_vector_shuffle): Likewise.
23839 (mips_expand_msa_cmp): Likewise.
23840 (mips_expand_vec_cond_expr): Likewise.
23841 * config/mips/mips.h
23842 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
23843 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
23845 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
23846 (ISA_HAS_MSA): New macro.
23847 (UNITS_PER_MSA_REG): Likewise.
23848 (BITS_PER_MSA_REG): Likewise.
23849 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
23850 (MSA_REG_FIRST): New macro.
23851 (MSA_REG_LAST): Likewise.
23852 (MSA_REG_NUM): Likewise.
23853 (MSA_REG_P): Likewise.
23854 (MSA_REG_RTX_P): Likewise.
23855 (MSA_SUPPORTED_MODE_P): Likewise.
23856 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
23857 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
23858 * config/mips/mips.md: Include mips-msa.md.
23859 (alu_type): Add simd_add.
23860 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
23861 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
23862 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
23863 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
23864 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
23865 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
23866 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
23867 simd_move, simd_load, simd_store. Choose "multi" for moves
23869 (qword_mode): New attribute.
23870 (insn_count): Add instruction count for quad moves.
23871 Increase the count for MIPS SIMD division.
23872 (UNITMODE): Add UNITMODEs for vector types.
23873 (addsub): New code iterator.
23874 * config/mips/mips.opt (mmsa): New option.
23875 * config/mips/msa.h: New file.
23876 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
23878 * config/mips/mti-linux.h: Likewise.
23879 * config/mips/predicates.md
23880 (const_msa_branch_operand): New constraint.
23881 (const_uimm3_operand): Likewise.
23882 (const_uimm4_operand): Likewise.
23883 (const_uimm5_operand): Likewise.
23884 (const_uimm8_operand): Likewise.
23885 (const_imm5_operand): Likewise.
23886 (aq10b_operand): Likewise.
23887 (aq10h_operand): Likewise.
23888 (aq10w_operand): Likewise.
23889 (aq10d_operand): Likewise.
23890 (const_m1_operand): Likewise.
23891 (reg_or_m1_operand): Likewise.
23892 (const_exp_2_operand): Likewise.
23893 (const_exp_4_operand): Likewise.
23894 (const_exp_8_operand): Likewise.
23895 (const_exp_16_operand): Likewise.
23896 (const_vector_same_val_operand): Likewise.
23897 (const_vector_same_simm5_operand): Likewise.
23898 (const_vector_same_uimm5_operand): Likewise.
23899 (const_vector_same_uimm6_operand): Likewise.
23900 (const_vector_same_uimm8_operand): Likewise.
23901 (par_const_vector_shf_set_operand): Likewise.
23902 (reg_or_vector_same_val_operand): Likewise.
23903 (reg_or_vector_same_simm5_operand): Likewise.
23904 (reg_or_vector_same_uimm6_operand): Likewise.
23905 * doc/extend.texi (MIPS SIMD Architecture Functions): New
23907 * doc/invoke.texi (-mmsa): Document new option.
23909 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23911 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
23912 * configure: Regenerate.
23913 * config.in: Regenerate.
23914 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
23915 on -fvtable-verify.
23916 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
23917 (ENDFILE_VTV_SPEC): Define.
23919 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
23921 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
23922 registers in all interrupt handlers if necessary.
23923 (rl78_option_override): Add warning.
23924 (MUST_SAVE_MDUC_REGISTERS): New macro.
23925 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
23926 * config/rl78/rl78.c (check_mduc_usage): New function.
23927 (mduc_regs): New structure to hold MDUC register data.
23928 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
23929 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
23930 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
23931 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
23932 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
23933 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
23935 2016-05-09 Bin Cheng <bin.cheng@arm.com>
23937 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
23938 (tree-ssa-loop-niter.h): Ditto.
23939 (idx_within_array_bound, ref_within_array_bound): New functions.
23940 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
23941 Factor out check on writable base object to ...
23942 (base_object_writable): ... here.
23944 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23946 * config/arm/arm.md (probe_stack): Add modes to set source
23949 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
23951 * regrename.c (base_reg_class_for_rename): New static function.
23952 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
23954 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
23956 * cgraph.c (thunk_adjust): Export.
23957 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
23958 * cgraphunit.c (thunk_adjust): Export.
23959 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
23961 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
23963 * tree-inline.c (expand_call_inline): Expand thunks inline.
23965 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
23968 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
23969 (*sse2_vd_cvtss2sd): Ditto.
23970 * config/i386/i386.md
23971 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
23972 Generate *sse2_vd_cvtsd2ss pattern.
23973 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
23974 Generate *sse2_vd_cvtss2sd pattern.
23976 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
23978 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
23979 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
23982 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
23984 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
23985 * config/sh/sh.c: Define and declare variables on first use throughout
23987 (current_function_interrupt): Change to bool type.
23988 (frame_insn): Rename to emit_frame_insn and update users.
23989 (push_regs): Use bool for 'interrupt_handler' argument.
23990 (save_schedule_s): Remove.
23991 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
23992 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
23993 targetm.asm_out.unaligned_op.di.
23994 (gen_far_branch): Remove redundant forward declaration.
23995 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
23996 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
23997 (sh_set_return_address, sh_function_ok_for_sibcall,
23998 scavenge_reg): Update comments.
23999 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
24000 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
24001 (sh_attr_renesas_p): Remove unnecessary parentheses.
24002 (branch_dest): Simplify.
24003 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
24004 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
24005 (CUMULATIVE_ARGS): Change macro to typedef.
24006 (current_function_interrupt): Change to bool type.
24007 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
24008 Surround with __cplusplus ifdef.
24009 (sh_compare_op0, sh_compare_op1): Remove.
24010 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
24012 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
24014 * config/arm/arm.md (arch): Add neon.
24015 (arch_enabled): Return yes for arch neon when TARGET_NEON.
24016 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
24017 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
24018 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
24019 attributes for alt renumbering. Mark alt 3 as non-predicable.
24020 (thumb2_movdf_vfp): Likewise.
24022 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
24024 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
24025 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
24026 (*andqi_1): Add preferred_for_speed attribute to disparage
24027 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
24028 (*<code>qi_1): Ditto.
24029 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
24030 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
24031 (*ashlqi3_1): Ditto.
24032 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
24033 Add preferred_for_size attribute to disparage alternative 0 and
24034 preferred_for_speed attribute to disparage alternative 1 for
24035 TARGET_PARTIAL_REG_STALL targets.
24037 2016-05-07 Tom de Vries <tom@codesourcery.com>
24039 PR tree-optimization/70956
24040 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
24043 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
24045 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
24046 * config/sh/sh.c (sh_cbranch_distance): Implement it.
24047 * config/sh/sh.md (branch_zero): Remove define_attr.
24048 (define_delay): Disable delay slot if branch distance is one insn.
24050 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24052 * config/i386/i386.md (LEAMODE): New mode attribute.
24053 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
24054 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
24055 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
24056 operand 2 predicate.
24057 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
24058 (*lea<mode>_general_3): Ditto.
24059 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
24061 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24063 * genmddump.c (main): Convert argv from char ** to const char **.
24065 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24067 * coretypes.h (OVERRIDE): New macro.
24068 (FINAL): New macro.
24070 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
24072 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
24073 allow coalescing if the types are compatible.
24075 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24077 * pass_manager.h (pass_manager::register_pass_name): New method.
24078 (pass_manager::get_pass_by_name): New method.
24079 (pass_manager::create_pass_tab): New method.
24080 (pass_manager::m_name_to_pass_map): New field.
24081 * passes.c (name_to_pass_map): Delete global in favor of field
24082 "m_name_to_pass_map" of pass_manager.
24083 (register_pass_name): Rename from a function to...
24084 (pass_manager::register_pass_name): ...this method, updating
24085 for renaming of global "name_to_pass_map" to field
24086 "m_name_to_pass_map".
24087 (create_pass_tab): Rename from a function to...
24088 (pass_manager::create_pass_tab): ...this method, updating
24089 for renaming of global "name_to_pass_map" to field.
24090 (get_pass_by_name): Rename from a function to...
24091 (pass_manager::get_pass_by_name): ...this method.
24092 (enable_disable_pass): Convert use of get_pass_by_name to
24093 a method call, locating the pass_manager singleton.
24095 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24097 * genattr-common.c (main): Convert argv from char ** to const char **.
24098 * genattr.c (main): Likewise.
24099 * genattrtab.c (main): Likewise.
24100 * genautomata.c (initiate_automaton_gen): Likewise.
24102 * gencodes.c (main): Likewise.
24103 * genconditions.c (main): Likewise.
24104 * genconfig.c (main): Likewise.
24105 * genconstants.c (main): Likewise.
24106 * genemit.c (main): Likewise.
24107 * genenums.c (main): Likewise.
24108 * genextract.c (main): Likewise.
24109 * genflags.c (main): Likewise.
24110 * genmddeps.c (main): Likewise.
24111 * genopinit.c (main): Likewise.
24112 * genoutput.c (main): Likewise.
24113 * genpeep.c (main): Likewise.
24114 * genpreds.c (main): Likewise.
24115 * genrecog.c (main): Likewise.
24116 * gensupport.c (init_rtx_reader_args_cb): Likewise.
24117 (init_rtx_reader_args): Likewise.
24118 * gensupport.h (init_rtx_reader_args_cb): Likewise.
24119 (init_rtx_reader_args): Likewise.
24120 * gentarget-def.c (main): Likewise.
24121 * read-md.c (read_md_files): Likewise.
24122 * read-md.h (read_md_files): Likewise.
24124 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24126 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
24127 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
24128 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
24129 Remove unused predicate.
24130 (register_and_not_fp_reg_operand): Ditto.
24132 2016-05-06 Martin Liska <mliska@suse.cz>
24134 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
24135 instead of vec as the vector is local to the function.
24137 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24139 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
24140 avx512bw alternative.
24142 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
24143 before the ashr<mode>3 pattern.
24145 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
24146 v instead of x in vex or maybe_vex alternatives, use
24147 maybe_evex instead of vex in prefix.
24149 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
24150 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
24151 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
24152 in vex or maybe_vex alternatives, use maybe_evex instead of vex
24155 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
24156 v instead of x in vex or maybe_vex alternatives, use
24157 maybe_evex instead of vex in prefix.
24159 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
24160 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
24161 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
24162 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
24163 alternatives, use maybe_evex instead of vex in prefix.
24165 * config/i386/sse.md (vec_interleave_lowv4sf,
24166 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
24167 v instead of x in vex or maybe_vex alternatives, use
24168 maybe_evex instead of vex in prefix.
24170 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
24171 v instead of x in vex or maybe_vex alternatives, use
24172 maybe_evex instead of vex in prefix.
24174 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
24175 v constraint instead of x.
24177 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
24179 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
24180 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
24183 2016-05-06 Richard Biener <rguenther@suse.de>
24185 PR tree-optimization/70948
24186 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24187 Properly clobber all fields of va_list for __builtin_va_start.
24189 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
24192 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
24193 loop latch destination.
24195 2016-05-06 Martin Liska <mliska@suse.cz>
24197 * tree-ssa-uninit.c: Apply manual changes
24198 to the GNU coding style.
24199 (prune_uninit_phi_opnds): Rename from
24200 prune_uninit_phi_opnds_in_unrealizable_paths.
24202 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24204 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
24205 mspace): Remove deprecated options.
24206 * doc/invoke.texi (SH options): Remove -mspace.
24208 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24210 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
24212 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24214 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
24215 corresponding combine split pattern.
24217 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24220 * config/sh/predicates.md (long_displacement_mem_operand): New.
24221 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
24222 Add movi20, movi20s alternatives. Adjust length attribute for
24224 (movsi_ie): Allow for any FPU. Adjust length attribute for
24226 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
24227 attribute for alternatives.
24228 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
24229 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
24230 length attribute for alternatives.
24232 2016-05-06 Richard Biener <rguenther@suse.de>
24234 PR tree-optimization/70960
24235 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
24237 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24240 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
24241 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
24243 2016-05-06 Marek Polacek <polacek@redhat.com>
24246 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
24248 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24251 * config/sh/sh.md (*rotcr): Add another variant.
24253 2016-05-06 Richard Biener <rguenther@suse.de>
24255 PR middle-end/70931
24256 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
24258 2016-05-06 Richard Biener <rguenther@suse.de>
24260 PR middle-end/70941
24261 * fold-const.c (split_tree): Always convert to the original type
24264 2016-05-06 Richard Biener <rguenther@suse.de>
24266 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
24267 (fwprop_addr): Likewise.
24269 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24272 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
24274 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
24275 * config/i386/i386.md (push mem splitter): Use find_constant_src in
24276 the splitter condition.
24277 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
24278 the splitter condition.
24279 (FP float_extend load splitter): Ditto.
24281 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
24283 * config/i386/i386.md (peehole2 patterns): Change true_regnum
24284 to REGNO in all peephole2 patterns.
24285 (post-reload splitters): Change true_regnum to REGNO in
24286 post-reload splitters.
24287 (zero_extend splitters): Use general_reg_operand and
24288 nonimmediate_gr_operand predicates.
24290 2016-05-05 Jakub Jelinek <jakub@redhat.com>
24292 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
24293 v constraint instead of x.
24295 2016-05-05 Alan Modra <amodra@gmail.com>
24298 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
24299 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
24300 TARGET_NO_FP_IN_TOC for -mrelocatable.
24301 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
24302 TARGET_RELOCATABLE test.
24303 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24304 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24305 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
24306 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24307 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24308 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
24309 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24310 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24311 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
24312 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
24314 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
24315 (rs6000_stack_info): Likewise.
24316 (rs6000_elf_asm_out_constructor): Likewise.
24317 (rs6000_elf_asm_out_destructor): Likewise.
24318 (rs6000_elf_declare_function_name): Likewise.
24319 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
24320 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
24323 2016-05-05 Alan Modra <amodra@gmail.com>
24325 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
24327 2016-05-05 Alan Modra <amodra@gmail.com>
24329 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
24330 out-of-line gpr restore for one or two regs if that would add
24333 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
24336 * config/i386/i386.md
24337 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
24338 Change to post-epilogue_completed late splitter. Use sse_reg_operand
24339 as operand 0 predicate.
24340 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
24342 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
24343 Ditto. Emit the pattern using RTX.
24345 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
24346 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
24347 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
24348 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
24350 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
24351 sse_reg_operand as operand 0 predicate.
24353 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
24354 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
24355 instead of gen_rtx_REG.
24356 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
24359 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24361 * function.c (emit_use_return_register_into_block): Delete.
24362 (gen_return_pattern): Delete.
24363 (emit_return_into_block): Delete.
24364 (active_insn_between): Delete.
24365 (convert_jumps_to_returns): Delete.
24366 (emit_return_for_exit): Delete.
24367 (thread_prologue_and_epilogue_insns): Delete all code dealing with
24368 simple_return for shrink-wrapped blocks.
24369 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
24370 end of blocks that need one.
24371 (get_unconverted_simple_return): Delete.
24372 (convert_to_simple_return): Delete.
24373 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
24374 (convert_to_simple_return): Ditto.
24376 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24378 * cfgcleanup.c (bb_is_just_return): New function.
24379 (try_optimize_cfg): Simplify jumps to return, branches to return,
24380 and branches around return.
24382 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24384 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
24385 branch to a return.
24387 2016-05-04 Jakub Jelinek <jakub@redhat.com>
24391 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
24392 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
24393 assert flags & OEP_HASH_CHECK, instead of asserting it
24394 never happens. Handle TARGET_EXPR.
24395 * fold-const.c (operand_equal_p): For hash verification,
24396 or in OEP_HASH_CHECK into flags.
24398 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
24400 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
24402 (compute_samebase_partition_bases): Fix typo.
24404 2016-05-04 Jakub Jelinek <jakub@redhat.com>
24406 * config/i386/sse.md (vec_interleave_highv8sf,
24407 vec_interleave_lowv8sf, vec_interleave_highv4df,
24408 vec_interleave_lowv4df): Remove constraints from expanders.
24410 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
24412 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
24414 * tree-inline.c (expand_call_inline): Fix path dealing with
24415 making lhs of call statement undefined.
24417 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
24419 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24420 Check availability on NODE, too.
24421 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
24422 (cgraph_node::call_for_symbol_and_aliases): Likewise.
24423 (varpool_node::call_for_symbol_and_aliase): Likewise.
24424 * ipa-pure-const.c (add_new_function): Analyze all bodies.
24425 (propagate_pure_const): Propagate across interposable functions, too.
24426 (skip_function_for_local_pure_const): Do not skip interposable bodies
24428 (pass_local_pure_const::execute): Update.
24430 2016-05-04 Marek Polacek <polacek@redhat.com>
24432 * doc/invoke.texi: Document -Wdangling-else.
24434 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
24436 * config.gcc: Error out when conflicting multilib is detected. Do not
24437 loop over multilibs since no combination is legal.
24439 2016-05-04 Alan Modra <amodra@gmail.com>
24441 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
24442 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
24443 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
24446 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
24448 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
24449 Clean up p5600 comments.
24451 2016-05-04 Richard Biener <rguenther@suse.de>
24453 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
24454 constructor simplifications.
24455 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
24457 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
24459 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
24460 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
24461 result.set_rtx is null instead of aborting.
24462 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
24464 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
24465 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
24466 *mov<mode>_store_postinc): New patterns.
24468 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
24470 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
24471 as commutative. Check both conversions are NOP.
24472 ((A & B) OP (C & B)): Remove.
24474 2016-05-04 Alan Modra <amodra@gmail.com>
24476 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
24478 2016-05-04 Alan Modra <amodra@gmail.com>
24481 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
24482 when cr2,3,4 are all fixed regs.
24484 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
24486 PR rtl-optimization/57193
24487 * opts.c (default_options_table): Revert OPT_frename_registers change.
24488 * doc/invoke.texi (-frename-registers, -O2): Likewise.
24490 2016-05-03 Martin Sebor <msebor@redhat.com>
24493 * builtins.c (fold_builtin_FILE): New function.
24494 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
24495 (fold_builtin_0): Call them.
24496 * gimplify.c (gimplify_call_expr): Remove the handling of
24497 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
24500 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
24501 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
24505 * doc/extend.texi (Function Names as Strings): Update __func__,
24506 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
24509 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24510 Richard Biener <rguenther@suse.de>
24512 PR tree-optimization/70916
24513 * tree-if-conv.c: Include cfganal.h.
24514 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
24515 and remove_fake_exit_edges around the optimization pass.
24517 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
24519 * cgraph.c (symbol_table::create_edge): Set inline_failed.
24520 (cgraph_edge::make_direct): Likewise.
24521 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
24522 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
24523 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
24524 (CIF_THUNK): New code.
24525 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
24526 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
24527 (compute_inline_parameters): Set inline_failed for thunks.
24528 (inline_analyze_function): Cleanup.
24529 * ipa-inline.c (can_inline_edge_p): Do not deal with
24530 call_stmt_cannot_inline_p.
24531 (can_early_inline_edge_p): Likewise.
24532 (early_inliner): Initialize inline_failed.
24533 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
24535 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
24537 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
24538 from nonimm_ssenomem_operand.
24539 (nonimm_ssenomem_operand): New predicate.
24540 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
24541 as operand 0 predicate.
24542 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
24543 Disable unsupported alternatives using "enabled" attribute.
24544 Use register_ssemem_operand as operand 0 predicate.
24545 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
24547 2016-05-03 Marek Polacek <polacek@redhat.com>
24550 * input.c (expansion_point_location): New function.
24551 * input.h (expansion_point_location): Declare.
24553 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
24555 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
24556 occurence with frame_offset_ ones.
24558 2016-05-03 Alan Modra <amodra@gmail.com>
24560 PR rtl-optimization/70890
24561 * ira.c (combine_and_move_insns): When moving def_insn, remove
24562 equivs on use_insn.
24564 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
24566 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
24567 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
24568 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
24569 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
24571 2016-05-03 Alan Modra <amodra@gmail.com>
24573 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
24574 for SAVE_MULTIPLE/STORE_MULTIPLE.
24576 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24578 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
24579 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
24581 2016-05-03 Richard Biener <rguenther@suse.de>
24583 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
24585 (gimplify_arg): Likewise.
24586 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
24587 re-writing the result to a decl if required.
24588 (internal_get_tmp_var): Add allow_ssa parameter
24589 and override into_ssa with it.
24590 (get_formal_tmp_var): Adjust.
24591 (get_initialized_tmp_var): Add allow_ssa parameter.
24592 (gimplify_arg): Add allow_ssa parameter and avoid generating
24593 SSA names for the result false.
24594 (gimplify_call_expr): If the call may return twice do not
24595 gimplify parameters into SSA.
24596 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
24597 (gimplify_modify_expr): Adjust assert. For noreturn calls
24598 with a SSA name LHS adjust its def.
24599 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
24600 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
24601 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
24602 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
24603 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
24604 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
24605 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
24606 (optimize_target_teams): Do not allow SSA names for clause operands.
24607 (gimplify_expr): Likewise for where we mark the result addressable.
24608 * passes.def (pass_init_datastructures): Remove.
24609 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
24610 (rewrite_stmt): Likewise.
24611 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
24612 (replace_locals_op): Replace SSA names.
24613 (copy_gimple_seq_and_replace_locals): Init src_cfun.
24614 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
24615 * cgraph.c (release_function_body): Free CFG annotations only
24616 when we have a CFG. Simplify.
24617 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
24618 force_gimple_operand instead of get_initialized_tmp_var.
24619 * tree-pass.h (make_pass_init_datastructures): Remove.
24620 * tree-ssa.c (execute_init_datastructures): Remove.
24621 (pass_data_init_datastructures): Likewise.
24622 (class pass_init_datastructures): Likewise.
24623 (make_pass_init_datastructures): Likewise.
24624 * omp-low.c (create_omp_child_function): Init SSA data structures.
24625 (grid_expand_target_grid_body): Likewise.
24626 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
24627 name before adding it to names_to_release.
24628 (remove_bb): Always release SSA defs.
24629 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
24630 before dereferencing it.
24631 * cgraphunit.c (init_lowered_empty_function): Always
24632 int SSA data structures.
24633 * tree-ssanames.c (release_defs): Remove assert that we are in
24635 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
24637 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24638 Uros Bizjak <ubizjak@gmail.com>
24640 PR rtl-optimization/70467
24641 * config/i386/predicates.md (x86_64_hilo_int_operand,
24642 x86_64_hilo_general_operand): New predicates.
24643 * config/i386/constraints.md (Wd): New constraint.
24644 * config/i386/i386.md (mode attr di): Use Wd instead of e.
24645 (general_hilo_operand): New mode attr.
24646 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
24647 instead of <general_operand>.
24648 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
24649 x86_64_hilo_general_operand instead of <general_operand>.
24651 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24653 PR tree-optimization/70916
24654 * tree-if-conv.c (constant_or_ssa_name): Removed.
24655 (fold_build_cond_expr): Use is_gimple_val instead of
24656 constant_or_ssa_name.
24658 PR tree-optimization/70916
24659 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
24660 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
24663 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
24664 (optimize_atomic_bit_test_and): New function.
24665 (pass_fold_builtins::execute): Use it.
24666 * optabs.def (atomic_bit_test_and_set_optab,
24667 atomic_bit_test_and_complement_optab,
24668 atomic_bit_test_and_reset_optab): New optabs.
24669 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
24670 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
24671 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
24672 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
24673 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
24674 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
24675 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
24676 * doc/md.texi (atomic_bit_test_and_set@var{mode},
24677 atomic_bit_test_and_complement@var{mode},
24678 atomic_bit_test_and_reset@var{mode}): Document.
24679 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
24680 atomic_bit_test_and_complement<mode>,
24681 atomic_bit_test_and_reset<mode>): New expanders.
24682 (atomic_bit_test_and_set<mode>_1,
24683 atomic_bit_test_and_complement<mode>_1,
24684 atomic_bit_test_and_reset<mode>_1): New insns.
24686 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
24688 PR rtl-optimization/70687
24689 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
24690 instead of unsigned HOST_WIDE_INT.
24692 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
24694 PR rtl-optimization/44281
24695 * hard-reg-set.h (struct target_hard_regs): New field
24696 x_fixed_nonglobal_reg_set.
24697 (fixed_nonglobal_reg_set): New macro.
24698 * reginfo.c (init_reg_sets_1): Initialize it.
24699 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
24701 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
24703 2016-05-03 Bin Cheng <bin.cheng@arm.com>
24705 PR tree-optimization/56541
24706 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
24707 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
24708 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
24709 (any_complicated_phi): new static variable.
24710 (aggressive_if_conv): delete.
24711 (if_convertible_phi_p): support phis with more than two arguments.
24712 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
24713 critical pred edges.
24714 (ifcvt_split_critical_edges): support phis with more than two
24715 arguments by checking new parameter. only split critical edges
24717 (tree_if_conversion): handle simd pragma marked loop using new
24718 local variable aggressive_if_conv. check any_complicated_phi.
24720 2016-05-03 Bin Cheng <bin.cheng@arm.com>
24722 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
24725 2016-05-03 Bin Cheng <bin.cheng@arm.com>
24727 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
24730 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24732 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
24733 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
24734 define_insn_and_split.
24735 (mulsi3_i): New define_insn_and_split.
24736 (mulsi3_call): Convert to define_insn.
24737 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
24738 Remove constraints.
24740 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24742 * machmode.h (mode_complex): Add support to give the complex mode
24744 (GET_MODE_COMPLEX_MODE): Likewise.
24745 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
24746 stored by build_complex_type and gfc_build_complex_type instead of
24747 trying to figure out the appropriate mode based on the size. Raise
24748 an assertion error, if the type was not set.
24749 * genmodes.c (struct mode_data): Add field for the complex type of
24751 (blank_mode): Likewise.
24752 (make_complex_modes): Remember the complex mode created in the
24754 (emit_mode_complex): Write out the mode_complex array to map a
24755 type mode to the complex version.
24756 (emit_insn_modes_c): Likewise.
24757 * tree.c (build_complex_type): Set the complex type to use before
24758 calling layout_type.
24759 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
24760 support for __float128 complex datatypes.
24761 (rs6000_hard_regno_mode_ok): Likewise.
24762 (rs6000_setup_reg_addr_masks): Likewise.
24763 (rs6000_complex_function_value): Likewise.
24764 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
24765 __float128 and __ibm128 complex.
24766 (FLOAT128_IBM_P): Likewise.
24767 (ALTIVEC_ARG_MAX_RETURN): Likewise.
24768 * doc/extend.texi (Additional Floating Types): Document that
24769 -mfloat128 must be used to enable __float128. Document complex
24770 __float128 and __ibm128 support.
24772 2016-05-02 Jakub Jelinek <jakub@redhat.com>
24775 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
24776 char/short arguments promoted to int because of promote_prototypes.
24778 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
24780 * config/i386/predicates.md (register_ssemem_operand): New predicate.
24781 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
24782 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
24783 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
24784 alternatives using "enabled" attribute. Use register_ssemem_operand
24785 as operand 1 predicate.
24786 (*cmpi<unord>xf_i387): Split XFmode pattern from
24787 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
24788 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
24789 *absneg<mode>2_i387. Disable unsupported alternatives using
24790 "enabled" attribute.
24791 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
24793 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
24795 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
24797 (oacc_loop_process): Check mask for loop termination.
24799 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
24801 * cif-code.def (CIF_THUNK): Add.
24802 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
24805 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
24807 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
24808 (dump_inline_summary): Dump it.
24809 (fp_expression_p): New predicate.
24810 (estimate_function_body_sizes): Use it.
24811 (inline_merge_summary): Merge fp_expressions.
24812 (inline_read_section): Read fp_expressions.
24813 (inline_write_summary): Write fp_expressions.
24814 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
24815 codegen boundary if either caller or callee is !fp_expressions.
24816 * ipa-inline.h (inline_summary): Add fp_expressions.
24817 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
24818 to fp_expressions be sure the fp generation flags are updated.
24820 2016-05-02 Jakub Jelinek <jakub@redhat.com>
24822 PR rtl-optimization/70467
24823 * cse.c (cse_insn): Handle no-op MEM moves after folding.
24825 PR rtl-optimization/70467
24826 * ipa-pure-const.c (check_call): Handle internal calls even in
24827 ipa mode like in local mode.
24829 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
24831 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
24833 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
24835 * match.pd (X u< X, X u> X): New transformations.
24837 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
24839 * flag-types.h (enum warn_strict_overflow_code): Move ...
24840 * coretypes.h: ... here.
24841 * fold-const.h (fold_overflow_warning): Declare.
24842 * fold-const.c (fold_overflow_warning): Make non-static.
24843 (fold_comparison): Move the transformation of X +- C1 CMP C2
24844 into X CMP C2 -+ C1 ...
24845 * match.pd: ... here.
24846 * gimple-fold.c (fold_stmt_1): Protect with
24847 fold_defer_overflow_warnings.
24849 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
24851 * omp-low.c (struct oacc_loop): Add 'inner' field.
24852 (new_oacc_loop_raw): Initialize it to zero.
24853 (oacc_loop_fixed_partitions): Initialize it.
24854 (oacc_loop_auto_partitions): Partition outermost loop to outermost
24855 available partitioning.
24857 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
24859 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
24861 (umulsidi3): Likewise.
24862 (indirect_jump): Fix jump instruction assembly patterns.
24864 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
24867 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
24868 (nvptx_function_value): Assert non-NULL cfun.
24870 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
24872 PR rtl-optimization/70886
24873 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
24875 * cselib.h (rtx_equal_for_cselib_1): Declare.
24876 (rtx_equal_for_cselib_p: New inline function.
24877 * cselib.c (rtx_equal_for_cselib_p): Delete.
24878 (rtx_equal_for_cselib_1): Make public.
24880 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
24882 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
24883 (register_mixssei387nonimm_operand): Remove predicate.
24884 * config/i386/i386.md (*fop_<mode>_comm): Merge from
24885 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
24886 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
24887 for TARGET_MIX_SSE_I387 alternatives.
24888 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
24889 Disable unsupported alternatives using "enabled" attribute. Use
24890 nonimm_ssenomem_operand as operand 1 predicate. Also check
24891 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
24893 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
24895 * tree.c (cst_and_fits_in_hwi): Simplify.
24897 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
24899 * tree.h (wi::to_wide): New function.
24900 * expr.c (expand_expr_real_1): Use wi::to_wide.
24901 * fold-const.c (int_const_binop_1): Likewise.
24902 (extract_muldiv_1): Likewise.
24904 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
24906 * wide-int.h: Update offset_int and widest_int documentation.
24907 (WI_SIGNED_SHIFT_RESULT): New macro.
24908 (wi::binary_shift): Define signed_shift_result_type for
24909 shifts on offset_int- and widest_int-like types.
24910 (generic_wide_int): Support <<= and >>= if << and >> are supported.
24911 * tree.h (int_bit_position): Use shift operators instead of wi::
24913 * alias.c (adjust_offset_for_component_ref): Likewise.
24914 * expr.c (get_inner_reference): Likewise.
24915 * fold-const.c (fold_comparison): Likewise.
24916 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
24917 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
24918 * tree-dfa.c (get_ref_base_and_extent): Likewise.
24919 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
24920 (stmt_kills_ref_p): Likewise.
24921 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
24922 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
24923 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
24924 (ao_ref_init_from_vn_reference): Likewise.
24926 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
24928 * wide-int.h: Update offset_int and widest_int documentation.
24929 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
24930 (wi::binary_traits): Allow ordered comparisons between offset_int and
24931 offset_int, between widest_int and widest_int, and between either
24932 of these types and basic C types.
24933 (operator <, <=, >, >=): Define for the same combinations.
24934 * tree.h (tree_int_cst_lt): Use comparison operators instead
24935 of wi:: comparisons.
24936 (tree_int_cst_le): Likewise.
24937 * gimple-fold.c (fold_array_ctor_reference): Likewise.
24938 (fold_nonarray_ctor_reference): Likewise.
24939 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
24940 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
24941 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
24942 * tree-sra.c (completely_scalarize): Likewise.
24943 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
24944 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
24945 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
24946 (check_for_binary_op_overflow): Likewise.
24947 (search_for_addr_array): Likewise.
24948 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
24950 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
24952 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
24953 (arc_save_restore): Likewise.
24954 (arc_dwarf_register_span): Likewise.
24955 (arc_output_pic_addr_const): Initialize suffix variable.
24957 2016-05-02 Martin Liska <mliska@suse.cz>
24959 * symbol-summary.h (function_summary::function_summary):
24960 Remove checking assert for all cgraph nodes.
24961 (function_summary::get): Check summary_uid.
24962 (symtab_insertion): Check summary_uid.
24964 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
24966 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
24967 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
24968 bmaskn instruction.
24969 (arc_dwarf_register_span): Remove enum keyword.
24970 (compact_memory_operand_p): New function.
24971 * config/arc/arc.h (reg_class): Add code density register classes.
24972 (REG_CLASS_NAMES): Likewise.
24973 (REG_CLASS_CONTENTS): Likewise.
24974 * config/arc/arc.md (*movqi_insn): Add code density instructions.
24975 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
24976 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
24977 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
24978 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
24980 (h, Rcd, Rsd, Rzd): New register constraints.
24981 (T): Use compact_memory_operand_p function.
24982 * config/arc/predicates.md (compact_load_memory_operand): Remove.
24984 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
24986 * config/sh/sh.md (*negnegt, *movtt): Remove.
24988 2016-05-02 Marek Polacek <polacek@redhat.com>
24989 Tom de Vries <tom@codesourcery.com>
24991 PR tree-optimization/70700
24992 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
24993 bigger than FIRST_REF_NODE.
24995 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
24998 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
25000 (prepare_cbranch_operands): Don't use scratch register. Assume that
25001 function is used when pseudos can be created.
25002 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
25003 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
25004 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
25005 define_expand. Allow it only when pseudos can be created.
25006 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
25008 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
25010 * config/i386/constraints.md (BC): Only allow -1 operands.
25011 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
25012 Add "enabled" attribute. Update XI mode attribute calculation.
25013 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
25014 (*movoi_internal_avx): Update XI mode attribute calculation.
25015 (*movti_internal): Ditto.
25017 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25019 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
25020 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
25022 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
25024 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
25025 statement on instruction code. Remove trailing spaces.
25026 (altivec_expand_stv_builtin): Likewise.
25028 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25030 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
25031 (TARGET_FPU_DOUBLE): Simplify.
25032 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
25033 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
25034 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
25035 with 'TARGET_FPU_DOUBLE'.
25036 * config/sh/sh.md: Likewise.
25038 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
25040 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
25041 SH_DIV_STR_FOR_SIZE): Remove.
25042 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
25043 SH_DIV_STR_FOR_SIZE): Remove.
25045 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25047 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
25048 logical_reg_operand): Delete.
25049 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
25050 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
25051 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
25052 match_operand and match_test.
25053 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
25054 variables on their first use. Return bool values.
25055 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
25056 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
25057 arith_reg_operand for input operand. Remove empty constraints.
25059 (*xorsi3_compact): Rename to xorsi3.
25060 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
25061 (*zero_extend<mode>si2_disp_mem): Update comment.
25064 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25066 * config/sh/t-sh: Remove SH5 support.
25067 * config.gcc: Likewise.
25068 * configure: Likewise.
25070 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25072 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
25074 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25076 * config/sh/sh.c (register_sh_passes, sh_option_override,
25077 sh_print_operand, prepare_move_operands,
25078 sh_can_follow_jump): Remove TARGET_SH1 checks.
25079 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
25080 PROMOTE_MODE): Likewise.
25081 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
25084 2016-04-30 Alan Modra <amodra@gmail.com>
25086 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
25087 restoring when fixed_reg_p, but allow out-of-line or stmw save.
25088 Check for user regs later to avoid unnecessary looping over regs.
25089 Merge user reg check with non-saved reg check. Don't force
25090 inline VR restore when static chain used.
25091 (rs6000_frame_related): Omit eh_frame info for user regs when
25093 (fixed_regs_p): Delete.
25095 2016-04-30 Alan Modra <amodra@gmail.com>
25097 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
25098 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
25101 2016-04-30 Alan Modra <amodra@gmail.com>
25104 * config/rs6000/rs6000.c (fixed_reg_p): New function.
25105 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
25108 2016-04-30 Alan Modra <amodra@gmail.com>
25110 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
25111 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
25112 flag_pic test for Darwin.
25114 2016-04-30 Alan Modra <amodra@gmail.com>
25116 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
25117 throw_calls_crossed.
25118 (REG_FREQ_CALLS_CROSSED): Delete.
25119 (REG_N_THROWING_CALLS_CROSSED): Delete.
25120 * regstat.c (regstat_bb_compute_ri): Don't calculate
25121 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
25122 (dump_reg_info): Don't print call cross frequency.
25123 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
25124 and REG_N_THROWING_CALLS_CROSSED.
25126 2016-04-30 Alan Modra <amodra@gmail.com>
25128 * regs.h (struct reg_info_t): Delete live_length.
25129 (REG_LIVE_LENGTH): Delete macro.
25130 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
25131 local_live, local_processed and local_live_last_luid params.
25132 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
25134 (regstat_compute_ri): Adjust for above. Don't set
25136 (dump_reg_info): Don't print live length.
25137 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
25138 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
25139 Localize loop_depth var.
25141 2016-04-30 Alan Modra <amodra@gmail.com>
25143 * ira.c (enum valid_equiv): New.
25144 (validate_equiv_mem): Return enum.
25145 (update_equiv_mem): Create replacement in more cases.
25146 (add_store_equivs): Update validate_equiv_mem call.
25148 2016-04-30 Alan Modra <amodra@gmail.com>
25150 * ira.c (combine_and_move_insns): Rather than scanning insns,
25151 use DF infrastucture to find use and def insns.
25153 2016-04-30 Alan Modra <amodra@gmail.com>
25155 ira.c (combine_and_move_insns): Move invariant conditions..
25156 (ira.c): ..to here. Call combine_and_move_insns before
25157 add_store_equivs. Call grow_reg_equivs later. Allocate
25158 req_equiv later using max_reg_num() rather than global max_regno.
25159 (contains_replace_regs): Delete.
25160 (add_store_equivs): Remove contains_replace_regs test.
25162 2016-04-30 Alan Modra <amodra@gmail.com>
25164 * ira.c (struct equiv_mem_data): New.
25165 (equiv_mem, equiv_mem_modified): Delete static vars.
25166 (validate_equiv_mem_from_store): Use "data" param to communicate..
25167 (validate_equiv_mem): ..from here.
25169 2016-04-30 Alan Modra <amodra@gmail.com>
25171 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
25173 (update_reg_equivs): ..here. Move allocation and freeing of
25174 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
25175 end_alias_analysis to..
25178 2016-04-30 Alan Modra <amodra@gmail.com>
25180 * ira.c (pdx_subregs): Delete.
25181 (struct equivalence): Add pdx_subregs field.
25182 (set_paradoxical_subreg): Remove pdx_subregs param. Update
25183 pdx_subregs access.
25184 (update_equiv_regs): Don't create or free pdx_subregs. Update
25185 pdx_subregs access.
25187 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25189 * config/rs6000/altivec.h: Change definitions of vec_xl and
25191 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
25192 (LD_ELEMREV_V2DI): New.
25193 (LD_ELEMREV_V4SF): New.
25194 (LD_ELEMREV_V4SI): New.
25195 (LD_ELEMREV_V8HI): New.
25196 (LD_ELEMREV_V16QI): New.
25197 (ST_ELEMREV_V2DF): New.
25198 (ST_ELEMREV_V2DI): New.
25199 (ST_ELEMREV_V4SF): New.
25200 (ST_ELEMREV_V4SI): New.
25201 (ST_ELEMREV_V8HI): New.
25202 (ST_ELEMREV_V16QI): New.
25205 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25206 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
25207 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
25208 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
25209 (altivec_expand_builtin): Add handling for
25210 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
25211 (rs6000_invalid_builtin): Add error-checking for
25212 RS6000_BTM_P9_VECTOR.
25213 (altivec_init_builtins): Define builtins used to implement vec_xl
25215 (rs6000_builtin_mask_names): Define power9-vector.
25216 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
25217 (RS6000_BTM_P9_VECTOR): Define.
25218 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
25219 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
25220 (vsx_ld_elemrev_v2df): Likewise.
25221 (vsx_ld_elemrev_v4sf): Likewise.
25222 (vsx_ld_elemrev_v4si): Likewise.
25223 (vsx_ld_elemrev_v8hi): Likewise.
25224 (vsx_ld_elemrev_v16qi): Likewise.
25225 (vsx_st_elemrev_v2df): Likewise.
25226 (vsx_st_elemrev_v2di): Likewise.
25227 (vsx_st_elemrev_v4sf): Likewise.
25228 (vsx_st_elemrev_v4si): Likewise.
25229 (vsx_st_elemrev_v8hi): Likewise.
25230 (vsx_st_elemrev_v16qi): Likewise.
25231 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
25234 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
25236 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
25238 (simplify_control_stmt_condition_1): ... here. Recurse into
25239 BIT_AND_EXPRs and BIT_IOR_EXPRs.
25241 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
25244 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
25245 (zero_extendqi<mode>2_dot): Revert earlier conversion from
25246 define_insn_and_split to define_insn.
25247 (zero_extendqi<mode>2_dot2): Same.
25248 (extendqi<mode>2_dot): Same.
25249 (extendqi<mode>2_dot2): Same.
25251 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25253 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
25254 (probe_stack): New expander.
25255 (probe_stack_<mode>): New insn pattern.
25257 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25259 * config/i386/i386.md
25260 (operations with memory inputs setting flags peephole2):
25261 Remove uneeded REG_P checks. Cleanup pattern generation.
25263 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
25265 * tree-vect-loop.c (vect_transform_loop): Fix
25266 nb_iterations_upper_bound computation for vectorized loop.
25268 2016-04-29 Marek Polacek <polacek@redhat.com>
25269 Jakub Jelinek <jakub@redhat.com>
25272 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
25273 TARGET_EXPR_SLOT as a base.
25275 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
25277 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
25278 with 'rCm2' constraints to limit possible immediate size.
25279 (*load_zeroextendqisi_update): Likewise.
25280 (*load_signextendqisi_update): Likewise.
25281 (*loadhi_update): Likewise.
25282 (*load_zeroextendhisi_update): Likewise.
25283 (*load_signextendhisi_update): Likewise.
25284 (*loadsi_update): Likewise.
25285 (*loadsf_update): Likewise.
25287 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25289 * config/i386/predicates.md (constm1_operand): Fix comparison.
25291 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
25293 * testsuite/gcc.target/arc/ieee_eq.c: New test.
25295 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
25297 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
25298 remaining SH5 related settings.
25299 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
25300 shmedia_prepare_call_address): Delete.
25301 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
25302 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
25303 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
25304 UNSUPPORTED_SH2A): Remove m5 checks.
25305 (sh_divide_strategy_e): Remove SH5 division strategies.
25306 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
25307 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
25309 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
25311 * config/s390/s390.c (s390_rtx_costs): Update documentation.
25313 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25315 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
25316 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
25317 Change lder to ldr.
25318 * config/s390/vector.md ("mov<mode>"): Likewise.
25320 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
25322 * config/s390/constraints.md ("U", "W"): Invoke
25323 s390_mem_constraint with "ZR" and "ZT".
25324 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
25325 addresses when using LRA. Accept also short displacements for S
25326 and T constraints. Do not check for long displacement target for
25327 S and T constraints.
25328 (s390_mem_constraint): Remove handling of U and W constraints.
25329 * config/s390/s390.md (various patterns): Remove the short
25330 displacement constraints (Q and R) if a long displacement
25331 constraint is present. Add longdisp as required CPU capability.
25332 * config/s390/vector.md: Likewise.
25333 * config/s390/vx-builtins.md: Likewise.
25335 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25338 * reload1.c (reload): Call finish_spills before
25339 restarting reload loop. Skip select_reload_regs
25340 if update_eliminables_and_spill returns true.
25342 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
25344 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
25345 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
25346 (umulhisi3_imm): Update predicates and constraint letters.
25347 (umulhisi3_reg): Declare instruction as commutative.
25348 * config/arc/constraints.md (J12, J16): New constraints.
25349 * config/arc/predicates.md (short_unsigned_const_operand): New
25351 (arc_short_operand): Likewise.
25352 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
25354 2016-04-29 Richard Biener <rguenther@suse.de>
25356 PR tree-optimization/13962
25357 PR tree-optimization/65686
25358 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
25359 * tree-ssa-alias.c (ptrs_compare_unequal): New function
25360 using PTA to compare pointers.
25361 * match.pd: Add pattern for pointer equality compare simplification
25362 using ptrs_compare_unequal.
25364 2016-04-29 Richard Biener <rguenther@suse.de>
25366 * stor-layout.c (layout_type): Do not build a pointer-to-element
25369 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25371 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
25372 Use SWI mode iterator. Use general_reg_operand predicate.
25373 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
25374 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
25377 2016-04-29 Jakub Jelinek <jakub@redhat.com>
25379 PR middle-end/70843
25380 * fold-const.c (operand_equal_p): Don't verify hash value equality
25382 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
25385 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25388 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
25389 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
25390 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
25391 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
25392 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
25394 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25396 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
25397 to info. Don't initialize separate fields to 0. Clean up
25400 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25402 * config/i386/i386.md (peephole2s for operations with memory inputs):
25403 Use SWI mode iterator.
25404 (peephole2s for operations with memory outputs): Ditto.
25405 Do not check for stack checking probe.
25407 (probe_stack): Remove expander.
25409 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25410 Andrew Burgess <andrew.burgess@embecosm.com>
25412 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
25413 operands as 32-bits.
25415 2016-04-28 Jason Merrill <jason@redhat.com>
25417 * gdbinit.in: Skip line-map.h.
25419 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25420 Andrew Burgess <andrew.burgess@embecosm.com>
25422 * config/arc/arc.c (arc_conditional_register_usage): Take
25423 TARGET_RRQ_CLASS into account.
25424 (arc_print_operand): Support printing 'p' and 's' operands.
25425 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
25427 (TARGET_RRQ_CLASS): Define.
25428 (IS_POWEROF2_OR_0_P): Define.
25429 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
25431 (*tst_movb): New define_insn.
25432 (*tst): Avoid recognition if it could prevent '*tst_movb'
25433 combination; replace c/CnL with c/Chs alternative.
25434 (*tst_bitfield_tst): New define_insn.
25435 (*tst_bitfield_asr): New define_insn.
25436 (*tst_bitfield): New define_insn.
25437 (andsi3_i): Add Rrq variant.
25438 (extzv): New define_expand.
25439 (insv): New define_expand.
25440 (*insv_i): New define_insn.
25441 (*movb): New define_insn.
25442 (*movb_signed): New define_insn.
25443 (*movb_high): New define_insn.
25444 (*movb_high_signed): New define_insn.
25445 (*movb_high_signed + 1): New define_split pattern.
25446 (*mrgb): New define_insn.
25447 (*mrgb + 1): New define_peephole2 pattern.
25448 (*mrgb + 2): New define_peephole2 pattern.
25449 * config/arc/arc.opt (mbitops): New option for nps400, uses
25450 TARGET_NPS_BITOPS_DEFAULT.
25451 * config/arc/constraints.md (q): Make register class conditional.
25452 (Rrq): New register constraint.
25453 (Chs): New constraint.
25454 (Clo): New constraint.
25455 (Chi): New constraint.
25456 (Cbf): New constraint.
25457 (Cbn): New constraint.
25458 (C18): New constraint.
25459 (Cbi): New constraint.
25461 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25463 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
25465 (bitmap_intersection_of_preds): Ditto.
25466 (bitmap_union_of_succs): Ditto.
25467 (bitmap_union_of_preds): Ditto.
25468 * sbitmap.c (do_popcount): Delete.
25469 (BITMAP_DEBUGGING): Delete.
25470 (sbitmap_verify_popcount): Delete.
25471 (sbitmap_alloc): Don't initialize the popcount field.
25472 (sbitmap_alloc_with_popcount): Delete.
25473 (sbitmap_resize): Don't resize the popcount array.
25474 (sbitmap_vector_alloc): Don't initialize the popcount field.
25475 (bitmap_copy): Don't copy the popcount array.
25476 (bitmap_clear): Don't clear the popcount array.
25477 (bitmap_clear): Delete the popcount array handling.
25478 (bitmap_ior_and_compl): Delete the popcount assert.
25479 (bitmap_not): Ditto.
25480 (bitmap_and_compl): Ditto.
25481 (bitmap_and): Delete the popcount array handling.
25482 (bitmap_xor): Ditto.
25483 (bitmap_ior): Ditto.
25484 (bitmap_or_and): Delete the popcount assert.
25485 (bitmap_and_or): Ditto.
25486 (popcount_table): Delete.
25487 (sbitmap_elt_popcount): Delete.
25488 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
25489 (bitmap_set_bit): Delete the popcount assert.
25490 (bitmap_clear_bit): Ditto.
25491 (sbitmap_free): Don't free the popcount array.
25492 (sbitmap_alloc_with_popcount): Delete declaration.
25493 (sbitmap_popcount): Ditto.
25495 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25496 Andrew Burgess <andrew.burgess@embecosm.com>
25498 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
25499 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
25500 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
25501 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
25502 * config/arc/arc.opt (mcmem): New option.
25503 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
25504 supply length for r/m alternative.
25505 (*extendqisi2_ac): Likewise.
25506 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
25508 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
25509 (movhi_insn): Likewise.
25510 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
25511 (*zero_extendqihi2_i): Add r/Ucm alternative.
25512 (*zero_extendqisi2_ac): Likewise.
25513 (*zero_extendhisi2_i): Likewise.
25514 * config/arc/constraints.md (Uex): New memory constraint.
25515 (Ucm): New define_constraint.
25516 * config/arc/predicates.md (long_immediate_loadstore_operand):
25517 Return 0 for MEM with cmem_address address.
25518 (cmem_address_0): New predicates.
25519 (cmem_address_1): Likewise.
25520 (cmem_address_2): Likewise.
25521 (cmem_address): Likewise.
25523 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25525 * config/rs6000/rs6000.c (machine_function): Rename
25526 insn_chain_scanned_p to spe_insn_chain_scanned_p.
25527 (rs6000_stack_info): Adjust.
25529 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25530 Andrew Burgess <andrew.burgess@embecosm.com>
25532 * config/arc/constraints.md (Usd): Convert to define_constraint.
25536 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25539 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
25540 Add new peephole2 where the first insn is *mov<mode>_or instead of
25541 *mov<mode>_internal.
25543 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
25545 * tracer.c (bb_seen): Make static.
25547 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
25549 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
25550 support, setup defaults.
25551 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
25552 * config/arc/arc.c (arc_init): Add NPS400 support.
25553 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
25554 (TARGET_ARC700): NPS400 is also an ARC700.
25555 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
25557 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25560 * config/nds32/nds32.md (casesi): Don't access the operands array
25563 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25565 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
25566 (or $-1,reg peephole2): Ditto.
25567 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
25569 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
25571 * doc/extend.texi (Common Function Attributes) [optimize]:
25572 Discourage use of the optimize attribute.
25574 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
25576 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
25577 special case builtin.
25578 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
25579 ALTIVEC_BUILTIN_VEC_ADDE.
25580 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
25581 support for ALTIVEC_BUILTIN_VEC_ADDE.
25582 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
25583 for __builtin_vec_adde.
25585 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25587 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
25588 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
25590 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25593 * doc/sourcebuild.texi (Effective-Target Keywords, Other
25594 attributes): Document cilkplus_runtime.
25596 2016-04-28 Martin Jambor <mjambor@suse.cz>
25598 * tree-cfg.c (verify_expr): Verify that local declarations belong to
25599 this function. Call verify_expr on MEM_REFs and bases of other
25600 handled_components.
25602 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25604 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
25605 for WORD_REGISTER_OPERATIONS to runtime check.
25607 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25609 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
25611 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25613 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
25614 big-endian compilation.
25615 * config/arc/arc.md (addf3): Likewise.
25616 (subdf3): Likewise.
25617 (muldf3): Likewise.
25619 2016-04-28 Richard Biener <rguenther@suse.de>
25621 PR tree-optimization/70840
25622 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
25623 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
25624 Mark x * pow(x,c) -> pow(x,c+1) commutative.
25625 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
25627 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25629 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
25630 and explain why in a comment.
25632 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25634 * config/arc/arc.md (cpu_facility): Add fpx variant.
25635 (subdf3): Prohibit use reverse sub when assist operations option
25637 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
25638 instructions only when FPX is enabled.
25639 * testsuite/gcc.target/arc/trsub.c: New test.
25641 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25643 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
25644 mult_operator when calculating "type" attribute.
25645 (*fop_<mode>_1_i387): Ditto.
25646 (*fop_xf_1_i387): Ditto.
25647 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
25648 Use std::swap to swap operands. Use RTL expressions to generate
25651 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25652 Joern Rennecke <joern.rennecke@embecosm.com>
25654 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
25656 (emit_pic_move): Remove.
25657 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
25658 * config/arc/arc.c (emit_pic_move): Removed.
25659 (TARGET_HAVE_TLS): Define.
25660 (arc_conditional_register_usage): Test for arc_tp_regno.
25661 (arc_print_operand, arc_print_operand_address): Handle TLS
25663 (arc_needs_pcl_p): New function.
25664 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
25665 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
25666 (arc_raw_symbolic_reference_mentioned_p): Likewise.
25667 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
25668 (arc_legitimize_tls_address): Likewise.
25669 (DTPOFF_ZERO_SYM): Define.
25670 (arc_legitimize_pic_address): Make it static, handle TLS cases.
25671 (arc_output_pic_addr_const): Print TLS unspecs.
25672 (prepare_pic_move): New function, replaces emit_pic_move.
25673 (arc_legitimate_constant_p): Handle TLS unspecs.
25674 (arc_legitimate_address_p): Likewise.
25675 (arc_rewrite_small_data_p): Use assert for TLS constants.
25676 (prepare_move_operands): Use prepare_pic_move.
25677 (arc_legitimize_address): Legitimize tls addresses.
25678 (arc_epilogue_uses): Check for arc_tp_regno.
25679 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
25680 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
25682 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
25684 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
25685 %(arc_tls_extra_start_spec).
25686 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
25687 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
25689 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
25690 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
25691 (UNSPEC_TLS_OFF): Add.
25693 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
25694 (get_thread_pointersi): New patterns.
25695 * config/arc/arc.opt (mtp-regno): New option.
25696 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
25697 (move_dest_operand): Likewise.
25698 * configure: Regenerate.
25699 * configure.ac: Add arc*-*-* case to test for tls.
25700 * doc/invoke.texi (ARC options): Document mtp-regno.
25702 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25704 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
25705 the new ARC HS SIMD instructions.
25706 (arc_preferred_simd_mode): New function.
25707 (arc_autovectorize_vector_sizes): Likewise.
25708 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
25709 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
25710 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
25711 (arc_init_builtins): Add new SIMD builtin types.
25712 (arc_split_move): Handle 64 bit vector moves.
25713 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
25714 (TARGET_PLUS_QMACW): Define.
25715 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
25716 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
25717 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
25718 (VSUBADD4H): New builtins.
25719 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
25720 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
25722 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
25723 Matthias Klose <doko@debian.org>
25725 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
25727 2016-04-28 Richard Biener <rguenther@suse.de>
25729 PR middle-end/70777
25730 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
25733 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
25735 * common/config/sh/sh-common.c: Remove SH5 support.
25736 * config/sh/constraints.md: Likewise.
25737 * config/sh/config/sh/elf.h: Likewise.
25738 * config/sh/linux.h: Likewise.
25739 * config/sh/netbsd-elf.h: Likewise.
25740 * config/sh/predicates.md: Likewise.
25741 * config/sh/sh-c.c: Likewise.
25742 * config/sh/sh-protos.h: Likewise.
25743 * config/sh/sh.c: Likewise.
25744 * config/sh/sh.h: Likewise.
25745 * config/sh/sh.md: Likewise.
25746 * config/sh/sh.opt: Likewise.
25747 * config/sh/sync.md: Likewise.
25748 * config/sh/sh64.h: Delete.
25749 * config/sh/shmedia.h: Likewise.
25750 * config/sh/shmedia.md: Likewise.
25751 * config/sh/sshmedia.h: Likewise.
25752 * config/sh/t-netbsd-sh5-64: Likewise.
25753 * config/sh/t-sh64: Likewise.
25754 * config/sh/ushmedia.h: Likewise.
25756 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25758 * config/i386/i386.md (sign_extend to memory peephole2s): Use
25759 general_reg_operand instead of register_operand predicate.
25761 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25763 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
25765 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
25767 * match.pd (A - B > A, A + B < A): New transformations.
25769 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
25771 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
25772 which defaults to true. Emit an outer pair of parentheses only if
25773 EMIT_PARENS. When continuing a chain of && or || (or & or |),
25774 don't emit parentheses for the right-hand operand.
25776 2016-04-27 Jeff Law <law@redhat.com>
25778 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
25780 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25782 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
25783 (altivec_lvx_<mode>_internal): Document.
25784 (altivec_lvx_<mode>_2op): New define_insn.
25785 (altivec_lvx_<mode>_1op): Likewise.
25786 (altivec_lvx_<mode>_2op_si): Likewise.
25787 (altivec_lvx_<mode>_1op_si): Likewise.
25788 (altivec_stvx_<mode>): Remove.
25789 (altivec_stvx_<mode>_internal): Document.
25790 (altivec_stvx_<mode>_2op): New define_insn.
25791 (altivec_stvx_<mode>_1op): Likewise.
25792 (altivec_stvx_<mode>_2op_si): Likewise.
25793 (altivec_stvx_<mode>_1op_si): Likewise.
25794 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25795 Expand vec_ld and vec_st during parsing.
25796 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
25798 (altivec_expand_stvx_be): Likewise.
25799 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
25800 address-masking behavior in RTL.
25801 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
25802 address-masking behavior in RTL.
25803 (altivec_expand_builtin): Change builtin code arguments for calls
25804 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
25805 (insn_is_swappable_p): Avoid incorrect swap optimization in the
25806 presence of lvx/stvx patterns.
25807 (alignment_with_canonical_addr): New function.
25808 (alignment_mask): Likewise.
25809 (find_alignment_op): Likewise.
25810 (recombine_lvx_pattern): Likewise.
25811 (recombine_stvx_pattern): Likewise.
25812 (recombine_lvx_stvx_patterns): Likewise.
25813 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
25814 stvx patterns from expand.
25815 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
25817 (vector_altivec_store_<mode>): Likewise.
25819 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
25821 * config/aarch64/aarch64.md
25822 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
25823 remove the "fp" attributes.
25824 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
25825 add the "simd" attributes.
25826 (*movdf_aarch64): Likewise.
25827 (*movtf_aarch64): Remove the "fp" attributes.
25828 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
25829 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
25831 2016-04-27 David Malcolm <dmalcolm@redhat.com>
25833 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
25834 rtx to rtx_code_label *.
25835 * rtl.h (maybe_set_first_label_num): Likewise.
25837 2016-04-27 David Malcolm <dmalcolm@redhat.com>
25839 * df-core.c (df_add_problem): Make the problem param be const.
25840 (df_remove_problem): Make local "problem" be const.
25841 * df-problems.c (problem_RD): Make const.
25842 (problem_LR): Likewise.
25843 (problem_LIVE): Likewise.
25844 (problem_MIR): Likewise.
25845 (problem_CHAIN): Likewise.
25846 (problem_WORD_LR): Likewise.
25847 (problem_NOTE): Likewise.
25848 (problem_MD): Likewise.
25849 * df-scan.c (problem_SCAN): Likewise.
25850 * df.h (struct df_problem): Make field "dependent_problem" be
25852 (struct dataflow): Likewise for field "problem".
25853 (df_add_problem): Make param const.
25855 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
25857 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
25858 inter-unit moves to/from vector registers are enabled. Do not disable
25861 2016-04-27 David Malcolm <dmalcolm@redhat.com>
25863 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
25864 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
25866 (enum df_problem_id): ...this new enum.
25867 (struct df_problem): Convert field "id" from "int" to
25868 enum df_problem_id.
25870 2016-04-27 David Malcolm <dmalcolm@redhat.com>
25872 * rtl.def: Update comment for "things in the instruction chain" to
25873 reflect the removal of the leading "i" field for INSN_UID in
25874 r210360. Fix bogus apostrophe.
25876 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
25878 * config/i386/i386.md
25879 (lea arith with mem operand + setcc peephole2): Set operator mode.
25881 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
25884 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
25885 (dimode_scalar_to_vector_candidate_p): This.
25886 (timode_scalar_to_vector_candidate_p): New function.
25887 (scalar_to_vector_candidate_p): Likewise.
25888 (timode_check_non_convertible_regs): Likewise.
25889 (timode_remove_non_convertible_regs): Likewise.
25890 (remove_non_convertible_regs): Likewise.
25891 (remove_non_convertible_regs): Renamed to ...
25892 (dimode_remove_non_convertible_regs): This.
25893 (scalar_chain::~scalar_chain): Make it virtual.
25894 (scalar_chain::compute_convert_gain): Make it pure virtual.
25895 (scalar_chain::mark_dual_mode_def): Likewise.
25896 (scalar_chain::convert_insn): Likewise.
25897 (scalar_chain::convert_registers): Likewise.
25898 (scalar_chain::add_to_queue): Make it protected.
25899 (scalar_chain::emit_conversion_insns): Likewise.
25900 (scalar_chain::replace_with_subreg): Likewise.
25901 (scalar_chain::replace_with_subreg_in_insn): Likewise.
25902 (scalar_chain::convert_op): Likewise.
25903 (scalar_chain::convert_reg): Likewise.
25904 (scalar_chain::make_vector_copies): Likewise.
25905 (scalar_chain::convert_registers): New pure virtual function.
25906 (class dimode_scalar_chain): New class.
25907 (class timode_scalar_chain): Likewise.
25908 (scalar_chain::mark_dual_mode_def): Renamed to ...
25909 (dimode_scalar_chain::mark_dual_mode_def): This.
25910 (timode_scalar_chain::mark_dual_mode_def): New function.
25911 (timode_scalar_chain::convert_insn): Likewise.
25912 (dimode_scalar_chain::convert_registers): Likewise.
25913 (scalar_chain::compute_convert_gain): Renamed to ...
25914 (dimode_scalar_chain::compute_convert_gain): This.
25915 (scalar_chain::replace_with_subreg): Renamed to ...
25916 (dimode_scalar_chain::replace_with_subreg): This.
25917 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
25918 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
25919 (scalar_chain::make_vector_copies): Renamed to ...
25920 (dimode_scalar_chain::make_vector_copies): This.
25921 (scalar_chain::convert_reg): Renamed to ...
25922 (dimode_scalar_chain::convert_reg ): This.
25923 (scalar_chain::convert_op): Renamed to ...
25924 (dimode_scalar_chain::convert_op): This.
25925 (scalar_chain::convert_insn): Renamed to ...
25926 (dimode_scalar_chain::convert_insn): This.
25927 (scalar_chain::convert): Call convert_registers.
25928 (convert_scalars_to_vector): Change to scalar_chain pointer to
25929 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
25930 in 32-bit mode. Delete scalar_chain pointer. Call
25931 free_dominance_info in 64-bit mode.
25932 (pass_stv::gate): Remove TARGET_64BIT check.
25933 (ix86_option_override): Put the 64-bit STV pass before the CSE
25936 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
25938 * dwarf2out.h (struct dw_loc_descr_node): Remove the
25939 dw_loc_frame_offset field.
25940 * dwarf2out.c (new_loc_descr): Likewise.
25941 (resolve_args_picking_1): Turn the VISITED hash set into a
25942 FRAME_OFFSET hash map. Use it to associate a frame offset to
25943 visited nodes. Remove uses of the CHECKING_P macro.
25944 (resolve_args_picking): Update call to resolve_args_picking_1.
25946 2016-04-27 Martin Liska <mliska@suse.cz>
25948 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
25949 (free_loop_data): Release vuses of groups.
25951 2016-04-27 Bin Cheng <bin.cheng@arm.com>
25953 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
25954 instead of redundant use_id and boolean have_use_for.
25955 (struct iv_use): Change sub_id into group_id. Remove field next.
25956 Move fields: related_cands, n_map_members, cost_map and selected
25958 (struct iv_group): ... here. New structure.
25959 (struct iv_common_cand): Use structure declaration directly.
25960 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
25961 (MAX_CONSIDERED_USES): Rename macro to ...
25962 (MAX_CONSIDERED_GROUPS): ... here.
25963 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
25964 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
25965 (dump_uses): Rename to ...
25966 (dump_groups): ... here. Update all uses.
25967 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
25968 (find_induction_variables): Refactor format of dump information.
25969 (record_sub_use): Delete.
25970 (record_use): Update all uses.
25971 (record_group): New function.
25972 (record_group_use, find_interesting_uses_op): Call above functions.
25974 (find_interesting_uses_cond): Ditto.
25975 (group_compare_offset): New function.
25976 (split_all_small_groups): Rename to ...
25977 (split_small_address_groups_p): ... here. Update all uses.
25978 (split_address_groups): Update all uses.
25979 (find_interesting_uses): Refactor format of dump information.
25980 (add_candidate_1): Update all uses. Remove redundant check on iv,
25982 (add_candidate, record_common_cand): Remove redundant assert.
25983 (add_iv_candidate_for_biv): Update use.
25984 (add_iv_candidate_derived_from_uses): Update all uses.
25985 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
25986 (alloc_use_cost_map): Ditto.
25987 (set_use_iv_cost, get_use_iv_cost): Rename to ...
25988 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
25989 (determine_use_iv_cost_generic): Ditto.
25990 (determine_group_iv_cost_generic): Ditto.
25991 (determine_use_iv_cost_address): Ditto.
25992 (determine_group_iv_cost_address): Ditto.
25993 (determine_use_iv_cost_condition): Ditto.
25994 (determine_group_iv_cost_cond): Ditto.
25995 (determine_use_iv_cost): Ditto.
25996 (determine_group_iv_cost): Ditto.
25997 (set_autoinc_for_original_candidates): Update all uses.
25998 (find_iv_candidates): Update all uses. Refactor dump information.
25999 (determine_use_iv_costs): Ditto.
26000 (determine_iv_costs): Ditto.
26001 (iv_ca_cand_for_use): Rename to ...
26002 (iv_ca_cand_for_group): ... here. Update all uses.
26003 (iv_ca_add_use, iv_ca_add_group): Ditto.
26004 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
26005 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
26006 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
26007 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
26008 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
26009 (create_new_iv, adjust_iv_update_pos): Ditto.
26010 (rewrite_use_address): Delete.
26011 (rewrite_use_address_1): Rename to ...
26012 (rewrite_use_address): ... here.
26013 (rewrite_use_compare): Update all uses.
26014 (rewrite_use): Delete.
26015 (rewrite_uses): Rename to ...
26016 (rewrite_groups): ... here. Update all uses.
26017 (remove_unused_ivs, free_loop_data): Update all uses.
26018 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
26020 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26022 * rtlanal.c (nonzero_bits1): Convert preprocessor check
26023 for WORD_REGISTER_OPERATIONS to runtime check.
26025 2016-04-27 Richard Biener <rguenther@suse.de>
26028 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
26029 aggregate_value_p to determine if a function result is
26030 returned by reference.
26031 (ipa_pta_execute): Functions having their address taken are
26032 not automatically nonlocal.
26034 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26037 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
26038 * fold-const.c (operand_equal_p): If flag_checking and
26039 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
26040 and if it returns non-zero, assert iterative_hash_expr on both
26043 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26045 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
26047 2016-04-27 Nick Clifton <nickc@redhat.com>
26049 PR middle-end/49889
26050 * varasm.c (merge_weak): Generate an error if an attempt is made
26051 to convert a non-weak static function into a weak, public function.
26053 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26055 * params.def (MAX_PARTITION_SIZE): New param.
26056 * doc/invoke.texi: Document lto-max-partition.
26058 2016-04-27 Richard Biener <rguenther@suse.de>
26061 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
26062 function cummulating used_from_other_partition, externally_visible
26063 and force_output from aliases.
26064 (refered_from_nonlocal_var): Likewise.
26065 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
26066 node flags properly.
26068 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26070 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
26071 (-Wmemset-elt-size): New item.
26073 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
26076 * stor-layout.h (internal_reference_types): Delete.
26077 * stor-layout.c (reference_types_internal): Likewise.
26078 (internal_reference_types): Likewise.
26079 (layout_type) <REFERENCE_TYPE>: Adjust.
26081 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26084 * tree.h (inchash::add_expr): Add FLAGS argument.
26085 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
26086 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
26087 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
26088 Formatting fix. Adjust recursive calls. For tcc_comparison,
26089 if swap_tree_comparison (code) is smaller than code, hash that
26090 and arguments in the other order. Hash CONVERT_EXPR the same
26091 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
26092 of ADDR_EXPR of decl as the decl itself. Add or remove
26093 OEP_ADDRESS_OF from recursive flags as needed. For
26094 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
26095 operands commutatively and only the third one normally.
26096 For internal CALL_EXPR hash in CALL_EXPR_IFN.
26098 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
26100 * config/rtems.h (LIB_SPEC): Add -latomic.
26102 2016-04-27 Joel Sherrill <joel@rtems.org>
26104 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
26105 xilink.ld and flags not relevant to RTEMS.
26107 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26109 * toplev.c (backend_init_target): Avoid calling init_reload when using
26112 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26114 * reorg.c (try_merge_delay_insns): Declare i and j inside the
26115 for loops rather than one for the whole function.
26117 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26119 * match.pd (X + CST CMP X): New transformation.
26121 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26123 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
26124 * fold-const.c (fold_binary_loc): Remove 2 transformations
26125 superseded by match.pd.
26126 * match.pd (x+x -> x*2): Generalize to integers.
26128 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
26130 * config/i386/i386.md (operation on memory peephole): Duplicate an
26131 existing peephole and adapt it to match lea rather than an operation
26134 PR rtl-optimization/57193
26135 * opts.c (default_options_table): Add OPT_frename_registers at -O2
26137 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
26139 2016-04-26 Bin Cheng <bin.cheng@arm.com>
26141 * tree-if-conv.c (any_pred_load_store): New static variable.
26142 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
26143 any_pred_load_store instead of and_mask_load_store.
26144 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
26145 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
26146 (combine_blocks, tree_if_conversion): Ditto.
26148 2016-04-26 Bin Cheng <bin.cheng@arm.com>
26150 PR tree-optimization/70771
26151 PR tree-optimization/70775
26152 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
26153 virtual PHI nodes. Delete parameter.
26154 (if_convertible_loop_p_1): Delete argument to above function.
26155 (predicate_all_scalar_phis): Delete code handling single-argument
26157 (tree_if_conversion): Mark and update virtual SSA.
26159 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26162 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
26163 (x86_elf_aligned_common): Rename to ...
26164 (x86_elf_aligned_decl_common): ... this.
26165 Add decl arg. Switch to .lbss for largecomm object. Use
26166 LARGECOMM_SECTION_ASM_OP.
26167 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
26169 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
26170 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
26172 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
26173 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
26175 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26178 * config/i386/i386.c (SECTION_LARGE): Define.
26179 (x86_64_elf_select_section): Set it for large data/bss sections.
26180 Only clear SECTION_WRITE for .lrodata.
26181 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
26183 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
26184 * varasm.c (default_elf_asm_named_section): Grow flagchars.
26185 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
26187 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
26188 * doc/tm.texi: Regenerate.
26190 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26193 * configure.ac (--enable-checking): Document extra flag, for
26194 non-release builds default to --enable-checking=yes,extra.
26195 If misc checking and extra checking, define CHECKING_P to 2 instead
26197 * common.opt (fchecking=): Add.
26198 * doc/invoke.texi (-fchecking=): Document.
26199 * doc/install.texi: Document --enable-checking changes.
26200 * configure: Regenerated.
26201 * config.in: Regenerated.
26203 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26205 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
26206 attribute instead of which_alternative.
26207 * config/i386/sse.md (*mov<mode>_internal): Ditto.
26208 Use EXT_REX_SSE_REG_P where appropriate.
26210 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26212 * config/i386/predicates.md (const0_operand): Do not match
26213 const_wide_int code.
26214 (const1_operand): Ditto.
26216 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26218 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
26219 for SSE constm1 operands and TARGET_AVX512VL.
26220 (*movti_internal): Ditto.
26221 (*mov<mode>_or): Use constm1_operand predicate.
26222 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
26223 for SSE vector_all_ones operands and TARGET_AVX512VL.
26224 * config/i386/predicates.md (constm1_operand): New predicate.
26225 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
26226 emission of constant -1 load.
26228 2016-04-25 Jason Merrill <jason@redhat.com>
26230 * gdbinit.in: Skip is-a.h.
26232 * attribs.c (register_scoped_attributes): Fix logic.
26233 * attribs.h: Declare register_scoped_attributes.
26235 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26237 * config/rs6000/rs6000-builtin.def: Correct pasto error for
26238 stxvd2x and stxvw4x built-in functions.
26240 2016-04-25 DJ Delorie <dj@redhat.com>
26242 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
26243 (ashrhi3): Likewise.
26244 (lshrhi3): Likewise.
26246 2016-04-25 Richard Biener <rguenther@suse.de>
26248 PR tree-optimization/70780
26249 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
26250 wasn't visited yet.
26251 (compute_antic): Mark blocks with abnormal preds as visited as
26252 they have a final empty antic-in solution already.
26254 2016-04-25 Michael Collison <michael.collison@linaro.org>
26256 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
26258 2016-04-25 Michael Collison <michael.collison@linaro.org>
26260 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
26261 mode is VQI to improve mixed mode vectorization.
26262 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
26263 define_insn to match low half of signed vaddw.
26264 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
26265 define_insn to match high half of signed vaddw.
26266 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
26267 define_insn to match low half of unsigned vaddw.
26268 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
26269 define_insn to match high half of unsigned vaddw.
26270 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
26271 (arm_simd_check_vect_par_cnst_half_p): Likewise.
26272 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
26274 (arm_simd_check_vect_par_cnst_half_p): Likewise.
26275 * config/arm/predicates.md (vect_par_constant_high): Support
26276 big endian and simplify by calling
26277 arm_simd_check_vect_par_cnst_half
26278 (vect_par_constant_low): Likewise.
26280 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26282 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
26283 predicate for operand 2.
26285 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
26286 H.J. Lu <hongjiu.lu@intel.com>
26288 * config/i386/i386-protos.h (standard_sse_constant_p): Add
26289 machine_mode argument.
26290 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
26291 constm1_rtx operands. For VOIDmode constants, get mode from
26292 pred_mode. Check mode size if the mode is supported by ABI.
26293 (standard_sse_constant_opcode): Do not use standard_constant_p.
26294 Strictly check ABI support for all-ones operands.
26295 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
26296 immediates. Update calls to standard_sse_constant_p.
26297 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
26298 (ix86_rtx_costs): Ditto.
26299 * config/i386/i386.md (*movxi_internal_avx512f): Use
26300 nonimmediate_or_sse_const_operand instead of vector_move_operand.
26301 Use (v,BC) alternative instead of (v,C). Use register_operand
26302 checks instead of MEM_P.
26303 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
26304 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
26305 isa attribute. Use register_operand checks instead of MEM_P.
26306 (*movti_internal): Use nonimmediate_or_sse_const_operand for
26307 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
26308 alternative and corresponding sse2 isa attribute.
26309 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
26310 to standard_sse_constant_p.
26311 (FP constant splitters): Ditto.
26312 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
26314 * config/i386/predicates.md (constm1_operand): Remove.
26315 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
26316 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
26317 vector_all_ones_operand instead of constm1_operand.
26319 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26321 * print-rtl.c (print_rtx_insn_vec): New function.
26322 * print-rtl.h: New prototype.
26323 * store-motion.c (struct st_expr): Make avail_stores a vector.
26324 (st_expr_entry): Adjust.
26325 (free_st_expr_entry): Likewise.
26326 (print_store_motion_mems): Likewise.
26327 (find_moveable_store): Likewise.
26328 (compute_store_table): Likewise.
26329 (delete_store): Likewise.
26330 (build_store_vectors): Likewise.
26332 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26334 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
26336 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26338 * vec.h (vec_safe_contains): New function.
26339 (vec::contains): Likewise.
26340 (vec::begin): Likewise.
26341 (vec::end): Likewise.
26343 2016-04-23 Jakub Jelinek <jakub@redhat.com>
26346 * cfgexpand.c (expand_stack_vars): Fix typo.
26348 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
26350 * system.h (list, map, set, vector): Include conditionally.
26351 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
26352 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
26353 * ipa-icf.c (INCLUDE_LIST): Define.
26354 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
26355 * config/sh/sh.c (INCLUDE_VECTOR): Define.
26356 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
26357 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
26358 * cp/logic.cc (INCLUDE_LIST): Define.
26359 * fortran/trans-common.c (INCLUDE_MAP): Define.
26361 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
26363 * auto-profile.c: Remove <string.h> include.
26364 * ipa-icf-gimple.c: Remove <list> include.
26365 * diagnostic.c: Remove <new> include.
26366 * genmatch.c: Likewise.
26367 * pretty-print.c: Likewise.
26368 * toplev.c: Likewise
26369 * c/c-objc-common.c: Likewise.
26370 * cp/error.c: Likewise.
26371 * fortran/error.c: Likewise.
26373 2016-04-22 Richard Biener <rguenther@suse.de>
26375 * lto-streamer-in.c (input_ssa_names): Do not allocate
26376 GIMPLE_NOP for all SSA names.
26377 * lto-streamer-out.c (output_ssa_names): Do not output
26378 SSA names that should have been released.
26380 2016-04-22 Richard Biener <rguenther@suse.de>
26382 PR tree-optimization/70740
26383 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
26386 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
26389 * config/i386/predicates.md (call_insn_operand): Replace
26390 sibcall_memory_operand with memory_operand.
26392 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
26394 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
26395 has_single_use() tests.
26396 (register_edge_assert_for_1): Likewise.
26397 (find_assert_locations_1): Check the liveness bitmap instead of
26398 checking has_single_use().
26400 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
26403 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
26404 Extract AVX-512BW constraint from AVX.
26406 2016-04-21 Richard Biener <rguenther@suse.de>
26408 PR tree-optimization/70725
26409 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
26410 for phi_convertible_by_degenerating_args.
26411 (predicate_all_scalar_phis): Handle single-argument PHIs.
26413 2016-04-21 Richard Biener <rguenther@suse.de>
26415 PR middle-end/70747
26416 * fold-const.c (fold_comparison): Return properly typed
26419 2016-04-21 Bin Cheng <bin.cheng@arm.com>
26421 PR tree-optimization/70715
26422 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
26423 after expanding BASE using expand_simple_operations.
26425 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
26427 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
26428 New transformations.
26430 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
26432 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
26434 2016-04-20 Jan Hubicka <jh@suse.cz>
26436 * ipa-inline.c (can_inline_edge_p): Pass caller info to
26437 ultiimate_alias_target.
26438 (update_callee_keys): Likewise.
26439 (lookup_recursive_calls): Likewise.
26440 (speculation_useful_p): Likewise.
26442 2016-04-20 Jan Hubicka <jh@suse.cz>
26445 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
26446 (set_nothrow_flag_1): ... this; handle interposition correctly;
26447 recurse on aliases and thunks.
26448 (cgraph_node::set_nothrow_flag): New.
26449 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
26450 functions compiled with non-call exceptions that binds to current
26452 (propagate_nothrow): Be safe WRT interposition.
26453 * cgraph.h (set_nothrow_flag): Update prototype.
26455 2016-04-18 Jan Hubicka <jh@suse.cz>
26457 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
26458 max_loop_iterations_int.
26459 (tree_unswitch_outer_loop): Likewise.
26461 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26463 PR tree-optimization/69489
26464 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
26465 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
26466 Revise dump message.
26467 (if_convertible_bb_p): Remove check on edge count of basic block's
26470 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26472 PR tree-optimization/56625
26473 PR tree-optimization/69489
26474 * tree-data-ref.h (DR_INNERMOST): New macro.
26475 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
26476 hashing struct innermost_loop_behavior.
26477 (ref_DR_map): Remove.
26478 (innermost_DR_map): New map.
26479 (baseref_DR_map): Revise comment.
26480 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
26481 to innermost_DR_map accroding to its innermost loop behavior.
26482 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
26483 to its innermost loop behavior.
26484 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
26485 Add initialization for innermost_DR_map. Record memory reference
26486 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
26487 have innermost loop behavior.
26488 (if_convertible_loop_p): Remove release for ref_DR_map. Release
26491 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
26493 * config/i386/i386.md (*lea<mode>_general_1): Rename from
26494 *lea_general_1. Use explicit SWI12 mode interator.
26495 (*lea<mode>_general_2): Rename from *lea_general_2.
26496 Use explicit SWI12 mode interator.
26497 (*lea<mode>_general_3): Rename from *lea_general_3.
26498 Use explicit SWI12 mode interator.
26499 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
26500 Use explicit SWI12 mode interator.
26501 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
26502 Use explicit SWI48 mode interator.
26504 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
26506 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
26507 Short-cut unaligned load and store cases. Handle all integer
26509 (ix86_expand_vector_move_misalign): Short-cut unaligned load
26510 and store cases. Call ix86_avx256_split_vector_move_misalign
26511 directly without checking mode class.
26513 2016-04-20 Andrew Pinski <apinski@cavium.com>
26514 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26517 * config/aarch64/aarch64.md (sibcall): Force call
26518 address to be DImode for ILP32.
26519 (sibcall_value): Likewise.
26521 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
26523 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
26525 2016-04-20 Richard Biener <rguenther@suse.de>
26527 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
26528 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
26529 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
26530 (maybe_push_res_to_seq): Adjust.
26531 * gimple-fold.c (maybe_build_generic_op): Likewise.
26533 2016-04-20 Marek Polacek <polacek@redhat.com>
26535 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
26538 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
26540 * config/i386/sse.md (vec_unpacks_lo_hi): Always
26541 use kmovw to support AVX512F target.
26543 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26545 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
26547 2016-04-20 Marek Polacek <polacek@redhat.com>
26549 PR tree-optimization/70725
26550 * tree-if-conv.c (is_false_predicate): New function.
26551 (predicate_mem_writes): Use it.
26553 2016-04-20 Richard Biener <rguenther@suse.de>
26555 PR tree-optimization/70726
26556 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
26557 shift amounts from a pattern stmt operand.
26559 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26562 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
26563 stack_restore_from_fpr pattern when restoring r15.
26564 (s390_optimize_prologue): Strip away the memory barrier in the
26565 parallel when trying to get rid of restore insns.
26566 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
26567 definition for loading the stack pointer from an FPR. Compared to
26568 the normal move insn this pattern includes a full memory barrier.
26570 2016-04-19 Jakub Jelinek <jakub@redhat.com>
26572 PR middle-end/70680
26573 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
26574 implicitly linear or lastprivate iterator on the outer context.
26576 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
26578 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
26580 * config/i386/i386.md (ssememalign): Removed.
26581 * config/i386/sse.md: Remove ssememalign attribute from patterns.
26583 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
26586 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
26587 const short * to __builtin_ia32_loaddquhi512_mask.
26588 (_mm512_maskz_loadu_epi16): Likewise.
26589 (_mm512_mask_storeu_epi16): Pass short * to
26590 __builtin_ia32_storedquhi512_mask.
26591 (_mm512_mask_loadu_epi8): Pass const char * to
26592 __builtin_ia32_loaddquqi512_mask.
26593 (_mm512_maskz_loadu_epi8): Likewise.
26594 (_mm512_mask_storeu_epi8): Pass char * to
26595 __builtin_ia32_storedquqi512_mask.
26596 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
26597 const double * to __builtin_ia32_loadupd512_mask.
26598 (_mm512_mask_loadu_pd): Likewise.
26599 (_mm512_maskz_loadu_pd): Likewise.
26600 (_mm512_storeu_pd): Pass double * to
26601 __builtin_ia32_storeupd512_mask.
26602 (_mm512_mask_storeu_pd): Likewise.
26603 (_mm512_loadu_ps): Pass const float * to
26604 __builtin_ia32_loadups512_mask.
26605 (_mm512_mask_loadu_ps): Likewise.
26606 (_mm512_maskz_loadu_ps): Likewise.
26607 (_mm512_storeu_ps): Pass float * to
26608 __builtin_ia32_storeups512_mask.
26609 (_mm512_mask_storeu_ps): Likewise.
26610 (_mm512_mask_loadu_epi64): Pass const long long * to
26611 __builtin_ia32_loaddqudi512_mask.
26612 (_mm512_maskz_loadu_epi64): Likewise.
26613 (_mm512_mask_storeu_epi64): Pass long long *
26614 to __builtin_ia32_storedqudi512_mask.
26615 (_mm512_loadu_si512): Pass const int * to
26616 __builtin_ia32_loaddqusi512_mask.
26617 (_mm512_mask_loadu_epi32): Likewise.
26618 (_mm512_maskz_loadu_epi32): Likewise.
26619 (_mm512_storeu_si512): Pass int * to
26620 __builtin_ia32_storedqusi512_mask.
26621 (_mm512_mask_storeu_epi32): Likewise.
26622 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
26623 char * to __builtin_ia32_storedquqi256_mask.
26624 (_mm_mask_storeu_epi8): Likewise.
26625 (_mm256_mask_loadu_epi16): Pass const short * to
26626 __builtin_ia32_loaddquhi256_mask.
26627 (_mm256_maskz_loadu_epi16): Likewise.
26628 (_mm_mask_loadu_epi16): Pass const short * to
26629 __builtin_ia32_loaddquhi128_mask.
26630 (_mm_maskz_loadu_epi16): Likewise.
26631 (_mm256_mask_loadu_epi8): Pass const char * to
26632 __builtin_ia32_loaddquqi256_mask.
26633 (_mm256_maskz_loadu_epi8): Likewise.
26634 (_mm_mask_loadu_epi8): Pass const char * to
26635 __builtin_ia32_loaddquqi128_mask.
26636 (_mm_maskz_loadu_epi8): Likewise.
26637 (_mm256_mask_storeu_epi16): Pass short * to.
26638 __builtin_ia32_storedquhi256_mask.
26639 (_mm_mask_storeu_epi16): Pass short * to.
26640 __builtin_ia32_storedquhi128_mask.
26641 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
26642 const double * to __builtin_ia32_loadupd256_mask.
26643 (_mm256_maskz_loadu_pd): Likewise.
26644 (_mm_mask_loadu_pd): Pass onst double * to
26645 __builtin_ia32_loadupd128_mask.
26646 (_mm_maskz_loadu_pd): Likewise.
26647 (_mm256_mask_storeu_pd): Pass double * to
26648 __builtin_ia32_storeupd256_mask.
26649 (_mm_mask_storeu_pd): Pass double * to
26650 __builtin_ia32_storeupd128_mask.
26651 (_mm256_mask_loadu_ps): Pass const float * to
26652 __builtin_ia32_loadups256_mask.
26653 (_mm256_maskz_loadu_ps): Likewise.
26654 (_mm_mask_loadu_ps): Pass const float * to
26655 __builtin_ia32_loadups128_mask.
26656 (_mm_maskz_loadu_ps): Likewise.
26657 (_mm256_mask_storeu_ps): Pass float * to
26658 __builtin_ia32_storeups256_mask.
26659 (_mm_mask_storeu_ps): ass float * to
26660 __builtin_ia32_storeups128_mask.
26661 (_mm256_mask_loadu_epi64): Pass const long long * to
26662 __builtin_ia32_loaddqudi256_mask.
26663 (_mm256_maskz_loadu_epi64): Likewise.
26664 (_mm_mask_loadu_epi64): Pass const long long * to
26665 __builtin_ia32_loaddqudi128_mask.
26666 (_mm_maskz_loadu_epi64): Likewise.
26667 (_mm256_mask_storeu_epi64): Pass long long * to
26668 __builtin_ia32_storedqudi256_mask.
26669 (_mm_mask_storeu_epi64): Pass long long * to
26670 __builtin_ia32_storedqudi128_mask.
26671 (_mm256_mask_loadu_epi32): Pass const int * to
26672 __builtin_ia32_loaddqusi256_mask.
26673 (_mm256_maskz_loadu_epi32): Likewise.
26674 (_mm_mask_loadu_epi32): Pass const int * to
26675 __builtin_ia32_loaddqusi128_mask.
26676 (_mm_maskz_loadu_epi32): Likewise.
26677 (_mm256_mask_storeu_epi32): Pass int * to
26678 __builtin_ia32_storedqusi256_mask.
26679 (_mm_mask_storeu_epi32): Pass int * to
26680 __builtin_ia32_storedqusi128_mask.
26681 * config/i386/i386-builtin-types.def (PCSHORT): New.
26682 (PINT64): Likewise.
26683 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
26684 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
26685 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
26686 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
26687 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
26688 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
26689 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
26690 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
26691 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
26692 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
26693 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
26694 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
26695 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
26696 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
26697 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
26698 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
26699 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
26700 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
26701 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
26702 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
26703 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
26704 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
26705 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
26706 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
26707 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
26708 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
26709 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
26710 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
26711 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
26712 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
26713 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
26714 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
26715 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
26716 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
26717 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
26718 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
26719 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
26720 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
26721 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
26722 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
26723 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
26724 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
26725 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
26726 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
26727 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
26728 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
26729 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
26730 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
26731 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
26733 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
26734 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
26736 (ix86_expand_vector_move_misalign): Likewise.
26737 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
26738 to scalar function prototype for unaligned load/store builtins.
26739 (ix86_expand_special_args_builtin): Updated.
26740 * config/i386/sse.md (UNSPEC_LOADU): Removed.
26741 (UNSPEC_STOREU): Likewise.
26742 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
26743 (VI_ULOADSTORE_F_AVX512VL): Likewise.
26744 (ssescalarsize): Handle V4TI, V2TI and V1TI.
26745 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
26746 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
26747 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
26748 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
26749 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
26750 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
26751 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
26752 (<avx512>_storedqu<mode>_mask): Likewise.
26753 (*sse4_2_pcmpestr_unaligned): Likewise.
26754 (*sse4_2_pcmpistr_unaligned): Likewise.
26755 (*mov<mode>_internal): Renamed to ...
26756 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
26757 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
26758 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
26759 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
26761 2016-04-19 Richard Biener <rguenther@suse.de>
26763 PR tree-optimization/70171
26764 * tree-ssa-phiprop.c: Include stor-layout.h.
26765 (phiprop_insert_phi): Handle the aggregate copy case.
26766 (propagate_with_phi): Likewise.
26768 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
26770 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
26771 instead of simplify_gen_subreg (... , 0).
26772 (ix86_delegitimize_address): Ditto.
26773 (ix86_split_divmod): Ditto.
26774 (ix86_split_copysign_const): Ditto.
26775 (ix86_split_copysign_var): Ditto.
26776 (ix86_expand_args_builtin): Ditto.
26777 (ix86_expand_round_builtin): Ditto.
26778 (ix86_expand_special_args_builtin): Ditto.
26779 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
26780 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
26781 (udivmodqi4): Ditto.
26782 (absneg splitters): Ditto.
26783 (*jcc_bt<mode>_1): Ditto.
26785 2016-04-19 Richard Biener <rguenther@suse.de>
26787 PR tree-optimization/70724
26788 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
26789 restoring out from ...
26790 (free_scc_vn): ... here.
26791 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
26792 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
26794 (pass_fre::execute): Restore SSA info.
26796 2016-04-19 Richard Biener <rguenther@suse.de>
26798 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
26799 * gimple-walk.c (walk_gimple_op): Initialize it.
26800 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
26801 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
26802 remapping SSA names of defs.
26803 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
26806 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
26808 PR middle-end/70689
26809 * lra-constraints.c (equiv_substition_p): New.
26810 (process_alt_operands): Use it.
26811 (swap_operands): Swap it.
26812 (curr_insn_transform): Update it.
26814 2016-04-18 Michael Matz <matz@suse.de>
26816 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
26817 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
26818 * tree-core.h (tree_type_common.align): Use bit-field.
26819 (tree_type_common.spare): New.
26820 (tree_decl_common.off_align): Make smaller.
26821 (tree_decl_common.align): Use bit-field.
26823 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
26824 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
26825 (scan_sharing_clauses): Ditto.
26826 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
26827 (omp_finish_file): Ditto.
26828 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
26829 (layout_decl): Ditto.
26830 (relayout_decl): Ditto.
26831 (finalize_record_size): Use SET_TYPE_ALIGN.
26832 (finalize_type_size): Ditto.
26833 (finish_builtin_struct): Ditto.
26834 (layout_type): Ditto.
26835 (initialize_sizetypes): Ditto.
26836 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
26837 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
26838 (lookup_field_for_decl): Use SET_DECL_ALIGN.
26839 (get_chain_field): Ditto.
26840 (get_trampoline_type): Ditto.
26841 (get_nl_goto_field): Ditto.
26842 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26844 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
26845 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
26846 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
26847 (build_qualified_type): Use SET_TYPE_ALIGN.
26848 (build_aligned_type, build_range_type_1): Ditto.
26849 (build_atomic_base): Ditto.
26850 (build_common_tree_nodes): Ditto.
26851 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
26852 (expand_one_stack_var_at): Ditto.
26853 * coverage.c (build_var): Use SET_DECL_ALIGN.
26854 * except.c (init_eh): Ditto.
26855 * function.c (assign_parm_setup_block): Ditto.
26856 * symtab.c (increase_alignment_1): Ditto.
26857 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
26858 * tree-vect-stmts.c (ensure_base_align): Ditto.
26859 * varasm.c (align_variable): Ditto.
26860 (assemble_variable): Ditto.
26861 (build_constant_desc): Ditto.
26862 (output_constant_def_contents): Ditto.
26864 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
26865 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
26866 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
26867 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
26868 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
26870 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
26873 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
26874 replace %vmovsd with "%vmovq".
26875 (vec_concatv2df): Likewise.
26877 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
26879 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
26880 (*vec_extractv2si_0): Ditto.
26881 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
26882 (zero_extended_scalar_load_operand splitters): Ditto.
26883 (vec_extract splitters): Ditto.
26884 (*vec_extractv4si_0_zext): Ditto.
26885 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
26886 and lowpart_subreg.
26887 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
26888 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
26889 (*sse4_1_extractps): Use lowpart_subreg.
26890 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
26892 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26894 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
26896 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
26897 Mention Solaris 11 packaging changes.
26898 Update gas and gld requirements.
26899 Remove reference to pre-Solaris 10 bug.
26900 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
26902 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
26905 2016-04-17 Jan Hubicka <jh@suse.cz>
26907 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
26908 max_loop_iterations_int.
26910 2016-04-18 Richard Biener <rguenther@suse.de>
26912 PR tree-optimization/43434
26913 * tree-ssa-structalias.c (struct vls_data): New.
26914 (visit_loadstore): Handle all pointer-based accesses.
26915 (compute_dependence_clique): Compute a bitmap of restrict tags
26916 assigned bases and pass it to visit_loadstore.
26918 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
26921 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
26922 armv8.1-a and armv8.1-a+crc.
26924 2016-04-18 Richard Biener <rguenther@suse.de>
26926 PR tree-optimization/70701
26927 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
26928 references after translating through a memcpy.
26930 2016-04-18 Richard Biener <rguenther@suse.de>
26932 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
26933 (compute_antic): ... here. For partial antic use regular
26934 postorder and scrap iteration.
26935 (compute_partial_antic_aux): Remove unused return value.
26936 (init_pre): Do not allocate postorder.
26937 (fini_pre): Do not free postorder.
26939 2016-04-18 Richard Biener <rguenther@suse.de>
26941 PR middle-end/37870
26942 * expmed.c (extract_bit_field_1): Remove broken case
26943 using a wider MODE_INT mode.
26945 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
26947 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
26948 unless compiling with at least GCC-4.8.
26950 2016-04-17 Jan Hubicka <jh@suse.cz>
26953 * graphite.c (graphite_finalize): Update call to
26954 tree_estimate_probability.
26955 * predict.h (tree_estimate_probability): Update prototype.
26957 2016-04-17 Jan Hubicka <jh@suse.cz>
26959 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
26960 (tree_estimate_probability): Likewise.
26961 (pass_profile::execute): Update.
26962 (report_predictor_hitrates): New function.
26963 * profile.c (compute_branch_probabilities): Use it.
26964 * predict.h (report_predictor_hitrates): Declare.
26966 2016-04-17 Jan Hubicka <jh@suse.cz>
26969 * cgraph.h (cgraph_node::set_const_flag,
26970 cgraph_node::set_pure_flag): Update prototype to return bool;
26972 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
26973 of interposable symbol are interposable, too.
26974 (cgraph_set_const_flag_1): Rename to ...
26975 (set_const_flag_1): ... this one; change to self recursive function
26976 instead of call_for_symbol_thunks_and_aliases. Handle correctly
26977 clearnig the flag in all variants and also virtual thunks of const
26978 functions are pure; track if any change was done.
26979 (cgraph_node::set_const_flag): Update.
26980 (struct set_pure_flag_info): New struct.
26981 (cgraph_set_pure_flag_1): Rename to ...
26982 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
26983 rather than pointer encoded flags; track if any changes was done;
26984 handle correctly clearning flag and setting flag of aliases already
26986 (cgraph_node::set_pure_flag): Update.
26987 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
26989 2016-04-17 Tom de Vries <tom@codesourcery.com>
26992 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
26993 backslash in label.
26995 2016-04-17 Tom de Vries <tom@codesourcery.com>
26997 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
26998 '{}<> ' as escape-for-record.
27000 2016-04-17 Tom de Vries <tom@codesourcery.com>
27002 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
27005 2016-04-17 Tom de Vries <tom@codesourcery.com>
27008 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
27009 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
27010 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
27011 * passes.c (finish_optimization_passes): Only call
27012 finish_graph_dump_file if dfi->graph_dump_initialized.
27013 (execute_function_dump, pass_init_dump_file): Use
27014 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
27016 2016-04-17 Tom de Vries <tom@codesourcery.com>
27018 PR tree-optimization/70256
27019 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
27020 (debug_varmap): New function.
27022 2016-04-17 Tom de Vries <tom@codesourcery.com>
27025 * passes.c (pass_manager::register_pass): Propagate pflags.
27027 2016-04-17 Tom de Vries <tom@codesourcery.com>
27030 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
27031 * passes.c (pass_manager::pass_manager): Declare and init p_start in
27032 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
27033 check if it's equal to p_start.
27034 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
27036 2016-04-15 Jan Hubicka <jh@suse.cz>
27039 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
27040 function does not bind to current def.
27041 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
27042 handle conservatively calls to functions that does not need to bind
27044 (check_call): Update call of worse_state.
27045 (ignore_edge_for_nothrow): Update.
27046 (ignore_edge_for_pure_const): Likewise.
27047 (propagate_pure_const): Update calls to worse_state.
27048 (skip_function_for_local_pure_const): Reformat comments.
27050 2016-04-15 Jan Hubicka <jh@suse.cz>
27053 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
27054 (cgraph_node::function_symbol): Likewise.
27055 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27056 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
27057 (symtab_node::ultimate_alias_target): Add REF parameter.
27058 (symtab_node::binds_to_current_def_p): Declare.
27059 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
27060 (cgraph_node::function_symbol): Likewise.
27061 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27062 (cgraph_node::get_availability): Likewise.
27063 (cgraph_edge::binds_to_current_def_p): New inline function.
27064 (varpool_node::get_availability): Add REF parameter.
27065 (varpool_node::ultimate_alias_target): Likewise.
27066 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
27067 (symtab_node::binds_to_current_def_p): Likewise.
27068 * varpool.c (varpool_node::get_availability): Likewise.
27070 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27073 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
27074 Fix mode size check.
27076 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27078 * BASE-VER: Set to 7.0.0.
27080 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
27082 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
27084 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27086 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
27087 architecture revisions.
27089 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
27091 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
27092 * config/i386/i386.c (ix86_using_red_zone): No longer static.
27093 * config/i386/i386.md (stack decrement to push peepholes): Guard
27094 with !x86_using_red_zone ().
27096 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27099 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
27100 to dump_generic_node.
27101 (NIY): Pass also flags to do_niy.
27103 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
27105 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
27106 (simd_clone_vector_of_formal_parm_types)
27107 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
27108 (simd_clone_mangle, simd_clone_create)
27109 (simd_clone_adjust_return_type, create_tmp_simd_array)
27110 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
27111 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
27112 (ipa_simd_modify_function_body, simd_clone_linear_addend)
27113 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
27114 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
27115 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
27116 * omp-simd-clone.c: ... this new file.
27117 (simd_clone_vector_of_formal_parm_types): Make it static.
27118 * Makefile.in (OBJS): Add omp-simd-clone.o.
27120 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27123 * config/i386/sse.md: Use proper memory operand modifiers.
27126 2016-04-15 Richard Biener <rguenther@suse.de>
27127 Alan Modra <amodra@gmail.com>
27129 PR tree-optimization/70130
27130 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
27131 when alignment stays not the same and no not use the realign
27134 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27137 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27138 direct move handlers for KFmode. Change TFmode handlers test from
27139 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
27141 2016-04-14 Jakub Jelinek <jakub@redhat.com>
27144 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
27145 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
27146 (inlined_polymorphic_ctor_dtor_block_p): Use it.
27147 * tree-ssa-live.c (remove_unused_scope_block_p): When
27148 in_ctor_dtor_block, avoid discarding not just BLOCKs with
27149 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
27150 block_ultimate_origin is FUNCTION_DECL.
27151 (remove_unused_locals): If current_function_decl is
27152 polymorphic_ctor_dtor_p, pass initial true to
27153 remove_unused_scope_block_p' is_ctor_dtor_block.
27155 2016-04-14 Martin Sebor <msebor@redhat.com>
27160 * doc/extend.texi (Variable Length): Revert.
27162 2016-04-14 Marek Polacek <polacek@redhat.com>
27163 Jan Hubicka <hubicka@ucw.cz>
27166 * tree.c (verify_type): Disable the canonical type of main variant
27169 2016-04-14 Jason Merrill <jason@redhat.com>
27171 * cfgexpand.c, expr.c: Revert previous change.
27173 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
27175 PR middle-end/70643
27176 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
27177 when building a mem ref for the incoming reduction variable.
27179 2016-04-14 Richard Biener <rguenther@suse.de>
27181 PR tree-optimization/70614
27182 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
27183 loop if the evolution dropped to chrec_dont_know.
27184 (interpret_condition_phi): Likewise.
27186 2016-04-14 Richard Biener <rguenther@suse.de>
27188 PR tree-optimization/70623
27189 * tree-ssa-pre.c (changed_blocks): Make global ...
27190 (compute_antic): ... local here. Move and fix worklist
27191 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
27192 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
27193 worklist handling, dump when ANTIC_IN changed.
27194 (compute_partial_antic_aux): Remove worklist handling.
27195 (init_pre): Do not compute post dominators. Add a comment about
27196 the CFG order chosen.
27197 (fini_pre): Do not free post dominators.
27199 2016-04-13 Martin Sebor <msebor@redhat.com>
27204 * doc/extend.texi (Variable Length): Document C++ specifics.
27206 2016-04-13 Jakub Jelinek <jakub@redhat.com>
27209 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
27210 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
27211 eh edges have been purged.
27214 * tree-sra.c (create_access_replacement,
27215 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
27217 * tree-pretty-print.c (dump_fancy_name): New function.
27218 (dump_decl_name, dump_generic_node): Use it.
27220 2016-04-13 Jason Merrill <jason@redhat.com>
27222 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
27223 * expr.c (expand_expr_real_1): Likewise.
27225 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
27227 * config/i386/i386.md (kunpckhi): Swap operands.
27228 (kunpcksi): Likewise.
27229 (kunpckdi): Likewise.
27230 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
27231 (vec_pack_trunc_<mode>): Likewise.
27233 2016-04-13 Jakub Jelinek <jakub@redhat.com>
27236 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
27238 PR middle-end/70633
27239 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
27240 gimplification turns some element into non-constant.
27243 * rtl.h (convert_memory_address_addr_space_1): New prototype.
27244 * explow.c (convert_memory_address_addr_space_1): No longer static,
27245 add NO_EMIT argument and don't call convert_modes if true, pass
27246 it down recursively, remove break after return.
27247 (convert_memory_address_addr_space): Adjust caller.
27248 * simplify-rtx.c (simplify_unary_operation_1): Call
27249 convert_memory_address_addr_space_1 instead of convert_memory_address,
27250 if it returns NULL, don't simplify.
27252 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
27255 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
27257 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27259 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27260 Bump the upper SIMDLEN limits, so that if the return type or
27261 characteristic type if the return type is void can be passed in
27262 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
27265 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
27268 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
27269 Do not use "=" constraint on an input constraint.
27270 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
27271 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
27272 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
27273 generates (neg (abs ...)) instead of (abs ...).
27275 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27277 PR rtl-optimization/70596
27278 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
27279 just invalidate LRA data and reset them. Adjust dump wording.
27281 2016-04-12 Martin Liska <mliska@suse.cz>
27284 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
27286 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
27288 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27289 max_loop_iterations_int.
27290 (tree_unswitch_outer_loop): Likewise.
27291 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
27292 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
27294 2016-04-12 Tom de Vries <tom@codesourcery.com>
27296 PR tree-optimization/68756
27297 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
27298 instead of new_name.
27300 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27302 PR tree-optimization/70602
27303 * tree-sra.c (generate_subtree_copies): Don't write anything into
27304 constant pool decls.
27306 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
27307 regardless whether there are depend clauses or not.
27309 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27312 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
27313 target attribute and pragma from changing the -mfloat128
27314 and -mfloat128-hardware options.
27316 * doc/extend.texi (Additional Floating Types): Document PowerPC
27317 __float128 restrictions.
27319 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27322 * config/aarch64/driver-aarch64.c
27323 (aarch64_get_extension_string_for_isa_flags): New.
27324 (arch_extension): Rename to...
27325 (aarch64_arch_extension): ...This.
27326 (ext_to_feat_string): Rename to...
27327 (aarch64_extensions): ...This.
27328 (aarch64_core_data): Keep track of architecture extension flags.
27329 (cpu_data): Rename to...
27330 (aarch64_cpu_data): ...This.
27331 (aarch64_arch_driver_info): Keep track of architecture extension
27333 (get_arch_name_from_id): Rename to...
27334 (get_arch_from_id): ...This, change return type.
27335 (host_detect_local_cpu): Update and reformat for renames, handle
27336 extensions through common infrastructure.
27338 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27341 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
27342 track of a canonical flag name.
27343 (all_extensions): Likewise.
27344 (arch_to_arch_name): Also track extension flags enabled by the arch.
27345 (all_architectures): Likewise.
27346 (aarch64_parse_extension): Move to here.
27347 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
27349 (aarch64_rewrite_selected_cpu): Update for above change.
27350 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
27351 are handled, such that the single explicit value enabled by an
27352 extension is kept seperate from the implicit values it also enables.
27353 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
27355 (aarch64_parse_extension): New.
27356 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
27357 here to config/aarch64/aarch64-protos.h.
27358 (aarch64_parse_extension): Move from here to
27359 common/config/aarch64/aarch64-common.c.
27360 (aarch64_option_print): Update.
27361 (aarch64_declare_function_name): Likewise.
27362 (aarch64_start_file): Likewise.
27363 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
27364 the canonical flag for extensions.
27365 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
27368 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27370 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
27373 2016-04-09 Tom de Vries <tom@codesourcery.com>
27375 PR tree-optimization/68953
27376 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
27377 first to last subscript.
27379 2016-04-09 Jakub Jelinek <jakub@redhat.com>
27381 PR tree-optimization/70586
27382 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
27385 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
27389 PR tree-optimization/70373
27390 PR middle-end/70533
27391 PR middle-end/70534
27392 PR middle-end/70535
27393 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
27394 clauses for acc parallel reductions as necessary. Error on those
27396 * omp-low.c (scan_sharing_clauses): Don't install variables which
27397 are used in acc parallel reductions.
27398 (lower_rec_input_clauses): Remove dead code.
27399 (lower_oacc_reductions): Add support for reference reductions.
27400 (lower_reduction_clauses): Remove dead code.
27401 (lower_omp_target): Don't remap variables appearing in acc parallel
27403 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
27405 2016-04-08 Jakub Jelinek <jakub@redhat.com>
27407 PR middle-end/70593
27408 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
27409 with multiple SSA_NAME defs, force the outputs other than first
27410 to be live before calling live_track_process_def on each output.
27412 PR rtl-optimization/70574
27413 * fwprop.c (forward_propagate_and_simplify): Don't add
27414 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
27415 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
27416 paradoxical subregs within *loc.
27418 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
27420 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
27421 -ftree-parallelize-loops={0,1}.
27422 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
27423 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
27424 * config/ia64/hpux.h (LIB_SPEC): Likewise.
27425 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27426 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
27428 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
27431 * asan.c (instrument_derefs): If we get unknown location, extract it
27432 with EXPR_LOCATION.
27433 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
27435 2016-04-08 Tom de Vries <tom@codesourcery.com>
27437 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
27438 implicit firstprivate clause.
27440 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27443 * config/arm/thumb2.md (tst + branch-> lsls + branch
27444 peephole below *orsi_not_shiftsi_si): Require that condition
27445 register is dead after the peephole.
27446 (second peephole after the above): Likewise.
27448 2016-04-08 Alan Modra <amodra@gmail.com>
27451 * builtins.c (fold_builtin_classify): For IBM extended precision,
27452 look at just the high-order double to test for NaN.
27453 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
27454 test just the high double for Inf but both doubles for subnormal
27457 2016-04-07 Jakub Jelinek <jakub@redhat.com>
27459 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
27460 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
27461 node->simdclone->mask_mode != VOIDmode masks.
27462 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
27463 earlier, use it instead of node->simdclone.
27464 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27465 Set clonei->mask_mode.
27467 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
27470 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
27471 Pass it through to cp_parser_already_scoped_statement.
27472 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
27473 it through to cp_parser_statement.
27474 (cp_parser_statement): Pass IF_P through to
27475 cp_parser_iteration_statement.
27476 (cp_parser_pragma): Adjust call to
27477 cp_parser_iteration_statement.
27479 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
27482 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
27483 resolve a future -Wparentheses warning.
27484 * omp-low.c (scan_sharing_clauses): Likewise.
27485 * tree-parloops.c (eliminate_local_variables): Likewise.
27487 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
27489 PR rtl-optimization/70398
27490 * lra-constraints.c (process_address_1): Check zero scale and code
27491 for reloading with zero scale.
27493 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
27495 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
27496 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
27498 2016-04-06 Jakub Jelinek <jakub@redhat.com>
27500 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27501 Add support for AVX512F clones, include them by default for
27502 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
27503 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
27506 PR middle-end/70550
27507 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
27508 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
27509 firstprivate clauses.
27510 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
27511 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
27512 (lower_omp_target): Set TREE_NO_WARNING for
27513 non-addressable possibly uninitialized vars which are copied into
27514 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
27516 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
27518 * config/pa/predicates.md (integer_store_memory_operand): Accept
27519 REG+D operands with a large offset when reload_in_progress is true.
27520 (floating_point_store_memory_operand): Likewise.
27522 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27525 * match.pd (nested int casts): Limit to GIMPLE.
27527 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
27530 * ipa-devirt.c (maybe_record_node): Fix comment; use
27531 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
27533 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27535 PR rtl-optimization/70542
27536 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
27537 if there are any uses other than insn or debug insns.
27539 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
27540 Jakub Jelinek <jakub@redhat.com>
27542 PR tree-optimization/70509
27543 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
27544 Shift HOST_WIDE_INT_1U instead of 1.
27546 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
27548 PR tree-optimization/70509
27549 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
27550 of the vector base type for index.
27552 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
27555 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
27557 2016-04-05 Richard Biener <rguenther@suse.de>
27559 PR tree-optimization/70526
27560 * tree-sra.c (build_ref_for_offset): Use prev_base to
27561 extract the alias pointer type.
27563 2016-04-05 Richard Biener <rguenther@suse.de>
27565 * dse.c (struct store_info): Remove alias_set member.
27566 (struct read_info_type): Likewise.
27567 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
27568 spill_deleted, clear_alias_set_lookup): Remove.
27569 (get_group_info): Remove dead base == NULL_RTX case.
27570 (dse_step0): Remove initialization of removed variables.
27571 (delete_dead_store_insn): Reomve alias set dumping.
27572 (free_read_records): Remove alias_set handling.
27573 (canon_address): Remove alias_set_out parameter.
27574 (record_store): Remove spill_alias_set, it's always zero.
27575 (check_mem_read_rtx): Likewise.
27576 (dse_step2): Rename from ...
27577 (dse_step2_nospill): ... this. Adjust.
27578 (scan_stores): Rename from ...
27579 (scan_stores_nospill): ... this.
27580 (scan_reads): Rename from ...
27581 (scan_reads_nospill): ... this.
27582 (scan_stores_spill, scan_reads_spill): Remove.
27583 (dse_step3_scan): Remove for_spills argument which is always false.
27584 (dse_step3): Likewise.
27585 (dse_step5): Rename from ...
27586 (dse_step5_nospill): ... this. Remove alias_set handling.
27587 (rest_of_handle_dse): Adjust.
27589 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27592 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
27593 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
27594 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
27595 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
27597 2016-04-05 Richard Biener <rguenther@suse.de>
27599 PR middle-end/70499
27600 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
27601 non-register type temporaries into SSA.
27603 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
27606 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
27607 calls when sanitizing.
27608 (possible_polymorphic_call_target_p): Fix formatting.
27610 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27611 Jakub Jelinek <jakub@redhat.com>
27613 PR middle-end/70457
27614 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
27615 to ensure a call statement is compatible with a built-in's
27617 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
27620 2016-04-04 Richard Biener <rguenther@suse.de>
27622 PR rtl-optimization/70484
27623 * rtl.h (canon_output_dependence): Declare.
27624 * alias.c (canon_output_dependence): New function.
27625 * dse.c (record_store): Use canon_output_dependence rather
27626 than canon_true_dependence.
27628 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
27631 * cgraph.h (symtab_node::copy_visibility_from): New function.
27632 * symtab.c (symtab_node::copy_visibility_from): New function.
27633 * ipa-visibility.c (optimize_weakref): New function.
27634 (function_and_variable_visibility): Use it.
27636 2016-04-04 Martin Liska <mliska@suse.cz>
27639 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
27640 value that is really in range handled by SBR instruction.
27641 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
27642 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
27643 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
27645 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
27649 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
27650 set, but not for SP_REG operands.
27652 2016-04-02 Martin Sebor <msebor@redhat.com>
27655 * fold-const.c (maybe_nonzero_address): New function.
27656 (fold_comparison): Call it. Fold equality and relational
27657 expressions involving null pointers.
27658 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
27660 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
27662 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
27663 the "Y" constraint (scalar FP 0.0 immediate).
27665 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
27666 Add the "const_double" to the list of operand constraints.
27668 2016-04-01 Jakub Jelinek <jakub@redhat.com>
27670 PR rtl-optimization/70467
27671 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
27672 If low word of the last operand is 0, just emit addition/subtraction
27675 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27678 * config/s390/s390.c (s390_expand_insv): Check for everything
27679 constant instead of just VOIDmode stuff.
27681 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27684 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
27686 2016-04-01 Nathan Sidwell <nathan@acm.org>
27688 * tree.def (TRY_CATCH_EXPR): Correct documentation.
27690 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
27692 PR rtl-optimization/70461
27693 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
27696 2016-03-31 Martin Liska <mliska@suse.cz>
27699 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
27700 a tree value or an immediate integer value to a buffer
27701 that is eventually copied to a BRIG section.
27702 (emit_immediate_operand): Call the function here.
27703 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
27704 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
27705 of class' fields that are removed.
27706 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
27707 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
27708 m_brig_repr_size fields.
27710 2016-03-31 Martin Liska <mliska@suse.cz>
27713 * hsa-gen.c (hsa_function_representation::update_dominance): New
27715 (convert_addr_to_flat_segment): Likewise.
27716 (gen_hsa_memory_set): New alignment argument.
27717 (gen_hsa_ctor_assignment): Likewise.
27718 (gen_hsa_insns_for_single_assignment): Provide alignment
27719 to gen_hsa_ctor_assignment.
27720 (gen_hsa_insns_for_direct_call): Add new argument.
27721 (expand_lhs_of_string_op): New function.
27722 (expand_string_operation_builtin): Likewise.
27723 (expand_memory_copy): New function.
27724 (expand_memory_set): New function.
27725 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
27726 (convert_switch_statements): Change signature.
27727 (generate_hsa): Use a return value of the function.
27728 (pass_gen_hsail::execute): Do not call
27729 convert_switch_statements here.
27730 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
27731 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
27732 (hsa_function_representation::update_dominance): New function.
27734 2016-03-31 Martin Liska <mliska@suse.cz>
27737 * hsa-brig.c (emit_directive_variable): Emit alignment
27738 according to hsa_symbol::m_align.
27739 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
27740 (dump_hsa_symbol): Dump alignment of HSA symbols.
27741 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
27742 (gen_hsa_addr_with_align): New function.
27743 (hsa_bitmemref_alignment): Use newly added function.
27744 (gen_hsa_insns_for_load): Likewise.
27745 (gen_hsa_insns_for_store): Likewise.
27746 (gen_hsa_memory_copy): New argument added.
27747 (gen_hsa_insns_for_single_assignment): Respect
27748 alignment for assignments processed via gen_hsa_memory_copy.
27749 (gen_hsa_insns_for_direct_call): Likewise.
27750 (gen_hsa_insns_for_return): Likewise.
27751 (gen_function_def_parameters): Set default alignment.
27752 * hsa.c (hsa_object_alignment): New function.
27753 (hsa_byte_alignment): Pasted function.
27754 * hsa.h (hsa_symbol::m_align): New field.
27756 2016-03-31 Bin Cheng <bin.cheng@arm.com>
27758 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
27759 scratch field for goto case.
27761 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
27763 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
27765 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
27768 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
27769 (scalar_chain::convert_insn): Call convert_op for reg
27770 moves to handle undefined registers.
27772 2016-03-31 Nathan Sidwell <nathan@acm.org>
27775 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
27776 Assert we don't want to move backwards.
27778 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
27781 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
27783 2016-03-31 Jakub Jelinek <jakub@redhat.com>
27785 PR rtl-optimization/70460
27786 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
27787 with operand from REG_LABEL_OPERAND, instead substitute
27788 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
27789 Don't do anything for REG_NON_LOCAL_GOTO jumps.
27791 2016-03-31 Martin Liska <mliska@suse.cz>
27793 * passes.c (execute_one_pass): Do not call
27794 todo_after for a discarded function.
27796 2016-03-31 Bin Cheng <bin.cheng@arm.com>
27798 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
27799 (no_cost, infinite_cost): Initialize the new field.
27800 (get_computation_cost_at): Record setup cost.
27801 (determine_use_iv_cost_address): Skip cost computation for sub
27802 uses if we can estimate it without losing accuracy.
27804 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
27806 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
27808 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27809 max_loop_iterations_int.
27810 (tree_unswitch_outer_loop): Likewise.
27811 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
27812 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
27814 2016-03-30 Richard Biener <rguenther@suse.de>
27816 PR middle-end/70450
27817 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
27819 2016-03-30 Jakub Jelinek <jakub@redhat.com>
27822 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
27823 in gen_blendm expander.
27825 2016-03-30 Nick Clifton <nickc@redhat.com>
27828 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
27829 case where we are already provided with an SImode SUBREG.
27831 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
27834 * config/i386/i386.c (ix86_expand_epilogue): Properly check
27835 conflict between DRAP register and __builtin_eh_return.
27837 2016-03-30 Michael Matz <matz@suse.de>
27838 Richard Biener <rguenther@suse.de>
27841 * ipa-polymorphic-call.c (struct type_change_info): Change
27842 speculative to an unsigned allowing to limit the work we do.
27843 (csftc_abort_walking_p): New inline function..
27844 (check_stmt_for_type_change): Limit the number of may-defs
27845 skipped for speculative devirtualization to
27846 max-speculative-devirt-maydefs.
27847 * params.def (max-speculative-devirt-maydefs): New param.
27848 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
27850 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
27853 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
27856 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
27858 PR tree-optimization/59124
27859 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
27860 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
27862 2016-03-29 Jeff Law <law@redhat.com>
27864 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
27866 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
27868 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
27871 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
27873 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
27874 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
27875 gcrt0.o if linking dynamically.
27877 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
27880 * ipa-devirt.c (methods_equal_p): New function.
27881 (compare_virtual_tables): Use it.
27882 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
27883 * cgraphclones.c (clone_function_name_1): Use
27884 symbol_table::symbol_suffix_separator.
27885 * coverage.c (build_var): Likewise.
27886 * symtab.c (symbol_table::symbol_suffix_separator): New.
27888 2016-03-29 Jakub Jelinek <jakub@redhat.com>
27890 PR rtl-optimization/70429
27891 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
27892 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
27893 mode != result_mode.
27896 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
27898 PR tree-optimization/70405
27899 * ssa-iterators.h (num_imm_uses): Add missing braces.
27901 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
27903 PR rtl-optimization/68695
27904 * ira-color.c (allocno_copy_cost_saving): New.
27905 (improve_allocation): Use it.
27907 2016-03-29 Richard Henderson <rth@redhat.com>
27909 PR middle-end/70355
27910 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
27912 2016-03-29 Richard Biener <rguenther@suse.de>
27914 PR middle-end/70424
27915 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
27916 use alignment returned by get_pointer_alignment_1 if it is
27917 bigger than BITS_PER_UNIT.
27918 * builtins.c (get_pointer_alignment_1): Do not return true
27919 for alignment extracted from SSA info.
27921 2016-03-28 James Bowman <james.bowman@ftdichip.com>
27923 * config/ft32/ft32.opt (mnodiv): New.
27924 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
27925 * doc/invoke.texi (FT32 Options -mnodiv): New.
27927 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
27930 * config/i386/i386.md (define_split, andn): Fix modes.
27932 2016-03-26 Richard Biener <rguenther@suse.de>
27933 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27936 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
27938 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
27939 as 2nd argument to cl_optimization_restore().
27941 2016-03-25 Richard Henderson <rth@redhat.com>
27944 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
27945 * config/aarch64/aarch64-protos.h: Declare it.
27946 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
27948 2016-03-25 Alan Modra <amodra@gmail.com>
27951 * config/rs6000/constraints.md (j): Simplify.
27952 * config/rs6000/predicates.md (easy_fp_constant): Exclude
27954 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
27955 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
27956 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
27957 in all constraint alternatives.
27958 (movtd_64bit_nodm): Delete "j" constraint alternative.
27960 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
27962 * tree-ssa-propagate.c: Enhance docs for
27963 SSA_PROP_NOT_INTERESTING.
27965 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
27967 * doc/extend.texi: Fix typo in documentation to pure attribute.
27969 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
27972 * config/pa/pa.md (bswapdi2): Use a scratch register.
27974 2016-03-24 Richard Henderson <rth@redhat.com>
27976 PR middle-end/69845
27977 * fold-const.c (extract_muldiv_1): Correct test for multiplication
27980 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
27982 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
27983 using ix86_expand_binary_operator instead of gen_andsi3.
27985 2016-03-24 Richard Biener <rguenther@suse.de>
27987 PR tree-optimization/70396
27988 * tree-vect-stmts.c (vectorizable_comparison): Use
27989 get_vectype_for_scalar_type.
27991 2016-03-24 Richard Biener <rguenther@suse.de>
27993 PR middle-end/70370
27994 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
27995 with register bases.
27997 2016-03-24 Richard Biener <rguenther@suse.de>
27999 PR tree-optimization/70372
28000 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
28001 build_all_ones_cst to also handle vector types correctly.
28003 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28006 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
28009 2016-03-23 Marek Polacek <polacek@redhat.com>
28012 * doc/invoke.texi: Document -Wignored-attributes.
28014 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28016 PR tree-optimization/69042
28017 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
28018 parameter from 30 to 40.
28020 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28022 PR tree-optimization/69042
28023 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
28024 for use with constant offset stripped in base.
28026 2016-03-23 Richard Biener <rguenther@suse.de>
28028 PR middle-end/70251
28029 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
28030 mode compatibility check.
28031 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28033 2016-03-23 Jeff Law <law@redhat.com>
28035 PR tree-optimization/64058
28036 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
28038 (struct ssa_conflicts): Move up earlier in the file.
28039 (conflicts_, var_map_): New static variables.
28040 (initialize_conflict_count): New function to initialize the
28041 CONFLICT_COUNT field for each conflict pair.
28042 (compare_pairs): Lazily initialize the conflict count and use it
28043 as the first tie-breaker.
28044 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
28045 and wipe conflicts_ and map_ around the call to qsort. Remove
28046 special case for 2 coalesce pairs.
28047 * bitmap.c (bitmap_count_unique_bits): New function.
28048 (bitmap_count_bits_in_word): New function, extracted from
28050 (bitmap_count_bits): Use bitmap_count_bits_in_word.
28051 * bitmap.h (bitmap_count_unique_bits): Declare it.
28053 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
28056 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
28057 transparent alias chain for decl assembler name.
28058 * config/sol2.c (solaris_assemble_visibility): Likewise.
28060 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28062 * config/arm/arm1020e.md (1020call_op): Reduce reservation
28064 (v10_fdivs): Likewise.
28065 (v10_fdivd): Likewise.
28067 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28070 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
28071 to not call fclose twice on file.
28073 2016-03-23 Jakub Jelinek <jakub@redhat.com>
28075 PR tree-optimization/70354
28076 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
28077 oprnd0 is wider than oprnd1 and there is a cast from the wider
28078 type to oprnd1, mask it with the mask of the narrower type.
28081 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
28082 Optimize TARGET_STV splitters, if high or low word of last argument
28085 2016-03-22 Jeff Law <law@redhat.com>
28088 tree-ssa-threadbackward.c
28089 (fsm_find_control_statement_thread_paths): Correctly distinguish
28090 between old style jump threads vs FSM jump threads.
28092 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
28095 * config/i386/i386.c (scalar_chain::convert_op): Support
28096 uninitialized register usage case.
28098 2016-03-22 Richard Biener <rguenther@suse.de>
28100 PR middle-end/70251
28101 * genmatch.c (gen_transform): Adjust last parameter to a three-state
28103 (capture::gen_transform): ... to change behavior when substituting
28104 a condition into cond or not-cond expr context.
28105 (dt_simplify::gen_1): Adjust.
28106 * gimple-match-head.c: Include gimplify.h for unshare_expr.
28107 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
28108 last change and instead change to
28109 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
28110 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28112 2016-03-22 Anthony Green <green@moxielogic.com>
28114 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
28115 issue for moxiebox targets.
28116 (CC1PLUS_SPEC): Ditto.
28118 2016-03-22 Richard Biener <rguenther@suse.de>
28120 PR middle-end/70333
28121 * fold-const.c (extract_muldiv_1): Properly perform multiplication
28124 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28126 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
28128 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28131 * config/i386/i386.c (def_builtin): Handle
28132 OPTION_MASK_ISA_AVX512VL to be and-ed with other
28134 (const struct builtin_description bdesc_special_args[]):
28135 Remove duplicate ISA bits.
28137 2016-03-22 Jakub Jelinek <jakub@redhat.com>
28140 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
28141 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
28142 in a way that works also for AVX512BW.
28145 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
28146 instead of source if operands[1] is xmm16 and above and
28147 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
28148 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
28151 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
28152 on assign if (*from_p) is a comparison, set it to
28153 TREE_NO_WARNING (*from_p).
28155 2016-03-21 Jakub Jelinek <jakub@redhat.com>
28157 PR middle-end/70326
28158 * lra.c (restore_scratches): Ignore deleted insns.
28160 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
28161 Jakub Jelinek <jakub@redhat.com>
28163 PR tree-optimization/70317
28164 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
28167 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
28170 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
28171 of ix86_expand_move.
28173 (movti): Use general_operand for operand 1 predicate.
28175 2016-03-21 Martin Liska <mliska@suse.cz>
28177 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
28179 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
28181 2016-03-21 Martin Liska <mliska@suse.cz>
28184 * ipa-icf.c (sem_function::parse): Skip static
28185 constructors and destructors.
28187 2016-03-21 Jakub Jelinek <jakub@redhat.com>
28190 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
28191 function-like macro, peek following token(s) if it is followed
28192 by CPP_OPEN_PAREN token with optional padding in between, and
28193 if not, don't treat it like a macro.
28195 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
28196 Alexander Monakov <amonakov@ispras.ru>
28198 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
28199 for the stabs debug format.
28201 2016-03-21 Richard Biener <rguenther@suse.de>
28203 PR tree-optimization/70310
28204 * tree-vect-generic.c (expand_vector_condition): Fold the built
28207 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
28210 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
28211 Block third alternative for AVX-512VL target,
28213 2016-03-21 Martin Liska <mliska@suse.cz>
28216 * hsa-brig.c (emit_function_directives): Mark unemitted
28217 global variables for emission.
28218 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
28219 (get_symbol_for_decl): Likewise.
28220 * hsa.h (struct hsa_symbol): New flag.
28222 2016-03-21 Richard Biener <rguenther@suse.de>
28224 PR tree-optimization/70288
28225 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
28226 we do not estimate unsimplified all-constant conditionals or
28227 switches as optimized away.
28229 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
28231 PR rtl-optimization/69102
28232 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
28233 when we have a readonly dependency context.
28235 2016-03-18 Jeff Law <law@redhat.com>
28237 PR rtl-optimization/70263
28238 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
28239 (update_equiv_regs): When trying to move a store to after the insn
28240 that sets the source of the store, make sure the store occurs after
28241 the insn that sets the source of the store. When successful note
28242 the REG_EQUIV note created in the dump file.
28244 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
28245 Bernd Schmidt <bschmidt@redhat.com>
28247 * doc/extend.texi: Document more potential problems with basic asms.
28249 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
28251 PR rtl-optimization/70278
28252 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
28255 2016-03-18 Jason Merrill <jason@redhat.com>
28257 * calls.c (load_register_parameters): Fix zero size sibcall logic.
28259 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
28261 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
28262 values to 128b regs.
28264 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
28266 PR tree-optimization/70252
28267 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
28268 boolean vector has a proper number of elements.
28269 (supportable_narrowing_operation): Likewise.
28271 2016-03-18 Tom de Vries <tom@codesourcery.com>
28274 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
28276 2016-03-18 Jakub Jelinek <jakub@redhat.com>
28278 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
28279 instead of replace_rtx for DEBUG_INSNs.
28281 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28283 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
28284 load type reservations.
28286 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
28289 * config/pa/constraints.md: Revert 2015-02-13 change. Use
28290 define_constraint for "Q" and "T" constraints.
28292 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
28294 Tweak the pipeline model for Exynos M1
28296 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
28299 2016-03-17 David Malcolm <dmalcolm@redhat.com>
28302 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
28303 where one or both locations aren't within a line_map.
28305 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
28308 * opts.c (finish_options): Don't set flag_pie to the default if
28309 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
28312 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
28314 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
28315 true as ALL_REGS argument to replace_rtx.
28317 2016-03-17 Richard Biener <rguenther@suse.de>
28320 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
28323 2016-03-17 Jakub Jelinek <jakub@redhat.com>
28326 * rtl.h (replace_rtx): Add ALL_REGS argument.
28327 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
28328 equality and assert mode is the same, instead of just rtx pointer
28330 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
28331 true as ALL_REGS argument to replace_rtx.
28333 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
28335 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
28336 for boolean vector with vector mode only.
28337 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28339 2016-03-17 Nick Clifton <nickc@redhat.com>
28342 * config/rx/rx.c (rx_print_integer): Print negative constants in
28345 2016-03-17 Jakub Jelinek <jakub@redhat.com>
28348 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
28350 2016-03-16 Richard Henderson <rth@redhat.com>
28351 Richard Biener <rguenth@suse.de>
28353 PR middle-end/70240
28354 PR middle-end/68215
28356 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
28357 first operand as is_gimple_condexpr.
28359 PR middle-end/70240
28360 PR middle-end/68215
28362 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
28363 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
28364 Do not gimplify the result.
28365 (do_unop): Adjust call to tree_vec_extract.
28366 (do_binop): Likewise.
28367 (do_compare): Likewise.
28368 (do_plus_minus): Likewise.
28369 (do_negate): Likewise.
28370 (expand_vector_condition): Likewise.
28371 (do_cond): Likewise.
28373 2016-03-16 Richard Henderson <rth@redhat.com>
28376 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
28377 (aarch64_classify_address): Use it.
28378 (aarch64_legitimize_address): Force all subexpressions of PLUS
28379 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
28381 2016-03-16 Jakub Jelinek <jakub@redhat.com>
28382 Richard Biener <rguenth@suse.de>
28385 * rtlanal.c (replace_rtx): For REG, if from is a REG,
28386 return to even if only REGNO is equal, and assert
28389 2016-03-11 Jeff Law <law@redhat.com>
28391 PR rtl-optimization/70224
28392 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
28394 2016-03-16 Richard Henderson <rth@redhat.com>
28396 PR middle-end/70199
28397 * function.h (struct function): Add has_forced_label_in_static.
28398 * gimplify.c (force_labels_r): Set it.
28399 * lto-streamer-in.c (input_struct_function_base): Read it.
28400 * lto-streamer-out.c (output_struct_function_base): Write it.
28401 * tree-inline.c (has_label_address_in_static_1): Remove.
28402 (copy_forbidden): Remove fndecl parameter; test
28403 has_forced_label_in_static.
28404 (inline_forbidden_p): Update call to copy_forbidden.
28405 (tree_versionable_function_p): Likewise.
28406 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
28407 (chkp_versioning): Likewise.
28408 * tree-inline.h (copy_forbidden): Update decl.
28410 2016-03-16 Marek Polacek <polacek@redhat.com>
28413 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
28414 function being thunked if the result type doesn't have fixed size.
28415 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
28416 doesn't have fixed size.
28418 2016-03-16 Bin Cheng <bin.cheng@arm.com>
28420 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
28421 reporting malformed loop nest.
28423 2016-03-16 Tom de Vries <tom@codesourcery.com>
28426 * ipa-devirt.c (possible_polymorphic_call_targets): Move
28427 nodes.length () == 1 test to before first nodes[0] access.
28429 2016-03-16 Tom de Vries <tom@codesourcery.com>
28431 PR tree-optimization/68715
28432 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
28433 single_pred_p test.
28435 2016-03-16 Tom de Vries <tom@codesourcery.com>
28437 PR tree-optimization/68809
28438 * graphite-scop-detection.c (same_close_phi_node): Test if result types
28441 2016-03-16 Carlos O'Donell <carlos@redhat.com>
28442 Sandra Loosemore <sandra@codesourcery.com>
28444 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
28445 on leaf attribute. Mention ELF interposition problems.
28447 2016-03-16 Alan Modra <amodra@gmail.com>
28449 PR rtl-optimization/69195
28450 PR rtl-optimization/47992
28451 * ira.c (indirect_jump_optimize): Ignore artificial defs.
28454 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
28457 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
28459 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28461 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
28463 2016-03-15 Jakub Jelinek <jakub@redhat.com>
28465 PR rtl-optimization/70222
28466 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
28467 optimization if mode is different from result_mode, queue up masking
28468 of the result in outer_op. Formatting fix.
28470 PR middle-end/70239
28471 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
28474 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28476 PR rtl-optimization/69032
28477 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
28478 looping backwards over basic block insns.
28480 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28483 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
28484 to non-speculative when propagating trap bits.
28486 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28488 PR rtl-optimization/63384
28489 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
28490 DEBUG_INSN_P insns.
28492 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28495 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
28496 factored out from ...
28497 (sched_analyze_insn): ... here.
28498 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
28499 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
28500 get_implicit_reg_pending_clobbers in it.
28501 (setup_id_reg_sets): Use setup_id_implicit_regs.
28502 (deps_init_id): Ditto.
28504 2016-03-15 Tom de Vries <tom@codesourcery.com>
28507 * cgraph.c (cgraph_node::get_body): Save, reset and restore
28509 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
28510 execute_function_dump.
28511 (execute_one_pass): Don't dump function if it will be dumped after ipa
28514 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
28516 * genrecog.c (match_pattern_2): If pred is NULL don't call
28517 safe_predicate_mode on it.
28519 2016-03-14 Jakub Jelinek <jakub@redhat.com>
28521 PR middle-end/70219
28522 * lra-constraints.c (delete_move_and_clobber): Change assertion
28523 to also allow dregno == 0.
28525 2016-03-14 Richard Henderson <rth@redhat.com>
28528 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
28529 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
28530 (reassociate_bb): Use optimize_vec_cond_expr; avoid
28531 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
28534 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
28537 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
28539 (lra_create_live_ranges_1): initialize hard register biggest_mode to
28541 * lra-constraints.c (split_reg): For hard regs, try to find the
28542 biggest single-register mode used in the function.
28544 2016-03-14 Richard Biener <rguenther@suse.de>
28546 PR tree-optimization/56365
28547 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
28548 constants to compare against.
28550 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
28553 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
28554 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
28555 (define_split for the GPR case): Use int_reg_operand instead of
28556 gpc_reg_operand for the output.
28558 2016-03-14 Tom de Vries <tom@codesourcery.com>
28560 PR tree-optimization/70045
28561 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
28562 create_empty_if_region_on_edge argument.
28564 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
28566 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
28567 (STACK_CHECK_PROTECT): Likewise.
28568 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
28569 (STACK_CHECK_PROTECT): Likewise.
28570 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
28571 (STACK_CHECK_PROTECT): Likewise.
28572 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
28573 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
28574 (STACK_CHECK_PROTECT): Likewise.
28576 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
28578 PR rtl-optimization/69307
28579 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
28580 registers in modes that span more than one register.
28582 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
28585 * lra-constraints.c (delete_move_and_clobber): New.
28586 (remove_inheritance_pseudos): Use it.
28588 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
28591 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
28592 the libcall is LCT_THROW.
28593 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
28594 for the checking routine.
28596 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28599 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
28600 optimization if we have direct move.
28601 (roundu32<mode>2_fprs): Likewise.
28603 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
28606 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
28608 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
28609 Arguments swapped. All callers changed. Take reg_renumber into
28610 account, and Calculate and compare register ranges for hard regs.
28612 2016-03-11 Jeff Law <law@redhat.com>
28614 PR tree-optimization/70190
28615 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
28616 Handle cases where we can not extract the taken edge, even though we
28617 found a constant value.
28619 PR tree-optimization/64058
28620 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
28621 (num_coalesce_pairs): Move up earlier in file.
28622 (find_coalesce_pair): Initialize the INDEX field for each pair
28624 (compare_pairs): No longer sort on the elements in each pair.
28625 Instead break ties with the index of the coalesce pair.
28627 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28630 * config/aarch64/aarch64-protos.h
28631 (aarch64_save_restore_target_globals): New prototype.
28632 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
28633 Call the above when popping pragma.
28634 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
28636 (aarch64_set_current_function): Rewrite using the above.
28638 2016-03-11 Jakub Jelinek <jakub@redhat.com>
28640 PR tree-optimization/70177
28641 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
28642 (extract_ops_from_tree): ... this. In the 2 argument
28643 overload remove _1 suffix.
28644 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
28645 (extract_ops_from_tree): ... this.
28646 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
28648 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
28649 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
28650 extract_ops_from_tree instead of 2 operand one.
28652 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
28654 PR tree-optimization/70013
28655 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
28656 for constant-pool entries.
28658 2016-03-11 Jakub Jelinek <jakub@redhat.com>
28660 PR rtl-optimization/70174
28661 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
28662 followed by gen_lowpart on force_reg instead of just gen_lowpart.
28664 PR tree-optimization/70169
28665 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
28666 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
28669 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
28670 Jakub Jelinek <jakub@redhat.com>
28673 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
28674 of uninitialized values.
28676 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28678 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
28680 ("*trunctddd2"): New pattern definition.
28681 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
28684 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28686 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
28687 definitions for BFP and DFP rounding modes.
28688 ("fixuns_truncdddi2", "fixuns_trunctddi2")
28689 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
28690 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
28691 ("fix_trunctf<mode>2"): Use the new constants instead of magic
28694 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28696 * config/s390/constraints.md: Adjust comment.
28697 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
28698 s390_decompose_addrstyle_without_index.
28699 * config/s390/predicates.md (shift_count_or_setmem_operand):
28700 Rename to setmem_operand.
28701 * config/s390/s390-protos.h
28702 (s390_decompose_shift_count): Rename to
28703 s390_decompose_addrstyle_without_index.
28704 * config/s390/s390.c (s390_decompose_shift_count)
28705 (s390_mem_constraint, print_shift_count_operand)
28706 (print_operand_address, print_operand): Rename
28707 s390_decompose_shift_count to
28708 s390_decompose_addrstyle_without_index and rename
28709 print_shift_count_operand to print_addrstyle_operand troughout the
28711 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
28712 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
28713 Rename shift_count_or_setmem_operand to setmem_operand.
28714 * config/s390/vx-builtins.md ("vec_insert<mode>")
28715 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
28718 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28721 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
28722 Handle overlapping retval and newval.
28724 2016-03-10 Nick Clifton <nickc@redhat.com>
28727 * config/aarch64/aarch64.c
28728 (aarch64_override_options_after_change_1): When forcing
28729 flag_omit_frame_pointer to be true, use a special value that can
28730 be detected if this function is called again, thus preventing
28731 flag_omit_leaf_frame_pointer from being forced to be false.
28733 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28735 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
28736 Set x_flag_omit_leaf_frame_pointer when handling
28737 -momit-leaf-frame-pointer.
28739 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28742 * cgraph.c (cgraph_node::dump): Dump split_part and
28743 indirect_call_target.
28744 * cgraph.h (cgraph_node): Add indirect_call_target flag.
28745 * ipa.c (has_addr_references_p): Cleanup.
28746 (is_indirect_call_target_p): New.
28747 (walk_polymorphic_call_targets): Do not mark virtuals that may be
28748 called indirectly as local.
28749 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
28751 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28754 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
28755 on cxa_pure_virtual.
28757 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28760 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
28762 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28765 * tree.c (need_assembler_name_p): Only record main variant type names.
28767 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
28770 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
28771 Always define to 0 or 1.
28772 (TARGET_FIX_ERR_A53_843419): New macro.
28773 * config/aarch64/aarch64-elf-raw.h
28774 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
28775 * config/aarch64/aarch64-linux.h: Likewise.
28776 * config/aarch64/aarch64.c
28777 (aarch64_override_options_after_change_1): Do not default
28778 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
28780 (aarch64_attributes): Handle fix-cortex-a53-843419.
28781 (aarch64_can_inline_p): Likewise.
28782 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
28784 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
28785 Jakub Jelinek <jakub@redhat.com>
28787 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
28788 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
28789 DECL_COMMONS if flag_unconstrained_commons is set.
28790 * tree-dfa.c (get_ref_base_and_extent): Likewise.
28791 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
28792 (funconstrained-commons): Document.
28794 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
28796 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
28797 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
28799 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
28801 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
28802 has a proper number of elements.
28804 2016-03-10 Alan Modra <amodra@gmail.com>
28806 PR rtl-optimization/69195
28807 PR rtl-optimization/47992
28808 * ira.c (recorded_label_ref): Delete.
28809 (update_equiv_regs): Return void.
28810 (indirect_jump_optimize): New function.
28811 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
28812 before regstat_compute_ri. Don't rebuild_jump_labels here.
28813 Delete update_regstat.
28815 2016-03-10 Richard Biener <rguenther@suse.de>
28817 PR tree-optimization/70128
28818 * tree-ssa-structalias.c (set_uids_in_ptset): Set
28819 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
28821 2016-03-09 Jakub Jelinek <jakub@redhat.com>
28823 PR tree-optimization/70152
28824 * tree-sra.c (replace_removed_params_ssa_names): Copy over
28825 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
28828 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
28829 instead of gen_sse2_loadlpd.
28830 * config/i386/sse.md (*vec_concatv2df): Rename to...
28831 (vec_concatv2df): ... this.
28833 PR tree-optimization/70127
28834 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
28836 2016-03-09 David Malcolm <dmalcolm@redhat.com>
28840 * diagnostic-show-locus.c (compatible_locations_p): New function.
28841 (layout::layout): Sanitize ranges using compatible_locations_p.
28843 2016-03-09 David Malcolm <dmalcolm@redhat.com>
28847 * diagnostic-show-locus.c (layout_range::layout_range): Replace
28848 location_range param with three const expanded_locations * and a
28850 (layout::layout): Replace call to
28851 rich_location::lazily_expand_location with get_expanded_location.
28852 Extract the range and perform location expansion here, passing
28853 the results to the layout_range ctor.
28854 * diagnostic.c (source_range::debug): Delete.
28855 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
28856 of rich_location::get_expanded_location.
28857 * gcc-rich-location.c (get_range_for_expr): Delete.
28858 (gcc_rich_location::add_expr): Reimplement to avoid the
28859 rich_location::add_range overload that took a location_range,
28860 passing a location_t instead.
28862 2016-03-09 Richard Biener <rguenther@suse.de>
28863 Jakub Jelinek <jakub@redhat.com>
28865 PR tree-optimization/70138
28866 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
28867 Also skip vect_double_reduction_def.
28869 2016-03-09 Jakub Jelinek <jakub@redhat.com>
28872 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
28873 if the operand is "m".
28875 2016-03-09 Nathan Sidwell <nathan@acm.org>
28877 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
28879 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28881 * config/i386/i386.c (processor_target_table): Fix cost table
28882 intialization order for znver1.
28884 2016-03-08 Jakub Jelinek <jakub@redhat.com>
28886 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
28887 - becuase -> because.
28888 * ipa-reference.c (ignore_module_statics): Likewise.
28889 * cgraph.c (cgraph_node::get_body): Likewise.
28890 * ipa-inline.c (early_inliner): Likewise.
28891 * ipa-devirt.c (types_same_for_odr): Likewise.
28892 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
28893 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
28895 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28897 * tree-ssa-math-opts.c: Fix typo in comment.
28899 2016-03-08 Jakub Jelinek <jakub@redhat.com>
28902 * config/i386/i386.c (scalar_chain::make_vector_copies,
28903 scalar_chain::convert_reg): Call end_sequence in between
28904 get_insns and emit_conversion_insns rather than after both
28907 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
28910 * config/i386/i386.h (machine_function): Add
28911 pc_thunk_call_expanded flag.
28912 (ix86_pc_thunk_call_expanded): New define.
28913 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
28914 (*set_got): Rename insn pattern from set_got.
28915 (*set_got_labelled): Rename inst pattern from set_got_labelled.
28916 * config/i386/i386.c (ix86_compute_frame_layout): Use
28917 ix86_pc_thunk_call_expanded to prevent red-zone.
28919 2016-03-07 Martin Jambor <mjambor@suse.cz>
28921 * hsa.h (hsa_get_ctor_statements): Declare.
28922 (hsa_get_dtor_statements): Likewise.
28923 (hsa_get_kernel_dispatch_type): Likewise.
28924 * hsa.c (hsa_get_ctor_statements): New function.
28925 (hsa_get_dtor_statements): Likewise.
28926 (hsa_get_kernel_dispatch_type): Likewise.
28927 * hsa-brig.c (hsa_cdtor_statements): Removed.
28928 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
28929 hsa_get_dtor_statements.
28930 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
28931 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
28933 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
28935 * config/arm/arm-cores.def (cortex-r8): New.
28936 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
28937 * config/arm/arm-tune.md: Likewise.
28938 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
28940 2016-03-07 Martin Sebor <msebor@redhat.com>
28942 PR rtl-optimization/19705
28943 * doc/invoke.texi (Options That Control Optimization): Clarify
28944 -fno-branch-count-reg.
28946 2016-02-26 Richard Biener <rguenther@suse.de>
28947 Jeff Law <law@redhat.com>
28949 PR tree-optimization/69740
28950 * cfghooks.c (remove_edge): Request loop fixups if we delete
28951 an edge that might turn an irreducible loop into a natural
28953 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
28954 Move after definition of loops_state_clear.
28956 2016-03-07 Bin Cheng <bin.cheng@arm.com>
28958 PR rtl-optimization/69052
28959 * rtlanal.c (commutative_operand_precedence): Set higher precedence
28962 2016-03-07 Tom de Vries <tom@codesourcery.com>
28964 PR tree-optimization/70116
28965 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
28966 is_tm_ending stmts and ubsan/asan internal functions.
28967 (find_duplicate): Use it. Don't test is_tm_ending here.
28969 2016-03-07 Richard Biener <rguenther@suse.de>
28971 PR tree-optimization/70115
28972 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
28973 (propagate_constants_for_unrolling): Use replace_uses_by.
28975 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
28977 PR middle-end/69916
28978 * omp-low.c (struct oacc_loop): Add ifns.
28979 (new_oacc_loop_raw): Initialize it.
28980 (finish_oacc_loop): Clear mask & flags if no ifns.
28981 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
28982 (oacc_loop_xform_loop): Add ifns arg & adjust.
28983 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
28985 2016-03-07 Richard Henderson <rth@redhat.com>
28988 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
28989 (insert_value_copy_on_edge): Likewise.
28991 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28993 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
28995 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28998 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
29000 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29002 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
29004 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29006 Fix sseimul type attribute.
29007 * config/i386/znver1.md
29008 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
29009 znver1_sseimul_avx256_load) : Fix the type attribute.
29010 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
29011 pipe usage and latency.
29013 2016-03-05 Jakub Jelinek <jakub@redhat.com>
29016 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
29017 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
29020 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29023 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
29025 PR rtl-optimization/69941
29026 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
29027 the reg share its mode.
29029 2016-03-04 Jeff Law <law@redhat.com>
29031 PR tree-optimization/69196
29032 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29033 If the both SSA_NAMEs are anonymous, then consider them unassociated
29034 and include the PHI in the statement count.
29036 2016-03-05 Tom de Vries <tom@codesourcery.com>
29038 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
29039 construct in oacc routine. Check for oacc region in oacc routine.
29041 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29044 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
29045 2016-02-22 changes, instead don't recurse if RECUR is already true.
29046 Don't change *dynamic_check if RECUR. Adjust recursive caller
29047 to pass true to the new argument.
29048 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
29051 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
29052 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
29054 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
29056 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29058 PR rtl-optimization/57676
29059 * lra-assigns.c (lra_assign): Guard test for maximum iterations
29060 with flag_checking.
29062 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
29064 * tree-vect-patterns.c (search_type_for_mask): Handle
29065 comparison of booleans.
29067 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29069 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
29073 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
29074 all other ops that have dw_val_class_die_ref operands,
29075 and DW_OP_GNU_entry_value.
29077 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29079 PR rtl-optimization/69904
29080 * config/arm/arm.c (arm_cannot_copy_insn_p):
29081 Return true for load-exclusive instructions.
29083 2016-03-03 Jakub Jelinek <jakub@redhat.com>
29086 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
29087 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
29088 the pattern no matter if it is used just by non-pattern, pattern
29090 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
29091 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29092 oprnd1 def_stmt is in pattern, don't look through it.
29094 2016-03-03 Marek Polacek <polacek@redhat.com>
29096 PR middle-end/70050
29097 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
29099 2016-03-03 Martin Liska <mliska@suse.cz>
29101 PR tree-optimization/70043
29102 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
29103 previous statement if we see a debug statement.
29105 2016-03-03 Richard Biener <rguenther@suse.de>
29107 PR tree-optimization/55936
29108 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
29109 parameter and guard unsafe equivalence use.
29110 (vrp_evaluate_conditional_warnv_with_ops): Always use
29111 safe equivalences but not via the quadratic compare_names
29114 2016-03-03 Michael Collison <michael.collison@linaro.org>
29117 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
29118 for operand 1 to s_register_operand. Change predicate for operand
29119 2 to arm_not_immediate_operand.
29121 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
29123 * doc/tm.texi: Regenerated.
29125 2016-03-02 Richard Henderson <rth@redhat.com>
29128 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
29129 simplification when all args are positive non-fixed registers.
29131 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
29133 * target.def (lra_p): Specify that new ports should use LRA.
29135 2016-03-02 Jakub Jelinek <jakub@redhat.com>
29138 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
29139 gimplify_type_sizes the type they refer to.
29140 (omp_notice_variable): Handle reference vars to VLAs.
29141 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
29142 reference to VLA decls in the second pass instead of first pass.
29144 2016-03-02 Tom de Vries <tom@codesourcery.com>
29146 PR tree-optimization/68659
29147 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
29148 new_expr == NULL_TREE.
29149 (get_new_name): Handle ADDR_EXPR.
29151 2016-03-02 Bin Cheng <bin.cheng@arm.com>
29153 PR rtl-optimization/69052
29154 * loop-invariant.c (canonicalize_address): New function.
29155 (inv_can_prop_to_addr_use): Check validity of address expression
29156 which is canonicalized by above function.
29158 2016-03-02 Alan Modra <amodra@gmail.com>
29161 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
29164 2016-03-02 Jakub Jelinek <jakub@redhat.com>
29167 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
29168 (*movhi_internal): Put mask moves from and to memory separately
29169 from moves from/to GPRs.
29171 2016-03-02 Richard Biener <rguenther@suse.de>
29173 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
29174 GENERIC expressions in GIMPLE.
29176 2016-03-02 Richard Biener <rguenther@suse.de>
29178 * config/i386/i386.c (type_natural_mode): Fix typo.
29180 2016-03-02 Nick Clifton <nickc@redhat.com>
29182 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
29184 2016-03-02 Richard Biener <rguenther@suse.de>
29185 Uros Bizjak <ubizjak@gmail.com>
29188 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
29190 2016-03-02 Richard Biener <rguenther@suse.de>
29192 PR middle-end/67278
29193 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
29195 2016-03-02 Marek Polacek <polacek@redhat.com>
29198 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
29199 "is promoted to" warning.
29201 2016-03-01 DJ Delorie <dj@redhat.com>
29203 * config.gcc: Deprecate mep-*.
29205 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
29207 PR middle-end/70025
29208 * lra-constraints.c (regno_val_use_in): New.
29209 (match_reload): Use it instead of regno_use_in.
29211 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
29213 PR rtl-optimization/70007
29214 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
29215 references present in REG_EQUAL notes attached to non-SET patterns.
29217 2016-03-01 Jeff Law <law@redhat.com>
29219 PR tree-optimization/69196
29220 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29221 Appropriately clamp the number of statements to copy when the
29222 thread path does not traverse a loop backedge.
29224 PR tree-optimization/69196
29225 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29226 Do count some PHIs in the thread path against the insn count. Decrease
29227 final statement count by one as the control statement in the last
29228 block will get removed. Remove special cased code for handling PHIs
29231 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
29234 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
29235 asm dialect alternatives to explicit GOTPCREL calls.
29237 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
29240 * ira.c (do_reload): Issue warning for generic stack checking here...
29241 * reload1.c (reload): ...instead of here and streamline it.
29243 2016-03-01 Nick Clifton <nickc@redhat.com>
29245 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
29247 2016-03-01 Richard Biener <rguenther@suse.de>
29249 PR tree-optimization/69983
29250 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
29251 types and fall back to operand_equal_p.
29253 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29256 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29258 * config/s390/constraints.md ("jm8"): New constraint.
29259 * config/s390/predicates.md ("const_int_8bitset_operand"): New
29261 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
29263 ("*setmem_long<setmem_and>"): New pattern.
29264 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
29266 ("*setmem_long_31z<setmem_and>"): New pattern.
29267 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
29268 New substitution rules with the required attributes.
29271 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29274 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29276 * gensupport.c (process_substs_on_one_elem): Split loop to
29277 complete mark_operands_used_in_match_dup on all expressions in the
29279 (adjust_operands_numbers): Inline into process_substs_on_one_elem
29280 and remove function.
29282 2016-03-01 Richard Biener <rguenther@suse.de>
29284 PR middle-end/70022
29285 * fold-const.c (fold_indirect_ref_1): Fix range checking for
29286 vector BIT_FIELD_REF extract.
29288 2016-03-01 Richard Biener <rguenther@suse.de>
29290 PR tree-optimization/69994
29291 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
29293 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
29295 PR tree-optimization/69956
29296 * tree-vect-stmts.c (supportable_widening_operation): Support
29297 multi-step conversion of boolean vectors.
29298 (supportable_narrowing_operation): Likewise.
29300 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29302 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
29305 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29307 * config/s390/subst.md (DSI_VI): New mode iterator.
29308 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
29309 * config/s390/vector.md ("vec_set<mode>"): Move expander before
29310 the insn definition.
29311 ("*vec_set<mode>"): Change predicate and add alternative to
29312 support only either register or const_int operands as element
29314 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
29316 ("vec_extract<mode>"): New expander.
29317 ("*vec_extract<mode>"): New insn definition supporting reg and
29318 const_int element selectors.
29319 ("*vec_extract<mode>_plus"): New insn definition supporting
29320 reg+const_int element selectors.
29321 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
29322 following expander+insn definition.
29323 ("<vec_shifts_name><mode>3"): New expander.
29324 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
29326 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29328 * config/s390/s390.md ("*tabort_1"): Change predicate to
29329 nonmemory_operand. Add a second alternative to cover
29330 register as well as const int operands.
29331 ("*tabort_1_plus"): New pattern definition.
29333 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29335 * config/s390/s390.md ("*ashrdi3_cc_31")
29336 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
29337 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
29338 Merge insn definitions into ...
29339 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
29340 New pattern definition.
29341 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
29342 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
29343 ("*ashr<mode>3_and"): Merge insn definitions into ...
29344 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
29345 New pattern definition.
29346 * config/s390/subst.md ("addr_style_op_cc_subst")
29347 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
29348 substitutions patterns plus attributes.
29349 Add ashiftrt to SUBST iterator.
29351 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29353 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
29354 op2 to nonmemory_operand.
29355 ("*<shift>di3_31", "*<shift>di3_31_and"):
29356 Merge into single pattern definition ...
29357 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
29358 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
29359 pattern definition ...
29360 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
29361 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
29364 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29366 * config/s390/predicates.md (const_int_6bitset_operand): New
29368 * config/s390/s390.md: Include subst.md.
29369 ("rotl<mode>3"): New expander.
29370 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
29372 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
29373 * config/s390/subst.md: New file.
29375 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29377 * config/s390/s390.md ("op_type", "atype", "length" attributes):
29378 Remove RRR type. It doesn't really exist.
29379 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
29381 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
29382 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
29383 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
29384 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
29385 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
29386 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
29387 `enabled' attribute.
29389 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29391 * gensupport.c (process_substs_on_one_elem): Split loop to
29392 complete mark_operands_used_in_match_dup on all expressions in the
29394 (adjust_operands_numbers): Inline into process_substs_on_one_elem
29395 and remove function.
29397 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
29400 * config/sparc/sparc.c (NWORDS_UP): Rename to...
29401 (CEIL_NWORDS): ...this. Use CEIL macro.
29402 (compute_fp_layout): Adjust to above renaming.
29403 (function_arg_union_value): Likewise.
29404 (sparc_arg_partial_bytes): Likewise.
29405 (sparc_function_arg_advance): Likewise.
29407 2016-02-29 Jeff Law <law@redhat.com>
29409 PR tree-optimization/70005
29410 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
29411 where an object with a boolean range is compared against a value
29414 PR tree-optimization/69999
29415 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
29416 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
29419 2016-02-29 Richard Biener <rguenther@suse.de>
29421 PR tree-optimization/69994
29422 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
29423 (get_unary_op): Look through nop conversions.
29424 (ops_equal_values_p): New function, look for equality diregarding
29426 (eliminate_plus_minus_pair): Use ops_equal_values_p
29427 (repropagate_negates): Do not use get_unary_op here.
29429 2016-02-29 Martin Liska <mliska@suse.cz>
29431 * system.h: Poison ENABLE_CHECKING macro.
29433 2016-02-29 Martin Liska <mliska@suse.cz>
29435 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
29436 is presented in dump flags.
29437 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
29438 (hsa_regalloc): Likewise.
29440 2016-02-19 Richard Biener <rguenther@suse.de>
29442 PR tree-optimization/69980
29443 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
29444 permutation of those we need to keep.
29446 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
29449 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
29450 (NWORDS_UP): ...this
29451 (init_cumulative_args): Minor tweaks.
29452 (sparc_promote_function_mode): Likewise.
29453 (scan_record_type): Delete.
29454 (traverse_record_type): New function template.
29455 (classify_data_t): New structure type.
29456 (classify_registers): New inline function.
29457 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
29458 exhausted. Instantiate traverse_record_type on classify_registers and
29459 deal with the case of a structure passed in slot #15 with no FP field
29461 (assign_data_t): New structure type.
29462 (compute_int_layout): New static function.
29463 (compute_fp_layout): Likewise.
29464 (count_registers): New inline function.
29465 (assign_int_registers): New static function.
29466 (assign_fp_registers): Likewise.
29467 (assign_registers): New inline function.
29468 (function_arg_record_value_1): Delete.
29469 (function_arg_record_value_2): Likewise.
29470 (function_arg_record_value_3): Likewise.
29471 (function_arg_record_value): Adjust to above changes. Instantiate
29472 traverse_record_type on count_registers to first count the number of
29473 registers to be used and then on assign_registers to assign them.
29474 (function_arg_union_value): Adjust to above renaming.
29475 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
29476 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
29477 case of a structure passed in slot #15
29478 (sparc_function_arg_advance): Likewise.
29479 (function_arg_padding): Minor tweak.
29481 2016-02-29 Richard Biener <rguenther@suse.de>
29483 PR tree-optimization/69720
29484 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
29485 the adjustment_def path for possibly vectorized defs.
29486 (vect_create_epilog_for_reduction): Handle vectorized initial
29489 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
29491 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
29493 2016-02-27 Jeff Law <law@redhat.com>
29496 2016-02-26 Richard Biener <rguenther@suse.de>
29497 Jeff Law <law@redhat.com>
29499 PR tree-optimization/69740
29500 * cfghooks.c (remove_edge): Request loop fixups if we delete
29501 an edge that might turn an irreducible loop into a natural
29504 2016-02-27 Jakub Jelinek <jakub@redhat.com>
29506 PR rtl-optimization/69896
29507 * tree-vect-generic.c (get_compute_type): Avoid single element
29510 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
29512 Rename the AArch64 tuning option and related functions to enable the
29513 Newton series for the reciprocal square root to reflect its
29514 approximative characteristic.
29516 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
29517 function to "aarch64_emit_approx_rsqrt".
29518 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
29519 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
29520 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
29521 (xgene1_tunings): Likewise.
29522 (use_rsqrt_p): Likewise.
29523 (aarch64_emit_swrsqrt): Use new function name.
29524 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
29525 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
29526 text explaining this option.
29527 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
29529 2016-02-26 Jakub Jelinek <jakub@redhat.com>
29532 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29533 complain about -mallow-movmisalign without -mvsx if
29534 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
29536 2016-02-26 Joel Sherrill <joel@rtems.org>
29538 * config.gcc: Add x86_64-*-rtems*.
29539 * config/i386/rtems-64.h: New file.
29541 2016-02-26 Joel Sherrill <joel@rtems.org>
29543 * config.gcc: Add aarch64-*-rtems*.
29544 * config/aarch64/rtems.h: New file.
29546 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
29549 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
29550 shift amount using %h. Add comment.
29552 2016-02-26 Richard Biener <rguenther@suse.de>
29553 Jeff Law <law@redhat.com>
29555 PR tree-optimization/69740
29556 * cfghooks.c (remove_edge): Request loop fixups if we delete
29557 an edge that might turn an irreducible loop into a natural
29560 2016-02-26 Martin Jambor <mjambor@suse.cz>
29562 PR middle-end/69920
29563 * tree-sra.c (sra_modify_assign): Do not remove loads of
29564 uninitialized aggregates to SSA_NAMEs.
29566 2016-02-26 Richard Henderson <rth@redhat.com>
29569 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
29570 pseudo in case the target rtx matches the source of the left
29573 2016-02-26 Martin Jambor <mjambor@suse.cz>
29576 * hsa.h (hsa_type_packed_p): Declare.
29577 * hsa.c (hsa_type_packed_p): New function.
29578 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
29580 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
29581 * hsa-brig.c (emit_basic_insn): Likewise.
29583 2016-02-26 Martin Jambor <mjambor@suse.cz>
29586 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
29588 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
29590 2016-02-26 Martin Jambor <mjambor@suse.cz>
29592 * hsa.h (is_a_helper): New overload for hsa_op_immed for
29593 hsa_op_with_type operands.
29594 (hsa_unsigned_type_for_type): Declare.
29595 * hsa.c (hsa_unsigned_type_for_type): New function.
29596 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
29597 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
29598 the finalizer. Do not emit extra move.
29600 2016-02-26 Martin Jambor <mjambor@suse.cz>
29602 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
29603 atomic operations in private segment.
29605 2016-02-26 Martin Jambor <mjambor@suse.cz>
29607 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
29608 statements to wi->info. Also disallow omp simd constructs.
29609 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
29610 for not gridifying. Dump special string for omp_for.
29612 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29615 * config/aarch64/aarch64.c (aarch64_set_current_function):
29616 Save/restore target globals when switching to
29617 target_option_default_node.
29619 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29622 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
29623 Return 0 if !SHIFT_COUNT_TRUNCATED.
29625 2016-02-26 Jakub Jelinek <jakub@redhat.com>
29626 Eric Botcazou <ebotcazou@adacore.com>
29628 PR rtl-optimization/69891
29629 * dse.c (scan_insn): If we can't figure out memset arguments
29630 or they are non-constant, call clear_rhs_from_active_local_stores.
29632 2016-02-26 Martin Liska <mliska@suse.cz>
29634 * doc/extend.texi: Mention clog10, clog10f an clog10l
29635 in Builtins section.
29637 2016-02-26 Martin Liska <mliska@suse.cz>
29639 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
29641 (resolve_args_picking_1): Likewise.
29642 * dwarf2out.h (struct GTY): Likewise.
29644 2016-02-26 Martin Liska <mliska@suse.cz>
29646 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
29647 with flag_checking.
29648 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
29650 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
29651 Martin Liska <mliska@suse.cz>
29653 * doc/install.texi: Mention --enable-valgrind-annotations.
29655 2016-02-26 Richard Biener <rguenther@suse.de>
29657 PR tree-optimization/69551
29658 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
29659 looking through aliases adjust DECL_PT_UID to refer to the
29660 ultimate alias target.
29662 2016-02-25 Martin Liska <mliska@suse.cz>
29664 PR middle-end/69919
29665 * alloc-pool.c (after_memory_report): New variable.
29666 * alloc-pool.h (base_pool_allocator ::release): Do not use
29667 the infrastructure if after_memory_report.
29668 * toplev.c (toplev::main): Mark after memory report.
29670 2016-02-25 Richard Biener <rguenther@suse.de>
29672 PR tree-optimization/48795
29673 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
29675 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
29678 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
29679 offloading is enabled and -fopenacc or -fopenmp is specified.
29680 (CRTOFFLOADEND): Likewise.
29681 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
29682 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
29683 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
29684 (offload_objects_file_name): New static var.
29685 (tool_cleanup): Remove offload_objects_file_name file.
29686 (find_offloadbeginend): Replace with ...
29687 (find_crtoffloadtable): ... this.
29688 (run_gcc): Remove offload_argc and offload_argv.
29689 Get offload_objects_file_name from -foffload-objects=... option.
29690 Read names of object files with offload from this file, pass them to
29691 compile_images_for_offload_targets. Don't call find_offloadbeginend and
29692 don't pass offloadbegin and offloadend to the linker. Don't pass
29693 offload non-LTO files to the linker, because now they're not claimed.
29695 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
29698 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
29699 on builtin_unreachable.
29701 2016-02-25 Jakub Jelinek <jakub@redhat.com>
29703 PR rtl-optimization/69896
29704 * regcprop.c: Include cfgrtl.h.
29705 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
29706 than remembered mode, either delete it (if noop_move_p), or
29707 treat like copy_p but not noop_p instruction.
29709 2016-02-24 Jakub Jelinek <jakub@redhat.com>
29712 * dwarf2out.c (gen_variable_die): Work around buggy LTO
29713 - allow NULL decl for Fortran DW_TAG_common_block variables.
29715 2016-02-24 Jason Merrill <jason@redhat.com>
29717 * common.opt (flifetime-dse): Add -flifetime-dse=1.
29719 2016-02-24 Richard Biener <rguenther@suse.de>
29720 Jakub Jelinek <jakub@redhat.com>
29722 PR middle-end/69760
29723 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
29724 conditionally executed ops to well-defined overflow behavior.
29726 2016-02-24 Jakub Jelinek <jakub@redhat.com>
29728 PR middle-end/69915
29729 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
29732 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29734 PR rtl-optimization/69886
29735 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
29736 argument. Use it when checking validity of set instructions.
29737 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
29738 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
29740 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
29741 * store-motion.c (find_moveable_store): Update
29742 can_assign_to_reg_without_clobbers_p callsite.
29744 2016-02-24 Richard Biener <rguenther@suse.de>
29746 PR middle-end/68963
29747 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
29749 (record_nonwrapping_iv): Do not fall back to the low/high bound
29750 for non-constant IV bases if the stmt is not always executed.
29752 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29754 * config/arm/arm-cores.def (cortex-a32): New entry.
29755 * config/arm/arm-tables.opt: Regenerate.
29756 * config/arm/arm-tune.md: Regenerate.
29757 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
29758 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
29759 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
29760 for -mcpu and -mtune.
29762 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29765 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
29766 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
29767 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
29768 (atomic_loaddi_1): Delete.
29769 (atomic_loaddi): Rewrite expander using the above changes.
29771 2016-02-24 Jakub Jelinek <jakub@redhat.com>
29774 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
29777 2016-02-24 Jakub Jelinek <jakub@redhat.com>
29778 Richard Biener <rguenth@suse.de>
29780 PR middle-end/69909
29781 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
29782 set_mem_attributes if tem is SSA_NAME which got expanded
29785 2016-02-24 Richard Biener <rguenther@suse.de>
29787 PR tree-optimization/69907
29788 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
29789 end of permutations for BB vectorization.
29791 2016-02-24 Christian Bruel <christian.bruel@st.com>
29793 * config/arm/arm-c.c (arm_option_override): Initialize
29794 target_option_current_node.
29795 * config/arm/arm.c (arm_pragma_target_parse): Replace
29796 build_target_option_node call by target_option_current_node.
29797 Set target_option_current_node.
29800 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
29803 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
29804 define_insn_and_split to define_insn.
29805 (zero_extendqi<mode>2_dot2): Same.
29806 (extendqi<mode>2_dot): Same.
29807 (extendqi<mode>2_dot2): Same.
29809 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
29811 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
29812 and add bypass for AES{D,E} and AESMC pairs.
29813 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
29816 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
29818 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
29819 series for reciprocal square root in Exynos M1.
29821 2016-02-23 Martin Sebor <msebor@redhat.com>
29824 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
29825 __builtin_alloca_with_align.
29827 2016-02-23 Richard Henderson <rth@redhat.com>
29829 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
29830 (ix86_register_pragmas): Remove __seg_tls.
29831 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
29832 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
29833 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
29834 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
29835 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
29836 * doc/extend.texi (__seg_tls): Remove item.
29838 2016-02-23 Richard Biener <rguenther@suse.de>
29840 * alloc-pool.h (struct allocation_object): Make id member
29841 conditional on CHECKING_P again.
29842 (get_instance): Adjust.
29843 (base_pool_allocator): Likewise.
29845 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
29847 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
29848 (parallelize_loops): In OpenACC kernels mode, set n_threads to
29850 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
29852 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
29854 2016-02-23 Richard Biener <rguenther@suse.de>
29856 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
29857 * bitmap.h (struct bitmap_usage): Likewise.
29858 (bitmap_move): Declare.
29859 * bitmap.c (register_overhead): Take size_t argument.
29860 (bitmap_move): New function.
29861 * df-problems.c (df_rd_transfer_function): Use bitmap_move
29862 to properly account overhead.
29863 * tree.c (free_node): Use tree_size.
29865 2016-02-23 Jakub Jelinek <jakub@redhat.com>
29868 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
29869 when inverting comparison.
29872 * common.opt (Wunreachable-code): Add Warning flag.
29874 2016-02-23 Mark Wielaard <mjw@redhat.com>
29875 Jakub Jelinek <jakub@redhat.com>
29878 * cgraphunit.c (check_global_declaration): Check main_input_filename
29879 and DECL_SOURCE_FILE are not NULL.
29881 2016-02-23 Martin Jambor <mjambor@suse.cz>
29883 PR tree-optimization/69666
29884 * tree-sra.c (sra_modify_assign): Do not attempt to create
29885 default_def replacements for unscalarizable regions.
29887 2016-02-20 Mark Wielaard <mjw@redhat.com>
29890 * cgraphunit.c (check_global_declaration): Check level of
29891 warn_unused_const_variable and main_input_filename.
29892 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
29893 (-Wunused-variable): For C implies -Wunused-const-variable=1.
29894 (-Wunused-const-variable): Explain levels 1 and 2.
29896 2016-02-22 Jakub Jelinek <jakub@redhat.com>
29899 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
29900 identical arguments. Formatting and spelling fixes.
29903 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
29908 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
29909 and m68k-devices.def.
29910 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
29911 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
29913 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
29915 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
29916 and HImode registers.
29918 2016-02-22 Richard Biener <rguenther@suse.de>
29920 PR tree-optimization/69882
29921 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
29922 preserve permutations present because of gaps.
29923 (vect_supported_load_permutation_p): Always continue checking
29924 permutations after vect_attempt_slp_rearrange_stmts.
29926 2016-02-22 Bin Cheng <bin.cheng@arm.com>
29928 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
29929 min_profitable_estimate, rather than min_profitable_iters.
29931 2016-02-22 Jakub Jelinek <jakub@redhat.com>
29934 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
29935 SImode for last match_operand.
29937 2016-02-22 Martin Liska <mliska@suse.cz>
29939 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
29940 return bitsize - 1 as the return value.
29942 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
29946 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
29947 Handle negative shift counts.
29948 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
29949 force_reg on the shift constant.
29950 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
29951 (lshrsi3_d): Handle negative shift counts.
29953 2016-02-22 Richard Biener <rguenther@suse.de>
29954 Tom de Vries <tom@codesourcery.com>
29956 * graph.c: Include dumpfile.h.
29957 (print_graph_cfg): Split into three overloads.
29958 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
29960 2016-02-22 Tom de Vries <tom@codesourcery.com>
29962 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
29965 2016-02-22 Richard Biener <rguenther@suse.de>
29968 * ipa-inline-transform.c (inline_call): When not updating
29969 overall summaries adjust self size by the growth estimate.
29970 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
29971 hash-set, do not update overall summaries here. Renamed from ...
29972 (inline_to_all_callers): ... this which is now wrapping the
29973 above and performing delayed overall summary update.
29974 (early_inline_small_functions): Delay updating of the overall
29977 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
29979 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
29982 2016-02-19 Jakub Jelinek <jakub@redhat.com>
29985 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
29986 :%* in %:gt() argument.
29987 (greater_than_spec_func): Adjust for expecting only numbers,
29988 if there are more than two numbers, compare the last two.
29990 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
29992 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
29993 -Wnarrowing with -std.
29995 2016-02-19 Jakub Jelinek <jakub@redhat.com>
29998 * expr.c (store_field): Don't use bit-field path if exp is
29999 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
30000 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
30001 and the assignment can be performed by bitwise copy. Formatting
30004 PR middle-end/69838
30005 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
30006 call copy_reg_eh_region_note_forward on before and/or after sequences
30007 and remove note from insn if it no longer can throw.
30010 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
30011 if TARGET_AVX512BW.
30013 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30015 * config/s390/vector.md: Add missing commutative operand markers
30016 to the patterns which qualify for one.
30017 * config/s390/vx-builtins.md: Likewise.
30019 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30021 * config/s390/vector.md (VI, VI_QHS): Add single element vector
30022 types to mode iterators.
30023 (vec_double): ... and mode attribute.
30024 * config/s390/vx-builtins.md (non_vec_int): Likewise.
30026 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30028 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
30029 Change the predicate of op2 from nonimmediate to general and let
30030 reload fix it if necessary.
30032 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30034 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
30036 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30038 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
30041 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30043 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
30044 * config/s390/s390.c (s390_expand_vec_movstr): New function.
30045 * config/s390/s390.md ("movstr<P:mode>"): Call
30046 s390_expand_vec_movstr.
30048 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30050 * config/s390/s390.md: Add missing output modifier for operand 1
30051 to print it as address properly.
30053 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30055 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
30056 * config/s390/2964.md: New file.
30057 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
30058 of insn grouping attributes depending on the CPU level.
30059 (s390_get_unit_mask): New function.
30060 (s390_sched_score): Remove the OOO from the scheduling macros.
30061 Add loop to calculate a score for the instruction mix.
30062 (s390_sched_reorder): Likewise plus improve debug output.
30063 (s390_sched_variable_issue): Rename macros as above. Calculate
30064 the unit distances after actually scheduling an insn. Improve
30066 (s390_sched_init): Clear last_scheduled_unit_distance array.
30067 * config/s390/s390.md: Include 2964.md.
30069 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30072 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
30073 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
30074 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
30075 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
30076 *avx512f_<code>v8div16qi2_mask_1): New insns.
30078 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
30081 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
30084 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
30085 earlyclobber from target. Use wF constraint for fused memory
30087 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
30089 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30090 Martin Liska <mliska@suse.cz>
30093 * cfgexpand.c (asan_sanitize_stack_p): New function.
30094 (partition_stack_vars): Use the function.
30095 (expand_stack_vars): Likewise.
30096 (defer_stack_allocation): Likewise.
30097 (expand_used_vars): Likewise.
30099 2016-02-18 Richard Biener <rguenther@suse.de>
30101 PR middle-end/69553
30102 * fold-const.c (operand_equal_p): Properly compare offsets for
30103 IMAGPART_EXPR and ARRAY_REF.
30105 2016-02-18 Nick Clifton <nickc@redhat.com>
30109 * config/arm/arm.c (arm_option_override_internal): Disable
30110 interworking if the target does not support thumb instructions.
30111 (arm_reload_in_hi): Handle the case where a register to register
30112 move needs reloading because there is no simple pattern to handle
30114 (arm_reload_out_hi): Likewise.
30116 2016-02-18 Richard Biener <rguenther@suse.de>
30118 PR middle-end/69854
30119 * match.pd: Don't use fold_binary or fold_unary for folding
30122 2016-02-17 Jakub Jelinek <jakub@redhat.com>
30125 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
30126 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
30127 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
30128 warn on gimple_no_warning_p statements.
30130 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
30132 * doc/extend.texi (C++ Attributes): Correct description of
30133 warn_unused type attribute.
30135 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30137 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
30138 correct instruction.
30140 2016-02-17 Richard Biener <rguenther@suse.de>
30142 PR rtl-optimization/69609
30143 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
30144 (find_traces_1_round): When ending a trace update cached priority
30146 (bb_to_key): Use cached priority when available.
30147 (copy_bb): Initialize cached priority.
30148 (reorder_basic_blocks_software_trace_cache): Likewise.
30150 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30153 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
30155 (aarch64_comparison_operator): Break overly long line into two.
30156 (aarch64_comparison_operation): Likewise.
30157 * config/aarch64/aarch64.md (cstorecc4): Use
30158 aarch64_comparison_operator_mode instead of
30159 aarch64_comparison_operator.
30160 (cstore<mode>4): Likewise.
30161 (aarch64_cstore<mode>): Likewise.
30162 (*cstoresi_insn_uxtw): Likewise.
30163 (cstore<mode>_neg): Likewise.
30164 (*cstoresi_neg_uxtw): Likewise.
30166 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30169 * config/arm/predicates.md (arm_comparison_operator_mode):
30171 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
30172 instead of arm_comparison_operator.
30173 (*mov_negscc): Likewise.
30174 (*mov_notscc): Likewise.
30175 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
30176 (*thumb2_mov_negscc): Likewise.
30177 (*thumb2_mov_negscc_strict_it): Likewise.
30178 (*thumb2_mov_notscc): Likewise.
30179 (*thumb2_mov_notscc_strict_it): Likewise.
30181 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
30183 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
30184 Add missing return.
30186 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
30188 * config/visium/visium.c (machine_libfunc_index): New enum.
30189 (machine_libfuncs): New structure.
30190 (visium_libfuncs): New static variable.
30191 (TARGET_INIT_LIBFUNCS): Define to...
30192 (visium_init_libfuncs): ...this. New function.
30193 (expand_block_move_4): Use the appropriate libfunc.
30194 (expand_block_move_2): Likewise.
30195 (expand_block_move_1): Likewise.
30196 (expand_block_set_4): Likewise.
30197 (expand_block_set_2): Likewise.
30198 (expand_block_set_1): Likewise.
30199 (visium_trampoline_init): Likewise.
30201 2016-02-17 Nick Clifton <nickc@redhat.com>
30203 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
30204 TI's devices.csv file as of March 2016.
30206 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
30209 * opts-global.c (handle_common_deferred_options): Introduce and
30210 initialize two global variables to remember command-line options
30211 specifying a stack-limiting register.
30212 * opts.h: Add extern declarations of the two new global variables.
30213 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
30214 variable based on the values of the two new global variables.
30216 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30219 * common.opt (Wnonnull-compare): New warning.
30220 * doc/invoke.texi (-Wnonnull): Remove text about comparison
30221 of arguments against NULL.
30222 (-Wnonnull-compare): Document.
30223 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
30224 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
30225 * passes.def (pass_warn_nonnull_compare): Add.
30226 * gimple-ssa-nonnull-compare.c: New file.
30228 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30230 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
30231 AARCH64_EXTRA_TUNE_RECIP_SQRT.
30233 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30235 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
30236 reciprocal sqrt for -mlow-precision-recip-sqrt.
30238 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30239 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30241 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
30242 always use lane loads to construct non-constant vectors.
30244 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30246 * config/aarch64/aarch64.md
30247 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
30248 constraints for operand 3.
30249 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
30251 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30252 Richard Biener <rguenther@suse.de>
30254 PR tree-optimization/69820
30255 * tree-vect-patterns.c (type_conversion_p): Return false if
30256 *orig_type is unsigned single precision or boolean.
30257 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
30260 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30262 PR rtl-optimization/69764
30263 PR rtl-optimization/69771
30264 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
30265 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
30267 2016-02-16 Richard Biener <rguenther@suse.de>
30269 PR tree-optimization/69776
30270 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
30272 (indirect_refs_may_alias_p): Likewise.
30273 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
30274 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
30275 according to tbaa_p.
30276 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
30277 (optimize_stmt): For redundant store discovery do not allow tbaa.
30279 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
30281 PR tree-optimization/69714
30282 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
30283 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
30285 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
30287 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
30288 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
30289 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
30290 * config/arc/arc.c (arc_init): Check FPU options.
30291 (get_arc_condition_code): Handle new CC_FPU* modes.
30292 (arc_select_cc_mode): Likewise.
30293 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
30294 register pair only. Allow access for ARCv2 accumulator.
30295 (gen_compare_reg): Whenever we have FPU support use FPU compare
30297 (arc_reorg): Don't generate brcc insns when FPU compare
30298 instructions are involved.
30299 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
30300 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
30301 floating point emulation.
30302 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
30303 (REVERSE_CONDITION): Add new CC_FPU* modes.
30304 (TARGET_FP_SP_BASE): Define.
30305 (TARGET_FP_DP_BASE): Likewise.
30306 (TARGET_FP_SP_FUSED): Likewise.
30307 (TARGET_FP_DP_FUSED): Likewise.
30308 (TARGET_FP_SP_CONV): Likewise.
30309 (TARGET_FP_DP_CONV): Likewise.
30310 (TARGET_FP_SP_SQRT): Likewise.
30311 (TARGET_FP_DP_SQRT): Likewise.
30312 (TARGET_FP_DP_AX): Likewise.
30313 * config/arc/arc.md (ARCV2_ACC): New constant.
30314 (type): New fpu type attribute.
30315 (SDF): Conditional iterator.
30316 (cstore<mode>, cbranch<mode>): Change expand condition.
30317 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
30318 handles FPU/FPX cases as well.
30319 * config/arc/arc.opt (mfpu): New option.
30320 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
30322 (adddf3, muldf3, subdf3): Removed.
30323 * config/arc/predicates.md (proper_comparison_operator): Recognize
30325 * config/arc/fpu.md: New file.
30326 * doc/invoke.texi (ARC Options): Document mfpu option.
30328 2016-02-16 Richard Biener <rguenther@suse.de>
30330 PR rtl-optimization/69291
30331 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
30332 noce_operand_ok check.
30334 2016-02-16 Tom de Vries <tom@codesourcery.com>
30337 * omp-low.c (simd_clone_create): Remove call to
30338 symtab->call_cgraph_insertion_hooks.
30340 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30342 PR tree-optimization/69802
30343 * tree-ssa-reassoc.c (update_range_test): If op is
30344 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
30345 op == 1 test of precision 1 integral op, otherwise handle
30346 that case as op itself. Fix up formatting.
30347 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
30350 2016-02-16 Richard Biener <rguenther@suse.de>
30352 PR tree-optimization/69586
30353 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
30354 types for conversion sources.
30356 2016-02-16 Richard Biener <rguenther@suse.de>
30358 PR middle-end/69801
30359 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
30360 mask OEP_ADDRESS_OF.
30362 2016-02-16 Alan Modra <amodra@gmail.com>
30365 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
30366 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
30367 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
30369 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
30370 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
30371 (p8_fmrgow_<mode>): Likewise.
30372 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
30374 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
30375 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
30376 to use movdi_internal64. Remove op0_di.
30377 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
30379 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
30381 Add support for the FCCMP insn types
30383 * config/aarch64/aarch64.md (fccmp): Change insn type.
30384 (fccmpe): Likewise.
30385 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
30386 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
30387 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
30388 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
30389 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
30390 * config/arm/types.md (fccmps): Add new insn type.
30391 (fccmpd): Likewise.
30393 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
30395 * alias.c (get_alias_set): Fix a typo in comment.
30397 2016-02-15 Richard Biener <rguenther@suse.de>
30399 PR tree-optimization/69595
30400 * match.pd: Complete range test simplification to true.
30402 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
30404 PR rtl-optimization/69648
30405 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
30406 pic_offset_table_rtx.
30408 PR rtl-optimization/69752
30409 * ira.c (update_equiv_regs): When looking for more than a single SET,
30410 also take other side effects into account.
30412 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
30414 * config/s390/s390.c (s390_function_profiler): Add a new sequence
30415 for z900+ CPUs in 31-bit mode.
30417 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
30419 * common/config/s390/s390-common.c (s390_supports_split_stack):
30421 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
30422 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
30423 * config/s390/s390.c (struct machine_function): New field
30424 split_stack_varargs_pointer.
30425 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
30426 in s390_emit_prologue.
30427 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
30429 (morestack_ref): New global.
30430 (SPLIT_STACK_AVAILABLE): New macro.
30431 (s390_expand_split_stack_prologue): New function.
30432 (s390_live_on_entry): New function.
30433 (s390_va_start): Use split-stack vararg pointer if appropriate.
30434 (s390_asm_file_end): Emit the split-stack note sections.
30435 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
30436 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
30437 (UNSPECV_SPLIT_STACK_CALL): New unspec.
30438 (UNSPECV_SPLIT_STACK_DATA): New unspec.
30439 (split_stack_prologue): New expand.
30440 (split_stack_space_check): New expand.
30441 (split_stack_data): New insn.
30442 (split_stack_call): New expand.
30443 (split_stack_call_*): New insn.
30444 (split_stack_cond_call): New expand.
30445 (split_stack_cond_call_*): New insn.
30447 2016-02-15 Richard Biener <rguenther@suse.de>
30449 PR tree-optimization/69783
30450 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30451 Add trivially correct cases.
30453 2016-02-15 Tom de Vries <tom@codesourcery.com>
30456 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
30458 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
30460 2016-02-15 Richard Biener <rguenther@suse.de>
30462 PR tree-optimization/69776
30463 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
30464 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
30465 indicate whether we can use TBAA to disambiguate against stores.
30466 Use alias-set zero if not.
30467 (visit_reference_op_store): Do not use TBAA when looking up
30469 * tree-ssa-pre.c (compute_avail): Use TBAA here.
30470 (eliminate_dom_walker::before_dom_children): But not when looking
30471 up redundant stores.
30473 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
30475 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
30477 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30479 * config/i386/znver1.md
30480 (znver1_pop, znver1_pop_mem,
30481 znver1_load_imov_double_store,
30482 znver1_load_imov_direct_store,
30483 znver1_load_imov_direct_load,
30484 znver1_load_imov_double_load): Add new.
30485 (znver1_insn, znver1_insn_load): Add icmov type.
30486 (znver1_sseavx_fma,
30487 znver1_sseavx_fma_load,
30489 znver1_avx256_fma_load): Fix pipe usage.
30491 2016-02-14 Alan Modra <amodra@gmail.com>
30494 * reload.c (find_reloads_address_1): For pre/post-inc/dec
30495 with an invalid hard reg, reload just the reg not the entire
30496 pre/post-inc/dec address expression.
30498 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
30501 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
30502 fixed R1_REG scratch reg.
30503 (sibcall_value_pcrel_fdpic): Likewise.
30505 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
30509 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
30511 2016-02-12 Walter Lee <walt@tilera.com>
30513 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
30514 * config/tilegx/t-tilegx: Likewise.
30516 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30519 * diagnostic-show-locus.c (struct line_span): New struct.
30520 (layout::get_first_line): Delete.
30521 (layout::get_last_line): Delete.
30522 (layout::get_num_line_spans): New member function.
30523 (layout::get_line_span): Likewise.
30524 (layout::print_heading_for_line_span_index_p): Likewise.
30525 (layout::get_expanded_location): Likewise.
30526 (layout::calculate_line_spans): Likewise.
30527 (layout::m_first_line): Delete.
30528 (layout::m_last_line): Delete.
30529 (layout::m_line_spans): New field.
30530 (layout::layout): Update comment. Replace m_first_line and
30531 m_last_line with m_line_spans, replacing their initialization
30532 with a call to calculate_line_spans.
30533 (diagnostic_show_locus): When printing source lines and
30534 annotations, rather than looping over a single span
30535 of lines, instead loop over each line_span within
30536 the layout, with an inner loop over the lines within them.
30537 Call the context's start_span callback when changing line spans.
30538 * diagnostic.c (diagnostic_initialize): Initialize start_span.
30539 (diagnostic_build_prefix): Break out the building of the location
30540 part of the string into...
30541 (diagnostic_get_location_text): ...this new function, rewriting
30542 it from nested ternary expressions to a sequence of "if"
30544 (default_diagnostic_start_span_fn): New function.
30545 * diagnostic.h (diagnostic_start_span_fn): New typedef.
30546 (diagnostic_context::start_span): New field.
30547 (default_diagnostic_start_span_fn): New prototype.
30549 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30552 * gcc.c (driver::finalize): Fix cleanup of "specs".
30554 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30558 * gcc.c (driver::driver): Initialize m_option_suggestions.
30559 (driver::~driver): Clean up m_option_suggestions.
30560 (suggest_option): Convert to...
30561 (driver::suggest_option): ...this, and split out into
30562 driver::build_option_suggestions and find_closest_string.
30563 (driver::build_option_suggestions): New function, from
30564 first half of suggest_option. Special-case
30565 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
30566 the sanitizer_opts array. For options of enum types, add the
30567 various enum values to the candidate strings.
30568 (driver::handle_unrecognized_options): Remove "const".
30569 * gcc.h (driver::handle_unrecognized_options): Likewise.
30570 (driver::build_option_suggestions): New decl.
30571 (driver::suggest_option): New decl.
30572 (driver::m_option_suggestions): New field.
30573 * opts-common.c (add_misspelling_candidates): New function.
30574 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
30575 and make non-static.
30576 * opts.h (sanitizer_opts): New array decl.
30577 (add_misspelling_candidates): New function decl.
30578 * spellcheck.c (find_closest_string): New function.
30579 * spellcheck.h (find_closest_string): New function decl.
30581 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30583 PR rtl-optimization/69764
30584 PR rtl-optimization/69771
30585 * optabs.c (expand_binop_directly): For shift_optab_p, force
30586 convert_modes with VOIDmode if xop1 has VOIDmode.
30588 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
30591 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
30592 to correctly determine instrumentation thunks.
30594 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30597 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
30598 type by reference, force lhs on the call.
30601 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
30602 Compute retval and retbnd early in all cases if split_part_return_p
30603 and return_bb is not EXIT. Remove all clobber stmts and reset
30604 all debug stmts that refer to SSA_NAMEs defined in split part,
30605 except if it is retval, in that case replace the old retval with the
30606 lhs of the call to the split part.
30608 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30611 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30613 PR middle-end/66726
30614 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
30615 whose result is used in PHI.
30616 (maybe_optimize_range_tests): Likewise.
30617 (final_range_test_p): Likweise.
30619 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30621 PR middle-end/66726
30622 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
30623 whose result is used in PHI.
30624 (maybe_optimize_range_tests): Likewise.
30625 (final_range_test_p): Likweise.
30627 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30629 * cgraph.c: Spelling fixes - behaviour -> behavior and
30630 neighbour -> neighbor.
30631 * target.def: Likewise.
30632 * sel-sched.c: Likewise.
30633 * config/mips/mips.c: Likewise.
30634 * config/arc/arc.md: Likewise.
30635 * config/arm/cortex-a57.md: Likewise.
30636 * config/arm/arm.c: Likewise.
30637 * config/arm/neon.md: Likewise.
30638 * config/arm/arm-c.c: Likewise.
30639 * config/vms/vms-c.c: Likewise.
30640 * config/s390/s390.c: Likewise.
30641 * config/i386/znver1.md: Likewise.
30642 * config/i386/i386.c: Likewise.
30643 * config/ia64/hpux-unix2003.h: Likewise.
30644 * config/msp430/msp430.md: Likewise.
30645 * config/rx/rx.c: Likewise.
30646 * config/rx/rx.md: Likewise.
30647 * config/aarch64/aarch64-simd.md: Likewise.
30648 * config/aarch64/aarch64.c: Likewise.
30649 * config/nvptx/nvptx.c: Likewise.
30650 * config/bfin/bfin.c: Likewise.
30651 * config/cris/cris.opt: Likewise.
30652 * config/rs6000/rs6000.c: Likewise.
30653 * target.h: Likewise.
30654 * spellcheck.c: Likewise.
30655 * ira-build.c: Likewise.
30656 * tree-inline.c: Likewise.
30657 * builtins.c: Likewise.
30658 * lra-constraints.c: Likewise.
30659 * explow.c: Likewise.
30660 * hwint.h: Likewise.
30661 * targhooks.c: Likewise.
30662 * tree-vect-data-refs.c: Likewise.
30663 * expr.c: Likewise.
30664 * doc/tm.texi: Likewise.
30665 * doc/extend.texi: Likewise.
30666 * doc/install.texi: Likewise.
30667 * doc/md.texi: Likewise.
30668 * tree-ssa-tail-merge.c: Likewise.
30669 * sched-int.h: Likewise.
30670 * match.pd: Likewise.
30671 * sched-ebb.c: Likewise.
30672 * target.def (omit_struct_return_reg): Likewise.
30673 * gimple-ssa-isolate-paths.c: Likewise.
30674 (find_implicit_erroneous_behaviour): Renamed to...
30675 (find_implicit_erroneous_behavior): ... this.
30676 (find_explicit_erroneous_behaviour): Renamed to...
30677 (find_explicit_erroneous_behavior): ... this.
30678 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
30680 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
30682 PR rtl-optimization/64682
30683 PR rtl-optimization/69567
30684 PR rtl-optimization/69737
30685 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
30686 in I2 as well, just lose it.
30688 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30690 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
30692 (aarch64_last_printed_tune_string): Likewise.
30693 (aarch64_declare_function_name): Only output .arch assembler
30694 directive if it will be different from the previously output
30695 directive. Same for .tune comment but only if -dA is set.
30696 (aarch64_start_file): New function.
30697 (TARGET_ASM_FILE_START): Define.
30699 2016-02-11 David Malcolm <dmalcolm@redhat.com>
30702 * Makefile.in (PLUGIN_HEADERS): Add params.list.
30704 2016-02-11 Jakub Jelinek <jakub@redhat.com>
30707 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
30708 -Wmaybe-uninitialized warning.
30710 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
30713 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
30715 2016-02-11 Richard Biener <rguenther@suse.de>
30717 PR rtl-optimization/69291
30718 * ifcvt.c (noce_try_store_flag_constants): Do not allow
30719 subexpressions affected by changing the result.
30721 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
30724 * lra-constraints.c (curr_insn_transform): Find in/out operands
30725 for secondary memory moves. Update dups.
30727 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
30729 PR tree-optimization/69652
30730 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
30731 to nested loop, did source re-formatting, skip debug statements,
30732 add check on statement with volatile operand, remove dead scalar
30735 2016-02-10 Jakub Jelinek <jakub@redhat.com>
30736 Patrick Palka <ppalka@gcc.gnu.org>
30740 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
30741 calls if the return type is TREE_ADDRESSABLE.
30742 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
30743 * ipa-split.c (split_function): Fix doubled "we" in comment.
30744 Use void return type for the split part even if
30745 !split_point->split_part_set_retval.
30747 2016-02-10 Bin Cheng <bin.cheng@arm.com>
30749 PR tree-optimization/68021
30750 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
30751 when computing the value of biv cand by itself.
30753 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
30755 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
30756 (cortexa57_tunings): Likewise.
30757 (cortexa72_tunings): Likewise.
30758 (arch_macro_fusion_pair_p): Add support for AES fusion.
30759 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
30760 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
30761 Allow virtual registers before reload so early scheduling works.
30762 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
30763 correct latency and pipeline.
30764 (cortex_a57_crypto_complex): Likewise.
30765 (cortex_a57_crypto_xor): Likewise.
30766 (define_bypass): Add AES bypass.
30768 2016-02-10 Richard Biener <rguenther@suse.de>
30770 PR tree-optimization/69726
30771 * passes.def: Add DCE pass before late uninit.
30772 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
30773 really fixup if-conversions job.
30775 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
30777 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
30778 (arm_cortex_a57_tune): Likewise.
30779 (aarch_macro_fusion_pair_p): Add support for AES fusion.
30780 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
30782 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
30784 * timevar.def (TV_PHASE_DBGINFO): Delete.
30785 (TV_PHASE_CHECK_DBGINFO): Likewise.
30786 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
30788 2016-02-10 Richard Biener <rguenther@suse.de>
30790 PR tree-optimization/69719
30791 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30792 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
30794 2016-02-09 Andrew Pinski <apinski@cavium.com>
30797 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
30798 get_vcond_mask_icode returns false.
30800 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
30803 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
30804 an ADDIS that adds a pointer to a large constant that sets the
30805 upper16 bits with a load operation.
30807 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
30810 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
30812 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
30814 (vzipq_s16): Likewise.
30815 (vzipq_s32): Likewise.
30816 (vzipq_f32): Likewise.
30817 (vzipq_u8): Likewise.
30818 (vzipq_u16): Likewise.
30819 (vzipq_u32): Likewise.
30820 (vzipq_p8): Likewise.
30821 (vzipq_p16): Likewise.
30823 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
30826 * config/arm/arm.c (neon_endian_lane_map): New function.
30827 (neon_vector_pair_endian_lane_map): New function.
30828 (arm_evpc_neon_vuzp): Allow for big endian lane order.
30829 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
30831 (vuzpq_s16): Likewise.
30832 (vuzpq_s32): Likewise.
30833 (vuzpq_f32): Likewise.
30834 (vuzpq_u8): Likewise.
30835 (vuzpq_u16): Likewise.
30836 (vuzpq_u32): Likewise.
30837 (vuzpq_p8): Likewise.
30838 (vuzpq_p16): Likewise.
30840 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
30843 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
30846 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
30848 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
30849 truncate const_int operand 1 to QImode.
30851 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
30853 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
30854 corresponding to an abnormal edge.
30856 2016-02-09 Tom de Vries <tom@codesourcery.com>
30858 PR tree-optimization/69599
30859 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
30861 (find_func_aliases_for_builtin_call, find_func_clobbers)
30862 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
30865 2016-02-09 Richard Biener <rguenther@suse.de>
30867 PR tree-optimization/69715
30868 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
30869 LHS on calls as non-rewritable.
30871 2016-02-09 Tom de Vries <tom@codesourcery.com>
30874 * lto-wrapper.c (append_diag_options): New function.
30875 (compile_offload_image): Call append_diag_options.
30877 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
30880 * doc/extend.texi (Flag Output Operands): Correct sectioning.
30881 Minor copy-edit to fix verb tenses.
30883 2016-02-08 Jakub Jelinek <jakub@redhat.com>
30885 PR tree-optimization/69209
30886 * ipa-split.c (split_function): If split part is not
30887 returning retval, retval has gimple type but is not
30888 gimple value, force it into a SSA_NAME first.
30890 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
30892 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
30895 2016-02-08 Jason Merrill <jason@redhat.com>
30898 * convert.c (convert_to_integer_1): Check dofold on truncation
30900 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
30901 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
30902 Rename from *_nofold.
30903 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
30904 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
30906 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
30909 * tree.c (build_common_tree_nodes): Remove short_double argument.
30910 All callers changed.
30911 * tree.h (build_common_tree_nodes): Adjust declaration.
30912 * doc/invoke.texi (-fshort-double): Remove documentation.
30913 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
30914 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
30915 * lto-wrapper.c (merge_and_complain, append_compiler_options)
30916 (append_linker_options): Don't handle OPT_fshort_double.
30918 PR rtl-optimization/68730
30919 * lra-remat.c (insn_to_cand_activation): New static variable.
30920 (lra_remat): Allocate and free it.
30921 (create_cand): New arg activation. Initialize a field in
30922 insn_to_cand_activation if it is nonnull.
30923 (create_cands): Pass the activation insn to create_cand when making
30924 a candidate involving an output reload. Reorganize code a little.
30925 (do_remat): Keep track of active status of candidates in a separate
30928 2016-02-08 Richard Biener <rguenther@suse.de>
30930 PR tree-optimization/69719
30931 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30932 Properly use absolute of the difference of the two offsets to
30933 compare or adjust the segment length.
30935 2016-02-08 Richard Biener <rguenther@suse.de>
30936 Jeff Law <law@redhat.com>
30939 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
30940 types for anonymous SSA names.
30942 2016-02-08 Richard Biener <rguenther@suse.de>
30944 PR rtl-optimization/69274
30945 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
30947 2016-02-08 Jeff Law <law@redhat.com>
30949 PR tree-optimization/65917
30950 * tree-ssa-dom.c (record_temporary_equivalences): Record both
30951 equivalences from if (x == y) style conditionals.
30952 (loop_depth_of_name): Remove.
30953 (record_equality): Remove loop depth check.
30954 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
30955 (const_and_copies::record_const_or_copy_raw): New member function.
30956 * tree-ssa-scopedtables.c
30957 (const_and_copies::record_const_or_copy_raw): New, factored out of
30958 (const_and_copies::record_const_or_copy): Call new member function.
30960 2016-02-05 Jeff Law <law@redhat.com>
30962 PR tree-optimization/68541
30963 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
30964 (count_stmts_in_block): New function.
30965 (poor_ifcvt_candidate_code): Likewise.
30966 (is_feasible_trace): Add some heuristics to determine when path
30967 splitting is profitable.
30968 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
30969 is a diamond with a single exit.
30971 2016-02-05 Martin Sebor <msebor@redhat.com>
30974 * doc/invoke.texi: Update -Wplacement-new to take an optional
30977 2016-02-06 Richard Henderson <rth@redhat.com>
30980 * tree.c (tree_nop_conversion_p): Do not strip casts into or
30981 out of non-standard address spaces.
30983 2016-02-05 Jakub Jelinek <jakub@redhat.com>
30985 PR rtl-optimization/69691
30986 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
30988 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
30990 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
30991 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
30992 (*ieee128_mfvsrd_64bit): Likewise.
30993 (*ieee128_mfvsrd_32bit): Likewise.
30995 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
30999 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
31001 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
31002 instrumented_version.
31004 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
31006 * doc/invoke.texi (Optimize Options): In table of --param options
31007 rename second occurrence of tracer-min-branch-ratio to
31008 tracer-min-branch-probability, rename
31009 tracer-min-branch-ratio-feedback to
31010 tracer-min-branch-probability-feedback and clarify description,
31011 rename sched-spec-state-edge-prob-cutoff to
31012 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
31013 to selsched-insns-to-rename, rename lto-minpartition to
31014 lto-min-partition, delete reorder-blocks-duplicate and
31015 reorder-blocks-duplicate-feedback.
31017 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31019 * config/s390/s390.c (s390_register_info_set_ranges): Remove
31022 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
31024 * doc/extend.texi: S/390: Correct some typos.
31026 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31028 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
31030 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31033 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
31034 (s390_register_info_gprtofpr): Use new macros above.
31035 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
31037 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
31038 its name. Adjust restore and save gpr ranges.
31039 (s390_register_info_set_ranges): New function.
31040 (s390_register_info): Use new macros above. Call
31041 s390_register_info_set_ranges.
31042 (s390_optimize_register_info): Likewise.
31043 (s390_hard_regno_rename_ok): Use new macros.
31044 (s390_hard_regno_scratch_ok): Likewise.
31045 (s390_emit_epilogue): Likewise.
31046 (s390_can_use_return_insn): Likewise.
31047 (s390_optimize_prologue): Likewise.
31048 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
31050 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31053 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
31055 (ix86_option_override_internal): Disable TARGET_STV even for
31056 -m{incoming,preferred}-stack-boundary=3.
31058 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31060 * config.gcc: Mark deprecated rtems targets as obsolete.
31062 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
31064 PR rtl-optimization/64682
31065 PR rtl-optimization/69567
31066 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
31067 before I2 only if the register is both used and set in I2.
31069 2016-02-04 DJ Delorie <dj@redhat.com>
31071 * config/msp430/msp430.c (msp430_start_function): Add function type.
31073 2016-02-04 Jakub Jelinek <jakub@redhat.com>
31076 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
31078 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
31080 PR rtl-optimization/69577
31082 2015-10-29 Richard Henderson <rth@redhat.com>
31086 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
31087 sse check to the exact conditions of PR 67609.
31089 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
31092 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
31093 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
31094 not allowed into the traditional Altivec registers.
31095 (movtd_64bit_nodm): Likewise.
31096 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
31098 2016-02-04 David Malcolm <dmalcolm@redhat.com>
31100 * config/aarch64/cortex-a57-fma-steering.c
31101 (aarch64_register_fma_steering): Remove "static" from arguments
31104 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
31107 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
31108 twice when complex.
31110 2016-02-04 Mike Frysinger <vapier@gentoo.org>
31112 * doc/invoke.texi: Delete -mno-fma4.
31114 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
31116 PR rtl-optimization/69577
31117 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
31118 (find_subregs_of_mode): Update accordingly. Iterate over partial
31121 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
31123 * config/arm/arm-protos.h (neon_reinterpret): Remove.
31124 * config/arm/arm.c (neon_reinterpret): Remove.
31125 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
31126 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
31127 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
31128 vreinterpretti): Remove.
31129 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
31130 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
31131 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
31132 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
31133 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
31134 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
31135 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
31136 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
31137 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
31138 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
31139 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
31140 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
31141 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
31142 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
31143 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
31144 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
31145 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
31146 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
31147 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
31148 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
31149 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
31150 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
31151 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
31152 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
31153 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
31154 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
31155 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
31156 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
31157 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
31158 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
31159 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
31160 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
31161 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
31162 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
31163 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
31164 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
31165 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
31166 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
31167 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
31168 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
31169 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
31170 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
31171 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
31172 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
31173 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
31174 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
31175 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
31176 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
31177 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
31178 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
31179 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
31180 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
31181 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
31182 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
31183 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
31184 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
31185 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
31186 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
31187 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
31188 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
31189 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
31190 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
31191 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
31192 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
31193 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
31194 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
31195 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
31196 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
31197 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
31198 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
31199 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
31200 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
31201 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
31202 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
31203 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
31204 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
31205 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
31206 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
31207 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
31208 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
31209 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
31210 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
31211 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
31212 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
31213 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
31214 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
31215 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
31216 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
31217 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
31218 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
31219 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
31220 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
31221 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
31222 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
31223 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
31224 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
31225 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
31226 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
31227 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
31228 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
31229 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
31230 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
31231 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
31233 2016-02-04 Martin Liska <mliska@suse.cz>
31236 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
31237 that are gimple_store_p.
31238 (maybe_instrument_call): Likewise.
31240 2016-02-04 Bin Cheng <bin.cheng@arm.com>
31242 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
31243 register scaling out of memory reference and comment why.
31245 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31249 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
31250 folding the source of a SET.
31252 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31256 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
31257 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
31259 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
31263 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
31266 2016-02-04 Christian Bruel <christian.bruel@st.com>
31268 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
31269 * config/arm/arm.c (arm_set_current_function): Likewise.
31271 2016-02-04 Jakub Jelinek <jakub@redhat.com>
31272 Ilya Enkovich <enkovich.gnu@gmail.com>
31273 H.J. Lu <hongjiu.lu@intel.com>
31276 * config/i386/i386.c (convert_scalars_to_vector): Remove
31277 stack alignment fixes.
31278 (ix86_option_override_internal): Disable TARGET_STV if stack
31279 might not be aligned enough.
31280 (ix86_minimum_alignment): Assert that TARGET_STV is false.
31282 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
31284 * config/i386/x86-tune.def: Disable default prefetching
31287 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
31288 Vladimir Makarov <vmakarov@redhat.com>
31291 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
31292 in validating fused toc addresses.
31294 2016-02-03 Jakub Jelinek <jakub@redhat.com>
31297 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
31298 range->m_caret fields if range->m_show_caret_p is false.
31301 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
31302 Force oldval into register if it does not satisfy reg_or_short_operand
31303 predicate. Fix up formatting.
31305 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
31306 Alexandre Oliva <aoliva@redhat.com>
31309 * lra-constraints.c (simplify_operand_subreg): Check additionally
31310 address validity after potential reloading.
31311 (process_address_1): Check insns validity. In case of failure do
31314 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
31317 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
31320 2016-02-02 Jakub Jelinek <jakub@redhat.com>
31322 * wide-int.cc (canonize_uhwi): New function.
31323 (wi::divmod_internal): Use it.
31325 2016-02-02 James Norris <jnorris@codesourcery.com>
31327 * gimplify.c (omp_notice_variable): Add usage check.
31329 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
31331 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
31332 like LE, GE, LT, GT when emitting relational operator.
31334 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
31336 * ira-costs.c (find_costs_and_classes): Add extra argument.
31337 * target.def (ira_change_pseudo_allocno_class): Add parameter.
31338 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
31339 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
31340 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
31341 Add best_class parameter, and return it if not ALL_REGS.
31342 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
31344 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
31345 Update target hook.
31347 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
31349 * config/aarch64/aarch64.c
31350 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
31351 (aarch64_ira_change_pseudo_allocno_class): New function.
31353 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
31356 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
31358 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31360 * config/avr/avr.c (avr_option_override): Set
31361 PARAM_ALLOW_STORE_DATA_RACES to 1.
31363 2016-02-02 Richard Biener <rguenther@suse.de>
31365 PR tree-optimization/69595
31366 * match.pd: Add range test simplifications to true/false.
31368 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
31370 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
31371 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
31374 2016-02-02 Richard Biener <rguenther@suse.de>
31376 PR tree-optimization/69606
31377 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
31378 info on the result before moving a stmt.
31380 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
31382 PR middle-end/68542
31383 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
31384 branch with vector comparison.
31385 * config/i386/sse.md (VI48_AVX): New mode iterator.
31386 (define_expand "cbranch<mode>4): Add support for conditional branch
31387 with vector comparison.
31388 * tree-vect-loop.c (optimize_mask_stores): New function.
31389 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
31390 has_mask_store field of vect_info.
31391 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
31392 vectorized loops having masked stores after vec_info destroy.
31393 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
31394 correspondent macros.
31395 (optimize_mask_stores): Add prototype.
31397 2016-02-02 Alan Modra <amodra@gmail.com>
31400 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
31403 2016-02-02 Alan Modra <amodra@gmail.com>
31406 * config/rs6000/rs6000.c (need_toc_init): New var, set it
31407 whenever toc_label_name used.
31408 (rs6000_file_start): Don't set up toc section here,
31409 (rs6000_output_function_epilogue): do so here instead,
31410 (rs6000_xcoff_file_start): and here.
31411 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
31412 (load_toc_aix_di): Likewise.
31414 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31416 PR rtl-optimization/69592
31417 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
31418 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
31419 (num_sign_bit_copies_binary_arith_p): New inline function.
31420 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
31422 2016-02-01 Jeff Law <law@redhat.com>
31424 PR tree-optimization/69580
31425 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
31426 * tree-ssa-threadbackward.c
31427 (fsm_find_control_statement_thread_paths): Do not try to walk
31428 through large PHI nodes.
31430 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31432 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
31433 when count is incremented above limit, don't analyze further
31436 * omp-low.c (oacc_parse_default_dims): Avoid
31437 -Wsign-compare warning, make sure value fits into int
31438 rather than just unsigned int.
31440 2016-02-01 Bin Cheng <bin.cheng@arm.com>
31442 PR tree-optimization/67921
31443 * fold-const.c (split_tree): New parameters. Convert pointer
31444 type variable part to proper type before negating.
31445 (fold_binary_loc): Pass new arguments to split_tree.
31447 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
31449 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
31450 (nvptx_goacc_validate_dims): Extend to handle global defaults.
31451 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
31452 * doc/tm.texti: Rebuilt.
31453 * doc/invoke.texi (fopenacc-dim): Document.
31454 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
31455 (append_compiler_options): Likewise.
31456 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
31457 (oacc_parse_default_dims): New.
31458 (oacc_validate_dims): Add USED arg. Select non-unity default when
31460 (oacc_loop_fixed_partitions): Return mask of used partitions.
31461 (oacc_loop_auto_partitions): Emit dump info.
31462 (oacc_loop_partition): Return mask of used partitions.
31463 (execute_oacc_device_lower): Parse default dimension arg. Adjust
31464 loop partitioning and validation calls.
31466 2016-02-01 Richard Biener <rguenther@suse.de>
31468 PR middle-end/69556
31469 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
31471 2016-02-01 Richard Biener <rguenther@suse.de>
31473 PR tree-optimization/69574
31474 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
31475 of asserting return chrec_dont_know.
31477 2016-02-01 Martin Liska <mliska@suse.cz>
31479 * mem-stats-traits.h: Add copyright header.
31480 * mem-stats.h: Likewise.
31482 2016-02-01 Richard Biener <rguenther@suse.de>
31484 PR tree-optimization/69579
31485 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
31486 Do not propagate through abnormal PHI results.
31488 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
31490 * postreload.c (reload_cse_simplify): Remove dead code.
31492 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31494 PR rtl-optimization/69570
31495 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
31496 if there is more than one set, not if there is a single set.
31498 2016-02-01 Richard Henderson <rth@redhat.com>
31501 * combine.c (make_compound_operation): When looking through a
31502 subreg, make sure to re-extend to the width of the outer mode.
31504 2016-01-30 Jakub Jelinek <jakub@redhat.com>
31506 PR tree-optimization/69546
31507 * wide-int.cc (wi::divmod_internal): For unsigned division
31508 where both operands fit into uhwi, if o1 is 1 and o0 has
31509 msb set, if divident_prec is larger than bits per hwi,
31510 clear another quotient word and return 2 instead of 1.
31511 Similarly for remainder with msb in HWI set, if dividend_prec
31512 is larger than bits per hwi.
31514 2016-01-29 Martin Jambor <mjambor@suse.cz>
31516 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
31517 Use short lowercase names.
31518 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
31519 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
31520 acq_rel one. Protect warning agains segfaults if
31521 get_memory_order_name returns NULL.
31522 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
31523 with release semantics. Do not warn if get_memory_order already did.
31524 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
31525 semantics. Fix check for relaxed or acquire semantics. Do not warn
31526 if get_memory_order already did.
31528 2016-01-29 Sebastian Pop <s.pop@samsung.com>
31530 * doc/install.texi: Document that isl-0.16 is supported.
31532 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
31535 * config/i386/constraints.md (Bm): Describe as special memory
31537 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
31538 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31539 * genpreds.c (struct constraint_data): Add is_special_memory.
31540 (have_special_memory_constraints, special_memory_start): New
31542 (special_memory_end): Ditto.
31543 (add_constraint): Add new arg is_special_memory. Add code to
31544 process its true value. Update have_special_memory_constraints.
31545 (process_define_constraint): Pass the new arg.
31546 (process_define_register_constraint): Ditto.
31547 (choose_enum_order): Process special memory.
31548 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
31549 function insn_extra_special_memory_constraint.
31550 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31551 * gensupport.c (process_rtx): Process
31552 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31553 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
31554 * ira-lives.c (single_reg_class): Use
31555 insn_extra_special_memory_constraint.
31556 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
31557 * lra-constraints.c (process_alt_operands): Ditto.
31558 (curr_insn_transform): Use insn_extra_special_memory_constraint.
31559 * recog.c (asm_operand_ok, preprocess_constraints): Process
31561 * reload.c (find_reloads): Ditto.
31562 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
31563 * stmt.c (parse_input_constraint): Use
31564 insn_extra_special_memory_constraint.
31566 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
31569 * lra-splill.c (lra_final_code_change): Revert r229087 by
31570 removing all sub-registers.
31572 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
31575 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
31577 2016-01-29 Jakub Jelinek <jakub@redhat.com>
31580 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
31581 SSE1, copy target into the temporary reg first before recursing
31584 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
31586 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
31589 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
31591 * ginclude/stdarg.h: Test __cplusplus instead of
31592 __GXX_EXPERIMENTAL_CXX0X__.
31594 2016-01-29 Richard Biener <rguenther@suse.de>
31596 PR tree-optimization/69547
31597 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
31598 Do not mark clobbers necessary.
31599 (mark_all_reaching_defs_necessary_1): Likewise.
31601 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
31603 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
31604 declaration name with %qs and print it in both error messages.
31605 Also fix indentation.
31607 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
31610 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
31611 trailing blank line from error message.
31613 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
31616 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
31619 2016-01-29 Richard Biener <rguenther@suse.de>
31621 PR middle-end/69537
31622 * match.pd: Allow all integral types when simplifying a
31623 widening or sign-changing conversion.
31625 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31627 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
31628 back to setting codegen_error to fail codegen.
31630 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
31633 * config/i386/constraints.md (C): Only accept constant zero operand.
31634 (BC): New constraint.
31635 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
31636 instead of C constraint.
31637 * doc/md.texi (Machine Constraints): Update description
31640 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
31643 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
31645 2016-01-28 Jakub Jelinek <jakub@redhat.com>
31647 PR middle-end/69542
31648 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
31651 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
31653 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
31654 branches if using guessed profile.
31656 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
31658 * graphite-optimize-isl.c (optimize_isl): Fix dump.
31660 2016-01-28 Richard Henderson <rth@redhat.com>
31663 * config/aarch64/aarch64-modes.def (CC_Cmode): New
31664 * config/aarch64/aarch64-protos.h: Update.
31665 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
31666 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
31667 (aarch64_get_condition_code_1): Handle CC_Cmode.
31668 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
31669 (*add<mode>3_compareC_cconly_imm): New.
31670 (*add<mode>3_compareC_cconly): New.
31671 (*add<mode>3_compareC_imm): New.
31672 (add<mode>3_compareC): New.
31673 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
31674 to be first. Use aarch64_carry_operation.
31675 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
31676 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
31677 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
31678 (subti3): Use subdi3_compare1.
31679 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
31680 (sub<mode>3_compare1): New.
31681 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
31682 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
31683 (*subsi3_carryin_uxtw): Likewise.
31684 (*ngc<mode>, *ngcsi_uxtw): Likewise.
31685 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
31686 * config/aarch64/iterators.md (DWI): New.
31687 * config/aarch64/predicates.md (aarch64_carry_operation): New.
31688 (aarch64_borrow_operation): New.
31690 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
31692 * graphite-optimize-isl.c (optimize_isl): Print a different debug
31693 message when isl does not return a valid schedule.
31695 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31697 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
31698 Remove comments from class declarations: they are already in the code
31701 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31703 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
31705 (ternary_op_to_tree): Same.
31706 (unary_op_to_tree): Same.
31707 (nary_op_to_tree): Same.
31708 (gcc_expression_from_isl_expr_op): Same.
31709 (gcc_expression_from_isl_expression): Same.
31710 (graphite_create_new_loop): Same.
31711 (graphite_create_new_loop_guard): Same.
31712 (build_iv_mapping): Same.
31713 (graphite_create_new_guard): Same.
31714 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
31715 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
31717 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31719 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
31720 instead of setting codegen_error to fail codegen.
31722 2016-01-28 Jason Merrill <jason@redhat.com>
31724 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
31726 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
31728 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
31729 Remove CONST_INT_P check in CCMP cost calculation.
31731 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
31733 * config/aarch64/aarch64.c (generic_vector_cost):
31734 Set vec_permute_cost.
31735 (cortexa57_vector_cost): Likewise.
31736 (exynosm1_vector_cost): Likewise.
31737 (xgene1_vector_cost): Likewise.
31738 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
31739 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
31740 Add vec_permute_cost entry.
31742 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
31744 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
31746 (add<mode>3_compare0): Likewise.
31747 (addsi3_compare0_uxtw): Likewise.
31748 (add<mode>3nr_compare0): Likewise.
31749 (compare_neg<mode>): Likewise.
31750 (<optab><mode>3): Likewise.
31752 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
31754 * tree-vect-stmts.c (vectorizable_comparison): Add
31755 NULL check for vectype.
31757 2016-01-28 Richard Biener <rguenther@suse.de>
31759 PR tree-optimization/69466
31760 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
31761 Account for PHIs we couldn't duplicate.
31763 2016-01-28 Martin Liska <mliska@suse.cz>
31766 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
31767 instead of ENABLE_VALGRIND_CHECKING.
31769 2016-01-27 Richard Henderson <rth@redhat.com>
31772 * lra-remat.c (subreg_regs): New.
31773 (dump_candidates_and_remat_bb_data): Dump it.
31774 (operand_to_remat): Reject if operand in subreg_regs.
31775 (set_bb_regs): Collect subreg_regs.
31776 (lra_remat): Init and free subreg_regs. Compute
31777 calculate_local_reg_remat_bb_data before create_cands.
31779 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
31782 * config/i386/i386.c (ix86_update_stack_boundary): Don't
31783 change stack_alignment_needed for __tls_get_addr call.
31785 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
31787 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
31789 2016-01-27 Jeff Law <law@redhat.com>
31791 PR tree-optimization/68398
31792 PR tree-optimization/69196
31793 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
31794 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
31795 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
31796 Only count PHIs in the last block in the path. The others will
31797 const/copy propagate away. Add heuristic to allow more irreducible
31798 subloops to be created when it is likely profitable to do so.
31800 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
31801 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
31802 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
31804 2016-01-27 Jakub Jelinek <jakub@redhat.com>
31807 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
31808 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
31809 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
31810 * tree-streamer-in.c: Include asan.h.
31811 (streamer_get_builtin_tree): For builtins in sanitizer
31812 range call initialize_sanitizer_builtins and retry.
31814 2016-01-27 Ian Lance Taylor <iant@google.com>
31816 * common.opt (fkeep-gc-roots-live): New undocumented option.
31817 * tree-ssa-loop-ivopts.c (add_candidate_1): If
31818 -fkeep-gc-roots-live, skip pointers.
31819 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
31822 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
31825 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
31826 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
31828 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
31831 * configure.ac: NetBSD provides SSP in its C library.
31832 * configure: Updated.
31834 2016-01-27 Richard Biener <rguenther@suse.de>
31836 PR tree-optimization/69166
31837 * tree-vect-loop.c (vect_is_simple_reduction): Always check
31838 reduction code for commutativity / associativity.
31840 2016-01-27 Martin Jambor <mjambor@suse.cz>
31842 PR tree-optimization/69355
31843 * tree-sra.c (analyze_access_subtree): Correct hole detection when
31844 total_scalarization fails.
31846 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
31848 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
31851 2016-01-27 Christian Bruel <christian.bruel@st.com>
31854 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
31855 Move arm_reset_previous_fndecl and set_target_option_current_node in
31856 the conditional part. Call save_restore_target_globals.
31857 * config/arm/arm.c (arm_set_current_function):
31858 Refactor to better support #pragma target and attribute mix.
31859 Call save_restore_target_globals.
31860 * config/arm/arm-protos.h (save_restore_target_globals): New function.
31862 2016-01-27 Martin Liska <mliska@suse.cz>
31864 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
31865 reference for an HSA kernel and its host function.
31867 2016-01-27 Jakub Jelinek <jakub@redhat.com>
31869 PR tree-optimization/69399
31870 * wide-int.h (wi::lrshift): For larger precisions, only
31871 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
31873 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
31875 * config/arc/predicates.md (proper_comparison_operator): Reject
31876 constant-constant comparison.
31878 2016-01-26 Tom de Vries <tom@codesourcery.com>
31880 PR tree-optimization/69110
31881 * tree-data-ref.c (initialize_data_dependence_relation): Handle
31882 DR_NUM_DIMENSIONS == 0.
31884 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
31885 Sebastian Pop <s.pop@samsung.com>
31887 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
31888 isl_ast_op_cond and isl_ast_op_select.
31889 (gcc_expression_from_isl_expr_op): Same.
31891 2016-01-26 Jason Merrill <jason@redhat.com>
31894 * tree.c (recompute_constructor_flags): Split out from
31896 (verify_constructor_flags): New.
31897 * tree.h: Declare them.
31899 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
31901 PR rtl-optimization/69217
31902 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
31903 are no TYPE_FIELDS set for the record type.
31905 2016-01-26 Jakub Jelinek <jakub@redhat.com>
31908 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
31909 toc_label_name unconditionally.
31910 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
31911 SYMBOL_REF string. Use toc_label_name instead of constructing
31913 (rs6000_elf_declare_function_name): Use toc_label_name instead of
31914 constructing LCTOC1.
31916 2016-01-26 Martin Sebor <msebor@redhat.com>
31919 * doc/extend.texi (Common Type Attributes): Move text that talks about
31920 attribute packed from attribute aligned to the section discussing
31921 the former attribute for clarity.
31923 2016-01-26 Richard Henderson <rth@redhat.com>
31925 PR middle-end/60908
31926 * trans-mem.c (tm_region_init): Mark entry block as visited.
31928 2016-01-26 David Malcolm <dmalcolm@redhat.com>
31931 * diagnostic-show-locus.c (layout::print_source_line): Replace
31932 call to pp_newline with call to layout::print_newline.
31933 (layout::print_annotation_line): Likewise.
31934 (layout::move_to_column): Likewise.
31935 (layout::print_any_fixits): After printing any fixits, print a
31936 trailing newline, if necessary.
31937 (layout::print_newline): New method, resetting any colorization
31939 (diagnostic_show_locus): Move the pp_newline to before the
31940 early bailout. Remove dummy block enclosing the layout instance.
31941 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
31942 of pp_newline_and_flush with pp_flush.
31943 (diagnostic_append_note): Delete use of pp_newline.
31944 (diagnostic_append_note_at_rich_loc): Delete.
31945 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
31946 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
31947 when newline characters are added to the buffer.
31949 2016-01-26 Michael Matz <matz@suse.de>
31951 * configure.ac (ac_cv_std_swap_in_utility): New test.
31952 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
31953 * configure: Regenerate.
31954 * config.in: Regenerate.
31956 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
31958 * config/arc/arc.md (cstoresi4): Force operand into register.
31959 (arcset<code>): Fix predicate.
31960 (arcsetltu): Likewise.
31961 (arcsetgeu): Likewise.
31962 (arcsethi): Likewise.
31963 (arcsetls): Likewise.
31965 2016-01-26 Jakub Jelinek <jakub@redhat.com>
31967 PR tree-optimization/69483
31968 * gimple-fold.c (canonicalize_constructor_val): Return NULL
31969 if base has error_mark_node type.
31971 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
31974 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
31975 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
31977 (vget_lane_f16): Handle big-endian.
31978 (vgetq_lane_f16): Likewise.
31979 (vset_lane_f16): Likewise.
31980 (vsetq_lane_f16): Likewise.
31981 * config/arm/iterators.md (VQXMOV): Add V8HF.
31982 (VDQ): Add V4HF and V8HF.
31983 (V_reg): Handle V4HF and V8HF.
31984 (Is_float_mode): Likewise.
31985 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
31986 neon_vdup_nv8hf): New patterns.
31987 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
31988 Use VD_LANE iterator.
31989 (neon_vld1_dup<mode>): Use VQ2 iterator.
31991 2016-01-26 Nathan Sidwell <nathan@acm.org>
31993 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
31994 (set_oacc_fn_attrib): Add IS_KERNEL arg.
31995 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
31996 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
31997 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
31998 (oacc_validate_dims): Add LEVEL arg, don't return level.
31999 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
32000 oacc_validate_dims.
32001 (execute_oacc_device_lower): Adjust, add more dump output.
32002 * tree-ssa-loop.c (gate_oacc_kernels): Use
32003 oacc_fn_attrib_kernels_p.
32004 * tree-parloops.c (create_parallel_loop): Adjust
32005 set_oacc_fn_attrib call.
32007 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32010 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
32011 (append_compiler_options): Handle -fcilkplus.
32012 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
32014 2016-01-26 Nick Clifton <nickc@redhat.com>
32017 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
32018 been marked as DECL_ONE_ONLY but we do not the means to make it
32019 so, then do not allow it to bind locally.
32021 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32024 * opts.h (parse_sanitizer_options): New prototype.
32025 * opts.c (sanitizer_opts): New array.
32026 (parse_sanitizer_options): New function.
32027 (common_handle_option): Use parse_sanitizer_options.
32029 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
32032 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
32033 alignment adjustment to ...
32034 (ix86_update_stack_boundary): Here. Don't over-align stack for
32036 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
32037 if __tls_get_addr is called.
32039 2016-01-26 Christian Bruel <christian.bruel@st.com>
32041 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
32043 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
32045 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
32047 2016-01-26 Richard Biener <rguenther@suse.de>
32049 PR middle-end/69467
32050 * match.pd: Guard X * CST CMP 0 pattern with single_use.
32052 2016-01-26 Richard Biener <rguenther@suse.de>
32054 PR tree-optimization/69452
32055 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
32056 (move_computations_dom_walker::before_dom_children): Rename
32058 (move_computations_worker): This.
32059 (move_computations): Perform an RPO rather than a DOM walk.
32061 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32064 * combine.c (combine_instructions): For REG_EQUAL note with
32065 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
32066 to the underlying register.
32067 * doc/rtl.texi (REG_EQUAL): Document the behavior of
32068 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
32070 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
32073 * config/aarch64/aarch64-builtins.c
32074 (aarch64_init_simd_builtin_types): Do not set structural
32075 equality to __Poly{8,16,64,128}_t types.
32077 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
32079 PR tree-optimization/69400
32080 * wide-int.cc (wi_pack): Take the precision as argument and
32081 perform canonicalization here rather than in the callers.
32082 Use the main loop to handle all full-width HWIs. Add a
32083 zero HWI if in_len isn't a full result.
32084 (wi::divmod_internal): Update accordingly.
32085 (wi::mul_internal): Likewise. Simplify.
32087 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32088 Sebastian Pop <s.pop@samsung.com>
32090 * graphite-poly.c (apply_poly_transforms): Simplify.
32091 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
32092 (print_isl_map): Same.
32093 (print_isl_union_map): Same.
32094 (print_isl_schedule): New.
32095 (debug_isl_schedule): New.
32096 * graphite-dependences.c (scop_get_reads): Do not call
32097 isl_union_map_add_map that is undocumented isl functionality.
32098 (scop_get_must_writes): Same.
32099 (scop_get_may_writes): Same.
32100 (scop_get_original_schedule): Remove.
32101 (scop_get_dependences): Do not call isl_union_map_compute_flow that
32102 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
32103 (compute_deps): Remove.
32104 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
32105 (debug_schedule_ast): New.
32106 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
32107 set_separate_option.
32108 (graphite_regenerate_ast_isl): Add dump.
32109 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
32110 from scop->transformed_schedule.
32111 (graphite_regenerate_ast_isl): Add more dump.
32112 * graphite-optimize-isl.c (optimize_isl): Set
32113 scop->transformed_schedule. Check whether schedules are equal.
32114 (apply_poly_transforms): Move here.
32115 * graphite-poly.c (apply_poly_transforms): ... from here.
32116 (free_poly_bb): Static.
32117 (free_scop): Static.
32118 (pbb_number_of_iterations_at_time): Remove.
32119 (print_isl_ast): New.
32120 (debug_isl_ast): New.
32121 (debug_scop_pbb): New.
32122 * graphite-scop-detection.c (print_edge): Move.
32123 (print_sese): Move.
32124 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
32125 (build_scop_scattering): Remove.
32126 (create_pw_aff_from_tree): Assert instead of bailing out.
32127 (add_condition_to_pbb): Remove unused code, do not fail.
32128 (add_conditions_to_domain): Same.
32129 (add_conditions_to_constraints): Remove.
32130 (build_scop_context): New.
32131 (add_iter_domain_dimension): New.
32132 (build_iteration_domains): Initialize pbb->iterators.
32133 Call add_conditions_to_domain.
32136 (index_outermost_in_loop): New.
32137 (index_pbb_in_loop): New.
32138 (outermost_pbb_in): New.
32139 (add_in_sequence): New.
32140 (add_outer_projection): New.
32141 (outer_projection_mupa): New.
32142 (add_loop_schedule): New.
32143 (build_schedule_pbb): New.
32144 (build_schedule_loop): New.
32145 (embed_in_surrounding_loops): New.
32146 (build_schedule_loop_nest): New.
32147 (build_original_schedule): New.
32148 (build_poly_scop): Call build_original_schedule.
32149 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
32150 (free_poly_dr): Remove.
32151 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
32152 (free_poly_bb): Remove.
32153 (debug_loop_vec): Remove.
32154 (print_isl_ast): Declare.
32155 (debug_isl_ast): Declare.
32156 (scop_do_interchange): Remove.
32157 (scop_do_strip_mine): Remove.
32158 (scop_do_block): Remove.
32159 (flatten_all_loops): Remove.
32160 (optimize_isl): Remove.
32161 (pbb_number_of_iterations_at_time): Remove.
32162 (debug_scop_pbb): Declare.
32163 (print_schedule_ast): Declare.
32164 (debug_schedule_ast): Declare.
32165 (struct scop): Remove schedule. Add original_schedule,
32166 transformed_schedule.
32167 (free_gimple_poly_bb): Remove.
32168 (print_generated_program): Remove.
32169 (debug_generated_program): Remove.
32170 (unify_scattering_dimensions): Remove.
32171 * sese.c (print_edge): ... here.
32172 (print_sese): ... here.
32173 (debug_edge): ... here.
32174 (debug_sese): ... here.
32175 * sese.h (print_edge): Declare.
32176 (print_sese): Declare.
32177 (dump_edge): Declare.
32178 (dump_sese): Declare.
32180 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32181 Sebastian Pop <s.pop@samsung.com>
32183 * Makefile.in: Set ISLVER in site.exp.
32185 2016-01-25 Jakub Jelinek <jakub@redhat.com>
32187 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
32188 DECL_VALUE_EXPR of new_var even for the non-array case. Look
32189 through DECL_VALUE_EXPR for expansion.
32191 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
32193 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
32194 the frame info after reload completed.
32196 2016-01-25 Jeff Law <law@redhat.com>
32198 PR tree-optimization/69196
32199 PR tree-optimization/68398
32200 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
32201 tree-ssa-threadupdate.c.
32202 (determine_bb_domination_status): Prototype
32203 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
32204 (determine_bb_domination_status): No longer static.
32205 (valid_jump_thread_path): Remove code to detect characteristics
32206 of the jump thread path not associated with correctness.
32207 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
32208 Correct test for thread path length. Count PHIs for real operands as
32209 statements that need to be copied. Do not count ASSERT_EXPRs.
32210 Look at all the blocks in the thread path. Compute and selectively
32211 filter thread paths based on threading through the latch, threading
32212 a multiway branch or crossing a multiway branch.
32214 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32216 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
32217 decl with __attribute__ ((unused)) annotation.
32219 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
32222 * tree-vect-stmts.c (vectorizable_condition): Check vectype
32223 of operands is compatible with a statement vectype.
32225 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
32227 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
32228 improve wording for mixed storage order support.
32230 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
32232 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
32233 (vcvt_u64_f64): Likewise.
32234 (vcvta_s64_f64): Likewise.
32235 (vcvta_u64_f64): Likewise.
32236 (vcvtm_s64_f64): Likewise.
32237 (vcvtm_u64_f64): Likewise.
32238 (vcvtn_s64_f64): Likewise.
32239 (vcvtn_u64_f64): Likewise.
32240 (vcvtp_s64_f64): Likewise.
32241 (vcvtp_u64_f64): Likewise.
32243 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
32245 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
32246 (arc_init): Check validity mll64 option.
32247 (arc_save_restore): Use double load/store instruction.
32248 (arc_expand_movmem): Likewise.
32249 (arc_split_move): Don't split if we have double load/store
32250 instructions. Returns a boolean.
32251 (arc_process_double_reg_moves): Change function to return boolean
32252 instead of a sequence of instructions.
32253 (arc_dwarf_register_span): New function.
32254 * config/arc/arc-protos.h (arc_split_move): Change prototype.
32255 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
32256 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
32257 (*movdf_insn): Likewise.
32258 * config/arc/arc.opt (mll64): New option.
32259 * config/arc/predicates.md (even_register_operand): New predicate.
32260 * doc/invoke.texi (ARC Options): Add mll64 documentation.
32262 2016-01-25 Richard Biener <rguenther@suse.de>
32265 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
32266 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
32268 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
32270 2016-01-25 Richard Biener <rguenther@suse.de>
32272 PR tree-optimization/69376
32273 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
32275 (VN_INFO_ANTI_RANGE_P): New inline.
32276 (VN_INFO_RANGE_TYPE): Likewise.
32277 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
32278 SSA_NAME_ANTI_RANGE_P.
32279 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
32280 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32281 Properly query VN_INFO_RANGE_TYPE.
32283 2016-01-25 Nick Clifton <nickc@redhat.com>
32286 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
32288 2016-01-23 Tom de Vries <tom@codesourcery.com>
32290 PR tree-optimization/69426
32291 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
32294 2016-01-23 Jakub Jelinek <jakub@redhat.com>
32296 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
32297 "the the" with "the" in the comments.
32298 * ipa-devirt.c (build_type_inheritance_graph,
32299 update_type_inheritance_graph): Likewise.
32300 * tree.c (build_function_type_list_1): Likewise.
32301 * cfgloopmanip.c (scale_loop_profile): Likewise.
32302 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
32303 * gimple-ssa-split-paths.c
32304 (find_block_to_duplicate_for_splitting_paths): Likewise.
32305 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
32306 * expr.c (convert_move): Likewise.
32307 * var-tracking.c (vt_stack_adjustments): Likewise.
32308 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
32309 * tree-vrp.c (test_for_singularity): Likewise.
32311 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
32312 directly instead of building a temporary tree.
32315 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
32316 remove <algorithm> include.
32318 2016-01-22 Jakub Jelinek <jakub@redhat.com>
32321 * config/i386/i386.c: Include dojump.h.
32322 (expand_small_movmem_or_setmem,
32323 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
32325 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
32326 if dynamic_check != -1.
32328 2016-01-21 Jeff Law <law@redhat.com>
32330 PR middle-end/69347
32331 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
32332 record_temporary_equivalences. Rewritten to avoid unnecessary calls
32333 into dominated_by_p.
32334 (cprop_into_successor_phis): Avoid unnecessary tests.
32336 2016-01-22 Richard Henderson <rth@redhat.com>
32339 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
32340 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
32342 2016-01-22 Michael Matz <matz@suse.de>
32344 * system.h (string, algorithm): Include only conditionally.
32345 (new): Include always under C++.
32346 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
32347 * final.c (toplevel): Ditto.
32348 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
32349 * genconditions.c (write_header): Make gencondmd.c define
32351 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
32353 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
32354 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
32356 2016-01-22 Christian Bruel <christian.bruel@st.com>
32359 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
32361 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32364 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
32365 define_insn_and_split. Ensure operands[1] and operands[0] do not
32366 get assigned the same register.
32368 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
32370 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
32372 2016-01-22 Christian Bruel <christian.bruel@st.com>
32374 * config/arm/arm-c.c (arm_pragma_target_parse):
32375 Remove warn_builtin_macro_redefined overwrite.
32377 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
32379 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
32380 flag_non_call_exceptions compatibility.
32382 2016-01-22 Jakub Jelinek <jakub@redhat.com>
32385 * dwarf2out.c (add_child_die_after): New function.
32386 (dwarf_qual_info_t): New type.
32387 (dwarf_qual_info): New variable.
32388 (qualified_die_p): New function.
32389 (modified_type_die): For -fdebug-types-section, ensure
32390 canonical order of qualifiers. Put qualified DIEs adjacent
32391 to the corresponding non-qualified type DIE and search there
32392 for existing qualified DIEs.
32394 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
32396 * doc/extend.texi (scalar_storage_order type attribute): Document
32397 restriction on type punning and aliasing, and remove future tense.
32399 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
32402 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
32405 2016-01-21 Jeff Law <law@redhat.com>
32407 PR middle-end/69347
32408 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
32409 useless call to record_temporary_equivalences.
32410 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
32411 allocate 10 slots in the bb_path vector and let it grow as needed.
32412 (fsm_find_control_statement_thread_paths): Similarly for the next_path
32415 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
32417 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
32419 * configure: Regenerate.
32421 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
32423 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
32424 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
32426 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
32428 PR middle-end/66178
32429 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
32430 drop EXPAND_INITIALIZER.
32431 * rtl.h (contains_symbolic_reference_p): Declare.
32432 * rtlanal.c (contains_symbolic_reference_p): New function.
32433 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
32434 a subtraction into a NOT if symbolic constants are involved.
32436 2016-01-21 Anton Blanchard <anton@samba.org>
32437 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32440 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
32442 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
32445 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
32447 * config/microblaze/microblaze.c
32448 (get_branch_target): New.
32449 (insert_wic_for_ilb_runout): New.
32451 (microblaze_machine_dependent_reorg): New.
32452 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
32453 * config/microblaze/microblaze.md
32454 (UNSPEC_IPREFETCH): Define.
32455 (iprefetch): New pattern
32456 * config/microblaze/microblaze.opt
32457 (mxl-prefetch): New flag.
32459 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
32461 * config/microblaze/microblaze.h
32462 (FIXED_REGISTERS): Update in macro.
32463 (CALL_USED_REGISTERS): Update in macro.
32465 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
32467 PR rtl-optimization/68920
32468 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
32471 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
32473 PR rtl-optimization/68990
32474 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
32475 pseudo instead of inheritance ones.
32477 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32478 Nick Clifton <nickc@redhat.com>
32482 * config/mips/mips.c (mips_compute_frame_info): Initialise
32483 args_size and hard_frame_pointer_offset fields of the frame
32484 structure before calling mips_global_pointer.
32486 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
32488 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
32490 * configure: Regenerate.
32492 2016-01-21 Richard Biener <rguenther@suse.de>
32494 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
32496 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
32498 * config/s390/s390.c (s390_asm_declare_function_size): Add code
32499 to actually emit the .size directive.
32501 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
32502 Jakub Jelinek <jakub@redhat.com>
32506 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
32507 args array size by one to avoid buffer overflow.
32509 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
32511 * config/s390/s390.md (pool_section_start): Use switch_to_section
32512 to select proper read-only data section instead of hardcoding
32514 (pool_section_end): Use switch_to_section to match the above.
32516 2016-01-21 Richard Biener <rguenther@suse.de>
32518 PR tree-optimization/69378
32519 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
32520 (set_ssa_val_to): Use it for dominance checks taking into
32521 account not executable edges.
32523 2016-01-21 Jakub Jelinek <jakub@redhat.com>
32526 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
32527 for bitsize instead of GET_MODE_PRECISION (mode).
32529 2016-01-20 Martin Sebor <msebor@redhat.com>
32532 * extend.texi (__sync Builtins): Clarify the semantics of
32533 __sync_fetch_and_OP built-ins on pointers.
32534 (__atomic Builtins): Same.
32536 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32537 Sebastian Pop <s.pop@samsung.com>
32539 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
32540 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
32541 (is_valid_rename): Same.
32542 (translate_isl_ast_to_gimple::get_rename): Same.
32543 (translate_isl_ast_to_gimple::rename_all_uses): Same.
32544 (translate_isl_ast_to_gimple::rename_uses): Same.
32545 (get_new_name): Check for close_phi nodes.
32546 (copy_loop_phi_args): Use phi_node_kind.
32547 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
32548 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
32550 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32551 Sebastian Pop <s.pop@samsung.com>
32553 Revert commit r229783.
32554 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
32555 Remove use of parameter_rename_map.
32556 (copy_def): Remove.
32557 (copy_internal_parameters): Remove.
32558 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
32559 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
32560 (free_sese_info): Do not free parameter_rename_map.
32561 (set_rename): Do not use parameter_rename_map.
32562 (rename_uses): Update call to set_rename.
32563 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
32564 * sese.h (parameter_rename_map_t): Remove.
32565 (struct sese_info_t): Remove field parameter_rename_map.
32567 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32568 Sebastian Pop <s.pop@samsung.com>
32570 * graphite-isl-ast-to-gimple.c: Fix comment.
32571 * graphite-scop-detection.c (defined_in_loop_p): New.
32572 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
32573 names defined in loop.
32575 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32576 Sebastian Pop <s.pop@samsung.com>
32578 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
32579 Discard unstructured if-then-else regions.
32581 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32582 Sebastian Pop <s.pop@samsung.com>
32584 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
32585 (cleanup_loop_iter_dom): Remove.
32586 (build_loop_iteration_domains): Remove.
32587 (build_scop_context): Remove.
32588 (build_scop_iteration_domain): Remove.
32589 (add_loop_constraints): New.
32590 (build_iteration_domains): New.
32591 (build_poly_scop): Call build_iteration_domains.
32593 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32594 Sebastian Pop <s.pop@samsung.com>
32596 * graphite-scop-detection.c
32597 (scop_detection::harmful_loop_in_region): Free dom and loops.
32598 (scop_detection::loop_body_is_valid_scop): Free bbs.
32600 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32601 Sebastian Pop <s.pop@samsung.com>
32603 * graphite-scop-detection.c (record_loop_in_sese): New.
32604 (gather_bbs::before_dom_children): Call record_loop_in_sese.
32605 (build_scops): Remove call to build_sese_loop_nests.
32606 * sese.c (sese_record_loop): Remove.
32607 (build_sese_loop_nests): Remove.
32608 (new_sese_info): Remove region->loops.
32609 (free_sese_info): Same.
32610 * sese.h (sese_contains_loop): Same.
32611 (build_sese_loop_nests): Remove.
32612 (sese_contains_loop): Remove.
32614 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32615 Sebastian Pop <s.pop@samsung.com>
32617 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
32618 loop_is_valid_in_scop.
32619 (scop_detection::harmful_stmt_in_region): Renamed
32620 harmful_loop_in_region.
32621 Call loop_is_valid_in_scop.
32623 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32624 Sebastian Pop <s.pop@samsung.com>
32626 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
32629 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32630 Sebastian Pop <s.pop@samsung.com>
32632 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
32633 * graphite.h (struct poly_bb): Remove field is_reduction.
32634 (PBB_IS_REDUCTION): Remove.
32636 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32637 Sebastian Pop <s.pop@samsung.com>
32639 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
32640 (add_pdr_constraints): Same.
32641 (scop_get_reads): Same.
32642 (scop_get_must_writes): Same.
32643 (scop_get_may_writes): Same.
32644 (scop_get_original_schedule): Same.
32645 (extend_schedule): Same.
32646 (apply_schedule_on_deps): Same.
32647 (carries_deps): Same.
32648 (compute_deps): Same.
32649 (scop_get_dependences): Same.
32650 * graphite-isl-ast-to-gimple.c
32651 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
32652 * graphite-optimize-isl.c (get_schedule_for_band): Same.
32653 (get_schedule_for_band_list): Same.
32654 (get_schedule_map): Same.
32655 (apply_schedule_map_to_scop): Same.
32656 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
32657 (build_loop_iteration_domains): Same.
32658 (add_condition_to_pbb): Same.
32659 (add_param_constraints): Same.
32660 (pdr_add_memory_accesses): Same.
32661 (pdr_add_data_dimensions): Same.
32663 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
32665 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
32668 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
32670 * common.opt (feliminate-dwarf2-dups): Replace references to
32671 "DWARF 2" with just "DWARF".
32672 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
32673 * doc/extend.texi: Likewise.
32674 * doc/cpp.texi: Likewise.
32675 * doc/invoke.texi: Likewise.
32676 (Option Summary): Add -gdwarf to list of Debugging Options.
32677 (Debugging Options): Document -gdwarf.
32678 * doc/contrib.texi: Spell "DWARF" like that.
32680 2016-01-21 Jakub Jelinek <jakub@redhat.com>
32682 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
32683 warning. Fix up formatting.
32685 PR middle-end/67653
32686 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
32687 attempt to mark memory input operand addressable and
32688 call prepare_gimple_addressable in that case. Don't adjust
32689 input_location for diagnostics, use error_at instead.
32691 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
32693 * config/rs6000/ppc-auxv.h: New file.
32694 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
32695 (cpu_is): Likewise.
32696 (cpu_supports): Likewise.
32697 * config/rs6000/rs6000.c: include "ppc-auxv.h".
32698 (cpu_is_info): New variable.
32699 (cpu_supports_info): Likewise.
32700 (tcb_verification_symbol): Likewise.
32701 (cpu_builtin_p): Likewise.
32702 (cpu_expand_builtin): New function.
32703 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
32704 (rs6000_init_builtins): Likewise.
32705 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
32706 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
32707 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
32708 * configure: Regenerate.
32709 * config.in: Likewise.
32710 * doc/extend.texi (PowerPC Built-in Functions): Document
32711 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
32713 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
32716 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
32718 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
32721 2016-01-20 Richard Henderson <rth@redhat.com>
32727 * tree.c (tm_define_builtin): New.
32728 (find_tm_vector_type): New.
32729 (build_tm_vector_builtins): New.
32730 (build_common_builtin_nodes): Call it.
32732 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
32734 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
32735 (arm_fp_ok): Likewise.
32736 (arm_fp): Likewise.
32737 (arm_crypto): Likewise.
32739 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
32740 Richard Biener <rguenther@suse.de>
32742 PR tree-optimization/69328
32743 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
32744 vectors have same number of elements.
32745 (vectorizable_condition): Fix masked version recognition.
32747 2016-01-20 Richard Biener <rguenther@suse.de>
32749 PR tree-optimization/69345
32750 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
32751 (VN_INFO_PTR_INFO): Likewise.
32752 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
32753 info when it is equal between non-dominating SSA names.
32754 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32755 Make sure to look at original SSA infos.
32757 2016-01-20 Jeff Law <law@redhat.com>
32760 * config/m68k/predicates.md (pow2_m1_operand): New predicate
32762 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
32763 (pc_or_label_operand): New predicate.
32764 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
32765 tests for small integers that are 2^n - 1.
32767 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
32769 * doc/invoke.texi (Options Summary): Add '.' after @xref.
32771 2016-01-19 Jeff Law <law@redhat.com>
32773 PR middle-end/69347
32774 * tree-ssa-threadbackwards.c
32775 (fsm_find_control_statement_thread_paths): Do not try to lookup
32776 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
32778 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
32780 * doc/lto.texi: Remove text that says only Gold has linker plugin
32783 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
32785 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
32786 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
32787 the DIE accordingly.
32788 (modified_type_die): Add REVERSE parameter and pass it recursively,
32789 as well as to base_type_die. Adjust presence check accordingly.
32790 (base_type_for_mode): Adjust call to modified_type_die.
32791 (add_type_attribute): Add REVERSE parameter and pass it to
32793 (generic_parameter_die): Adjust call to add_type_attribute.
32794 (add_scalar_info): Likewise.
32795 (add_subscript_info): Likewise.
32796 (gen_array_type_die): Likewise.
32797 (gen_descr_array_type_die): Likewise.
32798 (gen_entry_point_die): Likewise.
32799 (gen_enumeration_type_die): Likewise.
32800 (gen_formal_parameter_die): Likewise.
32801 (gen_subprogram_die): Likewise.
32802 (gen_variable_die ): Likewise.
32803 (gen_const_die): Likewise.
32804 (gen_field_die): Likewise.
32805 (gen_pointer_type_die): Likewise.
32806 (gen_reference_type_die): Likewise.
32807 (gen_ptr_to_mbr_type_die): Likewise.
32808 (gen_inheritance_die): Likewise.
32809 (gen_subroutine_type_die): Likewise.
32810 (gen_typedef_die): Likewise.
32811 (force_type_die): Adjust call to modified_type_die.
32813 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
32815 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
32816 flow throughout the file. Fix broken link to Objective-C 2.0
32818 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
32821 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32823 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
32825 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32828 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
32829 (maybe_record_node): Record cxa_pure_virtual as the only possible
32830 target if there are not ohter candidates.
32831 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
32833 2016-01-19 Richard Biener <rguenther@suse.de>
32835 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
32836 (get_memory_order): Likewise.
32838 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
32840 * tree-vect-stmts.c (vectorizable_store): Check
32843 2016-01-19 David Malcolm <dmalcolm@redhat.com>
32846 * gcc.c (driver::decode_argv): Add call to
32847 init_opts_obstack before init_options_struct.
32848 * opts.c (init_opts_obstack): Remove idempotency.
32849 (init_options_struct): Replace call to init_opts_obstack
32850 with a gcc_assert to verify that it has already been called.
32851 * toplev.c (toplev::main): Add call to init_opts_obstack before
32852 calls to init_options_struct.
32853 (toplev::finalize): Move cleanup of opts_obstack next to
32854 cleanup of save_decoded_options, clearing the latter, and
32855 save_decoded_options_count.
32857 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32860 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
32861 attribute to unconditional. Remove %? from output template.
32863 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32864 Jiong Wang <jiong.wang@arm.com>
32866 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
32867 generated from different expand order.
32869 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32871 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
32872 Add support for CCMP costing.
32874 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32876 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
32877 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
32878 (fccmpe<mode>): Likewise.
32879 (fcmp): Rename to fcmp and globalize pattern.
32881 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
32882 (aarch64_gen_ccmp_next): Add FP support.
32884 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32886 * target.def (gen_ccmp_first): Update documentation.
32887 (gen_ccmp_next): Likewise.
32888 * doc/tm.texi (gen_ccmp_first): Update documentation.
32889 (gen_ccmp_next): Likewise.
32890 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
32891 expand_ccmp_expr_1. Improve comments.
32892 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
32893 (ccmp_ior<mode>): Remove pattern.
32894 (cmp<mode>): Remove expand.
32895 (cmp): Globalize pattern.
32896 (cstorecc4): Use cc_register.
32897 (mov<mode>cc): Remove ccmp_cc_register check.
32898 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
32899 Simplify after removal of CC_DNE/* modes.
32900 (aarch64_ccmp_mode_to_code): Remove.
32901 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
32902 In 'k' case use integer as condition.
32903 (aarch64_nzcv_codes): Remove inverted cases.
32904 (aarch64_code_to_ccmode): Remove.
32905 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
32906 comparison with CC register to be used in folowing CCMP/branch/CSEL.
32907 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
32908 pattern. Return the comparison with CC register. Invert conditions
32909 when bitcode is OR.
32910 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
32911 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
32913 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32915 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
32916 instrumented_version.
32918 2016-01-19 Richard Biener <rguenther@suse.de>
32920 PR tree-optimization/69336
32921 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
32922 handled components with get_ref_base_and_extent.
32923 (equal_mem_array_ref_p): Adjust.
32925 2016-01-19 Jakub Jelinek <jakub@redhat.com>
32928 * shrink-wrap.c: Include valtrack.h.
32929 (move_insn_for_shrink_wrap): Add DEBUG argument. If
32930 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
32931 in between insn and where it will be moved to. Call
32932 dead_debug_insert_temp.
32933 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
32934 first and dead_debug_local_finish at the end.
32935 For uses and defs bitmap, handle all regs in between REGNO and
32936 END_REGNO, not just the first one.
32938 2016-01-19 Richard Biener <rguenther@suse.de>
32940 PR tree-optimization/69352
32941 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
32942 (equal_mem_array_ref_p): Constrain size and max size properly.
32943 Compare the reverse flag.
32945 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
32947 * ira.c (ira): Update regstat data if we deleted insns.
32949 2016-01-19 Jakub Jelinek <jakub@redhat.com>
32951 PR rtl-optimization/68955
32952 PR rtl-optimization/64557
32953 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
32954 here. Fix up formatting.
32955 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
32957 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32960 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
32961 assume that the node has body.
32962 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
32965 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32967 * lto-streamer-out.c (lto_output): Do not stream instrumentation
32970 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32972 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
32973 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
32975 2016-01-19 Martin Jambor <mjambor@suse.cz>
32976 Martin Liska <mliska@suse.cz>
32977 Michael Matz <matz@suse.de>
32979 * Makefile.in (OBJS): Add new source files.
32980 (GTFILES): Add hsa.c.
32981 * common.opt (disable_hsa): New variable.
32982 (-Whsa): New warning.
32983 * config.in (ENABLE_HSA): New.
32984 * configure.ac: Treat hsa differently from other accelerators.
32985 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
32986 $enable_offloading.
32987 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
32988 * doc/install.texi (Configuration): Document --with-hsa-runtime,
32989 --with-hsa-runtime-include, --with-hsa-runtime-lib and
32990 --with-hsa-kmt-lib.
32991 * doc/invoke.texi (-Whsa): Document.
32992 (hsa-gen-debug-stores): Likewise.
32993 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
32994 to invoke offload compiler for hsa acclerator.
32995 * opts.c (common_handle_option): Determine whether HSA offloading
32996 should be performed.
32997 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
32998 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
32999 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
33000 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
33001 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
33002 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
33003 GF_OMP_FOR_KIND_GRID_LOOP.
33004 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
33005 (pp_gimple_stmt_1): Likewise.
33006 * gimple-walk.c (walk_gimple_stmt): Likewise.
33007 * gimple.c (gimple_build_omp_grid_body): New function.
33008 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
33009 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
33010 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
33011 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
33012 GF_OMP_TEAMS_GRID_PHONY.
33013 (gimple_statement_omp_single_layout): Updated comments.
33014 (gimple_build_omp_grid_body): New function.
33015 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
33016 (gimple_omp_for_grid_phony): New function.
33017 (gimple_omp_for_set_grid_phony): Likewise.
33018 (gimple_omp_parallel_grid_phony): Likewise.
33019 (gimple_omp_parallel_set_grid_phony): Likewise.
33020 (gimple_omp_teams_grid_phony): Likewise.
33021 (gimple_omp_teams_set_grid_phony): Likewise.
33022 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
33023 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
33024 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
33025 (BUILT_IN_GOMP_TARGET): Updated type.
33026 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
33027 (adjust_for_condition): New function.
33028 (get_omp_for_step_from_incr): Likewise.
33029 (extract_omp_for_data): Moved parts to adjust_for_condition and
33030 get_omp_for_step_from_incr.
33031 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
33032 (fixup_child_record_type): Bail out if receiver_decl is NULL.
33033 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
33034 (scan_omp_parallel): Do not create child functions for phony
33036 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
33037 (scan_omp_1_op): Checking assert we are not remapping to
33038 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
33039 (parallel_needs_hsa_kernel_p): New function.
33040 (expand_parallel_call): Register apprpriate parallel child
33041 functions as HSA kernels.
33042 (grid_launch_attributes_trees): New type.
33043 (grid_attr_trees): New variable.
33044 (grid_create_kernel_launch_attr_types): New function.
33045 (grid_insert_store_range_dim): Likewise.
33046 (grid_get_kernel_launch_attributes): Likewise.
33047 (get_target_argument_identifier_1): Likewise.
33048 (get_target_argument_identifier): Likewise.
33049 (get_target_argument_value): Likewise.
33050 (push_target_argument_according_to_value): Likewise.
33051 (get_target_arguments): Likewise.
33052 (expand_omp_target): Call get_target_arguments instead of looking
33053 up for teams and thread limit.
33054 (grid_expand_omp_for_loop): New function.
33055 (grid_arg_decl_map): New type.
33056 (grid_remap_kernel_arg_accesses): New function.
33057 (grid_expand_target_kernel_body): New function.
33058 (expand_omp): Call it.
33059 (lower_omp_for): Do not emit phony constructs.
33060 (lower_omp_taskreg): Do not emit phony constructs but create for them
33061 a temporary variable receiver_decl.
33062 (lower_omp_taskreg): Do not emit phony constructs.
33063 (lower_omp_teams): Likewise.
33064 (lower_omp_grid_body): New function.
33065 (lower_omp_1): Call it.
33066 (grid_reg_assignment_to_local_var_p): New function.
33067 (grid_seq_only_contains_local_assignments): Likewise.
33068 (grid_find_single_omp_among_assignments_1): Likewise.
33069 (grid_find_single_omp_among_assignments): Likewise.
33070 (grid_find_ungridifiable_statement): Likewise.
33071 (grid_target_follows_gridifiable_pattern): Likewise.
33072 (grid_remap_prebody_decls): Likewise.
33073 (grid_copy_leading_local_assignments): Likewise.
33074 (grid_process_kernel_body_copy): Likewise.
33075 (grid_attempt_target_gridification): Likewise.
33076 (grid_gridify_all_targets_stmt): Likewise.
33077 (grid_gridify_all_targets): Likewise.
33078 (execute_lower_omp): Call grid_gridify_all_targets.
33079 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
33080 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
33081 (tree_omp_clause): Added union field dimension.
33082 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
33083 * tree.c (omp_clause_num_ops): Added number of arguments of
33084 OMP_CLAUSE__GRIDDIM_.
33085 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
33086 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
33087 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
33088 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
33089 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
33090 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
33091 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
33092 * tree-pass.h (make_pass_gen_hsail): Declare.
33093 (make_pass_ipa_hsa): Likewise.
33094 * ipa-hsa.c: New file.
33095 * lto-section-in.c (lto_section_name): Add hsa section name.
33096 * lto-streamer.h (lto_section_type): Add hsa section.
33097 * timevar.def (TV_IPA_HSA): New.
33098 * hsa-brig-format.h: New file.
33099 * hsa-brig.c: New file.
33100 * hsa-dump.c: Likewise.
33101 * hsa-gen.c: Likewise.
33104 * toplev.c (compile_file): Call hsa_output_brig.
33105 * hsa-regalloc.c: New file.
33107 2016-01-18 Jeff Law <law@redhat.com>
33109 PR tree-optimization/69320
33110 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
33111 ranged object, do nothing if the RHS constant is not [0..1].
33112 (optimize_stmt): Comparing a boolean ranged object against a
33113 constant outside [0..1] results in a compile-time constant.
33115 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
33118 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
33120 * doc/invoke.texi (Invoking GCC): Add new section to menu.
33121 (Option Summary): Update to reflect new section and moved options.
33122 (C++ Dialect Options): Move -fstats to new section.
33123 (Debugging Options): Move all dump, statistics, and other GCC
33124 developer options to new section. Rewrite section introduction
33125 and re-order remaining options to put the more basic ones first.
33126 (Optimization Options): Move -fira-verbose and -flto-report* to
33128 (Developer Options): New section incorporating moved options.
33129 * doc/cppopts.texi (-dM): Update cross-reference.
33131 2016-01-18 Richard Henderson <rth@redhat.com>
33134 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
33135 operands to pseudo only if CSE is expected. Split long immediate
33136 operands only after reload, and for the stack pointer.
33137 (*add<GPI>3_pluslong): Remove.
33138 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
33139 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
33140 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
33141 (*add<GPI>3 peepholes): New.
33142 (*add<GPI>3 splitters): New.
33143 * config/aarch64/constraints.md (Upl): New.
33144 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
33146 2016-01-18 Richard Biener <rguenther@suse.de>
33148 PR tree-optimization/69297
33149 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
33151 (vect_bb_vectorization_profitable_p): Clear visited flag again.
33153 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
33155 PR middle-end/68542
33156 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
33157 of mixind vector and scalar types.
33158 (fold_relational_const): Add handling of vector
33159 comparison with boolean result.
33160 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
33161 comparison of vector operands with boolean result for EQ/NE only.
33162 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
33163 (verify_gimple_cond): Likewise.
33164 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
33167 2016-01-18 Joseph Myers <joseph@codesourcery.com>
33169 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
33172 2016-01-18 Richard Biener <rguenther@suse.de>
33174 PR middle-end/69308
33175 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
33177 2016-01-18 Tom de Vries <tom@codesourcery.com>
33179 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
33181 2016-01-18 Tom de Vries <tom@codesourcery.com>
33183 * omp-low.c (set_oacc_fn_attrib): Make extern.
33184 * omp-low.h (set_oacc_fn_attrib): Declare.
33185 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
33186 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
33187 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
33188 Add and handle function parameter oacc_kernels_p.
33189 (find_reduc_addr, get_omp_data_i_param): New function.
33190 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
33191 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
33192 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
33193 Calculate dominance info. Skip loops that are not in a kernels region
33194 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
33195 (pass_parallelize_loops::execute): Call parallelize_loops with
33196 oacc_kernels_p argument.
33197 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
33198 New member function.
33199 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
33200 * passes.def: Add argument to pass_parallelize_loops instantation.
33202 2016-01-18 Tom de Vries <tom@codesourcery.com>
33204 * tree-parloops.c (pass_parallelize_loops::execute): Allow
33205 pass_parallelize_loops to be run outside the loop pipeline.
33207 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33209 * tree-scalar-evolution.c (follow_copies_to_constant): New.
33210 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
33212 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33215 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
33216 using get_ref_base_and_extent.
33217 (equal_mem_array_ref_p): New.
33218 (hashable_expr_equal_p): Add call to previous.
33220 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33223 * tree-sra.c (disqualified_constants, constant_decl_p): New.
33224 (sra_initialize): Allocate disqualified_constants.
33225 (sra_deinitialize): Free disqualified_constants.
33226 (disqualify_candidate): Update disqualified_constants when appropriate.
33227 (create_access): Scan for constant-pool entries as we go along.
33228 (scalarizable_type_p): Add check against type_contains_placeholder_p.
33229 (maybe_add_sra_candidate): Allow constant-pool entries.
33230 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
33231 (initialize_constant_pool_replacements): New.
33232 (sra_modify_assign): Avoid mangling assignments created by previous,
33233 and don't generate writes into constant pool.
33234 (sra_modify_function_body): Call initialize_constant_pool_replacements.
33236 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
33238 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
33239 andnot instruction.
33240 (scalar_chain::convert_op): Likewise.
33241 * config/i386/i386.md (*andndi3_doubleword): New.
33243 2016-01-18 Richard Biener <rguenther@suse.de>
33245 PR tree-optimization/69170
33246 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
33247 building a vector from scalar results of a pattern stmt.
33249 2016-01-18 Jakub Jelinek <jakub@redhat.com>
33251 * haifa-sched.c (autopref_multipass_init): Work around
33252 -Wmaybe-uninitialized warning.
33254 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
33256 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
33257 against the constant 0.
33259 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33261 PR tree-optimization/68799
33262 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
33263 look up phi candidates in the statement-candidate map.
33264 (phi_add_costs): Likewise.
33265 (record_phi_increments): Likewise.
33266 (phi_incr_cost): Likewise.
33267 (ncd_with_phi): Likewise.
33268 (all_phi_incrs_profitable): Likewise.
33270 2016-01-17 Jakub Jelinek <jakub@redhat.com>
33272 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
33273 -Wmaybe-uninitialized warning.
33275 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
33277 * doc/invoke.texi (Invoking GCC): Add new section to menu.
33278 (Option Summary): Update to reflect new section and moved options.
33279 (C++ Dialect Options): Move -fvtable-verify and related options.
33280 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
33281 and profiling-related options.
33282 (Optimization Options): Move profile generation options and
33283 -fstack-protector and related options.
33284 (Instrumentation Options): New section incorporating moved options.
33285 (Code Generation Options): Move -finstrument-functions and
33286 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
33288 2016-01-16 Tom de Vries <tom@codesourcery.com>
33290 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
33292 2016-01-16 Tom de Vries <tom@codesourcery.com>
33294 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
33296 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
33298 * hash-table.h (hash_table::empty): Turn into an inline wrapper
33299 that checks whether the table is already empty. Rename the
33300 original implementation to...
33301 (hash_table::empty_slot): ...this new private function.
33303 2016-01-15 David Malcolm <dmalcolm@redhat.com>
33305 PR diagnostic/68899
33306 * diagnostic-show-locus.c (layout::print_source_line): Move x
33307 offset of line until after call to
33308 get_line_width_without_trailing_whitespace.
33310 2016-01-15 Jeff Law <law@redhat.com>
33312 PR tree-optimization/69270
33313 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
33314 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
33315 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
33316 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
33317 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
33318 ssa_name_has_boolean_range and constant_boolean_node.
33320 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
33322 PR rtl-optimization/69030
33323 * lra-spills.c (remove_pseudos): Check nrefs and make the function
33325 (spill_pseudos): Delete debug insn for dead pseudo.
33326 (lra_spill): Initiate spill_hard_reg and slots memory separately.
33328 2016-01-15 Jiong Wang <jiong.wang@arm.com>
33330 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
33332 (TYPES_UNOPUS): Likewise.
33333 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
33334 builtin type, from UNOP to UNOPUS.
33335 (lbtruncuv4sf): Likewise.
33336 (lbtruncuv2df): Likewise.
33337 (lrounduv2sf): Likewise.
33338 (lrounduv4sf): Likewise.
33339 (lrounduv2df): Likewise.
33340 (lroundusf): Likewise.
33341 (lroundusf): Likewise.
33342 (lceiluv2sf): Likewise.
33343 (lceiluv4sf): Likewise.
33344 (lceiluv2df): Likewise.
33345 (lceilusf): Likewise.
33346 (lceiludf): Likewise.
33347 (lflooruv2sf): Likewise.
33348 (lflooruv4sf): Likewise.
33349 (lflooruv2df): Likewise.
33350 (lfloorusf): Likewise.
33351 (lfloorudf): Likewise.
33352 (lfrintnuv2sf): Likewise.
33353 (lfrintnuv4sf): Likewise.
33354 (lfrintnuv2df): Likewise.
33355 (lfrintnusf): Likewise.
33356 (lfrintnudf): Likewise.
33357 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
33359 (vcvtq_u32_f32): Likewise.
33360 (vcvtq_u64_f64): Likewise.
33361 (vcvta_u32_f32): Likewise.
33362 (vcvtaq_u32_f32): Likewise.
33363 (vcvtaq_u64_f64): Likewise.
33364 (vcvtm_u32_f32): Likewise.
33365 (vcvtmq_u32_f32): Likewise.
33366 (vcvtmq_u64_f64): Likewise.
33367 (vcvtn_u32_f32): Likwise.
33368 (vcvtnq_u32_f32): Likewise.
33369 (vcvtnq_u64_f64): Likewise.
33370 (vcvtp_u32_f32): Likewise.
33371 (vcvtpq_u32_f32): Likewise.
33372 (vcvtpq_u64_f64): Likewise.
33373 (vcvtmd_u64_f64): Likewise.
33374 (vcvtms_u32_f32): Likewise.
33375 (vcvtad_u64_f64): Likewise.
33376 (vcvtas_u32_f32): Likewise.
33377 (vcvtnd_u64_f64): Likewise.
33378 (vcvtns_u32_f32): Likewise.
33379 (vcvtpd_u64_f64): Likewise.
33380 (vcvtps_u32_f32): Likewise.
33382 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33384 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
33385 CSEL of zero_extended registers.
33387 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33389 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
33390 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
33392 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33394 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
33395 false when argument string is not found in the attributes table
33398 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
33401 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
33402 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
33403 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
33404 precision estimate.
33406 2016-01-15 Richard Biener <rguenther@suse.de>
33408 PR tree-optimization/66856
33409 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
33410 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
33411 (vect_create_new_slp_node): Increment stmt reference count.
33412 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
33413 an SLP tree before swapping operands.
33414 (vect_build_slp_tree): Likewise.
33415 (destroy_bb_vec_info): Free stmt info after SLP instances.
33416 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
33417 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
33418 (STMT_VINFO_NUM_SLP_USES): New macro.
33420 2016-01-15 Richard Biener <rguenther@suse.de>
33423 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
33424 (add_linkage_name): ... here.
33425 (gen_typedef_die): Use add_linkage_name_raw instead of
33426 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
33429 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
33431 * gimplify.c (oacc_default_clause): Decode reference and pointer
33432 types for both kernels and parallel regions.
33434 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
33436 PR middle-end/69246
33437 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
33439 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
33441 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
33442 (convert_scalars_to_vector): Likewise.
33444 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
33446 * doc/extend.texi (Type Traits): Fix grammar.
33448 2016-01-15 Martin Jambor <mjambor@suse.cz>
33450 * tree-inline.c (remap_decl): Use existing dclarations if
33451 remapping a type and prevent_decl_creation_for_types.
33452 (replace_locals_stmt): Do an initial remapping of non-VLA typed
33453 decls first. Do real remapping with
33454 prevent_decl_creation_for_types set.
33455 * tree-inline.h (copy_body_data): New field
33456 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
33459 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
33461 * config/s390/s390.opt (mmvcle): More verbose help text.
33463 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
33465 * config/s390/s390.opt: Add period to -mzvector option text.
33467 2016-01-15 Richard Biener <rguenther@suse.de>
33469 PR tree-optimization/68961
33470 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
33471 of invariants in stores again.
33473 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
33475 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
33477 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
33479 * config/i386/i386.c (ix86_expand_branch): Don't split
33480 DI mode xor instruction to SI mode.
33482 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
33485 * ipa-icf.c (sem_function::merge): Virtual functions may become
33486 reachable even if they address is not taken and there are no
33489 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
33491 * lto-streamer-out.c (subtract_estimated_size): New function.
33492 (get_symbol_initial_value): Use it.
33494 2016-01-15 Christian Bruel <christian.bruel@st.com>
33497 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
33498 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
33499 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
33500 use add_builtin_function_ext_scope instead of add_builtin_function.
33501 (neon_set_p, neon_crypto_set_p): Remove.
33502 (arm_init_builtins): Always call arm_init_neon_builtins and
33503 arm_init_crypto_builtins.
33504 (arm_expand_builtin): Check that builtins are allowed for the arch.
33505 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
33506 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
33507 arm_init_neon_builtins call.
33509 2016-01-15 Richard Biener <rguenther@suse.de>
33511 PR tree-optimization/69117
33512 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
33513 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
33514 of the leader conservatively.
33515 (free_scc_vn): Restore original SSA name infos.
33517 2016-01-14 Jeff Law <law@redhat.com>
33519 PR tree-optimization/69270
33520 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
33521 single bit of precision, verify it's also unsigned.
33522 (record_edge_info): Use constant_boolean_node rather than fold_convert
33523 to convert boolean_true/boolean_false to the right type.
33525 2016-01-14 Richard Henderson <rth@redhat.com>
33528 * loop-doloop.c (record_reg_sets): New.
33529 (doloop_optimize): Reject the transform if the sequence
33530 clobbers registers live at the end of the loop block.
33531 (doloop_optimize_loops): Enable df_live if needed.
33533 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
33535 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
33536 * config/rs6000/rs6000.c: Likewise.
33537 * config/rs6000/rs6000.h: Likewise.
33538 * config/rs6000/rs6000.md: Likewise.
33539 * doc/extend.texi: Likewsie.
33541 2016-01-14 Jeff Law <law@redhat.com>
33543 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
33546 2016-01-14 Richard Henderson <rth@redhat.com>
33550 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
33551 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
33552 instead of builtin_decl_declared_p to test for declaration.
33554 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
33556 * doc/loop.texi (Loop Analysis and Representation): Document
33557 loop_depth function.
33559 2016-01-14 Tom de Vries <tom@codesourcery.com>
33561 PR tree-optimization/68773
33562 * omp-low.c (expand_omp_target): Don't set force_output.
33563 * varpool.c (varpool_node::get_create): Same.
33564 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
33565 offload_funcs with force_output.
33567 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33570 * lra-eliminations.c (move_plus_up): Don't change anything if either
33571 the outer or inner subreg mode is not MODE_INT.
33572 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
33573 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
33575 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
33577 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
33578 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
33579 reduc_uplus_@var{m}): Remove.
33580 * expr.c (expand_expr_real_2): Remove expansion path for
33581 reduc_[us](min|max|plus) optabs.
33582 * optabs-tree.c (scalar_reduc_to_vector): Remove.
33583 * optabs-tree.h (scalar_reduc_to_vector): Remove.
33584 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
33585 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
33586 * tree-vect-loop.c (vectorizable_reduction): Remove test for
33587 reduc_[us](min|max|plus) optabs.
33589 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
33591 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
33592 (reduc_plus_scal_v2sf): New.
33593 (reduc_smax_v2sf): Rename to...
33594 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
33595 (reduc_smin_v2sf): Rename to...
33596 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
33598 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
33600 * alias.c (compare_base_symbol_refs): New function.
33601 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
33604 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33606 PR middle-end/68146
33607 PR tree-optimization/69155
33608 * tree-complex.c: Include cfganal.h.
33609 (phis_to_revisit): New variable.
33610 (extract_component): Add phiarg_p argument. Assert that returned
33611 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
33612 (update_phi_components): Partly rewrite to use loop over real/imag
33613 components instead of code duplication. If extract_component returns
33614 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
33615 create_tmp_reg into the PHI node instead, and mention the phi triplet
33616 in phis_to_revisit.
33617 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
33618 in phis_to_revisit at the end.
33620 2016-01-14 Richard Biener <rguenther@suse.de>
33622 PR tree-optimization/68060
33623 * tree-vect-loop.c (vect_is_simple_reduction): Check the
33624 outer loop reduction is only used in the inner loop before
33625 detecting a double reduction.
33627 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33630 * combine.c (expand_field_assignment): Punt if compute_mode is
33631 unsupported scalar mode.
33633 2016-01-14 Richard Biener <rguenther@suse.de>
33635 PR tree-optimization/66856
33636 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
33637 SLP node only if it built successfully.
33638 (vect_analyze_slp_instance): Adjust.
33640 2016-01-14 Jeff Law <law@redhat.com>
33642 PR tree-optimization/69270
33643 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
33644 (record_edge_info): Use it. Convert boolean_{true,false}_node
33645 to the type of op0.
33647 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
33650 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
33651 use block_ultimate_origin
33652 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
33654 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
33656 * doc/invoke.texi (Submodel Options): Rename section to
33657 "Machine-Dependent Options" to better reflect its content.
33658 Rewrite introductory text to remove archaic CPU names.
33661 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
33663 * doc/invoke.texi (Code Gen Options): Move section up in file,
33664 before target-specific options. Update menu and option summary
33665 to reflect the new section ordering.
33667 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
33669 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
33670 (C++ Dialect Options): Add cross-reference to -std option.
33671 * doc/standards.texi (C++ Language): Document C++14 support.
33673 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
33675 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
33676 for pack/unpack functions for __ibm128.
33677 (PACK_IF): Likewise.
33678 (UNPACK_IF): Likewise.
33680 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
33681 support for __ibm128 pack/unpack functions.
33682 (rs6000_invalid_builtin): Likewise.
33683 (rs6000_init_builtins): Likewise.
33684 (rs6000_opt_masks): Likewise.
33686 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
33687 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
33689 (RS6000_BTM_COMMON): Likewise.
33691 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
33692 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
33693 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
33694 128-bit floating point. Add support for the double values to be
33695 in Altivec registers for TF/IF packing and unpacking, but restrict
33696 TD packing sub-fields to be FPR registers. Don't allow overlapped
33697 register support for packing. Allow pack inputs to be memory
33698 locations. Don't build generator functions for unpack<mode>_dm
33699 and unpack<mode>_nodm.
33700 (unpack<mode>_dm): Likewise.
33701 (unpack<mode>_nodm): Likewise.
33702 (pack<mode>): Likewise.
33704 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
33705 built-in functions to pack/unpack explicit __ibm128 values.
33706 (__builtin_unpack_ibm128): Likewise.
33708 * doc/extend.texi (PowerPC Built-in Functions): Document
33709 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
33711 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
33714 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
33715 Add new arg loc and pass it down as context.
33716 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
33717 to the location to use for the warning.
33718 (check_function_arguments): New arg loc. All callers changed. Pass
33719 it to check_function_nonnull.
33720 * c-common.h (check_function_arguments): Adjust declaration.
33722 2016-01-13 Jakub Jelinek <jakub@redhat.com>
33724 PR tree-optimization/69156
33725 * gimple.c (validate_type): Removed.
33726 (gimple_builtin_call_types_compatible_p): Use
33727 useless_type_conversion_p instead of validate_type.
33728 * value-prof.c (gimple_stringop_fixed_value): Fold
33729 icall_size to correct type.
33731 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
33733 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
33736 2016-01-13 Richard Henderson <rth@redhat.com>
33739 * target.def (builtin_tm_load, builtin_tm_store): Remove.
33740 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
33741 (ix86_builtin_tm_store): Remove.
33742 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
33743 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
33744 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
33745 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
33746 * doc/tm.texi: Rebuild.
33748 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
33749 (BUILT_IN_TM_MEMCPY_RTWN): New.
33750 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
33751 fallback from vector to integer helpers.
33752 (build_tm_load): Handle vector types directly, instead of
33754 (build_tm_store): Likewise.
33755 (expand_assign_tm): Prepare for register types not handled by
33756 the above. Copy them to memory and use memcpy.
33757 * tree.c (tm_define_builtin): New.
33758 (find_tm_vector_type): New.
33759 (build_tm_vector_builtins): New.
33760 (build_common_builtin_nodes): Call it.
33762 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
33764 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
33765 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
33767 2016-01-13 Tom de Vries <tom@codesourcery.com>
33769 PR tree-optimization/69169
33770 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
33771 handled_struct_type param.
33772 (create_variable_info_for, intra_create_variable_infos): Call
33773 create_variable_info_for_1 with extra arg.
33775 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
33777 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
33778 and "armv8.1-a+crc" entries.
33780 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
33783 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
33784 Change first operand predicate from register_or_constm1_operand
33785 to register_operand.
33786 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
33787 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
33788 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
33789 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
33790 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
33791 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
33792 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
33793 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
33794 comparison with constm1_rtx from vec_prefetch_gen part.
33796 2016-01-13 Richard Biener <rguenther@suse.de>
33798 PR tree-optimization/69013
33799 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
33800 Exchange assert for a test.
33802 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33805 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
33807 2016-01-13 Richard Biener <rguenther@suse.de>
33809 PR tree-optimization/69242
33810 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
33811 assert with a check.
33813 2016-01-13 Richard Biener <rguenther@suse.de>
33815 PR tree-optimization/69186
33816 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
33817 Properly guard vect_update_misalignment_for_peel call.
33819 2016-01-12 Jeff Law <law@redhat.com>
33821 PR tree-optimization/pr67755
33822 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
33823 "need_profile_correction".
33824 (thread_block_1): Initialize new field to false by default. If we
33825 have multiple thread paths through a common joiner to different
33826 final targets, then set new field to true.
33827 (compute_path_counts): Only do count adjustment when it's really
33830 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
33832 * doc/invoke.texi (Spec Files): Move section down in file, past
33833 all command-line option descriptions.
33835 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33837 PR middle-end/54809
33838 * doc/gty.texi: Remove documentation of mark_hook.
33839 * gengtype.c (struct write_types_data): Remove code to support
33840 mark_hook attribute.
33841 (walk_type): Likewise.
33842 (write_func_for_structure): Likewise.
33844 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
33846 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
33847 Directory Options, and -specs= to Overall Options.
33848 (Overall Options): Adjust similarly. Reorder to group related
33849 options together. Make -specs= cross-reference the spec file details.
33850 (Directory Options): Adjust similarly.
33852 2016-01-12 Jeff Law <law@redhat.com>
33854 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
33856 2016-01-12 Olivier Hainque <hainque@adacore.com>
33858 * gcc.c (spec_undefvar_allowed): New global.
33859 (process_command): Set to true when running for --version or --help,
33861 (getenv_spec_function): When the variable is not defined, use the
33862 variable name as the variable value if we're allowed not to issue
33865 2016-01-12 Bin Cheng <bin.cheng@arm.com>
33867 PR tree-optimization/68911
33868 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
33869 information computed for expression "init + nit * step".
33871 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
33873 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
33874 about name of GCC executable. Remove deleted node from menu.
33875 (Directory Options) <-B>: Remove cross-reference to deleted node.
33876 (Target Options): Delete section.
33878 2016-01-12 Christian Bruel <christian.bruel@st.com>
33881 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
33882 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
33884 2016-01-12 Jakub Jelinek <jakub@redhat.com>
33887 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
33888 aligned_mem is properly set for AVX512-VL floating point masked
33892 * ifcvt.c (cond_exec_process_if_block): When removing the last
33893 insn from then_bb, remove also any possible barriers that follow it.
33895 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
33899 * config/i386/iamcu.h (SIZE_TYPE): New macro.
33900 (PTRDIFF_TYPE): Likewise.
33901 (WCHAR_TYPE): Likewise.
33902 (WCHAR_TYPE_SIZE): Likewise.
33903 (STDINT_LONG32): Likewise.
33905 2016-01-12 Richard Biener <rguenther@suse.de>
33907 PR tree-optimization/69053
33908 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
33909 convert initial value for cond reductions.
33911 2016-01-12 Richard Biener <rguenther@suse.de>
33913 PR tree-optimization/69007
33914 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
33915 widen_sum after dot_prod and sad.
33917 2016-01-12 Richard Biener <rguenther@suse.de>
33919 PR tree-optimization/69168
33920 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
33921 pattern stmt SLP type.
33922 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
33923 end up unused so cope with that case.
33925 2016-01-12 Richard Biener <rguenther@suse.de>
33927 PR tree-optimization/69157
33928 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
33929 stmts def type only during analyze phase.
33930 (vectorizable_call): Likewise.
33931 (vectorizable_simd_clone_call): Likewise.
33932 (vectorizable_conversion): Likewise.
33933 (vectorizable_assignment): Likewise.
33934 (vectorizable_shift): Likewise.
33935 (vectorizable_operation): Likewise.
33936 (vectorizable_store): Likewise.
33937 (vectorizable_load): Likewise.
33939 2016-01-12 Richard Biener <rguenther@suse.de>
33941 PR tree-optimization/69174
33942 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
33944 (vectorizable_load): Properly compute the number of loads needed
33945 for permuted strided SLP loads and do not spuriously assign
33946 to SLP_TREE_VEC_STMTS.
33948 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
33950 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
33951 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
33952 (MD_EXEC_PREFIX): Remove.
33953 (MD_STARTFILE_PREFIX) Removee.
33954 (FILE_NAME_ABSOLUTE_P): Remove.
33955 (CPP_SPEC): Do not read macros from sys/version.h.
33956 (LINK_COMMAND_SPEC): Remove.
33957 (LOCAL_INCLUDE_DIR): Remove.
33958 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
33959 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
33960 (POST_LINK_SPEC): Define to invoke stubify after linker
33961 (LIBSTDCXX): Remove define
33962 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
33963 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
33964 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
33965 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
33966 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
33967 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
33968 (i386_djgpp_asm_named_section): Add propotype of new procedure
33970 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
33971 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
33972 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
33973 in config/i386/djgpp.h).
33974 (STANDARD_STARTFILE_PREFIX_2): Define identical to
33975 STANDARD_STARTFILE_PREFIX_1.
33976 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
33977 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
33978 installation errors.
33979 (MAX_OFILE_ALIGNMENT): Define to 128.
33980 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
33982 * config/i386/djgpp.c: New file. Add implementation of
33983 i386_djgpp_asm_named_section.
33985 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
33987 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
33988 Add rule for building djgpp.o.
33990 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33992 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
33993 (rtx_is_swappable_p): Reductions are swappable.
33994 (insn_is_swappable_p): V2DF reductions are swappable.
33996 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
33998 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
33999 reloads for other unsupported memory operands.
34001 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
34002 Jim Wilson <jim.wilson@linaro.org>
34005 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
34006 copy_to_mode_reg instead of force_reg.
34008 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34011 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
34012 TARGET_80387 is true.
34014 2016-01-11 Jakub Jelinek <jakub@redhat.com>
34017 * lra-eliminations.c (move_plus_up): Only move plus up
34018 if subreg of the constant can be simplified into constant
34019 and use the simplified subreg of the constant instead of
34020 the original constant.
34022 * fold-const.c (fold_convertible_p): Don't return true
34023 for conversion of VECTOR_TYPE to same sized integral type.
34024 (fold_convert_loc): Fix up formatting. Fold conversion of
34025 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
34026 instead of NOP_EXPR.
34028 PR tree-optimization/69214
34029 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
34030 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
34033 PR tree-optimization/69207
34034 * tree-vect-slp.c (vect_get_constant_vectors): For
34035 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
34036 fold_convertible_p to vector_type's element type, and always
34037 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
34039 2016-01-11 Richard Biener <rguenther@suse.de>
34041 PR tree-optimization/69173
34042 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
34043 fixup the cycle if all stmts are in a pattern.
34045 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
34047 PR middle-end/68999
34048 * alias.c (base_alias_check): Move check for addresses with
34049 alignment ANDs before the call for compare_base_decls.
34050 (memrefs_conflict_p): Return -1 for different decls
34051 that went through alignment adjustments.
34053 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34055 PR rtl-optimization/68796
34056 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
34057 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
34058 and QImode comparisons against zero with CC_NZmode.
34059 * config/aarch64/iterators.md (short_mask): New mode_attr.
34061 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34063 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
34064 (<avx512>_store<mode>_mask): Likewise.
34066 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
34067 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34069 PR rtl-optimization/68841
34070 * ifcvt.c (struct noce_if_info): Add orig_x field.
34071 (bbs_ok_for_cmove_arith): Add to_rename parameter.
34072 Don't record conflicts on to_rename if it's present.
34073 Allow memory destinations in sets.
34074 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
34075 blocks, passing orig_x to the checks.
34076 (noce_process_if_block): Set if_info->orig_x appropriately.
34078 2016-01-11 Tom de Vries <tom@codesourcery.com>
34080 PR tree-optimization/69069
34081 * tree-parloops.c (create_parallel_loop): Add missing phi args.
34083 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
34085 PR rtl-optimization/68920
34086 * config/i386/i386.c (ix86_option_override_internal): Restrict number
34087 of conditional moves for RTL if-conversion to 1 for
34088 TARGET_ONE_IF_CONV_INSN.
34089 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
34090 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
34091 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
34092 parameter to restirct number of conditional moves for
34094 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
34095 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
34098 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
34101 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
34102 onepart vars. Fix typo in comment. Fix reversed condition in
34104 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
34107 * var-tracking.c (dump_onepart_variable_differences): New.
34108 (dataflow_set_different): If a detailed dump is requested,
34109 delay early returns and dump differences between onepart
34110 variables present before and after, and added variables.
34112 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
34115 * expr.c (expand_expr_real_1): For boolean vector constants
34116 with a scalar mode use const_scalar_mask_from_tree.
34117 (const_scalar_mask_from_tree): New.
34118 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
34119 assigned to a mask type to handle constants.
34121 2016-01-11 Martin Jambor <mjambor@suse.cz>
34124 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
34125 useless parameters if we cannot change function signature.
34127 2016-01-11 Martin Jambor <mjambor@suse.cz>
34130 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
34133 2016-01-11 Tom de Vries <tom@codesourcery.com>
34135 PR tree-optimization/69109
34136 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
34139 2016-01-11 Tom de Vries <tom@codesourcery.com>
34141 PR tree-optimization/69108
34142 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
34143 res is not used in a phi.
34145 2016-01-11 Yury Gribov <y.gribov@samsung.com>
34148 * common.opt (frandom-seed): Fix parameter name.
34149 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
34151 2016-01-11 Tom de Vries <tom@codesourcery.com>
34153 PR tree-optimization/69058
34154 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
34157 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
34159 * config/arc/arc.opt (mdiv-rem): Add period to the end.
34160 (mcode-density): Likewise.
34162 2016-01-10 Tom de Vries <tom@codesourcery.com>
34164 PR tree-optimization/69062
34165 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
34166 (parallelize_loops): Don't paralelize loop that has phi with address
34169 2016-01-10 Tom de Vries <tom@codesourcery.com>
34171 PR tree-optimization/69039
34172 * tree-parloops.c (try_create_reduction_list): Only allow single exit
34175 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
34177 PR middle-end/68743
34178 * match.pd: Require target has function_c99_misc before doing
34179 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
34181 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
34183 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
34185 * configure: Regenerate.
34187 2016-01-09 Jakub Jelinek <jakub@redhat.com>
34189 PR middle-end/50865
34190 PR tree-optimization/69097
34191 * fold-const.h (expr_not_equal_to): New prototype.
34192 * fold-const.c: Include stringpool.h and tree-ssanames.h.
34193 (expr_not_equal_to): New function.
34194 * match.pd (X % -Y is the same as X % Y): Don't optimize
34195 unless X is known not to be equal to minimum or Y is known
34196 not to be equal to -1.
34197 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
34198 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
34199 (simplify_stmt_using_ranges): Adjust caller.
34200 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
34201 substitute_and_fold.
34203 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
34205 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
34208 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34210 PR tree-optimization/69167
34211 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
34212 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
34214 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
34216 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
34217 Richard Biener <rguenther@suse.de>
34219 PR tree-optimization/68707
34220 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
34221 instances that can be handled via vect_load_lanes.
34223 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
34225 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
34226 if we can't determine address equivalence.
34227 * alias.c (compare_base_decl): Update for changed return value of
34228 symtab_node::equal_address_to.
34230 2016-01-08 Jason Merrill <jason@redhat.com>
34234 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
34235 * expr.c (store_field): Not here.
34236 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
34237 call with TREE_ADDRESSABLE type.
34238 * tree-cfg.c (verify_gimple_call): Adjust.
34240 2016-01-08 Olivier Hainque <hainque@adacore.com>
34242 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
34245 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
34247 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
34248 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
34249 (reduc_smin_v2sf): Rename to...
34250 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
34251 (reduc_splus_v2sf): Rename to...
34252 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
34254 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34256 PR tree-optimization/69162
34257 * gimplify.c (gimplify_va_arg_expr): Encode original type of
34258 valist argument in another argument.
34259 (gimplify_modify_expr): Adjust for the above change. Cleanup.
34260 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
34261 to determine the va_list type, build a MEM_REF instead of
34262 build_fold_indirect_ref.
34264 PR tree-optimization/69172
34265 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
34268 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
34270 PR tree-optimization/67781
34271 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
34272 and cmpnop in two steps: first the ones not accessed in original
34273 gimple expression in a endian independent way and then the ones not
34274 accessed in the final result in an endian-specific way.
34276 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34278 PR tree-optimization/69083
34279 * tree-vect-slp.c (vect_get_constant_vectors): For
34280 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
34281 element type. If op is fold_convertible_p to vector_type's element
34282 type, use NOP_EXPR instead of VCE.
34284 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
34286 PR rtl-optimization/67778
34287 PR rtl-optimization/68634
34288 PR rtl-optimization/68909
34289 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
34290 block from the stack until done with it. Remove a superfluous
34291 bitmap set. Remove a superfluous bitmap test.
34293 2016-01-07 Martin Sebor <msebor@redhat.com>
34296 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
34297 constraint on the type of arguments.
34299 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
34301 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
34302 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
34303 unaligned_access on the gcc_options set.
34304 * config/arm/arm.c (arm_option_override_internal): Use
34305 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
34307 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
34310 * config/i386/i386.c (ix86_frame_pointer_required): Enable
34311 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
34313 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
34316 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
34319 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
34320 depending on frame_pointer_needed before remaining integer and SSE
34321 registers are saved.
34323 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
34326 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
34328 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
34331 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
34332 Use the "xBm" constraint.
34333 (float<sseintvecmodelower><mode>2<mask_name><round_name):
34335 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
34336 (sse_cvtsi2ssq<round_name>): Likewise.
34337 (sse_cvtss2si<round_name>): Likewise.
34338 (sse_cvtss2siq<round_name>): Likewise.
34339 (sse2_cvtsi2sdq<round_name>): Likewise.
34340 (sse2_cvtsd2si<round_name>): Likewise.
34341 (sse2_cvtsd2siq<round_name>): Likewise.
34342 * config/i386/subst.md (round_nimm_scalar_predicate): New
34345 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
34347 PR middle-end/67639
34348 * varasm.c (make_decl_rtl): Mark invalid register vars as
34351 PR rtl-optimization/66206
34352 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
34353 All callers changed.
34355 2016-01-07 Jakub Jelinek <jakub@redhat.com>
34357 PR tree-optimization/69141
34358 * tree-ssa-pre.c: Include langhooks.h.
34359 (eliminate_dom_walker::before_dom_children): Use
34360 lang_hooks.decl_printable_name instead of
34361 cgraph_node::get ()->name ().
34363 PR middle-end/68960
34364 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
34365 it and DECL_ALIGN too.
34367 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
34369 * config/mips/mips-ftypes.def: Sort to lexicographical order.
34371 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
34374 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
34375 depending on frame_pointer_needed before remaining integer and SSE
34376 registers are saved.
34378 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34380 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
34381 mode iterator with VSX_M2.
34382 (*p9_vecstore_<mode>): Likewise.
34383 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
34384 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
34385 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
34386 (define_split for VSX_LE128 stores): Likewise.
34387 (define_peephole2 for TImode LE swaps): Likewise.
34388 (define_split for VSX_LE128 post-reload stores): Likewise.
34390 2016-01-06 Marek Polacek <polacek@redhat.com>
34393 * convert.c (convert_to_integer_1): Adjust call to
34394 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
34395 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
34396 EXPR instead of ARG.
34397 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
34399 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34402 * doc/extend.texi (RL78 Variable Attributes): New section.
34404 2016-01-05 Marek Polacek <polacek@redhat.com>
34407 * builtins.c (get_memmodel): Use expansion point location rather than
34408 the input location. Call warning_at rather than warning.
34409 (expand_builtin_atomic_compare_exchange): Likewise.
34410 (expand_builtin_atomic_load): Likewise.
34411 (expand_builtin_atomic_store): Likewise.
34412 (expand_builtin_atomic_clear): Likewise.
34414 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
34417 * config/i386/i386.c (ix86_expand_vector_logical_operator):
34418 Replace nonimmediate_operand with vector_operand.
34419 * config/i386/predicates.md (vector_operand): New predicate.
34420 (general_vector_operand): Replace nonimmediate_operand with
34422 * config/i386/sse.md: Replace nonimmediate_operand with
34423 vector_operand and m constraint with Bm constraint on SSE
34424 patterns with 16-byte memory operand.
34425 * config/i386/subst.md (round_nimm_predicate): Replace
34426 nonimmediate_operand with vector_operand.
34427 (round_saeonly_nimm_predicate): Likewise.
34428 (round_saeonly_nimm_scalar_predicate): New.
34430 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
34433 * config/i386/constraints.md (Bm): New constraint.
34434 * config/i386/predicates.md (vector_memory_operand): New
34436 * config/i386/sse.md: Replace xm with xBm in plusminus and
34437 any_logic patterns.
34439 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34442 * doc/extend.texi (V850 Function Attributes): New section.
34443 (V850 Variable Attributes): New section.
34445 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34448 * doc/extend.texi (MicroBlaze Function Attributes): Document
34449 interrupt_handler and fast_interrupt attributes.
34451 2016-01-05 Sergei Trofimovich <siarheit@google.com>
34454 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
34455 for local symbolic operands.
34456 * config/ia64/predicates.md (local_symbolic_operand64): New
34459 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34461 PR rtl-optimization/68651
34462 * combine.c (combine_simplify_rtx): Canonicalize x + x into
34465 2016-01-05 Nathan Sidwell <nathan@acm.org>
34467 * alias.c (compare_base_decls): Use symtab_node::get.
34469 2016-01-05 Nick Clifton <nickc@redhat.com>
34472 * ira-costs.c (copy_cost): Initialise the t_icode field of the
34473 secondary_reload_info structure.
34476 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
34477 decls if weak support is available.
34479 2016-01-04 Martin Sebor <msebor@redhat.com>
34481 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
34483 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
34485 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
34486 OPTION_MASK_P9_DFORM.
34488 * config/rs6000/constraints.md (wo constraint): New constraint for
34491 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
34493 (rs6000_init_hard_regno_mode_ok): Likewise.
34495 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
34498 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
34499 expanders not to have constraints. Add support for ISA 3.0 xxperm
34500 instruction. Add support for fusing xxlor with xxperm.
34501 (altivec_vperm_<mode>_internal): Likewise.
34502 (altivec_vperm_v8hiv16qi): Likewise.
34503 (altivec_vperm_<mode>v16q): Likewise.
34504 (altivec_vperm_<mode>_uns): Likewise.
34505 (vperm_v8hiv4si): Likewise.
34506 (vperm_v16qiv8hi): Likewise.
34508 * doc/md.texi (RS/6000 constraints): Document wo constraint.
34510 2016-01-04 Jakub Jelinek <jakub@redhat.com>
34512 Update copyright years.
34514 * gcc.c (process_command): Update copyright notice dates.
34515 * gcov-dump.c (print_version): Ditto.
34516 * gcov.c (print_version): Ditto.
34517 * gcov-tool.c (print_version): Ditto.
34518 * gengtype.c (create_file): Ditto.
34519 * doc/cpp.texi: Bump @copying's copyright year.
34520 * doc/cppinternals.texi: Ditto.
34521 * doc/gcc.texi: Ditto.
34522 * doc/gccint.texi: Ditto.
34523 * doc/gcov.texi: Ditto.
34524 * doc/install.texi: Ditto.
34525 * doc/invoke.texi: Ditto.
34527 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34529 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
34530 modes larger than TImode as TImode if NEON is not enabled.
34532 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34535 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
34536 mode for %f0-%f31 only if TARGET_FPU.
34538 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34541 * config/sparc/sparc.c (scan_record_type): Take into account subfields
34542 to compute the PACKED_P predicate.
34543 (function_arg_record_value): Minor tweaks.
34545 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
34547 * doc/install.texi (--with-multilib-list): Describe the meaning of the
34548 option for arm*-*-* targets.
34550 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
34552 * doc/extend.texi (Common Function Attributes): Move docs for
34553 MSP430-specific attributes to....
34554 (MSP430 Function Attributes): ...here. Delete the redundant
34555 entries and copy-edit the remaining text.
34556 (MSP430 Variable Attributes): Use uniform format for index
34557 entries and add a cross-reference to the corresponding function
34560 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
34562 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
34564 (x86 Options): Likewise.
34566 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
34570 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
34571 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
34572 to corresponding attribute.
34574 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
34576 * doc/extend.texi (Common Function Attributes) <noplt>: Move
34577 to correct alphabetization of table. Copy-edit and correct
34579 <stack_protect>: Likewise.
34580 <target_clones>: Likewise.
34582 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
34583 Correct punctuation.
34584 (Code Gen Options) <-fno-plt>: Copy-edit.
34586 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
34589 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
34590 SI values. Explicitly convert SI to DI and vice-versa.
34592 2016-01-01 Jakub Jelinek <jakub@redhat.com>
34594 PR tree-optimization/69070
34595 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
34596 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
34599 * ubsan.c (ubsan_instrument_float_cast): Call
34600 initialize_sanitizer_builtins.
34603 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
34605 Copyright (C) 2016 Free Software Foundation, Inc.
34607 Copying and distribution of this file, with or without modification,
34608 are permitted in any medium without royalty provided the copyright
34609 notice and this notice are preserved.